Repository navigation
Count an outside review as clean only when it ends with a VERDICT line - #4140
Merged
Merged
Conversation
…erdict Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Every outside-review prompt now asks the reviewer to end with exactly VERDICT: CLEAN or VERDICT: FINDINGS, and the parser reads a pass only from that line. Prose no-findings sentences are no longer evidence for clean. Codex's structured review and /codex review run through codex exec, since codex review --base takes no prompt and could never give the line. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ith-a-verdict-line
|
😎 This pull request was merged. |
…broke (GST-1821) The outside brief, both adversarial sections and the review-army prompt-file line now carry the last-line VERDICT request; their pins move under the preregistered no-loss replay GST-1821. Test fakes that wrote a clean reply now end it with VERDICT: CLEAN, the review carve marker follows the codex exec sentence, size pins drop where skills shrank, and the plan-review prompt-file line is shortened so /plan-eng-review stays at its pin. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… it now needs CI's free-suite shard 5 failed at 1de52b0 with 18 cases in test/model-role-invocation.test.ts: the fake Codex reply had no VERDICT line, so it read unverified (exit 4), and the review-mode template now has one codex exec dispatch block instead of two. The fake reply now ends with VERDICT: FINDINGS and the block count expects one. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…very false-clean case Review-Finding: p1/red-team#2 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
6 tasks done
A /codex review whose git diff fails now stops before Codex runs instead of sending an empty diff. The verdict is read from the raw last line, so inline code after VERDICT: CLEAN no longer reads clean, and VERDICT: CLEAN beside numbered items with no severity reads unverified. Codex structured review gets the base-branch diff appended to its prompt, the way the Claude path does, so the scope no longer depends on the prompt the host writes. Fix round granted by the Captain (a-aec3882c9d48). Review-section pins move under replay GST-1821: the free 681-input replay and the 54 scored probe replies are unchanged through the fixed parser. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and that /codex review stops without its diff Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… codex exec Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… to its prompt Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
An outside review (Codex or Claude Code giving a second opinion in /ship, /review, /codex, /autoplan and the plan reviews) now counts as clean only when its last line is exactly
VERDICT: CLEANorVERDICT: FINDINGS. This serves the README's promise of a reviewer who finds production bugs: a review that names a problem can no longer pass the merge check because its prose also says "no issues".An outside reviewer's reply now counts as clean only when its last line is exactly
VERDICT: CLEAN. Prose such as "No issues found in the diff." can no longer pass /ship's and /review's merge check. This serves the README goal of reviews you can trust before a merge.What changed
How /ship reads four outside-review replies on main (before) and on this branch (after). Prose no longer passes; only a last-line
VERDICT: CLEANdoes.Before/after as text: How /ship reads four outside-review replies on main (before) and on this branch (after): prose no longer passes, only a last-line VERDICT: CLEAN does
Why
Every rule gstack had for reading a "no issues" sentence let some reply that named a problem pass the merge check. One example is "The fallback swallows ENOENT; no issues in the diff." Now the reviewer has to end with
VERDICT: CLEANorVERDICT: FINDINGS. A reply without that line is missing coverage, never a pass.Blast radius
Every outside-review prompt now asks for the verdict line: /ship, /review, /codex, /claude-code, /autoplan, the plan reviews, /office-hours, /design-review and /document-release. Codex's structured review and the default
/codex reviewmove fromcodex review --basetocodex execwith the same base diff. A reply without the line reads unverified. The replay of 681 captured parser inputs found 0 moving toward clean, so the change can only fail closed (script ran: ~/.capy/work/gst1821/replay.json).Approvals
Approved: yes (record r-979f6e9379ea). The full approval record stays private: this repository is public or its visibility is unknown.
Plan: exempt: bug fix (Captain ruling on GST-1821, no /autoplan)
Plan check: exempt bug fix
Summary
Outside reviews used to pass when their prose said there were no issues, even when the same reply named one. The reviewer now ends with a fixed verdict line, and the parser reads the token from the raw last line, outside any code fence. P0/P1 findings and a last
Verdict: not readystill block whatever the line says.VERDICT: CLEANbeside numbered items with no severity reads unverified./codex reviewstops before calling Codex when it can't write the diff into the prompt. Codex's structured review appends the base diff to its prompt in one guarded write. The changelog has the entry plus a correction to #4136's earlier claim. A failing-first commit (dae2464) came before the fix: 29 of 37 cases failed on main f97c0dd, including all four forms named in the issue.Test Coverage
All changed runtime paths have a changed test. The Step 7 audit read the one flagged file (office-hours/sections/visual-design.md, a one-blank-line re-render of the shared outside-voice block) and found it covered by the resolver tests and the generated-docs freshness guard.
Tests: 1751 → 1751 (+0)
Coverage: 100% value-weighted (100% including 0 weakly covered paths)
Test value: 0 tests written, 1 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
Tests ran: free carried from CI (see the receipt)
Pre-Landing Review
Pass 1 (full, gate class) found 2 red-team items: red-team#2 was fixed (e595e45, 215e240) and red-team#1 is a note. The first fix-check noted 1 item. Step 11's voices raised 3 blocking findings at the round cap. The Captain granted one extra fix round, which landed in 248da98 and covered outside-voice#1, outside-voice#2, adversarial#3 and adversarial#2. Its fix-check (grant a-9320694eef7f) found no blocking issue. A CI-only test repair after review (40c1de4) got one more scoped fix-check (grant a-41e827ff0b0d), which also found no blocking issue.
REVIEW_LOOP: passes=1 blocking_found=4 deferred=0 noted=8 fixed=1 scope=frozen unrecorded=4 ledgers_read=6 fix_checks=3 dispatches=2
Gate edits: partial (50 of 61 eligible read by the scan; all 66 listed hunks summarized from the artifact), 0 findings
Outside review: openai/gpt-6.1-sol ran at Step 11 (v1) and raised 2 findings, both fixed in 248da98.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/outside-review-result.ts:280VERDICT: CLEAN beside numbered advisory steps (e.g. '[P2] ... Suggested fix: 1. ... 2. ...' or a plan review's '1. Premises are valid.') now reads unverified/untagged_review instead of clean; fails closed; frequency on real review-gate replies unmeasured.lib/outside-review-result.ts:251Only numbered items count as unlabeled findings, so a bulleted or 'Finding N:' unlabeled finding beside VERDICT: CLEAN still reads clean on the structured gate (same before and after the fix).scripts/resolvers/outside-voice.ts:138The structured gate inlines the whole base diff into codex exec's prompt with no size limit; a very large diff can exceed context and return MISSING COVERAGE (fails closed).test/fixtures/review-pins/replays/GST-1821.json:1The no-loss evidence (54 probe replies, 681-input replay) was rerun only through the new parser; no run exercised the changed Codex structured prompt shape (diff inlined as REPOSITORY CONTEXT, host scope sentence dropped), so rule-15 no-loss for that prompt change is unproven.changelog.d/outside-reviews-end-with-a-verdict-line.md:1The changelog says VERDICT: CLEAN beside untagged numbered items reads unverified in /ship and /review; /codex review (structured gate) reads it unverified too and is not named.changelog.d/outside-reviews-end-with-a-verdict-line.md:1The changelog's consult/challenge FINDINGS: unspecified claim holds only when the numbered items carry no severity tag; a tagged item prints its severity (e.g. FINDINGS: P2).docs/skills.md:1359The /codex Review sentence still says PASS/FAIL; the codex exec review gate can also read UNVERIFIED when the reply lacks a last VERDICT: line.Agent notes
VERDICT: findingsdiffer in case. adversarial#5: users who set only review_model now get the default model, and CODEX_REVIEW_MODEL_CONFIG_FLAG and its resolver are now unused (left in place, out of scope). adversarial#6: other plan reviews rely on the host to request the line, so they fail closed. p2 fix-check#1: the changelog correction says "above" but folds below. Docs audit: the review_model note in docs/hosts.md may be stale.Exploratory QA
Pass at 1de52b0: 3 smoke probes on the classifier CLI. A clean reply with the line read clean (exit 0), a reply with no line read unverified (exit 4), and [P1] under CLEAN read findings (exit 3).
Eval Results
Prompts changed. Paid evals were not run, by the owner's choice (A. No screen); paid coverage is deferred to the release gate.
Scope Drift
Scope Check: CLEAN. The fix round touched only the four granted findings and the size pins they moved. Later commits are the changelog, the docs audit and the CI test repair.
Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). The plan is exempt as a bug fix by Captain ruling on GST-1821.
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual correction to docs/skills.md.
Scope: base 5f9b7ef..7973696 on outside-reviews-end-with-a-verdict-line: 56 files across 9 commits, with no staged, unstaged or new files. The diff makes outside reviews count as clean only from a last-line VERDICT: CLEAN or VERDICT: FINDINGS, and moves /codex review onto codex exec.
Documentation health:
Coverage debt: the missing_verdict reason has reference coverage only, in docs/troubleshooting.md and lib/gate-outcomes.ts. docs/skills.md does not describe the VERDICT line in the Review mode text.
Diagram drift: none.
Test plan
🤖 Generated with Claude Code