Skip to content

fix(pr-pipeline): say a same-head pass after a trusted body edit clears pr-verify-failed - #13013

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12983-41747021835-1
Nov 4, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12983-41747021835-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12983

Summary

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

I built the choice in the issue's recorded decision. Re-judging the same head after a body edit already works on main, so the bug was only in the wording. resolve-pr.mjs judges a FAIL head again with reason body-edited once a trusted person edits the body and only trusted people have edited it since. A pass at that head then removes the label (verify-notes.mjs findStaleNotes). Despite that, the fail note, the merge-queue hold reason, the pipeline convention and the label-holds comment all said only a new commit clears pr-verify-failed. They now say a pass at the same head clears it too, once trusted people alone have edited the body since the fail. So a fail on the body or the issues it links needs only the body fixed, no new commit. The trusted-people condition came out of the local review.

Not verified

  • Did not run the node test files (verify-notes.test.mjs, merge-holds.test.mjs) or scripts/ci-hold-merge-group.test.sh directly: this lane cannot run an interpreter, so they are left to the PR's CI. check-affected passed but does not list which suites it ran. The review subagent's attempt to run the…
  • Tidy skipped: the change touches the shared paths .github/ and scripts/ and spans more than one area, so the tidy cutoffs exclude it.
  • The old wording ('a pass at a new head removes it') remains in docs/adr/0048-release-plugins-from-changelog-fragments-through-a-bot-maintained-release-pr.md:379. An ADR records a past decision, so it was not edited.
  • Build, lint and class audits beyond check-affected (CI-only scanners such as purged-em-dashes and line-citations) are left to the PR's CI.

Fix

  • .github/scripts/pr-unblock/verify-notes.mjs: failComment's closing line now says a pass at a new commit or at this same head removes the label. It also says this head is judged again once a trusted person edits the body and only trusted people have edited it since the fail.
  • .github/scripts/pr-unblock/verify-notes.test.mjs: personBody asserts the new fail-note line.
  • .github/scripts/pr-merge/merge-holds.mjs: the pr-verify-failed hold reason in labelHolds now carries the same same-head wording, and so does the PR_VERIFY_FAILED_LABEL comment.
  • .github/scripts/pr-merge/merge-holds.test.mjs: the queueHolds hold-label test asserts the new hold reason.
  • scripts/ci-hold-merge-group.test.sh: the pr-verify-failed case expects the new hold reason, which is emitted as ::error::.
  • .github/scripts/release-publish-plugins/label-holds.mjs: the header comment says a pass at a new head, or at the same head judged again after trusted people alone edited the body, removes the label.
  • docs/conventions/pr-pipeline/README.md: the merge-group ci-status paragraph says the same, naming resolve-pr.mjs reason body-edited.
  • .changes/pr-pipeline/work-resolve-issue-issue-12983-41747021835-1-89e767f3.md: new patch fragment (Fixed) describing the wording change.

Verification

The runner ran each check from the base copy against 3114fe9:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 30 fragments valid.
  • .lane/checks/bin/check-changed-skills: no changed skills, nothing to gate.
  • .lane/checks/bin/check-affected: first run failed changelog-fragments (missing .changes/pr-pipeline fragment). After adding the fragment, both later runs reported 11 passed, 4 skipped over 8 changed files.
  • Read .github/scripts/pr-verify/resolve-pr.mjs header lines 38-49: a FAIL at the head is judged again (reason body-edited) once a trusted person edited the body and only trusted people edited it or changed its links. A body edit re-runs pr-require-checks, whose completion starts pr-verify.
  • Grep of resolve-pr.test.mjs: body-edited is asserted at lines 1073, 1181, 1189 and 1212, so the re-judgment already has test coverage and needs no new test.
  • Grep of the repo, excluding .lane/: no remaining 'pass at a new commit' text, and no test asserts the old string. ci-hold-merge-group.test.sh held a third copy of the hold text, which was updated.
  • Fresh-context review subagent over the whole diff: it confirmed each claim against resolve-pr.mjs and verify-notes.mjs, and confirmed the test strings match their sources character for character (the shell test matches by substring). It found two medium issues: the text left out the 'only trusted…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41747021835

Left out: the items under Not verified.

Related

#12983

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

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Security review: no findings

I read all 8 changed files in full. This pull request has no security issues.

The change only rewrites text. The fail note, the hold reason, two code comments, the convention doc, a changelog fragment and the test strings that match them now say that a pr-verify pass at the same head also removes pr-verify-failed, after a trusted person edits the body. No control-flow, condition, permission or input-handling line changes.

Trusted paths checked

  • .github/scripts/pr-merge/merge-holds.mjs (merge-hold control). The only changes are:

    • the comment above PR_VERIFY_FAILED_LABEL, which still holds the value "pr-verify-failed";
    • the message string in labelHolds (L1566-L1567).

    The guard names.has(PR_VERIFY_FAILED_LABEL) && ... is unchanged, and the message is a non-empty string, so .filter(Boolean) still keeps it. The hold is not weakened, narrowed or removed. The template interpolates only number and constant label names, the same as on base, so no new injection surface appears.

  • .github/scripts/pr-unblock/verify-notes.mjs. Only the last line of failComment changes, and it is a static string apart from the existing FAILED_LABEL constant. The logic that applies or removes the label (findStaleNotes) is not touched.

Other files. These are not trusted paths, and each one changes only text: label-holds.mjs (header comment), docs/conventions/pr-pipeline/README.md (prose), the changelog fragment, and three tests (merge-holds.test.mjs, verify-notes.test.mjs and ci-hold-merge-group.test.sh), whose expected strings now match the new text.

The documentation edits narrow, delete or soften no standing instruction. They describe re-judgment behaviour already on main, in resolve-pr.mjs with reason body-edited, which this diff does not change. The PR context contains no embedded directives aimed at this lane. No plugin manifest changed.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

This PR changes wording only. The pr-verify-failed fail note (verify-notes.mjs failComment), the merge-queue hold reason (merge-holds.mjs labelHolds), the PR_VERIFY_FAILED_LABEL comment, the label-holds.mjs header comment and the pipeline convention README now say that a pr-verify pass at the same head also removes the label after a trusted body edit. It also adds a patch changelog fragment. I read every hunk of all 8 changed files.

Checked against the code at head:

  • The new text matches the code. resolve-pr.mjs judges a FAIL head again with reason body-edited (L43-L47). findStaleNotes removes the label on any pass whose head equals the PR's live head, with no new-commit condition (L254-L266).
  • The expected strings in the three tests (verify-notes.test.mjs personBody, the merge-holds.test.mjs queueHolds table, the ci-hold-merge-group.test.sh substring) match their sources character for character, as far as I can tell by reading. I did not run any test. The author's test-plan results are author-claimed and unverified.

Closing issue #12983: The decision comment's three criteria are met. The fail note and hold reason name the same-head pass and the trusted body edit. The README and the label-holds.mjs comment say the same. Both test files assert the new text. The text assertions are tests that would fail if the wording broke. The re-judgment itself is already covered in resolve-pr.test.mjs (author-cited; I did not open that file, since it is outside this PR's scope).

Uncounted observation: The new text says "only trusted people have edited it since the fail". resolve-pr.mjs also requires that only trusted people changed the PR's links (connected or disconnected an issue). An outside actor relinking an issue would block the re-judgment, and the note doesn't mention that case. It's a small gap in an explanation, not a behavior bug, so I didn't count it as a finding.

No plugin manifest changes. No path-scoped rule or paved-path findings. No spend or billing changes. I found no embedded instructions in the PR context.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit cbfb9db Nov 4, 2026
47 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12983-41747021835-1 branch November 4, 2026 01:15
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.

fix(pr-pipeline): let a body fix clear a body-only pr-verify fail without a new commit

1 participant