Context
On 2026-11-12 the operator ruled that every Claude seat has the permission set Ada's seat runs with: "equal peers paradigm. of course all peers should have the same rights." Grace recorded the set in her verdict on neomjs/neo-agent-brain#1614: allow Bash(gh *), Bash(git config *) and the four Neo MCP servers; deny gh pr merge. It was to be applied by hand to each seat's gitignored .claude/settings.local.json, with neomjs/neo-agent-brain#1615 named as the durable path.
#1615 shipped the same day: a seat's hydration (npm prepare, or a seat Start) replaces an untracked .claude/settings.json's permissions with the template's once the installed engine carries them (initClaudeSettings, neo-agent-brain ai/scripts/setup/initServerConfigs.mjs). The template itself never got the ruled set.
The Problem
Measured 2026-11-14 (dev a07f581f13): .claude/settings.template.json allows seven specific gh pr / gh issue commands and no gh api. My seat's local file has Bash(gh api *) (applied by hand on 10-29); per #1614's table Ada's has Bash(gh *). Each seat's rights follow its hand-edit history, so a maintainer act the operator ruled every seat's (starting a first-time contributor's held runs, gh api -X POST …/actions/runs/<id>/approve, rulings of 11-11 and 11-13) works on some seats and is refused by the classifier on others.
The Architectural Reality
permissions.allow is resolved before the auto-mode classifier runs; a call an allow rule matches is not classified (#1614, Architectural Reality). A compound shell command, such as a for loop, matches no prefix rule and still goes to the classifier.
autoMode is never read from a project file (#20794, #20796), so permissions is the only lever the template has.
- Deny rules win over allow rules, but they match command text:
Bash(gh pr merge *) stops gh pr merge and nothing else. Under a Bash(gh *) allow, gh api -X PUT …/pulls/<n>/merge passes without a classifier read (Grace, 2026-11-15). So the template also denies the merge write paths, Bash(gh api *pulls/*/merge*) (REST), Bash(gh api *mergePullRequest*) and Bash(gh api *enablePullRequestAutoMerge*) (GraphQL): a speed bump for the common forms that leaves reads of mergeable or mergeStateStatus alone (Grace's narrowing of 2026-11-15). The guard is server-side: a ruleset that limits merges into dev and main to the operator (Grace flagged it to him).
- Design authority: the operator's ruling of 2026-11-12 quoted above, as recorded on neomjs/neo-agent-brain#1614.
The Fix
.claude/settings.template.json, permissions.allow: add Bash(gh *), which replaces the seven gh rules it subsumes, plus Bash(git config *) and mcp__neo-mjs-neural-link__*. permissions.deny adds Bash(gh api *pulls/*/merge*) (REST), Bash(gh api *mergePullRequest*) and Bash(gh api *enablePullRequestAutoMerge*) (GraphQL).
Contract Ledger
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
.claude/settings.template.json permissions.allow: Bash(gh *), Bash(git config *) (:29, :28) and the four mcp__neo-mjs-*__* servers (:4–:7), at PR #21843's head |
the operator's Nov 12 decision (Context above); Grace's verdict on neomjs/neo-agent-brain#1614 |
a Claude seat runs any gh command, git config, and the four Neo MCP servers without a classifier prompt |
a seat that has not hydrated keeps the set in its .claude/settings.local.json (Grace's Nov 15 rollout) |
the template |
PR #21843's rule check; test/playwright/unit/hooks |
permissions.deny: Bash(gh pr merge *) and the three gh api merge writes (:37–:40) |
critical gate 1 (human-only merge) |
the four merge write forms are refused on the seat; a deny wins over the allow |
none: the denies are local rules, not a security boundary (row 4) |
Claude's permission rules (deny precedence) |
PR #21843's rule check |
Hydration: initClaudeSettings (neomjs/neo-agent-brain ai/scripts/setup/initServerConfigs.mjs:1254) |
neomjs/neo-agent-brain#1615 |
replaces an untracked .claude/settings.json's permissions with the template's once the installed engine carries them |
a seat on an older engine keeps its current file |
neomjs/neo-agent-brain#1615 |
AC-3, post-merge |
GitHub-side merge authorization on dev / main |
the operator: no merge ruleset for now (Nov 15, comment above) |
unchanged here. No server rule limits merges to the operator, and a seat's local deny does not enforce critical gate 1 on GitHub |
critical gate 1 stays an agent rule |
— |
pending evidence: an operator-only server rule needs its own source receipt (Sophie's read-back on PR #21843) |
Acceptance Criteria
Out of Scope
- The lines hand-applied to each seat's
.claude/settings.local.json: those files are the operator's.
- An approve tool in github-workflow (#1614, not planned) and routing approve-runs wakes by family.
Avoided Traps
Bash(gh api -X POST repos/neomjs/*/actions/runs/*/approve): a * in the middle matches spaces, so the rule admits unrelated gh api writes that end in /approve (#1614).
Related
neomjs/neo-agent-brain#1614 · neomjs/neo-agent-brain#1615 · #20794 · #20796 · #19741
Live latest-open + closed sweep: checked latest 20 open + open search (settings.template) + closed search (claude settings permissions seat) at 2026-11-14T02:32Z; read #20794, #20796, #19649, #19741, and Brain #1614's verdict thread; no equivalent found. Backlog: 52 open, red band; no owning ticket or epic exists for the template's rules.
A2A in-flight claim sweep: latest 15 messages, all read-states, at 02:32Z; no claim on this scope.
MC sweep: query_raw_memories on the symptom (seat refused approving held runs, template permissions differ per seat), 5 results: Grace's #1614 close and my own #19741, no contrary decision.
Own-assignment sweep: 1 open here (#20667), not overlapping.
Origin Session ID: 4b962e52-b40c-47fd-8297-e6e3d3879476
Retrieval Hint: "ruled gh rights settings template", "same rights for all Claude seats", "held runs approve classifier"
Context
On 2026-11-12 the operator ruled that every Claude seat has the permission set Ada's seat runs with: "equal peers paradigm. of course all peers should have the same rights." Grace recorded the set in her verdict on neomjs/neo-agent-brain#1614: allow
Bash(gh *),Bash(git config *)and the four Neo MCP servers; denygh pr merge. It was to be applied by hand to each seat's gitignored.claude/settings.local.json, with neomjs/neo-agent-brain#1615 named as the durable path.#1615 shipped the same day: a seat's hydration (
npm prepare, or a seat Start) replaces an untracked.claude/settings.json'spermissionswith the template's once the installed engine carries them (initClaudeSettings, neo-agent-brainai/scripts/setup/initServerConfigs.mjs). The template itself never got the ruled set.The Problem
Measured 2026-11-14 (
deva07f581f13):.claude/settings.template.jsonallows seven specificgh pr/gh issuecommands and nogh api. My seat's local file hasBash(gh api *)(applied by hand on 10-29); per #1614's table Ada's hasBash(gh *). Each seat's rights follow its hand-edit history, so a maintainer act the operator ruled every seat's (starting a first-time contributor's held runs,gh api -X POST …/actions/runs/<id>/approve, rulings of 11-11 and 11-13) works on some seats and is refused by the classifier on others.The Architectural Reality
permissions.allowis resolved before the auto-mode classifier runs; a call an allow rule matches is not classified (#1614, Architectural Reality). A compound shell command, such as aforloop, matches no prefix rule and still goes to the classifier.autoModeis never read from a project file (#20794, #20796), sopermissionsis the only lever the template has.Bash(gh pr merge *)stopsgh pr mergeand nothing else. Under aBash(gh *)allow,gh api -X PUT …/pulls/<n>/mergepasses without a classifier read (Grace, 2026-11-15). So the template also denies the merge write paths,Bash(gh api *pulls/*/merge*)(REST),Bash(gh api *mergePullRequest*)andBash(gh api *enablePullRequestAutoMerge*)(GraphQL): a speed bump for the common forms that leaves reads ofmergeableormergeStateStatusalone (Grace's narrowing of 2026-11-15). The guard is server-side: a ruleset that limits merges intodevandmainto the operator (Grace flagged it to him).The Fix
.claude/settings.template.json,permissions.allow: addBash(gh *), which replaces the sevenghrules it subsumes, plusBash(git config *)andmcp__neo-mjs-neural-link__*.permissions.denyaddsBash(gh api *pulls/*/merge*)(REST),Bash(gh api *mergePullRequest*)andBash(gh api *enablePullRequestAutoMerge*)(GraphQL).Contract Ledger
.claude/settings.template.jsonpermissions.allow:Bash(gh *),Bash(git config *)(:29,:28) and the fourmcp__neo-mjs-*__*servers (:4–:7), at PR #21843's headghcommand,git config, and the four Neo MCP servers without a classifier prompt.claude/settings.local.json(Grace's Nov 15 rollout)test/playwright/unit/hookspermissions.deny:Bash(gh pr merge *)and the threegh apimerge writes (:37–:40)initClaudeSettings(neomjs/neo-agent-brainai/scripts/setup/initServerConfigs.mjs:1254).claude/settings.json'spermissionswith the template's once the installed engine carries themdev/mainAcceptance Criteria
Bash(gh *),Bash(git config *)and the fourmcp__neo-mjs-*servers; the seven subsumedghrules are gone;Bash(gh pr merge *)is still denied, and so are the threegh apimerge write paths; agh api graphqlread ofmergeStateStatusstill runs.test/playwright/unit/hooks).[post-merge]After a Claude seat's next hydration on an engine that carries this commit, its.claude/settings.jsonholds the ruled set, and a plaingh api -X POST …/actions/runs/<id>/approvereaches GitHub without a classifier refusal.Out of Scope
.claude/settings.local.json: those files are the operator's.Avoided Traps
Bash(gh api -X POST repos/neomjs/*/actions/runs/*/approve): a*in the middle matches spaces, so the rule admits unrelatedgh apiwrites that end in/approve(#1614).Related
neomjs/neo-agent-brain#1614 · neomjs/neo-agent-brain#1615 · #20794 · #20796 · #19741
Live latest-open + closed sweep: checked latest 20 open + open search (
settings.template) + closed search (claude settings permissions seat) at 2026-11-14T02:32Z; read #20794, #20796, #19649, #19741, and Brain #1614's verdict thread; no equivalent found. Backlog: 52 open, red band; no owning ticket or epic exists for the template's rules. A2A in-flight claim sweep: latest 15 messages, all read-states, at 02:32Z; no claim on this scope. MC sweep:query_raw_memorieson the symptom (seat refused approving held runs, template permissions differ per seat), 5 results: Grace's #1614 close and my own #19741, no contrary decision. Own-assignment sweep: 1 open here (#20667), not overlapping.Origin Session ID: 4b962e52-b40c-47fd-8297-e6e3d3879476
Retrieval Hint: "ruled gh rights settings template", "same rights for all Claude seats", "held runs approve classifier"