Auto mode classifier denies owner-authorized fire_trigger between the same account's scheduled sessions ("Unsanctioned Communication")

Aperta
#112,795 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
ai, authorization

Direzione di ricerca

The payload names no source files. Its concrete references are the fire_trigger tool, the auto mode classifier's denial reason [Unsanctioned Communication], the autoMode allow and environment rules read from ~/.claude/settings.json or managed settings, and CLAUDE.md. Reproducing needs two cloud scheduled tasks on one account, which a newcomer cannot easily do. Done would mean either a decision on whether same-account fires are exempt, or a supported way to configure an allow rule for cloud scheduled sessions; that choice belongs to maintainers.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:permissions area:routines bug has repro
Preflight Checklist
  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code
What's Wrong?

Several scheduled Claude Code sessions (claude.ai scheduled tasks, cloud sessions) on one account coordinate through a shared private repo. When one session finishes a step, it wakes the next with the remote fire_trigger tool: plain, no text, trigger IDs that belong to the same account. Many of these calls are denied by the auto mode classifier with reason [Unsanctioned Communication].

It is inconsistent: the same fire of the same trigger succeeds from one session and is denied from another, and a session that fired successfully earlier is denied later.

Scale: about 134 denied fires logged between Nov 23 and Nov 27, 2026. Each one leaves work waiting until a person notices; one sat about 40 minutes.

The account owner gave standing written permission in each session's prompt and in the repo's CLAUDE.md: wake only the sessions named in that step's post, plain with no text, using trigger IDs from a list in the repo. No data leaves the account through a fire; it only starts another session of the same account. The docs say the classifier reads CLAUDE.md, so we added one quoting that permission; the next fire from a fresh session was still denied with the same reason.

Related but different: #110198 (send_message from a child session to its parent).

What Should Happen?

A fire_trigger call with no text, targeting a scheduled task owned by the same account, should not be treated as outside communication, at least when the account owner has authorized it in the session prompt or CLAUDE.md. Or: a supported way to add an autoMode allow rule for cloud scheduled sessions. Today autoMode allow and environment rules are read from ~/.claude/settings.json or managed settings, cloud scheduled sessions start fresh each run, and /auto-mode-setup cannot run in a cloud session, so there is no place to put one.

Error Messages/Logs
Permission for this action was denied by the Claude Code auto mode classifier. Reason: [Unsanctioned Communication].
Steps to Reproduce
  1. On one claude.ai account, create two scheduled tasks (cloud sessions, auto mode), A and B.
  2. In A's prompt, state that the account owner authorizes A to wake B with fire_trigger, plain, no text.
  3. Run A and have it call fire_trigger with B's trigger ID and no text.
  4. The call is sometimes allowed and often denied with [Unsanctioned Communication]; adding a repo CLAUDE.md with the same authorization does not change the result.
Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.332 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Sessions are claude.ai scheduled tasks running in Anthropic's cloud (Linux), models Claude Sonnet 5.5 and Opus 5.5, November 2026. Platform and OS menus below are approximate for cloud sessions.

Lingua principale
TypeScript
Stelle
157k
Fork
25.1k
Merge medio
20h 25m
PR unite (30g)
4

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anthropics/claude-code

Tutte le issue di anthropics/claude-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.