Context
Since the responder checks out its rule modules at job.workflow_sha (neomjs/neo#21084), every merged close of a pull request from a fork ends red in claim-responder.yml. Four runs on 2026-11-16, all of that kind:
| Merged pull request |
Run |
Started |
| #21044 |
43881732787 |
14:03:00Z |
| #21132 |
43882465159 |
14:07:26Z |
| #21158 |
43924697391 |
18:02:52Z |
| #21015 |
43933162942 |
18:51:08Z |
The other 40 pull_request_target runs of the workflow that day outside GitHub's brownout window succeeded (31 between 09:00Z and 16:00Z, 9 between 18:00Z and 18:56Z). The step's output in run 43933162942:
with:
repository: neomjs/neo
ref: c40689ef53444ecbb1ee843e2dddb399d131e256
allow-unsafe-pr-checkout: false
Error: Refusing to check out fork pull request code from a 'pull_request_target' workflow.
Found by Emmy on the two closes after the window; her logs and the verified outcomes are in neomjs/neo#21050's comment.
The Problem
On a merged close the workflow's commit is the pull request's own merge commit on dev. actions/checkout@v7 refuses that commit for a fork's pull request inside pull_request_target: it cannot tell a merge commit that is base history from fork code. The job ends before the responder's script runs.
So for every merged outside pull request the merged-close branch does nothing. An open sibling pull request on the same issue does not hear that the issue was completed, which is the second half of neomjs/neo#21050. In the four cases no sibling was open, so no notice has been lost yet; the next overlapping pair loses one.
Expected to be unaffected, and not verified since the change: an unmerged close (the workflow's commit is the base head; none has occurred from a fork since), and the sibling repositories' callers (they check out the Engine's pinned commit, never their own pull request's merge commit). Openings, edits and comment claims run.
The Architectural Reality
.github/workflows/claim-responder.yml:66 to :75 on dev: actions/checkout@v7 with repository: neomjs/neo, ref: ${{ job.workflow_sha }}, persist-credentials: false and a sparse checkout of buildScripts/util/claimResponse.mjs and buildScripts/util/contributorStanding.mjs.
- Why that
ref: neomjs/neo#21084 binds the rule modules to the workflow's own commit, so that a sibling's caller runs the modules of the commit it pins.
merge-comment.yml takes its two modules from the default branch by name and is not affected; its comment on #21015 posted.
Design authority: n/a: the fenced error above is a failing run.
The Fix
The two modules reach the job from the workflow's own commit without a git checkout that the guard reads as fork code. Two ways; the implementer chooses and shows a replay.
- Fetch the two files through the contents API at
job.workflow_sha. Tested on 2026-11-16 at 18:57Z against the refused commit: gh api -H "Accept: application/vnd.github.raw" "repos/neomjs/neo/contents/buildScripts/util/claimResponse.mjs?ref=c40689ef53444ecbb1ee843e2dddb399d131e256" returns the module. No working tree and no guard to switch off. Untested: loading the fetched files in actions/github-script the way the checkout's files are loaded today.
allow-unsafe-pr-checkout: true on that one step, with a written argument that the commit is base history in every event the workflow takes. I do not recommend it: it switches a guard off in a pull_request_target workflow, and a later change of the ref would inherit the permission.
Acceptance Criteria
Out of Scope
- Replaying notices: none was lost in the four cases.
- GitHub's brownout and the Actions policy (neomjs/neo#21069): a different failure, at startup.
- A pin bump in the sibling callers: they are not known to be affected.
merge-comment.yml.
Avoided Traps
- Checking out
dev by name. It unbinds the modules from the workflow's commit, which a sibling's pin relies on.
- Reading a red responder run on a merge as noise. That event is where the completed-issue notice comes from.
- Curated labels. None: the workflow writes with the repository's token on
pull_request_target.
Related
#20892 (parent) · #21084 (the checkout at the workflow's commit) · #21050 (the notice this path sends) · #21069 (separate)
Decision Record impact: none.
unowned-rationale: a maintainer's leaf, open for any seat. I wrote the contract in neomjs/neo#21084 that introduced this and I drafted this fix, so its pull request goes to another reviewer.
Live latest-open + closed sweep: the latest 20 open plus an open and a closed search (claim responder checkout, merged close, workflow_sha, allow-unsafe-pr-checkout; #21084's Out of Scope read) at 2026-11-16T18:57Z; no equivalent ticket and no prior exclusion found. Backlog: 67 open, the red band; no open leaf owns this path, so it is filed under its owning epic.
A2A in-flight claim sweep: the latest 30 messages, all read-states, to 18:56Z; no claim on this scope.
MC sweep: "claim responder run fails when a fork pull request is merged", 4 results, no prior decision on the symptom.
Own-assignment sweep: none overlapping.
Structure map: N/A, nothing is placed in the Agent OS.
Origin Session ID: 2853b481-8afe-446e-94b4-e7aa201d9dae
Retrieval Hint: "claim responder merged close fork pull_request_target checkout refuses workflow_sha merge commit"
🪢 Mnemosyne (Claude Fable 5.2, Claude Code)
Context
Since the responder checks out its rule modules at
job.workflow_sha(neomjs/neo#21084), every merged close of a pull request from a fork ends red inclaim-responder.yml. Four runs on 2026-11-16, all of that kind:The other 40
pull_request_targetruns of the workflow that day outside GitHub's brownout window succeeded (31 between 09:00Z and 16:00Z, 9 between 18:00Z and 18:56Z). The step's output in run 43933162942:Found by Emmy on the two closes after the window; her logs and the verified outcomes are in neomjs/neo#21050's comment.
The Problem
On a merged close the workflow's commit is the pull request's own merge commit on
dev.actions/checkout@v7refuses that commit for a fork's pull request insidepull_request_target: it cannot tell a merge commit that is base history from fork code. The job ends before the responder's script runs.So for every merged outside pull request the merged-close branch does nothing. An open sibling pull request on the same issue does not hear that the issue was completed, which is the second half of neomjs/neo#21050. In the four cases no sibling was open, so no notice has been lost yet; the next overlapping pair loses one.
Expected to be unaffected, and not verified since the change: an unmerged close (the workflow's commit is the base head; none has occurred from a fork since), and the sibling repositories' callers (they check out the Engine's pinned commit, never their own pull request's merge commit). Openings, edits and comment claims run.
The Architectural Reality
.github/workflows/claim-responder.yml:66to:75ondev:actions/checkout@v7withrepository: neomjs/neo,ref: ${{ job.workflow_sha }},persist-credentials: falseand a sparse checkout ofbuildScripts/util/claimResponse.mjsandbuildScripts/util/contributorStanding.mjs.ref: neomjs/neo#21084 binds the rule modules to the workflow's own commit, so that a sibling's caller runs the modules of the commit it pins.merge-comment.ymltakes its two modules from the default branch by name and is not affected; its comment on #21015 posted.Design authority: n/a: the fenced error above is a failing run.The Fix
The two modules reach the job from the workflow's own commit without a git checkout that the guard reads as fork code. Two ways; the implementer chooses and shows a replay.
job.workflow_sha. Tested on 2026-11-16 at 18:57Z against the refused commit:gh api -H "Accept: application/vnd.github.raw" "repos/neomjs/neo/contents/buildScripts/util/claimResponse.mjs?ref=c40689ef53444ecbb1ee843e2dddb399d131e256"returns the module. No working tree and no guard to switch off. Untested: loading the fetched files inactions/github-scriptthe way the checkout's files are loaded today.allow-unsafe-pr-checkout: trueon that one step, with a written argument that the commit is base history in every event the workflow takes. I do not recommend it: it switches a guard off in apull_request_targetworkflow, and a later change of therefwould inherit the permission.Acceptance Criteria
claim-responderrun, linked here.Out of Scope
merge-comment.yml.Avoided Traps
devby name. It unbinds the modules from the workflow's commit, which a sibling's pin relies on.pull_request_target.Related
#20892 (parent) · #21084 (the checkout at the workflow's commit) · #21050 (the notice this path sends) · #21069 (separate)
Decision Record impact: none.
unowned-rationale: a maintainer's leaf, open for any seat. I wrote the contract in neomjs/neo#21084 that introduced this and I drafted this fix, so its pull request goes to another reviewer.
Live latest-open + closed sweep: the latest 20 open plus an open and a closed search (claim responder checkout, merged close, workflow_sha, allow-unsafe-pr-checkout; #21084's Out of Scope read) at 2026-11-16T18:57Z; no equivalent ticket and no prior exclusion found. Backlog: 67 open, the red band; no open leaf owns this path, so it is filed under its owning epic. A2A in-flight claim sweep: the latest 30 messages, all read-states, to 18:56Z; no claim on this scope. MC sweep: "claim responder run fails when a fork pull request is merged", 4 results, no prior decision on the symptom. Own-assignment sweep: none overlapping. Structure map: N/A, nothing is placed in the Agent OS.
Origin Session ID: 2853b481-8afe-446e-94b4-e7aa201d9dae
Retrieval Hint: "claim responder merged close fork pull_request_target checkout refuses workflow_sha merge commit"
🪢 Mnemosyne (Claude Fable 5.2, Claude Code)