Skip to content

fix(pr-pipeline): report a workflow-modified refusal that a re-fire supersedes as neutral, not failure #7895

Closed as not planned

Description

@kyle-sexton

No related issue: found by the GitHub Support monitoring session while reading lane failures.

Problem

When the lane broker refuses a token because a workflow changed on main between dispatch and the token request, the lane run ends red. The refusal is the broker check working as intended. When a later run on the same PR succeeds, the red run is noise in the failure feed and in lane telemetry.

Both refusals are on #7858 (pr-unblock address-feedback):

What recovered the 01:10Z refusal

The green follow-up https://github.com/melodic-software/claude-code-plugins/actions/runs/39085810404 was not a pr-merge re-fire from #7853. pr-merge.yml had no run between 01:11:00Z and 01:15:20Z. pr-feedback-dispatch run https://github.com/melodic-software/claude-code-plugins/actions/runs/39085789409 dispatched it after a new push to #7858, and its log says:

dispatched #7858 head 5f2bbda upstream run 39085754041 workflow_run_id=39085810404

So the new push on the PR is what recovered it. Whether #7853's re-fire triggers on this refusal is still unverified.

Fix

  • Report a workflow-modified refusal as neutral, not failure, when a later run on the same PR and lane supersedes it, whether that run is a re-fire or a fresh dispatch.
  • Keep the broker check unchanged.
  • Keep failure for any refusal that nothing supersedes.
  • Confirm that the fix(pr-pipeline): re-fire PR lane runs the broker refused as workflow-modified #7853 re-fire path fires for a pr-unblock refusal, or say why it did not here.

Verification

  • A forced workflow-modified refusal followed by a re-fire yields a neutral refused run and a green re-fire.
  • A refusal with no re-fire stays failure.

Related

#7853, #7858, #7865

Activity

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

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded.

    The body's open question is answered at origin/main: the #7853 re-fire covers a pr-unblock refusal once per version of the workflow file the broker named (.github/scripts/pr-merge/refire-refused.mjs:1-6, :26-30, :83-91), and the monitor feed already leaves workflow-modified out (.github/scripts/maintenance-monitor-signals/signals.mjs:110-115). What remains is the lane check run, which still posts failure for that refusal (.github/actions/report-check-run/decide.test.mjs:458-471); the broker check stays unchanged. Agents decided this on evidence under standing direction §1.

    Done when

    • .github/actions/report-check-run/decide.mjs posts neutral for a workflow-modified refusal that the re-fire path will supersede (a lane refire-refused.mjs re-fires, first refusal at that workflow file version), and keeps failure for any other refusal and for a repeat refusal at a version already re-fired.
    • decide.test.mjs has a case for each: a supersedable workflow-modified refusal posts neutral, and a refusal nothing supersedes posts failure.
    • The broker and request-lane-token's refusal detection are unchanged.

    #7895 (comment)

    This decision settles the open question. The remaining work is a bounded change to the check-run decision logic and its tests. No duplicates found among open issues.

    Automated triage, applied by the lanes App.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 18, 2026
  4. added
    status: confirmed
    and removed
    needs-human
    on Oct 19, 2026
  5. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    The body's open question is answered at origin/main: the #7853 re-fire covers a pr-unblock refusal once per version of the workflow file the broker named (.github/scripts/pr-merge/refire-refused.mjs:1-6, :26-30, :83-91), and the monitor feed already leaves workflow-modified out (.github/scripts/maintenance-monitor-signals/signals.mjs:110-115). What remains is the lane check run, which still posts failure for that refusal (.github/actions/report-check-run/decide.test.mjs:458-471); the broker check stays unchanged. Agents decided this on evidence under standing direction §1.

    Done when

    • .github/actions/report-check-run/decide.mjs posts neutral for a workflow-modified refusal that the re-fire path will supersede (a lane refire-refused.mjs re-fires, first refusal at that workflow file version), and keeps failure for any other refusal and for a repeat refusal at a version already re-fired.
    • decide.test.mjs has a case for each: a supersedable workflow-modified refusal posts neutral, and a refusal nothing supersedes posts failure.
    • The broker and request-lane-token's refusal detection are unchanged.
  6. removed
    status: confirmed
    on Oct 31, 2026
  7. added
    status: ready
    admission-deferred
    agent-ready
    and removed
    admission-deferred
    on Oct 31, 2026
  8. melodic-automation-lanes commented on Oct 31, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: The lane check run posts neutral, not failure, for a workflow-modified token refusal that the pr-merge re-fire will supersede, and keeps failure for every other refusal.

    Acceptance criteria

    • decide.mjs takes a new input (for example refireSupersedes) that report-check-run.mjs fills from the run failure text and from whether refire-refused.mjs would re-fire it: a pr-unblock lane, a REFUSED-pattern runFailure, and no existing marker for that workflow file blob SHA
    • decide.mjs posts conclusion neutral with skip reason workflow-modified, which is already in the skip-reason enum, when runResult is failure, the runFailure matches the workflow-modified refusal, and the input says a re-fire supersedes it
    • decide.mjs keeps failure with the existing run-job summary for a workflow-modified refusal when nothing supersedes it, including a repeat refusal at a workflow version already re-fired
    • decide.mjs keeps failure for other refusals: a 403 with another reason, a 5xx, broker-unreachable, and any non-token run failure
    • decide.test.mjs adds a case where a supersedable workflow-modified refusal posts neutral
    • decide.test.mjs adds a case where a refusal nothing supersedes posts failure; the existing case at decide.test.mjs:459-473 still passes
    • report-check-run.test.mjs covers the new input end to end, with a supersedable refusal POSTing neutral and an unsupersedable one POSTing failure
    • The refusal-detection regex is shared with or kept in step with REFUSED in .github/scripts/pr-merge/refire-refused.mjs:116-117 so the two cannot drift
    • git diff shows no change to the broker, to request-lane-token or to its refusal detection, or to the workflow-staged and skip-step logic in pr-run-activity-write.yml
    • node --test on .github/actions/report-check-run and .github/scripts/pr-merge passes

    External state: none

    Dependencies

    • #​7853: the re-fire path in refire-refused.mjs is already merged, so this work builds on its once-per-workflow-version marker rule

    Related work

    Sources read

    • context.json: the owner's Decision recorded comment fixes the scope as decide.mjs, decide.test.mjs, and no change to the broker or request-lane-token
    • .base/.github/actions/report-check-run/decide.mjs:143-168: a failed run job posts failure with the runFailure text, and neutral() accepts only skip reasons in the schema enum
    • .base/.github/actions/report-check-run/decide.test.mjs:459-473: the current test expects failure for the workflow-modified runFailure
    • .base/.github/actions/report-check-run/report-check-run.test.mjs:341-347: workflow-modified is already a valid skip reason that posts neutral
    • .base/.github/scripts/pr-merge/refire-refused.mjs:26-31: one re-fire per PR per workflow file blob SHA, recorded in a marker comment
    • .base/.github/scripts/pr-merge/refire-refused.mjs:116-117: the REFUSED regex matches the exact workflow-modified refusal text
    • .base/.github/scripts/pr-merge/refire-refused.mjs:83-111: the pr-unblock lane entry, with address-feedback among its transientActivities
    • .base/.github/workflows/pr-merge.yml:1811-1829: pr-merge runs refire-refused.mjs

    Automated refinement by the lanes App. Admission counts only criteria a listed human wrote: to confirm these, post them as your own comment whose first line is **Decision recorded.**, which sends the issue back through intake.

  9. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
  10. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor
    No description provided.
  11. added
    needs-human
    and removed
    agent-ready
    on Oct 31, 2026
  12. melodic-automation-lanes commented on Oct 31, 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 recorded decision has .github/actions/report-check-run/decide.mjs post neutral for a workflow-modified refusal the re-fire path will supersede, but the re-fire path only finds a refused run through a FAILURE check: refire-refused.mjs pullOfRun (.github/scripts/pr-merge/refire-refused.mjs:245-247) links a run only when a check on the PR head has conclusion === "failure" and names the run in external_id. A neutral check therefore turns the re-fire off, so the refusal it was predicted to supersede is never superseded. On top of that, decide() is a pure function of the report job's inputs (lane, activity, run result, run-failure, head SHAs) and cannot know whether this is the first refusal at the named file's main blob version (refire-refused reads that from the lanes App's marker comments and main's contents), or whether the PR qualifies (trusted author, not draft, branch not in merge.refire-skip-branches, PR changes none of the lane's broker-compared files, run actor listed). Also, several gates count a neutral lane check as passing (clear-escalations.mjs:228 PASSING, pr-unblock/gate-source.mjs:227 SILENT, pr-verify/resolve-pr.mjs:261), so a wrong prediction would turn a red check that holds the PR head into a passing one. Each workable design adds a new contract between the report job and pr-merge's re-fire. Option A: the report job computes re-fire eligibility (new inputs or API reads in report-check-run, which needs the PR number and event wired from .github/workflows/pr-run-activity-write.yml, a protected path), and refire-refused also links a neutral workflow-modified check. Option B: report failure as today, and refire-refused re-concludes the old check as neutral after its push lands (needs checks: write on pr-merge.yml's refire job, a protected path). A person should pick the design.

    What the run says it did not do:

    • Done-when 1 and 2 (neutral for a supersedable workflow-modified refusal in decide.mjs, plus its tests) were not built: as specified, the change turns off the re-fire it depends on, and choosing a replacement design is a person's call
    • Tidy, review, verify and checks pipeline steps skipped: no change was made

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

    To retry, remove needs-human and add agent-ready again.

  13. kyle-sexton commented on Oct 31, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded: closing as not planned. The 2026-10-31 "post neutral" decision is withdrawn. It was an agent decision under standing direction section 1, not the owner's, and its premise fails against the code. The issue's intent, keeping an expected refusal out of the failure feed, is already met, so no intent changes. Checked at origin/main by the pr-merge session.

    Why neutral cannot ship

    • It turns the re-fire off. refire-refused.mjs:245-247 links a dispatched run to its PR only through a check on the head with conclusion === "failure". The stop comment on this issue is correct.
    • It makes the refused head read as passing. GitHub's docs say "Successful check statuses are success, skipped, and neutral." This repository's own gates agree: clear-escalations.mjs:228 (PASSING) and pr-unblock/gate-source.mjs:227 (SILENT).
    • decide() cannot know the answer. Whether a re-fire will happen depends on marker comments, main's blob SHA and PR eligibility, none of which it receives. Each way of supplying them adds a new contract between the report job and pr-merge, to relabel a check that the re-fire replaces anyway.

    Why nothing else is needed

    Not covered: the body also names lane telemetry. workflow-modified appears in no morning-brief file, so such a run there is not told apart from another failed run. How often that happens was not measured.

    This was generated by AI.

  14. removed
    needs-human
    on Oct 31, 2026
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

    status: ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions