Skip to content

Pin review targets in prepared assignments (T35) #185

Closed

Description

@erickb336

Sage task T35

Extract immutable review targets from the Codex integration as a prerequisite for #88 and #138. A prepared reviewer assignment must retain the exact branch, commit, round and cycle it was given, so later evidence cannot silently describe different work.

Scope: shared review-target validation, the optional named review field in prepareAdmission, public core exports, documentation, and both generated provider bundles. Only code-reviewer, security-reviewer, ux-reviewer and qa assignments may carry this field. Exact retries retain the original target; changed, missing, malformed or foreign fields refuse without changing the journal. Existing preparations remain readable. Preserve run targets and continuation options.

Test all review roles, non-review refusal, branch and commit validation, integer bounds, immutable retries, restart reads, and reservations linked to the saved preparation. Prove new tests fail on detached main. Run build, check, the full suite and exact-head CI, then complete two clean code/security/QA review cycles on the final commit.

This component saves scope only. It does not verify the current Git head, accept a verdict, count clean cycles, authorize a merge, or activate automatic Sage. Current-logbook and Git validation, review-report decoding and native review workflow wiring remain separate integration work. Do not edit state.mjs, Claude hooks, or any files owned by open Claude PR #140.

T35 merged — 2026-10-13

PR #186 merged at e1b590f. Exact head 859c714 passed two clean code/security/QA cycles, build/check, all 1,140 local tests with serial file scheduling, and all 1,140 CI tests (run 38429335076). Three new tests fail on detached main because review options and the parser were absent. A reported newline-regex finding did not reproduce in ten direct checks and the reviewer withdrew it.

Integration 265f008 includes this main merge. It adds documentation and three tests to f815120, whose full 1,259-test suite and native follow-up probe passed. Runtime code is unchanged; all four focused review-target checks and build/check pass on the updated integration. All owned local test/probe processes finished. Saved review targets do not authorize verdicts or merges. Native review wiring, current-record validation, and installed automatic Sage remain unfinished. Claude #140 remains untouched.

Activity

  1. added
    codex
    on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions