Skip to content

work-resolve-issue: apply the eval hold in the run that opens a cut-item pull request #17273

Closed

Description

@kyle-sexton

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

  1. 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.
  2. The pull request's checks and reviews pass before the queued write runs.
  3. 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):

  1. Who may author the eval hold line: the release step also accepts a <!-- pr-hold reason=eval --> line posted by the lanes App. The eval-pair record 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.").
  2. How the lane recognises an item whose pull request must hold for an eval: by the label eval-gated on 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 commits main took in 7 days have the skill-cut shape. 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-merge label and posts a comment holding <!-- pr-hold reason=eval --> alone on its own line (.github/scripts/pr-merge/release-eval-hold.mjs ignores an inline marker).
  • The release step accepts that hold line when the lanes App posted it; the eval-pair record line stays listed-human only.
  • A pull request for an issue without the eval-gated label 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-pair record 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

Activity

  1. added
    needs-triage
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    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

    Decision recorded. Owner, 2026-11-18, typed in the owning agent session: "Go with recommendations." on the question that replaced decision 2 above, put to him with the count (283 of 1,174 commits in 7 days have the skill-cut diff shape).

    Decision 2 now reads: the lane recognises an item whose pull request must hold for an eval by a label on the issue, eval-gated, 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. The open items filed from #15730 get the label once.

    Decision 1 (the release step accepts a pr-hold reason=eval line from the lanes App; the record line stays listed-human only) is unchanged. In this issue's done-when, read "cut item" as "an issue labelled eval-gated".

    #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.

  3. removed
    needs-triage
    on Nov 18, 2026
  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"530c162aa636cf751aa11cf65d5cdd94428c9dfb31d8254c923d8383949b4f18","body_sha256":"43eae8a66d16681604a5fc92b44eca284c0bfd20e28f831450e1851c66b69a98"}

  5. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"530c162aa636cf751aa11cf65d5cdd94428c9dfb31d8254c923d8383949b4f18","body_sha256":"43eae8a66d16681604a5fc92b44eca284c0bfd20e28f831450e1851c66b69a98"}

  6. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor
    No description provided.
  7. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Reason: design

    Why, in the run's own words:

    design-change: the done-when items need two contract decisions the issue leaves open. (1) Who may author the eval hold line: release-eval-hold.mjs decide() honors a `` line only from a listed human (a User, not through an App; owner decision Q-EVAL-HOLD (a), release-eval-hold.test.mjs), and it keeps the hold (hold-reason-unlisted-author) when any hold line since the label is by anyone else. report-outcome.mjs posts as the lanes App, so a lane-posted hold line (done-when 1) would block every eval release, which breaks done-when 4 ('a matching eval-pair record still releases the hold'), unless the release gate is changed to trust the lanes App's hold line. That widens who can author a release-enabling line in a merge gate, against an owner decision, so a person decides it. (2) How the lane recognizes a cut item: no structured marker exists. #16791 describes its hold only in prose ('stays held with `do-not-merge` for the eval'), and matching the marker text in an issue body also matches issues that only discuss it, this one included. The candidates are a new issue label set by a trusted labeler, a declared body line, the diff shape prep_warnings.py uses (an existing SKILL.md or agent body losing lines), or a mix of these. Each one is a contract for issue authors and decides which lane PRs hold.

    What the run says it did not do:

    • Every done-when item: no change was made, because the hold-line author rule and the cut-item signal need a person's decision first.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44405878577

    To retry, set Work status to agent-ready again (clearing the needs-human hold).

  8. kyle-sexton commented on Nov 18, 2026

    @kyle-sexton
    MemberAuthor

    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.

    1. Who may author the eval hold line: the release step also accepts a <!-- pr-hold reason=eval --> line posted by the lanes App. The eval-pair record 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.
    2. How the lane recognises a cut item: by the diff shape the existing prep_warnings.py check 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.

  9. kyle-sexton commented on Nov 18, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  10. 4 remaining items

  11. removed
    needs-human
    on Nov 18, 2026
  12. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started 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 added agent-ready back 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.

  13. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    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-ready started, 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 added agent-ready back 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 the kill-switch wait.

  14. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor
    No description provided.
  15. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    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:

    The run did not start: the issue's title or body changed after agent-ready was added, each change by a listed account, so the runner wrote no issue file for the skill and no model ran.

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44581972722

  16. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  17. melodic-automation-lanes commented on Nov 19, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: open pull request #17469 is for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    deferred

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions