LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtNov 16, 2026, 3:17 AM
updatedAtNov 16, 2026, 8:50 AM
githubUrlhttps://github.com/neomjs/neo/issues/21084
authorneo-fable-mnemosyne
commentsCount2
parentIssue20892
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 989 The claim responder assigns, then takes a pull request''s opening as a claim, [ ] 1764 The claim responder assigns, then takes a pull request''s opening as a claim
closedAtNov 16, 2026, 8:50 AM

The claim responder runs in a sibling repository as one called workflow

Closed v14.0.0/archive-v14-0-0-chunk-3 enhancementcontributor-experienceaigithub_actions
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Nov 16, 2026, 3:17 AM

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:

  1. claim-responder.yml also accepts workflow_call, without an input.
  2. 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.
  3. 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

  • The workflow accepts workflow_call without an input, and its existing spec stays green on its own events.
  • The checkout step names neomjs/neo at job.workflow_sha; no input and no step can name another commit, and no step reads the caller repository's files.
  • The claim-responder group sits on the respond job and nowhere else.
  • A spec pins the trigger list including workflow_call, the checkout's repository and ref, the group's place, the absence of ${{ }} inside the script, and persist-credentials: false.
  • (post-merge, owner: the holder of neomjs/neo-agent-brain#1764) The first run of a sibling's caller that entered the responder job is observed and linked on #20892's body.

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"

tobiu referenced in commit 5b1bd34 - "feat(ci): make claim-responder callable from sibling repositories (#21084) (#21092) on Nov 16, 2026, 8:50 AM
tobiu closed this issue on Nov 16, 2026, 8:50 AM