Context
Leaf of #20892. Two sibling repositories are getting the Engine's claim behaviour (neomjs/neo-agent-brain#1764, neomjs/neo-agent-institution#989; Discussion #21005, criterion 7 and the sentence on upgraded siblings). Their pull requests port it as copies: neomjs/neo-agent-brain#1778 and neomjs/neo-agent-institution#996. I wrote both sibling tickets and prescribed "two steps in this repository's workflow". That prescription is what this ticket corrects; the pull requests followed it faithfully.
The Problem
Read on neomjs/neo-agent-brain#1778 at 19a48a0c against the Engine's dev at 79f1de332a:
- The copy is the whole script. The sibling's
.github/workflows/claim-responder.yml is 534 lines and differs from the Engine's 533 in three hunks: two comments and the checkout (repository: neomjs/neo, ref: dev). Every later change of the responder is then three pull requests.
- Script and rule module can drift apart, unseen. The copied script is frozen in the sibling, while
buildScripts/util/claimResponse.mjs is read from the Engine's dev at run time. Before the port the sibling used one export, decideReply, whose contract the module keeps for that caller. After it the sibling uses the module's whole surface. An Engine change that moves script and module together leaves the siblings' script on the new module, with a token that assigns issues and posts notices.
- No CI sees that pair. The sibling's spec writes its own stub of
claimResponse.mjs into a temporary folder and runs the copied script against it (test/playwright/unit/claimResponderWorkflow.spec.mjs:23 at that head). The real pair is tested once, in the Engine (test/playwright/unit/buildScripts/util/claimResponse.spec.mjs).
- The organisation already has the mechanism. A workflow shared across repositories is a called workflow with a pinned caller:
neomjs/neo-agent-skills/.github/workflows/reusable-pr-baseline.yml, reusable-pr-review.yml, reusable-dependabot-automerge.yml, called from the Engine and the Brain at a tag.
The Architectural Reality
.github/workflows/claim-responder.yml starts on issue_comment and pull_request_target and has no workflow_call today. Its checkout takes github.event.repository.default_branch, which in a sibling is the sibling's own branch.
- In a called workflow the event, the repository and the token are the caller's, so assignment, notices and the permission lookups act on the sibling without a change to the script.
- The security boundary is unchanged by the call: trusted Engine code only, nothing executed from a pull request's head, event fields read as data, one repository-wide concurrency group (Discussion #21005, the security paragraph; #21022).
- Design authority: n/a. No existing behaviour is called wrong; a second caller gets a way in.
The Fix
In this repository:
claim-responder.yml also accepts workflow_call, without an input.
- The checkout names
neomjs/neo at job.workflow_sha, the commit that supplied the running job. Script and rule modules are then one commit by construction, in a sibling's run and in the Engine's own.
- The
respond job keeps the claim-responder concurrency group and is its only owner: in a sibling's run it serializes that sibling's events.
A sibling then holds a caller of a few dozen lines: its triggers, its if, its permissions, and uses: pinned to a full commit SHA. It sets no concurrency group and passes no commit. A bump of that SHA is a reviewed pull request, so what runs with a write token in a sibling changes only when someone looks. The callers are the sibling tickets' work.
Corrected on 2026-11-16 after Emmy's replay of PR #21092 (6906751547). The first version asked for a required commit input equal to the caller's pin, and for the group on the caller too. A guard on that input passed a valid but different Engine commit, and a group held by both the calling and the called job is a nested lock.
Acceptance Criteria
Out of Scope
- The callers in the siblings and their activation boundaries (neomjs/neo-agent-brain#1764, neomjs/neo-agent-institution#989).
- The Actions policy each public repository needs for
pull_request_target (#21069).
merge-comment.yml: it has no sibling.
Avoided Traps
- A copy of the script per repository (neomjs/neo-agent-brain#1778, neomjs/neo-agent-institution#996): three places to change, and a pair nobody tests.
@dev as the caller's pin. Write-token automation in a sibling would change with every Engine merge, without a diff in the sibling.
- A commit input beside the pin. Two values to keep equal, and a guard that checks only the input's form passes a different commit.
- The concurrency group on the caller as well. The calling job would wait for a called job that needs the group it holds.
- Hosting the workflow in
neo-agent-skills. The rule modules and their specs live here; a workflow there would check this repository out anyway and add a second ref to keep equal.
Related
- Parent: #20892. Blocks neomjs/neo-agent-brain#1764 and neomjs/neo-agent-institution#989.
- #21022 (the pull-request path), #19202 (the responder's origin), neomjs/neo-agent-skills#14 (shared workflows across repositories).
Decision Record impact: none.
Structure map: N/A, no file is added or moved.
Live latest-open + closed sweep: checked latest 20 open + open and closed search (claim responder reusable workflow_call sibling; Out of Scope / Avoided Traps read on #21022) at 2026-11-16T02:17:01Z; no equivalent or prior exclusion found. 60 open issues (red): filed as a sub-issue of #20892 because the change lands in this repository and neither sibling ticket can carry it. Memory Core sweep (sibling claim responder checks out neomjs/neo dev, workflow checks out another repository's branch with write permissions): no prior rationale. Own open assignments on this surface: #20892, #21069.
No good first issue or help wanted: a workflow with write permissions on pull_request_target is a maintainer's change (#21022).
unowned-rationale: unowned at filing. Maryam built both ports and reads this fastest; any maintainer seat may take it.
Retrieval Hint: "claim responder workflow_call sibling caller pinned commit script and rule module drift"
Context
Leaf of #20892. Two sibling repositories are getting the Engine's claim behaviour (neomjs/neo-agent-brain#1764, neomjs/neo-agent-institution#989; Discussion #21005, criterion 7 and the sentence on upgraded siblings). Their pull requests port it as copies: neomjs/neo-agent-brain#1778 and neomjs/neo-agent-institution#996. I wrote both sibling tickets and prescribed "two steps in this repository's workflow". That prescription is what this ticket corrects; the pull requests followed it faithfully.
The Problem
Read on neomjs/neo-agent-brain#1778 at
19a48a0cagainst the Engine'sdevat79f1de332a:.github/workflows/claim-responder.ymlis 534 lines and differs from the Engine's 533 in three hunks: two comments and the checkout (repository: neomjs/neo,ref: dev). Every later change of the responder is then three pull requests.buildScripts/util/claimResponse.mjsis read from the Engine'sdevat run time. Before the port the sibling used one export,decideReply, whose contract the module keeps for that caller. After it the sibling uses the module's whole surface. An Engine change that moves script and module together leaves the siblings' script on the new module, with a token that assigns issues and posts notices.claimResponse.mjsinto a temporary folder and runs the copied script against it (test/playwright/unit/claimResponderWorkflow.spec.mjs:23at that head). The real pair is tested once, in the Engine (test/playwright/unit/buildScripts/util/claimResponse.spec.mjs).neomjs/neo-agent-skills/.github/workflows/reusable-pr-baseline.yml,reusable-pr-review.yml,reusable-dependabot-automerge.yml, called from the Engine and the Brain at a tag.The Architectural Reality
.github/workflows/claim-responder.ymlstarts onissue_commentandpull_request_targetand has noworkflow_calltoday. Its checkout takesgithub.event.repository.default_branch, which in a sibling is the sibling's own branch.The Fix
In this repository:
claim-responder.ymlalso acceptsworkflow_call, without an input.neomjs/neoatjob.workflow_sha, the commit that supplied the running job. Script and rule modules are then one commit by construction, in a sibling's run and in the Engine's own.respondjob keeps theclaim-responderconcurrency group and is its only owner: in a sibling's run it serializes that sibling's events.A sibling then holds a caller of a few dozen lines: its triggers, its
if, its permissions, anduses:pinned to a full commit SHA. It sets no concurrency group and passes no commit. A bump of that SHA is a reviewed pull request, so what runs with a write token in a sibling changes only when someone looks. The callers are the sibling tickets' work.Corrected on 2026-11-16 after Emmy's replay of PR #21092 (6906751547). The first version asked for a required commit input equal to the caller's pin, and for the group on the caller too. A guard on that input passed a valid but different Engine commit, and a group held by both the calling and the called job is a nested lock.
Acceptance Criteria
workflow_callwithout an input, and its existing spec stays green on its own events.neomjs/neoatjob.workflow_sha; no input and no step can name another commit, and no step reads the caller repository's files.claim-respondergroup sits on therespondjob and nowhere else.workflow_call, the checkout's repository and ref, the group's place, the absence of${{ }}inside the script, andpersist-credentials: false.Out of Scope
pull_request_target(#21069).merge-comment.yml: it has no sibling.Avoided Traps
@devas the caller's pin. Write-token automation in a sibling would change with every Engine merge, without a diff in the sibling.neo-agent-skills. The rule modules and their specs live here; a workflow there would check this repository out anyway and add a second ref to keep equal.Related
Decision Record impact: none. Structure map: N/A, no file is added or moved.
Live latest-open + closed sweep: checked latest 20 open + open and closed search (
claim responder reusable workflow_call sibling; Out of Scope / Avoided Traps read on #21022) at 2026-11-16T02:17:01Z; no equivalent or prior exclusion found. 60 open issues (red): filed as a sub-issue of #20892 because the change lands in this repository and neither sibling ticket can carry it. Memory Core sweep (sibling claim responder checks out neomjs/neo dev,workflow checks out another repository's branch with write permissions): no prior rationale. Own open assignments on this surface: #20892, #21069.No
good first issueorhelp wanted: a workflow with write permissions onpull_request_targetis a maintainer's change (#21022).unowned-rationale: unowned at filing. Maryam built both ports and reads this fastest; any maintainer seat may take it.
Retrieval Hint: "claim responder workflow_call sibling caller pinned commit script and rule module drift"