Skip to content

v0.5: review lifecycle — re-check loop, verdict header, evidence labelling, security retention, branch-aware targets - #7

Merged
Gamebreack merged 2 commits into
mainfrom
feat/v0.5-review-lifecycle
Nov 12, 2026
Merged

Gamebreack merged 2 commits into
mainfrom
feat/v0.5-review-lifecycle

Conversation

@Gamebreack

Copy link
Copy Markdown
Owner

What and why

A review of about 50 real verify runs 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

  • Re-check after FIX REQUIRED. Eligibility needs an earlier FIX REQUIRED report and the same contract, matched by blob hash. The re-check target is the fix delta plus the files of every open finding. It always runs the mode's baseline roles, plus the roles with open findings, plus any role the fix newly triggers. It has a stop rule, and the change may not ship until a re-check passes. Unresolved findings carry forward, and so do OPTIONAL notes.
  • Report discipline:
    • a fixed short header (verdict, assurance, executed vs static evidence, scope);
    • no PASS while anything is open;
    • a reason for every severity change;
    • every out-of-mandate note answered.
  • Evidence and briefs:
    • a capability check before dispatch: if reviewers can't run commands, the lead runs them;
    • briefs say nothing about checks already passing;
    • the contract is immutable.
  • Panel: a triggered security role is never the one dropped at the panel limit, and quick mode escalates to panel when security triggers.
  • Targets:
    • the default is the branch against its merge base plus the working tree;
    • plans and documents can be targets;
    • the report states what scope was covered;
    • verified_state records {head, files} from what reviewers read.

Harness

  • Layered fixtures: branch commits, previous, staged and origin.
  • A target-presence check, and a state guard covering the index, HEAD and injected files.
  • Host-agnostic and size guards.
  • Report-consistency and verified_state scoring.
  • 16 new fixtures, 28 in total.

Hosts tested in

All 28 fixtures were run on OpenCode headless and Claude Code headless:

Host Raw Corrected
OpenCode 24/28 27/28
Claude Code 25/28 27/28

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

  • Follows the rules in AGENTS.md (host-agnostic skill, SKILL.md at 109 of 110 lines, one home per fact)
  • CHANGELOG.md entry under [Unreleased]
  • flow-map.md updated if the flow changed: it is created in the v0.5.0 release PR
  • python3 scripts/eval_harness.py validate (28 cases) and python3 -m unittest discover -s tests (125) pass
  • Behavioral run recorded (verdict behavior changed)

Reviewed by two independent review rounds with re-checks, plus fresh verifier gates.

… 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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T02:09:56.595218Z 8b893cb PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Gamebreack
Gamebreack merged commit 2d6c68e into main Nov 12, 2026
2 checks passed
@Gamebreack
Gamebreack deleted the feat/v0.5-review-lifecycle branch November 12, 2026 02:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment thread scripts/eval_harness.py
Comment on lines +883 to +886
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]] = {}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@Gamebreack Gamebreack mentioned this pull request Nov 12, 2026
4 of 5 tasks
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.

1 participant