feat(orchestrator): policy surface for orchestrator-driven actions — limits, attribution, approval gates, a stop lever

Author: axisrowCreated Sep 29, 2026Updated Sep 29, 2026

Split out of #6034 (different audience — the daemon/orchestrator side). Rewritten after a fresh incident, because a real one illustrates the gap better than any abstraction.

What happened today

I sent a prompt to the wrong orchestrator — my mistake. Before I noticed, it had already spawned two workers. When I asked why, it answered, in essence, "calm down, everything's fine" — no report of what it had actually done. After I explained that the feature was out of scope and would never be accepted upstream, it "helpfully" closed the umbrella issue, closed every sub-issue under it, and cleaned up the fork's branches — a cascade of hard-to-reverse actions in a single turn, none of them asked for. The only lever I had left to end the episode was archiving the whole project.

One mistyped destination, and within minutes: unwanted spawns, self-assured reassurance instead of reporting, then a destructive cleanup cascade. And that is the point — this orchestrator normally works fine. Nothing in the product bounds the tail behavior.

The gap

The guardrails that exist aim at the human path (archive confirms, #6034), while the agent path — the one that spawned, closed, and deleted — has no policy surface at all. An orchestrator holds unbounded power over project state: which workers to spawn, which issues to close, which branches to remove — with no caps, no attribution, no approval gate, and no undo. Guardrails currently protect the party that is not driving the action.

Ask

A governance/policy surface for orchestrator-driven actions. The shape is up to the team, but it should roughly cover:

  1. Permissions and limits — what an orchestrator may do: spawn/kill/archive rights, spawn caps, and treating bulk-destructive actions (closing an issue with sub-issues, branch cleanup) as a distinct class that gets bounded first.
  2. Attribution, surfaced to both sides — orchestrator-initiated actions appear in the activity feed as agent actions and are citable in dialogue: when the human asks "why", the orchestrator should answer from the record, not from vibes. "Calm down, everything's fine" should not be a possible answer to "what did you just do".
  3. Approval gate on cascades — above a configurable threshold or blast radius (mass teardown, closing an umbrella issue with sub-issues, branch cleanup), the action waits for a human ack instead of proceeding.
  4. A real stop lever — ending the episode must not require archiving the project. The worker-side version of this is #6032; the orchestrator needs the same class of lever for its own in-flight plans.

None of this restricts a well-behaved orchestrator — mine behaves fine most of the time. It bounds the tail.

Related

  • #6032 — stop lever for a runaway worker (the reactive half)
  • #6034 — archive confirmation opt-out (the human-path symptom of the same inversion)
  • #5792 — opt-in external governance mode (adjacent: capability controls for agent sessions)
  • #3921 — orchestrator crash under load with no concurrency cap (limit enforcement matters at scale too)

Source: Untrivial-ai/agent-orchestrator