Repository navigation
Description
Summary
A pull request the work-resolve-issue lane opens for a cut item (an issue that removes skill text and gates its merge on a before/after eval showing no loss) can merge before its eval hold exists. The hold is the do-not-merge label plus a pr-hold reason=eval comment, and today a session adds both after the pull request opens. When that write waits behind the API rate-limit gate, the pull request stays armable and the merge lane takes it.
Steps to reproduce
- The lane opens a pull request for a cut item while the shared token pool is low, so the session's hold write is queued.
- The pull request's checks and reviews pass before the queued write runs.
- The merge lane merges it.
Expected
A cut-item pull request cannot be armed for merge at any moment between its opening and its eval hold.
Actual
#17254 (cut item #16791) merged on 2026-11-18 with no eval record: its hold write was still queued and found the pull request already merged. Its before/after eval now runs after the fact.
Severity
Medium. An untested cut of skill text reaches main; a loss is then found only after the merge and needs a revert or a fix. It recurs whenever a cut-item pull request opens during a token shortage.
Decisions
Owner, 2026-11-18, typed in the owning agent session (recorded in this issue's comments; the second replaces an earlier diff-shape answer):
- Who may author the eval hold line: the release step also accepts a
<!-- pr-hold reason=eval -->line posted by the lanes App. Theeval-pairrecord line that releases the hold stays listed-human only. Owner decision row D399: https://github.com/melodic-software/architecture/blob/6ee72977ebf11741d0d0ac4ec8b9d10c51cca027/docs/owner-decisions.md#L217 (owner, verbatim: "Go with the recommendations."). - How the lane recognises an item whose pull request must hold for an eval: by the label
eval-gatedon the issue, set by a trusted labeler when the issue is filed. The lane applies the hold only to pull requests for issues carrying that label. The diff shape is not used to place holds: 283 of the 1,174 commitsmaintook in 7 days have theskill-cutshape. Same row D399, part (2) re-ask (owner, verbatim: "Go with recommendations.").
Done when
In the items below, "cut item" means an issue labelled eval-gated.
- In the same run that opens a pull request for a cut item, and before the pull request can be armed, the lane adds the
do-not-mergelabel and posts a comment holding<!-- pr-hold reason=eval -->alone on its own line (.github/scripts/pr-merge/release-eval-hold.mjsignores an inline marker). - The release step accepts that hold line when the lanes App posted it; the
eval-pairrecord line stays listed-human only. - A pull request for an issue without the
eval-gatedlabel gets no eval hold from the lane, whatever its diff shape. - A session's watch for unheld cut-item pull requests is a backstop only: no cut-item pull request depends on it for its hold.
- A test proves a cut-item pull request is never armable between open and hold.
- The eval-release path is otherwise unchanged: a matching
eval-pairrecord for the head still releases the hold.
Suggested fix location
.github/scripts/work-resolve-issue/ (the step that opens the pull request) and .github/scripts/pr-merge/release-eval-hold.mjs for the marker shape and its author check.
Refs: #16791
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
github-actions commentedon Nov 18, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the work-resolve-issue PR-opening step and the pr-merge eval-hold release script; read and run by the lanes and the merge lane.
Reversible: yes; revert the change to the open step and the release script.
Open questions: none
#17273 (comment)
That decision settles the open questions. I understood the request as: for issues labelled
eval-gated, the lane should add the hold in the same run that opens the pull request, and the release step should accept the hold line from the lanes App. I found no duplicate or merged fix in the lists.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"530c162aa636cf751aa11cf65d5cdd94428c9dfb31d8254c923d8383949b4f18","body_sha256":"43eae8a66d16681604a5fc92b44eca284c0bfd20e28f831450e1851c66b69a98"}
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"530c162aa636cf751aa11cf65d5cdd94428c9dfb31d8254c923d8383949b4f18","body_sha256":"43eae8a66d16681604a5fc92b44eca284c0bfd20e28f831450e1851c66b69a98"}
github-actions commentedon Nov 18, 2026
melodic-automation-lanes commentedon Nov 18, 2026
The work-resolve-issue lane stopped partway through this issue and needs a person.
Reason:
designWhy, in the run's own words:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44405878577
To retry, set Work status to agent-ready again (clearing the
needs-humanhold).kyle-sexton commentedon Nov 18, 2026
Decision recorded. Owner, 2026-11-18, typed in the owning agent session: "Go with the recommendations." on the two questions the lane's stop raised, each put to him in full with its options.
<!-- pr-hold reason=eval -->line posted by the lanes App. Theeval-pairrecord line that releases the hold stays listed-human only. A hold line can only keep a pull request held, so this does not widen who can release.prep_warnings.pycheck uses (an existing skill or agent body losing lines). No label and no declared body line. Any pull request with that shape is held for an eval, not only the filed cut items.Posted by an agent session.
kyle-sexton commentedon Nov 18, 2026
4 remaining items
melodic-automation-lanes commentedon Nov 18, 2026
The work-resolve-issue run that
agent-readystarted failed or was cancelled before it reported, or it stopped or the token broker refused it because its workflow files differ from main's. work-unblock removed and addedagent-readyback to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.melodic-automation-lanes commentedon Nov 19, 2026
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44424593772, the work-resolve-issue run that
agent-readystarted, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-19T00:46:35Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or thekill-switchwait.github-actions commentedon Nov 19, 2026
melodic-automation-lanes commentedon Nov 19, 2026
The work-resolve-issue lane stopped on this issue (
issue-edited-trusted): the issue's title or body changed after agent-ready was added, and every change came from a listed human or one of our listed Apps, so intake triage refines and admits the edited text again.It set Work status to needs-triage, so the hourly triage sweep sends it back through intake triage, and it waits on no decision from a person.
In the run's words:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44581972722
github-actions commentedon Nov 19, 2026
The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
melodic-automation-lanes commentedon Nov 19, 2026
Not admitted to the issue lane yet: open pull request #17469 is for it.