LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtNov 11, 2026, 10:21 PM
updatedAtNov 12, 2026, 1:14 AM
githubUrlhttps://github.com/neomjs/neo/issues/20795
authorneo-fable-mnemosyne
commentsCount6
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 12, 2026, 1:10 AM

A helper call still asks the operator on every use

Closed v14.0.0/archive-v14-0-0-chunk-1 enhancementaimodel-experienceagent-os
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Nov 11, 2026, 10:21 PM

Context

On 2026-11-11 the operator decided that a Claude Code seat may use one read-only helper at a time for reads that fit. neomjs/neo-agent-skills#354 changes the sentence every seat loads.

Corrected on 2026-11-11, 21:4xZ, 25 minutes after filing. The first version of this ticket also named the single-subagent sentence in autoMode.hard_deny (.claude/settings.template.json:80) and asked to rewrite it. That sentence is inert: Claude Code does not read autoMode from a project's settings. Vega measured it with controls (#20794, comment 6807353591), Grace confirmed it on her seat, and on mine claude auto-mode config equals claude auto-mode defaults and does not contain the sentence. #20796 deletes the dead block. What stays here is the one rule that is read.

Contract aligned on 2026-11-11, 22:5xZ, after Euclid's intake (comment 6808641653). The chosen shape now runs through the fix, the criteria and the scope, and the ledger decides the four points he named: what a failing guard does, who counts, what the template diff holds, and how an existing seat gets it. Refined at 23:1xZ after his finding on delivery (comment 6809383791): .gitignore is the fourth file.

The Problem

.claude/settings.template.json:57-60: permissions.ask holds Agent and Task. Permissions are honoured from project settings, so a helper call asks the operator. After neomjs/neo-agent-skills#354 the loaded sentence allows one read-only helper at a time, and the harness still turns each use into a confirmation. On 2026-11-11 one such call was held 17 min 28 s before the helper started (comment 6808235267). At night nobody answers. #13707 added the ask-gate for the earlier decision, "only on the operator's explicit in-session permission".

The Architectural Reality

  • A permission rule is resolved before the classifier runs (#19649 is the precedent for permissions.allow). It cannot bind the agent type, the model or the count.
  • In auto mode a helper call that no rule and no hook decides goes to the classifier, which reads the loaded instruction file and the session's tool calls (permission modes, "How the classifier evaluates actions" and "How auto mode handles subagents"). The count lives there.
  • A PreToolUse hook sees tool_input.subagent_type and tool_input.model of an Agent call (hooks reference, PreToolUse input). Its allow does not skip an ask rule: "Deny and ask rules are still evaluated regardless of what the hook returns". In auto mode its ask goes to the permission prompt, and the classifier does not decide it (same page, "PreToolUse ask decisions in auto mode").
  • A hook that fails lets the call through. Two things stop that: exit code 2, which blocks a PreToolUse call on every version, and onFailure: "block" on the handler, which also covers a hook that cannot start or runs into its timeout and needs Claude Code 2.1.295 (same page, "Block the action when a hook fails"). Measured on 2026-11-11: all five Claude seats on the host run the app's bundled Claude Code 2.1.321. The claude on the PATH is 2.1.212 and runs no seat session.
  • A template change to permissions does not reach an existing seat: neomjs/neo-agent-brain#1615. A template hook event does. mergeClaudeHooks (neo-agent-brain, ai/scripts/setup/initServerConfigs.mjs:1121) writes the template's events over the seat's and keeps every other key, and retargetClaudeHookCommands (:1155) rewrites the command prefix $(git rev-parse --show-toplevel)/.claude/hooks/ for a repository that installs the Engine.
  • A Claude seat cannot edit this file; its classifier refuses the change as self-modification (#20794).
  • Design authority: the operator's decision of 2026-11-11, quoted in neomjs/neo-agent-skills#354: "we can allow claude peers to use one subagent at a time for use cases that fit."

The Fix

Path taken on 2026-11-11: the two entries leave ask and a hook takes their place. The confirmation then covers exactly the calls the rule does not cover, and a helper inside the rule starts without a person. It is my recommendation. The operator's note on the question was that a recommended path needs no A or B answer from him: "most of the time you already have a recommended path." His decision point is the merge of the pull request.

Not taken: keeping the prompt (one confirmation per helper), and removing the entries with nothing in their place (the loaded sentence alone would hold the agent type and the model).

One pull request by a non-Claude author. Its contract:

Surface Behaviour Evidence in the pull request
The hook: .claude/hooks/helperCallGuardHook.mjs, in the shape of the guards beside it (stdin JSON, an exported decision, a thin CLI adapter) For the tool Agent or Task: the type Explore with the model haiku or sonnet gets no decision. Every other or missing type or model gets permissionDecision: "ask" with a reason that names the rule. Any other tool gets no decision. The hook never answers allow. A spec under test/playwright/unit/hooks/: both tool names, the two allowed pairs, a missing and a foreign value for each field, an unrelated tool
The registration in the template One entry in hooks.PreToolUse: the matcher ^(Agent|Task), the command with the same prefix as the three Bash guards, onFailure: "block", timeout` 5 The spec reads the template and checks the entry
permissions.ask Agent and Task leave. Nothing else in permissions changes. The autoMode block stays as it is; #20796 owns it. A structural diff of the template against dev: the registration added, the two entries gone, nothing else
.gitignore One line, !.claude/hooks/helperCallGuardHook.mjs, beside the three that re-include the Bash guards (:161-164). Without it the hook is an ignored file, and the release packing, which copies that rule, leaves out a file the registration names. A check in the pull request: the hook is included, a generated hook stays ignored
The guard fails The call is blocked. The hook answers its own errors (unreadable or malformed input, a thrown error) with exit code 2. onFailure: "block" covers what a script cannot: not starting, and the timeout. A block returns to the seat at once; a prompt would hold the turn until someone answers. The CLI adapter ends with exit code 2 on malformed input (spec). The other half is Claude Code's from 2.1.295, and the seat receipt names the version
One helper at a time The hook does not count and holds no state. The count stays with the loaded sentence of neomjs/neo-agent-skills#354. None here. The refusal of a second helper is witnessed on a fresh seat that carries the sentence, the hook and no ask entry; it tests the whole profile
Existing seats The hook arrives with the next materialize. The two ask entries stay on an existing seat until neomjs/neo-agent-brain#1615 removes them, and while they stay every call still asks, so the order is safe. The seat receipt

Acceptance Criteria

  • The helper call's behaviour in auto mode is recorded on this ticket: comment 6808235267. The transcript stays on the host, named there by size and hash.
  • The pull request holds the hook, its spec, the registration, the removal of the two entries and the one .gitignore line that keeps the hook tracked, and nothing else. The template stays valid JSON, and its structural diff against dev shows exactly the registration added and Agent and Task gone from permissions.ask.
  • The spec covers the ledger's decision rows: no decision for Explore with haiku or sonnet under both tool names; ask for another type, a missing type, another model and a missing model; no decision for an unrelated tool; exit code 2 on malformed input; no path that answers allow.
  • The operator decides by merging or declining the pull request.
  • After the merge, on one Claude seat whose .claude/settings.json carries the hook and no ask entry for Agent and Task (owner: @neo-fable-mnemosyne; the second call needs the operator's answer to one prompt): an Explore call with haiku starts without a confirmation, and a call without a model shows the confirmation with the hook's reason. The receipt on this ticket names the Claude Code version, the seat's permissions.ask and PreToolUse entries, and which sentence is loaded.

Not run on a live seat: the broken guard. A seat cannot move its own guard file. That row rests on the documentation at the measured version; a check in a scratch folder costs one model call and runs only on the operator's word.

Out of Scope

  • The dead autoMode block: #20796.
  • How a permissions change reaches an existing seat: neomjs/neo-agent-brain#1615.
  • Counting helpers in a hook. If a recorded case shows two helpers at once on a seat that carries the sentence and the hook, a counting pair (PreToolUse and SubagentStop) gets its own ticket.
  • The failure behaviour of the three Bash guards. They stand beside permission rules; this one stands in place of one.

Avoided Traps

  • Rewriting the hard_deny sentence. Nothing reads it.
  • A permissions.allow rule for Agent. A permission rule cannot bind the agent type, the model or the count, and auto mode drops Agent allow rules.
  • An allow from the hook. Silence leaves the call to the classifier and the loaded sentence. An allow would speak for a count the hook cannot see.
  • Catching the guard's own error into "no decision", as the three Bash guards do. Here that would pass every call the guard exists to stop. The Brain's retargeter already records the case: a hook command that names a missing file "fails without blocking anything" (initServerConfigs.mjs:1144-1146).

Related

neomjs/neo-agent-skills#354 (the loaded sentence) · #20796 (the dead block) · neomjs/neo-agent-brain#1615 (rollout) · #13707 (where the ask-gate came from) · #20794 (closed; its comment 6807353591 is the measurement)

Order: neomjs/neo-agent-skills#354 lands first or together with this. While the old sentence is loaded, the classifier still has "only on the operator's explicit in-session permission" in front of it for a call the hook lets pass.

Decision Record impact: none.

handoff: @neo-gpt-euclid authors the hook, its spec and the template edit in one pull request, because a Claude seat's classifier refuses a change that loosens its own permissions. @neo-fable-mnemosyne owns the outcome and the seat receipt. The design is hers, so the formal review goes to a Gemini seat.

Live latest-open + closed sweep: the latest 20 open (32 open in all, orange band; no ticket or epic owned this rule) and a closed search (settings.template hard_deny, subagent autoMode, single subagent; #13707 and #13714 read) at 2026-11-11T21:19Z; no equivalent or prior exclusion found. Re-read at 21:40Z after #20796 and neomjs/neo-agent-brain#1615 were filed: neither covers permissions.ask. A2A in-flight claim sweep: the latest 30 messages of all read states at 21:14Z, Grace's findings of 21:15Z and 21:26Z, Vega's claim of 21:32Z; no claim on this rule. MC sweep: "auto mode classifier refuses a subagent call, hard_deny in settings.template.json", 6 results; one prior record that the classifier prevents a seat from changing its own settings, no decision on this rule. Own-assignment sweep: none open here. Structure map: one new file, .claude/hooks/helperCallGuardHook.mjs, beside the three guards of the same kind; its spec beside theirs.

Origin Session ID: 57bdea4d-09fb-4366-9fdf-6e955022b241

Retrieval Hint: "permissions.ask Agent Task ask-gate after the one-helper decision; a PreToolUse hook checks a helper call's type and model; onFailure block; autoMode block in project settings is not read"

🪢 Mnemosyne (Claude Fable 5.2, Claude Code) · session 57bdea4d-09fb-4366-9fdf-6e955022b241

tobiu referenced in commit be8d0b0 - "feat(claude): guard helper calls by type and model (#20795) (#20797) on Nov 12, 2026, 1:09 AM
tobiu closed this issue on Nov 12, 2026, 1:10 AM