Repository navigation
v0.5: review lifecycle — re-check loop, verdict header, evidence labelling, security retention, branch-aware targets - #7
Conversation
… labelling, security retention, branch-aware targets - Skill: fix loop with re-check eligibility (contract hash), stop and no-ship rules; fixed short report header; verdict and severity discipline; executed-vs-static evidence and reviewer capability check; clean reviewer briefs and immutable contract; security never dropped at the panel bound, quick escalates; branch-aware default target, plan and document targets, scope statement; verified_state hashing. - Harness: layered fixtures (branch commits, previous, staged, origin), target-presence check, state guard, host-agnostic and size guards, report-consistency and verified_state scoring. - 16 new v0.5 fixtures (28 total); docs updated.
…iterion-link scoring - Scorer resolves criterion-id finding links (A1) through criteria text, as the report schema already allowed. - acceptance-omission accepts R1 or R2 (ignoring last_name breaks both). - json-report.md: untracked caches from project commands do not make source_unchanged false. - Runs (28 fixtures each): OpenCode raw 24/28, corrected 27/28 incl. a duplicate-event re-run; Claude Code raw 25/28, corrected 27/28; 0 false negatives on either. Paths redacted. - docs/evaluation.md and CHANGELOG [Unreleased] updated.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b893cb1a9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,5 +1,7 @@ | |||
| # Acceptance Reviewer | |||
|
|
|||
| The lead adjudicates, reports with the verify header, and a FIX REQUIRED needs a re-check before shipping. | |||
There was a problem hiding this comment.
Link to lifecycle rules instead of duplicating them
This lifecycle instruction is copied into all five reviewer role files even though adjudication and re-check behavior already live in SKILL.md and references/adjudication.md. This violates the root AGENTS.md rule, “One home per fact: never duplicate a rule or description into a second file; link instead,” and introduces multiple independently maintained copies of the shipping constraint. Replace these repeated instructions with links to their authoritative home.
AGENTS.md reference: AGENTS.md:L9-L9
Useful? React with 👍 / 👎.
| - `files`: each target path mapped to `git hash-object <path>` (never with `-w`), or `null` for a deleted path. In a re-check, cover the union of the prior `verified_state.files` paths, the delta's paths, and the files of open prior findings. | ||
| - Never hash the index. When staged content differs from the working tree, say so in the Scope ([verification-contract.md](verification-contract.md#scope)). | ||
| - There is no `source` field: `verified_state` records working-tree content only when reviewers read the working tree. For a commit, range, or pull-request target that is not the checked-out working tree, record `verified_state: null` and state in the Scope that the verified state was not recorded; such a report is not a re-check baseline. | ||
| - The markdown `Verified state` line shows `head` and one aggregate hash: `git hash-object --stdin` over the sorted `<blob> <path>` lines, where a deleted path's line is `null <path>`. Per-file ids appear only in JSON. |
There was a problem hiding this comment.
Preserve per-file verified state in the default report
For the default Markdown output, this explicitly excludes the per-file blob IDs and retains only an aggregate hash. After an uncommitted change receives FIX REQUIRED and is edited, neither that aggregate nor the recorded HEAD can recover the previous working-tree blobs. Consequently, the next invocation cannot perform the per-path comparisons required by adjudication.md's re-check delta rule or carry forward the prior verified path set. Include the full verified-state map in the Markdown report or provide a permitted companion representation so the default reporting flow can actually support re-checks.
Useful? React with 👍 / 👎.
| if not isinstance(recheck, dict): | ||
| return ["recheck must be an object in a re-check run"] | ||
| errors: list[str] = [] | ||
| listed: dict[str, dict[str, Any]] = {} |
There was a problem hiding this comment.
Validate that a re-check preserves the prior contract
Once the prior report qualifies, this function validates resolutions and roles but never compares the current contract summary or criterion IDs/text with the prior report. I materialized v0.5-recheck-fixed, replaced its report's requirements and all criteria with a single unrelated passing criterion, and score_report still printed PASS. This allows the evaluation to accept precisely the contract-rebuilding behavior that adjudication.md forbids during re-checks. Compare the preserved contract fields and criterion IDs/text against the supplied prior report, while allowing criterion results and evidence to change.
Useful? React with 👍 / 👎.
What and why
A review of about 50 real
verifyruns found it catches real defects, but the process around it breaks down. Fixes go unchecked. Verdicts drift. Static reading gets reported as passing tests. Security gets dropped first when the panel is full. Targets miss commits on the branch. Reports are walls of text. This change addresses those failures.Skill
verified_staterecords{head, files}from what reviewers read.Harness
verified_statescoring.Hosts tested in
All 28 fixtures were run on OpenCode headless and Claude Code headless:
Neither host had a false negative. The records are under
evals/runs/2026-11-11-*, with the post-run scorer and fixture changes stated.Checklist
SKILL.mdat 109 of 110 lines, one home per fact)CHANGELOG.mdentry under[Unreleased]flow-map.mdupdated if the flow changed: it is created in the v0.5.0 release PRpython3 scripts/eval_harness.py validate(28 cases) andpython3 -m unittest discover -s tests(125) passReviewed by two independent review rounds with re-checks, plus fresh verifier gates.