9791019366
PLANNING_CONSULT_WARNING was prepended to the prompt forwarded to subagent LLMs via task(). Its leading bracket-enclosed marker `[SYSTEM DIRECTIVE: OH-MY-OPENCODE - PROMETHEUS READ-ONLY]` is exactly the indirect-prompt-injection signature that Azure OpenAI Prompt Shield flags in user-role content; on GPT-5.4 through Azure, the model returns "I'm sorry, but I cannot assist with that request." before any planning work runs, making Prometheus non-functional on Azure. The bracket marker was designed for internal hook-to-hook filtering, but PLANNING_CONSULT_WARNING leaks it to external LLM payloads. Replace the header with a neutral XML-tag wrapper (`<planning-context source="prometheus-read-only">`) that Azure's filter does not match while preserving the human-readable warning body. Internal isSystemDirective() consumers are unaffected. Regression test asserts the post-hook task() prompt does not begin with the flagged bracket sequence. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>