Repository navigation
Pin prepared reviewer assignments to immutable targets (T35) - #186
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 13, 2026 16:25
This was referenced Oct 13, 2026
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.
Closes #185
Sage task T35
Prepared reviewers now retain the exact branch, commit, round and cycle they were assigned. A retry cannot change or remove that target. Only code-reviewer, security-reviewer, ux-reviewer and qa assignments can carry it.
The named review option works alongside saved run targets and continuations. Existing preparations remain readable. A public parser validates task branches, lowercase 40-digit commit IDs, nonnegative safe rounds, and cycles 1 through 10. This saves scope only: the provider still must check current Git and logbook records before it accepts evidence. Saving a target does not accept a verdict, count clean cycles, or authorize a merge.
Sources: packages/sage-core admission, review and branch validators, exports and documentation. Provider copies are generated. No shared state-tool or Claude-hook changes. This is a prerequisite for #88 and #138; installed automatic Sage remains disabled.
Validation on 859c714:
Coverage includes all review roles, non-review refusal, malformed fresh scopes, unchanged journals after refusal, retry immutability, caller mutation, fresh-process reads, reservation links and continuation coexistence. Existing assertions are unchanged. Every test uses fake ps, pgrep and kill first on PATH. Child processes finish before the tests return.
Not verified: native review dispatch, current Git/logbook truth, accepted verdicts, real-model behavior or installed automatic Sage. The full local suite and its owned workers finished. Ten direct trailing-line-ending validation cases also refuse, resolving a review concern without code changes.