Skip to content

feat(source-control): post the evidence comment from ready once the head is confirmed - #15907

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-15787-43390486104-1
Nov 13, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #15787

Summary

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

/source-control:pull-request ready gets a new step, 2.5.5 evidence, which runs after the flip. It posts or updates the PR's evidence comment through the existing evidence action, unchanged, when five checks pass: the verify record for the PR worktree's HEAD lets the flip through, an evidence file exists for that head, confirm-verdict.sh show prints CONFIRMED for it, the forge shows the same head, and the evidence action's own gates pass. Otherwise it posts nothing and the report's evidence line says which check stopped it. Design choices and their basis: (1) The step runs after the flip, so no refusal can hold the PR in draft (done-when 3). (2) The evidence file is ready --evidence <file>, else the e2e-summary.json or report.json of this session's /testing:run-e2e --unattended or /app-control:drive run on that head. Neither file records a head, so the session's own run is the only link, and ready reads no other plugin's state directory, per the issue's 'not through another plugin's internals'. (3) Unattended runs skip the step, because the issue's Outcome says the merge lane already covers them. (4) evidence joins PRE_READY_STEPS, so ready --skip evidence and pre_ready treat it like the other steps (done-when 4). The schema and config docs follow. The digest and report sections are renumbered 2.5.6 and 2.5.7. Dogfooding step for this repository (name it in the PR body): drive the changed skill with /app-control:drive claude-code-plugins source-control/pull-request (AGENTS.md, 'Driving this repository's skills'). The issue asks for the PR to carry the do-not-merge label until the eval compare record lands. This lane cannot add labels, so a person needs to add it.

Remaining work

  • Run the two-version compare of pull-request's existing ready eval cases plus new case 64 (opus and sonnet, three runs per side, cases selected with --case, a --max-cost-usd ceiling, no new batch after a usage-limit error) in the local eval-runner session, and record that they are non-inferior

Not verified

  • The bash script test suites (pre-ready-steps, parse-ready-skip, read-pre-ready, ready-skip-comment, ready-flip, pr-worktree) were not run here: this lane can run only its named wrappers. Left to the PR's CI
  • The two-version non-inferiority compare of the skill's existing ready eval cases (opus and sonnet, three runs per side, --case selection, --max-cost-usd ceiling). The issue says it runs in the one local eval-runner session in the main checkout, which this lane cannot reach. Listed in remaining
  • The do-not-merge label the issue asks for until the compare record lands: this lane cannot set labels, so a person must add it
  • Tidy was not run: the change is 13 files, over the 10-file tidy cutoff
  • Not addressed, because it predates this change: 2.5.1 says an out-of-draft PR skips 2.5.4, but 2.5.4 has its own out-of-draft exceptions. The new 2.5.5 check that the forge shows the verified head works either way

Fix

  • plugins/source-control/skills/pull-request/reference/ready-for-review.md: new section 2.5.5 'Post the evidence comment' (verify-record, evidence-file, confirmed-verdict and forge-head checks, then the evidence action; a refusal never undoes the flip; unattended skips it). Six configurable steps…
  • plugins/source-control/skills/pull-request/reference/watch-handoff.md: report section reference 2.5.6 -> 2.5.7
  • plugins/source-control/skills/pull-request/SKILL.md: ready row names the evidence step, --evidence <file>, and six configurable steps
  • plugins/source-control/skills/pull-request/scripts/pre-ready-steps.sh: evidence added to PRE_READY_STEPS
  • plugins/source-control/skills/pull-request/scripts/pre-ready-steps.test.sh: expects the six-step list
  • plugins/source-control/skills/pull-request/scripts/parse-ready-skip.sh: header comment says six steps
  • plugins/source-control/skills/pull-request/scripts/parse-ready-skip.test.sh: new case skipping evidence beside code-review
  • plugins/source-control/skills/pull-request/scripts/read-pre-ready.test.sh: expected outputs carry evidence; new case disabling it
  • plugins/source-control/skills/pull-request/scripts/ready-flip.test.sh: extracts the report block from '## 2.5.7 Report'
  • plugins/source-control/schemas/source-control.schema.json: pre_ready accepts evidence (maxItems 6, maxContains entry, default, enum, description)
  • plugins/source-control/reference/config-resolution.md: pre_ready lists evidence
  • plugins/source-control/skills/pull-request/evals/evals.json: new case 64 ready-posts-evidence-after-flip-for-confirmed-head
  • .changes/source-control/work-resolve-issue-issue-15787-43390486104-1-d1771f40.md: minor changelog fragment

Verification

The runner ran each check from the base copy against 0c790fb:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 5 fragments valid
  • check-changed-skills: pull-request PASS, 0 errors, 4 warnings (description length, body size, token cap, and no table of contents in ready-for-review.md: all about size or layout, none from this change's logic)
  • check-affected: 13 passed, 6 skipped (tools not installed or run only in CI) over 13 changed files
  • check-evals-quality on pull-request evals.json: PASS, 5 warnings, all on cases 9, 12, 17, 18 and 20, none on the new case
  • cant-fail-scan --check on parse-ready-skip.test.sh and read-pre-ready.test.sh: no gating findings
  • fresh-context review subagent over the diff: no high findings. Fixed: 2.5.5 now checks the verify record and runs only once the PR is out of draft; the account warning covers every comment ready posts; the reason for skipping unattended runs is corrected; the report has a 'not posted' outcome; case…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43390486104

Left out: the items under Not verified.

Related

#15787

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 0c790fb59aa23e06735e91aafd5c1e84af3f495e. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review: PR #15907, head 0c790fb

I found no security issues in this change. I read every hunk of all 13 changed files in the diff. None of them matches a trusted-path glob, and no plugin manifest (plugin.json / marketplace.json) changed.

What the change does: it adds step 2.5.5 evidence to /source-control:pull-request ready. The step runs after the flip and posts the evidence comment through the existing evidence action, which this PR leaves unchanged. It also adds evidence to PRE_READY_STEPS, the pre_ready schema enum and the docs.

Paths I checked:

  • Who can turn the step off. pre_ready is still read only at the base branch, and only when that base is the default branch (config-resolution.md, ready-for-review.md §"Read which pre-flip steps run", unchanged). A pull request still cannot switch off its own gates. Turning the step off only means no comment gets posted, so it opens nothing.
  • --skip evidence. Still refused under --unattended (exit 3 in parse-ready-skip.sh, unchanged). The diff changes only the script's header comment. Skipping this step only suppresses a post.
  • New post to the forge. It runs only in attended runs, after four checks pass: the verify record, an evidence file for that head, a CONFIRMED verdict, and the forge head matching the worktree HEAD. It then hands off to the evidence action, whose own gates stay in force: it re-reads the verdict, attaches only files on the publishable list, posts nothing on a leak-scan hit, and keeps one comment per PR (evidence.md#L6-L8, L50-L58). The --evidence <file> path comes from the person present and goes to an action that already takes the same flag. No untrusted input reaches a credentialed lane.
  • Standing instructions. Nothing is deleted or weakened. The wording moves from "pre-flip steps" to "configurable steps", the sections are renumbered (2.5.5 to 2.5.7), and the hold checks, push and flip are still not skippable.
  • File mode. pre-ready-steps.sh changes from 100644 to 100755. The file is sourced, never run, so this has no security effect.

Note on the PR text: the description says a person needs to add the do-not-merge label until the eval compare record lands. That is a process request, not a security finding.

Spend: this change adds nothing billable. The new step makes one more gh comment call per attended ready run.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 0c790fb59aa23e06735e91aafd5c1e84af3f495e: read 13 of 13 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #15907, add an evidence step to ready

No blocking or advisory findings. I read every hunk of the 13 changed files in the full diff. I also read the unchanged code that the changed lines call or that reads the step list: ready-skip-comment.sh, read-pre-ready.sh, verify-gate.sh's usage and exit codes, and reference/evidence.md.

What I checked

  • One step list. evidence is added to PRE_READY_STEPS, and every place that reads the list picks it up from that one definition: parse-ready-skip.sh, ready-skip-comment.sh and read-pre-ready.sh. No other copy of the list exists anywhere in the repo, scripts or CI.
    • Outputs change only by one extra trailing line (evidence\tenabled, or skip\tevidence when the step is skipped). Every test assertion that wrote out the old five-step list has been updated, and ALL_ON covers the rest.
    • ready-skip-comment.test.sh doesn't write out the full list, so it isn't affected.
  • Schema. maxItems is now 6, a maxContains: 1 entry is added for evidence, and the enum and default are extended. This matches how read-pre-ready.sh handles repeated and unknown steps.
  • Renumbering. Search for 2.5.[567] across plugins/ finds no stale reference: watch-handoff.md, the ready-flip.test.sh block extraction and its comments, and the new 2.5.1 out-of-draft rule (run 2.5.5, skip 2.5.4 and 2.5.6) are all updated. The (2.5.6) in CHANGELOG.md is a released entry and is correctly left alone.
  • Commands in 2.5.5.
    • verify-gate.sh check --head <sha> --dir <tree> and confirm-verdict.sh show --head … --dir … match the scripts' usage lines. check returns 0 for pass or skipped, which matches "lets the flip through".
    • evidence <pr> --evidence <file> matches evidence.md's synopsis.
    • The note about the one-comment-per-identity check matches step 6 of evidence.md.
  • Eval 64. Its expectations (flip first, CONFIRMED check, evidence action arguments, report line placed after the ready-run confirmation and before the digest) match the new 2.5.5 and 2.5.7 text.

Notes (not findings)

  • scripts/pre-ready-steps.sh changes mode from 100644 to 100755, but its header says "Sourced, never run" and it has no shebang. Nothing checks for this (check-affected.sh's exec_bit only checks the other direction), but the mode change isn't explained and could be reverted.
  • Closing issue: the PR uses Refs: #15787 and the context file has no closing-issue section, so I checked no acceptance criteria.
    • The PR body says the issue asks for a do-not-merge label until the two-version eval compare record lands, and that this lane can't add labels. A person needs to add that label: it is outside what this review can do.
    • The bash test suites and the eval compare are listed by the author as not run. I didn't run them either: this lane has no shell.
  • Unverified claims: the author's results for check-changelog-fragments and check-changed-skills are their own report, not something I confirmed.
  • Cost: none. The change spends nothing beyond normal skill and eval usage.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 0c790fb59aa23e06735e91aafd5c1e84af3f495e, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 0c790fb

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-15907-0c790fb59aa23e06735e91aafd5c1e84af3f495e, expires on 2026-12-13.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=0c790fb59aa23e06735e91aafd5c1e84af3f495e rubric=8.4.16 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit d82c9c8 Nov 13, 2026
53 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-15787-43390486104-1 branch November 13, 2026 09:38
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit d82c9c8e37aa1d8734981cc87b8e72928b37380e; later checks count it verified from this comment.

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.

0 participants