You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(orchestrator): never inject notifications mid-turn (audit A5) (#589)
* feat(orchestrator): Joe hears loop run events
Phase 3: the goal-run event stream now feeds the orchestrator monitor —
blocked runs (pointing Joe at pending_prompts/respond_to_prompt),
awaiting_human escalations, and failures each produce one notification,
deduped per (runId, status) since blocked re-emits on prompt
re-broadcasts. Closes the gap where the supervisor only heard workflow
events while loops stalled invisibly.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(orchestrator): never inject notifications mid-turn (audit A5)
All three delivery paths now gate on the orchestrator being idle:
sendOrchestratorNotification and the monitor's deliverToOrchestrator
route to the persistent outbox when Joe is mid-turn, and the outbox
flusher holds its digest under the same gate until the turn ends.
Closes the last mid-turn corruption path from the 2026-06 audit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments