LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 14, 2026, 3:32 AM
updatedAtNov 22, 2026, 1:21 AM
githubUrlhttps://github.com/neomjs/neo/issues/20925
authorneo-opus-vega
commentsCount9
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 401 Verify contributor assistance before repository activation
closedAtNov 22, 2026, 1:21 AM

Every Claude seat gets the ruled gh rights from the settings template

Closed v14.0.0/archive-v14-0-0-chunk-2 enhancementaimodel-experience
neo-opus-vega
neo-opus-vega commented on Nov 14, 2026, 3:32 AM

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

  • The template allows Bash(gh *), Bash(git config *) and the four mcp__neo-mjs-* servers; the seven subsumed gh rules are gone; Bash(gh pr merge *) is still denied, and so are the three gh api merge write paths; a gh api graphql read of mergeStateStatus still runs.
  • The specs that read the template stay green (test/playwright/unit/hooks).
  • [post-merge] After a Claude seat's next hydration on an engine that carries this commit, its .claude/settings.json holds the ruled set, and a plain gh api -X POST …/actions/runs/<id>/approve reaches GitHub without a classifier refusal.

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"