Skip to content

fix(pr-pipeline): close a report-delivered stop whatever the issue's work class - #12749

Merged
kyle-sexton merged 4 commits into
mainfrom
fix/9668-report-delivered-class
Nov 3, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
fix/9668-report-delivered-class

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #9668

Summary

Owner Q85: work class gates nothing except untrusted provenance. The last read in #9668's scope routed a report-delivered stop: report-outcome.mjs closed it only on a work-class: read-only issue with no branch and retried any other. This removes that read.

Fix

  • report-delivered now closes any issue the run committed nothing for, and retries when the run committed to a branch or resumed one that holds an earlier run's work.
  • The work skill and pr-run-activity.md state the new rule. Two work-items docs that named "work-class rules" as the security-surface route now name the convention's tier rules.

Risk. The class was also what limited this stop: a lane's model output can now close any issue by reporting report-delivered with no commit. already-done has an evidence check and this one has none. Such a close still does not count as a trusted close for a dependent or split parent, as check-trusted-trigger.test.mjs:3123 and admit.test.mjs:3108 pin, and the run's summary is posted as the report, so a wrong close is visible and reopenable. This follows from the owner's decision.

Verification

  • A new test shows a class-less and a structural issue closing with no branch and retrying with one. It failed with 'retry' !== 'close' before the read was removed.
  • Run on c92315f251, by the worker: intake 1025 pass, pr-merge 827, resolve-config 877, report-outcome 369, babysit merge policy 546 under unittest, 0 failures in each. On 03e12f37ad, which adds the resumed-branch retry, report-outcome.test.mjs passes 370 of 370; CI runs the rest on this head.
  • One existing row changed: { issueLabels: ["agent-ready"], branch: "" } expected a retry, which asserted the removed gate. It moved to the new closing test, and the comment above it was reworded. No other expectation changed.
  • The done-when grep has 566 hits. None in its paths refuses, holds, escalates or routes on a class except the kept untrusted-provenance hold. admission-rules.json:6 classes is unread by any script and stays, because admit.test.mjs:178 spreads it.
  • Left out: a live lane run of this stop.

Related

  • The babysit loop's rung partition still reads the label, outside this issue's grep paths. Changing it changes merge authority, so it is filed for the owner as #12748.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q2e8NLMQ1mwcztzP39

kyle-sexton and others added 3 commits November 3, 2026 00:54
…work class

The last class read that routed: report-outcome closed a report-delivered
stop only on a `work-class: read-only` issue with no branch. It now closes
on any issue the run committed nothing for and retries when a branch
exists. Such a close still counts for nothing as a trusted close for a
dependent.

Refs: #9668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q2e8NLMQ1mwcztzP39
No work-class rule routes security-surface work: the rule-admission path
is gone, and work-loop already cites the convention's tier rules.

Refs: #9668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q2e8NLMQ1mwcztzP39
…plugins into fix/9668-report-delivered-class
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 3, 2026 06:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T06:09:18.294172Z c92315f 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 github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on c92315f251b089745e796e1d0c9bb3e2b3d766f9; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12749 (incremental, c92315f..03e12f3)

This push fixes the finding this lane raised last round. A report-delivered stop from a run that resumed an earlier branch, and committed nothing itself, used to close the issue even though the earlier run's commits were still unmerged.

What changed

  • In report-outcome.mjs:1333, the stop now retries when either branch or resumed is set. This matches how the done path above it already treats !branch && resumed (resumed-unchecked).
  • The retry passes onResumed (!branch && resumed !== "", L1206), so the marker reads branch=resumed. The retry outcome is in RESUMABLE. The resume lookup (L1552) skips that marker and finds the earlier run's marker, so the next run continues the resumed branch, as the new comment says.
  • A new test covers a class-less issue and a structural issue, each with branch: "" and resumed: "work/7-earlier". It checks for retry, the new wording and onResumed: true.
  • The changelog fragment, pr-run-activity.md and the work skill now state the same rule: a run that committed to a branch or resumed one retries. These match the code.

Closing issue #9668: the incremental change keeps the route free of any work-class read, so criterion 1 is still met for this route. The new resumed case adds to criterion 2's coverage. The author says report-outcome.test.mjs passes 370 of 370 on this head; that claim is the author's and unverified, since this lane has no shell.

Settled and prior findings: the earlier inline thread on report-outcome.mjs:1333 is resolved and fixed by this push, so nothing is posted again. Round 2 of 3, under the cap.

No new findings. No embedded instructions were found in the PR context, the settled-threads file or the prior-findings file.

Spend: no cost hold. A resumed report-delivered stop now uses one more lane run per retry, from subscription usage, up to the existing stop-retries cap.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12749 (incremental, c92315f..03e12f3)

No security issues found. I read every hunk of all 5 files in the incremental scope.

What changed

decide() in report-outcome.mjs now also retries a report-delivered stop when the run resumed an earlier branch and made no commit of its own. Before this push, that case closed the issue. The condition is now stop === "report-delivered" && (branch || resumed) (report-outcome.mjs#L1331-L1335). The other four files are a new test, a changelog fragment, and prose in pr-run-activity.md and work/SKILL.md that describes the same rule.

What I checked

  • Direction of the change. This push narrows when the model's output can close an issue: a resumed branch that still holds an earlier run's unmerged commits now blocks the close. It widens nothing.
  • Where resumed comes from. It is a parameter of decide() with default "" (L1196). main fills it only when the run kept no branch of its own (branch ? "" : readBranch(dir, issueNumber, "resume"), L2134). The retry passes onResumed (!branch && resumed !== "", L1206) to the existing routeStop call. The marker then gets branch=resumed, which the existing findPrior logic already honours. No new marker field or parsing path was added.
  • Trust controls. Nothing here touches the trusted-trigger check, the lane token's scope, the kill switch, the token broker or a merge hold. isTrustedClose still counts a report-delivered close for nothing, and this diff does not change it.
  • Instruction surface. The work/SKILL.md edit adds a constraint: a run that committed to a branch or resumed one is run again. It removes no guardrail.
  • Plugin manifests. None changed.

Prior findings

The lane's earlier post (round 0) had no findings. Its non-security note about a resumed run closing with no commit is fixed by this push.

Spend

The added retry route spends lane-run subscription/API usage on resumed report-delivered stops. It is not a billing change.

Embedded text

The PR description and the closing issue's comments contain no directives aimed at this lane.

critical-findings: 0

A run that resumed an earlier run's branch and committed nothing passed no
branch, so its report closed the issue with the earlier commits unmerged.
It now retries, and the next run keeps that branch.

Refs: #9668

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q2e8NLMQ1mwcztzP39
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 7068bb2 Nov 3, 2026
90 of 94 checks passed
@kyle-sexton
kyle-sexton deleted the fix/9668-report-delivered-class branch November 3, 2026 06:58
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(pr-pipeline): stop gating any step on work class (owner Q85)

1 participant