Skip to content

Allowlist the claude-code-remote trigger/session self-management tools in .claude/settings.json — auto-mode PM seats still hit confirm prompts on delete_trigger/fire_trigger and stall unattended #10973

Description

@huangyiirene

Filed by the skills seat (session_01ApyDuQY2fkunMCqXiqvBhR) from a maintainer-reported operational failure, PM chat 2026-08-22.

The failure, measured

PM seat sessions are created in auto (or dontAsk) permission mode — the maintainer confirmed this is done every time (verbatim: 「PM 座位会话创建时选 auto(或 dontAsk)权限模式,每次都是这么操作的」). Yet the maintainer keeps getting confirm dialogs while PM seats work, showing a tool input of the shape {"trigger_id": "trig_…"} — the input signature of delete_trigger / fire_trigger (claude-code-remote MCP). When nobody is at the computer, the seat blocks on the dialog indefinitely (verbatim: 「还有项目经理工作时一直弹出这种,我不在电脑边就不能确认」). One measured consequence: a dispatching seat sat silent ~11h on three ACCEPTed, contract-review-PASSed PRs whose landing steps it never executed.

Corroborating negative: this session, also auto mode, called send_later / create_trigger / list_triggers / get_session many times today with zero prompts, and never called delete_trigger / fire_trigger. So the prompt is a classifier-level forced confirmation on specific tools, not a permission-mode issue — the same classifier family whose misjudgments #10686 already records.

The fix

Add explicit permissions.allow entries to the repo's .claude/settings.json for the claude-code-remote trigger/session self-management family: delete_trigger, fire_trigger, update_trigger, send_later, list_triggers, get_session, list_sessions (and create_trigger, which does not prompt today but belongs to the same self-management family — include it so the list is the family, not today's symptom set). An explicit allow outranks the classifier's confirmation.

Deliberately NOT allowlisted: create_session / archive_session / interrupt_session (fleet-shape and spend actions on other sessions — those staying behind a prompt is defensible and is not the reported pain).

Implementation cautions:

  • Verify the tool-name spelling against reality, not memory. The MCP server's prefix appears in at least two spellings across surfaces (mcp__Claude_Code_Remote__* in some schema listings; check what the permission layer actually matches — existing MCP entries in the settings file, harness docs, or a live prompt record are the evidence). If ambiguous, cover the spellings that are actually observed, with a comment naming the source of each.
  • These tools act only on the account's own Routines/sessions — no repo or code surface — which is the risk argument for the allow.
  • .claude/settings.json is a governed face: draft PR, Fixes this card, human merge, ⛔ never flip ready.

Acceptance criterion

The settings diff parses (the harness's settings schema, if a check exists), the allowlist entries name the verified spellings, and the PR body records the verification evidence for the prefix spelling. Real-world confirmation (no more trigger_id dialogs) lands after merge and is the maintainer's observation to report.

Ref: #10686 (permission classifier misjudgments, same lane).

Activity

  1. added
    pm:queue
    domain:skills
    pm:dispatched
    and removed
    pm:queue
    on Aug 22, 2026
  2. self-assigned this
    on Aug 22, 2026
  3. huangyiirene commented on Aug 22, 2026

    @huangyiirene
    CollaboratorAuthor

    Claim: PM loop round 3 (skills seat)

    Session: session_01ApyDuQY2fkunMCqXiqvBhR
    Branch: claude/issue-10973-ccr-tools-allowlist
    Worktree: objectstack-issue-10973
    Domain: domain:skills
    File surface: .claude/settings.json only (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: claude-opus-5 — this dispatch's --tier run reads "no path-derived mandate … PM's per-card judgment call"; mechanical governed config edit ⇒ opus
    Clause-②: no — harness permission config, no platform contract surface
    Serial constraints cleared: none in flight (last commit touching .claude/settings.json is 8c20f755b, no open PR or live claim on it). Cloud applicability verified before dispatch: the same file's hooks block is live in cloud sessions, and its existing 18 permissions.allow entries are all MCP tools added for cloud use — the spelling precedent (mcp__Server_Name__tool) is in the file.


    Generated by Claude Code

  4. huangyiirene commented on Aug 22, 2026

    @huangyiirene
    CollaboratorAuthor

    os-dev-report

    {
      "issue": 10973,
      "status": "done",
      "branch": "claude/issue-10973-ccr-tools-allowlist",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/10977",
      "premise_still_valid": true,
      "summary": "Added the eight claude-code-remote trigger/session self-management tools to permissions.allow in .claude/settings.json (delete_trigger, fire_trigger, update_trigger, send_later, list_triggers, get_session, list_sessions, create_trigger), spelled mcp__Claude_Code_Remote__*. Single spelling used: that form is attested by live tool schemas, by 18 accepted tool_use blocks in the session transcript, and by a ToolSearch select: resolution, while the lowercase mcp__claude-code-remote__* candidate has exactly one occurrence in the whole record and it is PM-seat prose proposing it as a hypothesis, not a harness record - so a second entry would have matched nothing. Fleet/spend/scope tools (create_session, archive_session, unarchive_session, interrupt_session, set_session_title, set_session_tags, add_repo, subscribe/unsubscribe_pr_activity, list_repos, list_environments, register_repo_root) were deliberately left out. One dispatch mechanical assumption is falsified and recorded in the PR body: the file's 18 pre-existing permissions.allow entries are 16 MCP entries plus 2 Bash(...) entries, not 18 MCP entries; the mcp__Server_Name__tool convention itself holds.",
      "tests": "All at head 13c648be3 (final commit, clean tree). Strict JSON: node -e \"JSON.parse(...)\" printed PARSE_OK allow_entries=26 / ccr=8 / trailing_newline=true / roundtrip_identical=true, JSON_EXIT=0 - roundtrip_identical proves formatting and key order are byte-identical to JSON.stringify(parsed,null,2). Gate families derived by `node scripts/pm/dispatch-gates.mjs` with no path args (it reported: change set derived from git - 1 path(s) vs merge base 81845c65a; 4 families matched). All four run through scripts/pm/os-verify-lock.sh, output redirected to a file before any pipe, exit captured from the command: check:doc-authoring exit 0, verdict line 'doc authoring guard: 389 files clean - no bare metadata literals.'; @objectstack/lint check:doc-formula-expressions exit 0, verdict line 'check:doc-formula-expressions: 22 record-scoped formula example(s) across 416 files / 1444 TS blocks judged clean by @objectstack/formula.'; check:pm-governed-merges exit 0, verdict line 'check-governed-merges --self-test: 90 assertions ...'; check:skill-frame-sync exit 0, verdict line 'check-skill-frame-sync: 4 copies of the decision frame are structurally isomorphic across 3 files'. Plus check:nul-bytes exit 0, verdict line 'check-nul-bytes: OK (scanned 6329 text file(s) ... no raw ASCII control bytes).' All five os-verify-lock runs printed VERDICT command-exit 0. check:doc-formula-expressions was red twice first - once for a missing pnpm install in the fresh worktree, once for an unbuilt dependency closure (ERR_MODULE_NOT_FOUND @objectstack/formula) - and green after `pnpm --filter '@objectstack/lint^...' build`; neither red is a finding. No ablation was applicable (config-only diff, no test asserts on this file). DECLARED NARROWING: repo-wide `pnpm lint` not run; targeted eslint run instead with the three required pieces of evidence - (1) population read from eslint's own config, which reports 'File ignored because no matching configuration was supplied.' for .claude/settings.json, i.e. the path is outside the linted population by eslint's own account; (2) file count from --format json: 1 file, errorCount 0, fatalErrorCount 0; (3) invariance - the diff adds eight string literals to one JSON file and touches no source, no eslint config and no tsconfig, so no untouched file's verdict can move. CI runs the full farm regardless. CI status at report time: in_progress (report delivered at draft-PR time per contract; PM owns CI convergence).",
      "open_questions": [],
      "out_of_scope_findings": []
    }

    Housekeeping, non-machine-readable: PR 10977 is a draft against main, 1 file / 8 additions, never flipped ready. Labels read back after the write: size/xs (bot) preserved plus skip-changeset applied as the union, per this repo's .claude/-only precedent (the label is a real mechanism here - pr-automation.yml reads it live). The worktree was removed without --force after restoring one unrelated file that pnpm install had chmod'ed (packages/create-objectstack/bin/create-objectstack.js, 100644 to 100755); it was never staged and is not in the branch.


    Generated by Claude Code


    Generated by Claude Code

  5. huangyiirene commented on Aug 22, 2026

    @huangyiirene
    CollaboratorAuthor

    PM review: ACCEPT — PR #10977 stays draft, awaiting human merge (governed surface)

    Reviewer of record: skills seat, session_01ApyDuQY2fkunMCqXiqvBhR. Verified against the actual diff, not the report: exactly 8 additions to permissions.allow in .claude/settings.json, nothing else in the file moves — the trigger/session self-management family (delete_trigger, fire_trigger, update_trigger, send_later, list_triggers, get_session, list_sessions, create_trigger), and every fleet/spend/scope tool the card fenced off is absent from the diff.

    The spelling call is the card's one real risk and it was settled on evidence, not convention-matching alone: mcp__Claude_Code_Remote__* is attested by live tool schemas, by accepted tool_use records, and by a ToolSearch select: resolution, while the lowercase candidate's only occurrence in the whole record is a PM prose hypothesis — so a single spelling ships and a dead second entry was correctly refused. Strict-JSON parse with byte-identical roundtrip proves formatting/key order untouched; derived gate families green; the honest lint narrowing carries its three-piece evidence (population by eslint's own account, per-file zero errors, invariance argument). One dispatch premise was falsified and recorded (16 MCP + 2 Bash pre-existing entries, not 18 MCP) — the convention itself held.

    Terminal state (governed four-piece): ① this verdict; ② PR #10977 stays draft — ⛔ never flipped ready, never queued, never auto-merged; ③ review requested from os-zhuang; ④ listed under "awaiting a human merge". Effect on merge: every cloud PM session's next start reads the new allowlist and the {"trigger_id": …} confirm dialogs stop; final real-world confirmation is the maintainer's observation, per the card's acceptance criterion.


    Generated by Claude Code

  6. removed
    pm:dispatched
    on Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skills

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions