Repository navigation
feat(annotations): read target paths from the target's state - #158
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
feat/ci-target-paths
branch
from
November 22, 2026 15:04
57eedec to
781ae4a
Compare
PiquelChips
force-pushed
the
feat/ci-target-paths
branch
2 times, most recently
from
November 22, 2026 18:54
8d55849 to
9bcc236
Compare
A worker runs a candidate's checks as the target's `checks.toml` defines them, but promotion matched results by the candidate's own copy. A candidate restoring an older `checks.toml` could therefore pick up a result run under the old definition. `Inputs` gains a second list, `target_paths`, read from the state of the target the record is on (its base acceptance, down any stack) rather than from its own snapshot. The input digest hashes the snapshot's paths, then the target's, and the spec hashes each list with its count, so a path read from the target never matches one read from the snapshot. `InputTrees` reads the target's state once, when first needed. This is a format break: every statement that declares inputs gets a new encoding and id, and the spec and digest contexts move to `2026-11`. Nothing is released, so there's no migration. The input digest on snapshot paths only takes 38.6 µs; with a target path on a revision three deep in a stack, 62.9 µs: the four record reads down to the base acceptance, paid once per statement. Closes #19
PiquelChips
force-pushed
the
feat/ci-target-paths
branch
from
November 22, 2026 19:20
9bcc236 to
e5ddb84
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A result stands for the checks in force on its target (#19). A worker runs a candidate's checks as the target's
checks.tomldefines them, but promotion matched results by the candidate's own copy. A candidate restoring an olderchecks.tomlcould therefore pick up a result run under the old definition.A check's inputs now have a second list,
target_paths, read from the state of the target the subject is on (its base acceptance, down any stack) rather than from its own tree. Workers declarechecks.tomlthere;origin ci runkeeps the revision's own copy, which is what it runs with. The spec hashes each list with its count, so a path read from the target never matches one read from the snapshot.Inputsgains a field, so every statement that declares inputs gets a new encoding and id, and the spec and digest contexts move to2026-11. Nothing is released, so no migration.checks.tomlnow has the target's result promoted, since the worker would run the same definition on the same files.input_digeston snapshot paths only takes 38.6 µs; with a target path on a revision three deep in a stack, 62.9 µs. That's the four record reads down to the base acceptance, paid once per statement when digests are computed.target_paths_are_read_from_the_baseandtarget_paths_are_read_from_the_target, each failing without the change. The end-to-end test,results_stand_for_the_checks_in_force_on_the_target, comes with the worker.Closes #19
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)