Skip to content

feat(verification): record the measure verdict per head and report it at ready - #11531

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11504-41198504346-1
Oct 31, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11504-41198504346-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11504

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/verification:measure now records its compare verdict and the claim it judged for the head commit it measured, reusing the G3 per-head store lib/confirm-verdict.sh through a new --of measure kind (a <sha>.measure file beside the confirm record in the same directory; no second store). The verdict is CANNOT QUANTIFY when no baseline was captured before the change. The pull request ready report's 2.5.6 block now also runs show --of measure for the flipped head: it prints the verdict and claim, or nothing when the head has none. It runs after the flip and always exits 0, so it never holds the PR in draft. Design basis: the issue's Key interfaces say to reuse the G3 store and add no second one, so I extended the store's script rather than adding a parallel script. The recorded measure words are the ones the measure family files define (CONFIRMED, MIXED, INCONCLUSIVE, NOT CONFIRMED, DEGRADED), plus CANNOT QUANTIFY from the skill's core rule and gate G7.

Not verified

  • This lane could not run lib/confirm-verdict.test.sh or ready-flip.test.sh directly (no interpreter or test runner allowed); the reviewer desk-checked the assertions instead, and the PR's CI runs the suites
  • Tidy did not run: the change touches lib/, a listed shared path, and spans more than one area (lib, plugins/verification, plugins/source-control)
  • check-affected skipped validate-plugins sub-checks, changed-skills and typos in this lane (runs checked-tree code / tool not installed); left to the PR's CI
  • plugins/verification/skills/measure/context/performance.md:51 still lists 'no baseline' under NOT CONFIRMED. I left it unchanged because the issue says this slice changes no verdict meanings; the SKILL record step overrides it for the record only

Fix

  • lib/confirm-verdict.sh: added --of confirm|measure (default confirm) and --claim. Measure records go to <dir>/<sha>.measure and accept the measure verdict words plus CANNOT QUANTIFY. show --of measure prints nothing when no record exists, and prints `measure: CANNOT QUANTIFY fo
  • plugins/verification/scripts/confirm-verdict.sh: regenerated from lib/confirm-verdict.sh by sync-shared-copies
  • plugins/source-control/skills/pull-request/scripts/confirm-verdict.sh: regenerated from lib/confirm-verdict.sh by sync-shared-copies
  • lib/confirm-verdict.test.sh: added measure cases (AC1). A record is stored for exactly the head it judged. Other cases cover cannot-quantify output with the claim, no output for an unrecorded head or outside a repository, independence from the confirm record, each verdict word, an unreadable record,
  • plugins/source-control/skills/pull-request/scripts/ready-flip.test.sh: added report and flip cases. The report names the measure verdict and a CANNOT QUANTIFY verdict for the head (AC2). A head with no measure verdict for it gets no measure line, asserted by exact output and not-contains (AC3). Ever
  • plugins/source-control/skills/pull-request/reference/ready-for-review.md: 2.5.6 Report now lists the measure verdict line, describes it as advisory and absent when nothing is recorded, and its command block shows both verdicts for the PR worktree's HEAD.
  • plugins/verification/skills/measure/SKILL.md: new section 'Record the verdict for the head it judged' with the record command. It says to record CANNOT QUANTIFY whenever no baseline exists, to skip the record on a dirty tree, and that the record is advisory.
  • .changes/verification/feat-11504-measure-verdict-per-head-3e81c6d0.md: new minor changelog fragment
  • .changes/source-control/feat-11504-measure-verdict-per-head-9a4f27b5.md: new minor changelog fragment

Verification

The runner ran each check from the base copy against fe5024c:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • check-changelog-fragments: all 32 fragments valid
  • check-affected: first run failed shellcheck SC2249 (case with no default branch) in the new verdict validator; after rewriting it with a *) branch, 12 passed, 6 skipped, 0 failed over 9 changed files
  • sync-shared-copies: regenerated both copies of confirm-verdict.sh, exit 0
  • cant-fail-scan --file lib/confirm-verdict.test.sh: no can't-fail tests found
  • cant-fail-scan --file plugins/source-control/skills/pull-request/scripts/ready-flip.test.sh: no can't-fail tests found
  • fresh-context review subagent over the whole diff: no correctness bugs. One medium doc conflict was fixed: the measure SKILL record step now states that CANNOT QUANTIFY replaces the family's NOT CONFIRMED/INCONCLUSIVE for the no-baseline case. One low finding was fixed: the flip loop now asserts the
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41198504346

Left out: the items under Not verified.

Related

#11504

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed fe5024c61c996df647e56dd2e74d9395ffa44090: 0 finding(s), 0 as inline comments.

I found no security issues in this pull request.

I read the full diff and the PR context. The change extends lib/confirm-verdict.sh and its two generated copies with an --of measure kind and a --claim option. It also adds tests, a skill section, a report doc update and two changelog fragments.

  • Path handling: the record path is $dir/$HEAD_SHA plus an optional .measure suffix. --head must match ^[0-9a-f]{40}$ and --of must be confirm or measure, both checked before any path is built. A caller cannot traverse out of the store or write a file with an unexpected name.
  • Verdict words: valid_verdict allows only the fixed word sets for each kind. show re-validates the stored verdict, so a hand-edited record with another kind's word prints "unreadable" and does nothing else.
  • Claim text: it is stored and printed only as CLAIM: <text> lines. A claim containing newlines could add extra CLAIM: lines to the record, and only lines with that exact prefix are printed. It is never evaluated, sourced or used in a path. The existing --missing and --partial options already behave this way.
  • Gating: show always exits 0 and the measure line is advisory. The diff changes no hold, gate, token scope, trusted-actor list or kill switch. The PR report text says the line never holds a PR in draft, and the code matches. The ready-flip tests assert that every measure verdict word still lets the flip pass.
  • Trusted paths: none of the changed files match the trusted-path globs.
  • Instruction surface: no standing rule is removed or softened. measure/SKILL.md gains a section that makes CANNOT QUANTIFY replace NOT CONFIRMED or INCONCLUSIVE for the no-baseline case, for the record only. That changes a verdict label, not a control.
  • Manifests: no plugin.json or marketplace.json change. The .changes/ fragments are plain markdown.
  • PR context: it contains no embedded instructions. The closing issue's body was omitted by the wrapper because the author is not in the allowed lists.

I ran no code. Per the PR description, the test suites were desk-checked, not executed.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed fe5024c61c996df647e56dd2e74d9395ffa44090: 0 finding(s), 0 as inline comments.

No blocking findings. I read the whole diff, the closing issue #11504, and the surrounding code in lib/confirm-verdict.sh and ready-flip.test.sh. I did not run any tests: this lane has no shell. The author's CI claims are unverified by me.

Closing issue #11504 criteria

  • AC1 (verdict stored for exactly the head it judged): met. lib/confirm-verdict.sh writes <dir>/<sha>.measure, and lib/confirm-verdict.test.sh asserts the file's exact content and that another head gets no record.
  • AC2 (ready report names the verdict, and CANNOT QUANTIFY reads as such): met. ready-flip.test.sh runs the real command block extracted from ready-for-review.md and asserts the exact output. The extraction check grep 'confirm-verdict.sh" show --head' still matches the new block.
  • AC3 (no measure verdict adds no line): met by an exact-output assertion plus assert_not_contains … "measure". A record for an earlier head is covered too.
  • AC4 (no measure verdict stops the flip): met. A loop over all six measure words asserts FLIP_EXIT=0 and a single flip. The report block runs after the flip and the script always exits 0.

Code checked

  • Argument validation: --claim is stored as CLAIM: …. The case "$OF:$item" check rejects --missing/--partial on a measure record and --claim on a confirm record. Both are tested.
  • Reading a record: it is validated against the --of skill's word set. A confirm-only word in a measure file prints "unreadable", and that is tested.
  • Existing confirm output is unchanged.
  • The generated copies in plugins/verification/scripts/ and plugins/source-control/skills/pull-request/scripts/ are identical to the canonical lib/ source, as the diff shows.
  • Changelog fragments: both are bump: minor for an added feature, which fits.

Notes, not counted as findings

  • plugins/verification/skills/measure/context/performance.md:51 (untouched, so I can't comment inline) still lists "no baseline" under NOT CONFIRMED. The new section in plugins/verification/skills/measure/SKILL.md overrides that for the record only. The PR description discloses this. If the two should agree, fix it in a follow-up.
  • show --of measure on an unreadable record prints measure: unreadable verdict record …. That is a deliberate, tested exception to "prints nothing".

No manifest files changed, and no spend beyond ordinary CI is introduced. No hold.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head fe5024c61c996df647e56dd2e74d9395ffa44090.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 29e56bf Oct 31, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11504-41198504346-1 branch October 31, 2026 12:31
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head fe5024c61c996df647e56dd2e74d9395ffa44090. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (evidence-unbound:claude-review: not bound: no-run;
  evidence-unbound:claude-security-review: not bound: no-run)

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.

feat(verification): record the measure verdict per head and report it at ready

0 participants