Skip to content

Pin prepared reviewer assignments to immutable targets (T35) - #186

Merged
erickb336 merged 2 commits into
mainfrom
codex/t35-review-targets
Oct 13, 2026
Merged

erickb336 merged 2 commits into
mainfrom
codex/t35-review-targets

Conversation

@erickb336

@erickb336 erickb336 commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

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:

  • npm run build: generated provider bundles.
  • npm run check: all checks pass.
  • node --test --test-name-pattern='saved review' scripts/providers.test.mjs: 3 tests, 3 pass, 0 fail.
  • Detached main ed7cf14 with only the new tests: 3 tests, 0 pass, 3 fail. Two fail because main refuses the unsupported review option; one fails because parseReviewTarget does not exist. This establishes missing support, not a behavioral regression against an earlier implementation.
  • Code/security/QA review: two clean cycles on the unchanged final commit.
  • npm test -- --test-concurrency=1: 1,140 tests, 1,140 pass, 0 fail, 0 skipped.
  • Exact-head CI run 38429335076: check passed; 1,140 tests, 1,140 pass, 0 fail.

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.

@erickb336
erickb336 marked this pull request as ready for review October 13, 2026 16:25
@erickb336
erickb336 merged commit e1b590f into main Oct 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pin review targets in prepared assignments (T35)

1 participant