Skip to content

feat(verification): carry one row per criterion into the PR evidence table - #17183

Merged
kyle-sexton merged 5 commits into
mainfrom
feat/verification-criterion-rows-evidence-table
Nov 19, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
feat/verification-criterion-rows-evidence-table

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

No related issue: an owner-approved build from a sign-off round, the smallest form of a per-criterion traceability table in PR evidence

Summary

/verification:confirm already works out, for each acceptance criterion, which files meet it and which test proves it, but its per-head verdict record keeps only the verdict and the MISSING or PARTIAL items. So the pull-request evidence comment can show only one result line per criterion, with no files and no test. This change stores one row per criterion in that record and shows the rows as one table in the evidence comment.

session: AI Hero

Fix

  • lib/confirm-verdict.sh (synced to its two copies): record takes --row '<criterion> | <files> | <test or check> | <result>', stored as a ROW: line in the order given and printed by show. --of measure refuses it. Tests in lib/confirm-verdict.test.sh.
  • verification:confirm: passes one --row per criterion, COMPLETE ones included. context/outcome.md fills the cells from Plan Coverage and Evidence. In context/fix.md the first row is the reported symptom with its reproduction test failing on base and passing on head, then a regression row. In context/refactor.md the first row is "behavior preserved: same tests pass".
  • pull-request evidence step: keeps the ROW: lines show prints. When there are rows, step 4 renders them through the template's new {{#criteria}} block, a Criterion / Files / Test or check / Result table, in place of the per-criterion result lines, after one text line stating the verdict. A verdict recorded with no rows keeps the lines.
  • Evals: the evidence fixture records one row per criterion. pull-request-evidence-large-change-collapsed gains a criteria-table grader, and confirm-lists-every-verifier-verdict gains a records-a-row-per-criterion grader, each with pass and fail samples.
  • Changelog fragments for verification and source-control.

Verification

  • bash lib/confirm-verdict.test.sh: all pass. The new tests cover rows stored in order beside a MISSING item, show printing them with an escaped pipe kept, an empty or multi-line row exiting 1, and a row on a measure record exiting 1.

  • bash plugins/source-control/skills/pull-request/scripts/ready-flip.test.sh: 59 pass, 0 fail.

  • scripts/sync-shared-copies.sh --check-bump origin/main: copies in sync, and both carrying plugins have a fragment.

  • evals:validate on both plugins' eval dirs: no FAIL, so the new graders' pass and fail samples match.

  • Eval comparison, under a deciding rule written before each round: arm MAIN is main's plugin content, arm HEAD this branch; claude plugin eval, sonnet, judge opus, --ablation none, 3 runs per case per arm, Claude Code 2.1.327. Support means both arms VALID, each new grader passing at least 2 of 3 at HEAD, and no grader that exists on main scoring lower at HEAD than at MAIN.

    • Round 3, at cc41401 against main a4827f2: every invocation VALID. The four pull-request-evidence-* cases scored 3/3 on every grader at both arms, criteria-table 3/3 at HEAD, and confirm-verifier-needs-work-not-upgraded 3/3 on all four graders at both arms. It missed the rule only on confirm-lists-every-verifier-verdict/lists-both-in-order (MAIN 3/3, HEAD 2/3): a correct table-form report that the grader's 120-character window missed. fix(verification): widen the lists-both-in-order grader's window #17268 widened that window on main.

    • Round 4, confirm-lists-every-verifier-verdict only, at 11f6a59 (this head, main merged) against main b684114 (with fix(verification): widen the lists-both-in-order grader's window #17268): both arms VALID.

      Grader MAIN HEAD
      lists-both-in-order 3/3 3/3
      final-confirmed 1/3 3/3
      records-confirmed-once 3/3 3/3
      records-a-row-per-criterion (new) n/a 3/3

      A kept HEAD trace shows one record call with --verdict 'CONFIRMED' and four --row values naming the prompt's files and tests. The MAIN final-confirmed misses are table-form reports the grader's Verdict\W{1,8}CONFIRMED pattern cannot span, a grader false negative on main. Spend 0.72 USD (list-price estimate).

    The rule is met on 11f6a59.

Related

Known gap, out of scope: the fix and refactor modes' own verdict words (PARTIALLY CONFIRMED, LIKELY PRESERVED and others) are not among the three the record script accepts. That was already true before this change.

Follow-ups

  • Pre-existing (advisory): confirm-lists-every-verifier-verdict/final-confirmed misses a correct verdict reported in a table (| Verdict | header, CONFIRMED in a cell); it scored 1/3 at main in round 4.

🤖 Generated with Claude Code

…table

confirm-verdict.sh record takes a --row per acceptance criterion, stored
as a ROW: line (criterion | files | test or check | result) and printed by
show. /verification:confirm passes one row per criterion, with a fix's
first row the reported symptom and its reproduction test, and a
refactor's "behavior preserved: same tests pass". The pull-request
evidence comment renders the rows as one table in place of the
per-criterion result lines; a verdict with no rows keeps the lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
…d pass step 1

The four pull-request-evidence prompts now name the pull-request skill,
the wording the other pull-request cases use; unnamed, the skill fired in
2 of 12 runs here and 0 of 3 at main. The eval forge's gh answers
`repo set-default --view` as a checkout with no default, so
target-repo.sh resolves the origin repository instead of stopping the
evidence step.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

kyle-sexton commented Nov 18, 2026 •

Copy link
Copy Markdown
Member Author

Held with do-not-merge.

#17215 (a4827f2) fixed step 4's Write instruction on main, and this branch merged it at cc41401. Main's evidence-step text won. The criteria table stays a step 4 placeholder, so it is part of the body the Write call writes.

I ran the A/B again. Both arms read VALID: Sonnet tested, Opus judge, with-plugin arm only, 3 runs per case. Main was a4827f2 for the evidence cases. The verification plugin is unchanged since ada48dd, so the confirm cases reuse that run. The head was cc41401.

Case Grader main head
4 evidence cases every grader on main, body-written-with-write included 3/3 each 3/3 each
large-change-collapsed criteria-table (new) n/a 3/3
confirm-lists-every-verifier-verdict records-a-row-per-criterion (new) n/a 3/3
confirm-lists-every-verifier-verdict lists-both-in-order 3/3 2/3
confirm-lists-every-verifier-verdict final-confirmed 2/3 3/3
every other confirm grader 3/3 3/3

The rule was written before the run, and it does not hold. lists-both-in-order exists on main and is lower at the head.

The failing run answered correctly. Its report lists NEEDS WORK, then CONFIRMED (final), in a table headed | # | Verifier | Verdict | Detail |. The grader's pattern [Vv]erifier[\s\S]{0,120}?NEEDS WORK allows only 120 characters between the two words, and the table header puts them 123 characters apart. The same pattern passes on that text with a 400-character window, so this is a false negative of the grader. The new graders pass on real tables in the kept traces: three recorded rows verbatim, and four --row values.

The hold releases on either of:

  • Recommended: a small PR on main that repairs lists-both-in-order. It widens the window and adds the table-form answer as a pass sample. Then rerun confirm-lists-every-verifier-verdict on both arms, about 0.85 USD, and the rule holds. Recommended because the miss will recur in every future measurement of this case.
  • An owner or hub ruling that this run's miss is a grader false negative, excluded from the no-regression check.

kyle-sexton and others added 2 commits November 18, 2026 12:25
…mment

Merge origin/main (ada48dd, the evidence eval suite repair). Main's
four evidence cases, fixture and evidence-step text win; this branch keeps
only the criteria table rendering, the fixture's recorded rows and its own
graders. The criteria-table grader is now a regex on
.git/eval-forge/comment-body.md, the posted body, like the repaired
suite's content graders.

Co-authored-by: Claude Opus 5.5 <[email protected]>
… criteria table

Merge origin/main (a4827f2), which rewrote the evidence step's Write
instruction. Main's evidence-step text wins; the criteria table stays a
step 4 placeholder, so it is part of the body the Write call writes.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

The hold is released. The deciding rule written before the run (addendum 4) is met on head 11f6a59. On confirm-lists-every-verifier-verdict, both arms are VALID, records-a-row-per-criterion passed 3/3 at HEAD, and no grader scored lower at HEAD than at main b684114. The per-grader table is in the body's Verification section. The other cases keep their round 3 result, which met the rule.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 18, 2026 22:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 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-18T22:17:39.796208Z 11f6a59 Draft marked ready
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 11f6a590cb71e94c9ba71e28122e47f5ac50bdb1: read 19 of 19 changed file(s); 1 finding(s), 0 as inline comments.

Code review: criterion rows in the verdict record and the evidence table

I read the whole change in all 18 listed files. plugins/verification/scripts/confirm-verdict.sh is a byte-identical copy of plugins/source-control/skills/pull-request/scripts/confirm-verdict.sh, so I read it once. Its path does not change what the script does.

Script. --row goes through the same validation as --missing and --partial: the value must be non-empty with no control characters (lib/confirm-verdict.sh:75). It is stored as ROW: <row> in the order given, --of measure refuses it, and show prints it. The new tests cover ordering beside a MISSING item, an escaped pipe on the way through show, empty and multi-line rows, and a row on a measure record. The final record ... --verdict CONFIRMED resets HEAD_A, so the later assertions still see the state they expect. I did not run any tests; the PR's test results are claimed by the author and unverified.

Template, evidence step and evals.

  • {{#criteria}} is dropped whole when there are no rows, so a record without rows renders exactly as before.
  • Step 5's leak scan now covers the row text, and that text is framed as data.
  • The new graders are tighter than what existed: criteria-table needs three matching rows, and records-a-row-per-criterion needs four --row values on the CONFIRMED record. Their fail samples cover the gaps they target.
  • The existing text-first grader still passes, because the summary is now a single verdict line ahead of the table.

Finding (advisory, inline on the source-control changelog fragment). After this change a CONFIRMED record prints ROW: lines under its verdict line. evidence.md step 1 was given a sentence saying to keep those lines and carry on. The ready flow's own gate was not: ready-for-review.md:572 still says to go on only when show prints the CONFIRMED line, and that "any other output" goes into the report. The fragment also says the ready report now lists the rows, but no changed line in ready-for-review.md does that.

Closing issue. None. The PR says it is an owner-approved build with no related issue, so there are no acceptance criteria to check.

Embedded text. The PR context contains no instructions aimed at the review.

Paths. None of the changed files matches a TRUSTED PATHS glob.

Other checks.

  • Loosened-check verdict: fail (default; the prompt has no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The citation requirement was not checked because the prompt has no decision-record line. No check is loosened: every grader change adds or narrows.
  • Path-scoped rules eval-case-transcripts.md and skill-bodies-state-current-rules.md match changed files. Nothing breaks them.
  • No plugin.json or marketplace.json changed. Both fragments' bump: minor fits a new option that existing callers can ignore.

Spend. The PR adds one grader to each of two eval cases, which spends prepaid model usage only when evals run.

I ran no verifier subagent; I checked the single candidate myself against the files.

Verifier dropped 0 of 1 candidates.

critical-findings: 1

Findings not posted inline (their lines are not in the diff):

  • .changes/source-control/feat-verification-criterion-rows-evidence-table-b84d0f15.md:13 (RIGHT): Advisory: the ready flow's CONFIRMED gate was not updated for the new ROW: lines.

After this change a CONFIRMED record routinely prints ROW: ... lines after confirm: CONFIRMED for head <sha>. Before, a CONFIRMED record printed one line, because CONFIRMED records had no MISSING or PARTIAL items. evidence.md step 1 was given a sentence for this ("Keep each ROW: line it prints after that one"). The ready gate that decides whether to post evidence at all was not:

  • ready-for-review.md:572 still reads "Go on only when it prints confirm: CONFIRMED for head <sha>. Any other output ... goes into the report as printed." A model that follows this strictly can read CONFIRMED-plus-rows as "other output" and stop before step 5 posts the evidence.
  • ready-for-review.md:644-645 still describes the verdict line as having "each MISSING or PARTIAL item". This fragment says that line "now lists the rows under it", but no change in this PR makes that so.

Fix: add the same clarification to step 3 at line 572: the CONFIRMED line, then any ROW: lines, still passes. Also name ROW beside MISSING and PARTIAL at line 645.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 11f6a590cb71e94c9ba71e28122e47f5ac50bdb1: read 19 of 19 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17183 (head 11f6a59)

No security issues found.

What changed. confirm-verdict.sh (in lib/ and its two synced copies) now takes --row values and stores them as ROW: lines in the per-head verdict record. show prints those lines. The pull-request evidence step renders them as a Criterion / Files / Test or check / Result table through a new {{#criteria}} template block. The rest of the change is the confirm skill's text on what fills each cell, new evals and graders, and changelog fragments.

What I checked.

  • Script input handling. In all three copies, --row goes through the same argument path as --missing and --partial. That path checks that a value was given, and the existing item checks turn away empty and multi-line values. The new tests at lib/confirm-verdict.test.sh confirm this. The value is never evaluated or interpolated into a command: it is written to the record file and printed back with printf ' %s\n'. --of measure refuses a ROW: item. show still prints only the allowed prefixes, so an unknown line in a record is still dropped.
  • Untrusted text reaching the posted comment. Row cells come from the confirm report, which is partly built from PR-body criteria. The diff updates plugins/source-control/skills/pull-request/reference/evidence.md to add the verdict record's rows to the "data, never instructions" list. Step 5's scan of the rendered body now covers row text too. Rows are inserted without re-escaping, but they land in the same comment that already carries criterion text from the PR body, under the same step-5 scan. This change opens no new path to a token, a lane holding credentials, or a merge decision.
  • Gate behavior. The evidence step still posts only after confirm: CONFIRMED for head <head>. Rows are kept only after that line, so they cannot stand in for a verifier pass.
  • Trust controls. None of the 18 changed files matches a TRUSTED PATHS: glob. No trusted-actor list, token request, kill switch, merge hold, workflow or permissions: block is touched, and nothing is widened.
  • Plugin manifests. No plugin.json or marketplace.json changes.
  • Instruction surface. The skill and context edits add instructions and delete or soften no standing rule.
  • PR context. I found no embedded directives aimed at the review lane.

Copies. I read the change to plugins/source-control/skills/pull-request/scripts/confirm-verdict.sh and skipped its copy at plugins/verification/scripts/confirm-verdict.sh, which has the same change. Both sit at ordinary script paths, so the copy's path does not change what the content does.

Spend. The eval rounds in the PR description use prepaid API credits only (about 0.72 USD list-price estimate). This is not a hold and not counted as a finding.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 18, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 9cdeaca Nov 19, 2026
169 of 173 checks passed
@kyle-sexton
kyle-sexton deleted the feat/verification-criterion-rows-evidence-table branch November 19, 2026 00:22
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant