| 1 | --- |
| 2 | type: bug |
| 3 | id: bd-5cb2034 |
| 4 | status: open |
| 5 | title: Standing demand pressure risks runaway agent dispatch loops without hard budget latches |
| 6 | created: 2026-09-01 |
| 7 | source: knowledge base design review, 2026-09-01 |
| 8 | --- |
| 9 | |
| 10 | # Demand pressure risks runaway dispatch loops without budget latches |
| 11 | |
| 12 | The system design introduces standing demand pressure as an anti-stall mechanism |
| 13 | ([[ida-3145b7a]]). A scheduler controller continuously reconciles the outcome DAG, detecting |
| 14 | stalled or unblocked frontier nodes and dispatching autonomous agents (klaus) to unblock them |
| 15 | ([[ida-eac723e]]). When automated dispatch operates without strict global spending ceilings, |
| 16 | decomposition recursion limits, and execution circuit breakers, standing demand pressure risks |
| 17 | triggering runaway LLM token expenditure and severe semantic drift. |
| 18 | |
| 19 | ## The failure modes of autonomous anti-stall |
| 20 | |
| 21 | Autonomous AI agents fail frequently and unpredictably. When an agent fails to complete an outcome—by |
| 22 | producing unparseable diffs, failing test assertions, or introducing conflicting changes—standing |
| 23 | demand pressure treats the failure as a stall condition to be actively reconciled. |
| 24 | |
| 25 | Without hard protective latches, this reconciliation loop creates two failure modes: |
| 26 | |
| 27 | 1. **Runaway retry storms and financial burn.** An agent run that fails verification or dies |
| 28 | unexpectedly loses its in-progress lease. The scheduler immediately marks the outcome as open on |
| 29 | the unblocked frontier and dispatches a fresh agent run. Under unattended operation, this loop |
| 30 | can execute continuously overnight, consuming hundreds of dollars in API credits on an |
| 31 | unsolvable task or a broken environment. |
| 32 | 2. **Recursive decomposition and semantic drift.** When an agent attempts to resolve a complex |
| 33 | outcome by decomposing it into multiple sub-outcomes in the graph, the newly created nodes become |
| 34 | part of the frontier and trigger subsequent agent dispatches. If sub-agents further decompose |
| 35 | their assigned tasks without human architectural oversight, the outcome graph rapidly expands |
| 36 | with hallucinated or redundant work, drifting far from the operator's actual requirements. |
| 37 | |
| 38 | ## Why this is acceptable today |
| 39 | |
| 40 | Agent runs are currently dispatched interactively by the human operator using explicit run-budget |
| 41 | arguments. The autonomous background scheduler described in [[ida-eac723e]] and [[ida-3145b7a]] is |
| 42 | still an exploratory design and has not been wired to automated loop daemons. The risk is an |
| 43 | existential operational threat that must be resolved before automated dispatch is activated. |
| 44 | |
| 45 | ## Directions, not decisions |
| 46 | |
| 47 | - **Global financial circuit breakers.** Enforce hard token and dollar spending ceilings (per hour |
| 48 | and per day) at the actuator boundary ([[ida-f1b39e8]]). When the ceiling is reached, all |
| 49 | automated dispatch halts until a human resets the latch. |
| 50 | - **Strict retry caps and backoff.** Limit automated retry attempts per outcome to a small fixed |
| 51 | count (e.g., two attempts). Upon repeated failure, the outcome is marked as blocked on human review |
| 52 | rather than returned to the frontier. |
| 53 | - **Decomposition approval gates.** Restrict autonomous agents from adding new blocking outcome |
| 54 | nodes to the graph without explicit human sign-off, or limit recursive decomposition depth to a |
| 55 | maximum of one level. |
| 56 | - **Dead-letter outcomes.** Move persistently failing or cycling outcomes to an explicit dead-letter |
| 57 | queue, isolating them from standing demand pressure. |
| 58 | |
| 59 | ## Related |
| 60 | |
| 61 | - Demand pressure: [[ida-3145b7a]] ([ida-3145b7a-demand-pressure.md](../ideas/ida-3145b7a-demand-pressure.md)) |
| 62 | - Outcome DAG scheduler: [[ida-eac723e]] ([ida-eac723e-outcome-dag.md](../ideas/ida-eac723e-outcome-dag.md)) |
| 63 | - Actuator effect boundary: [[ida-f1b39e8]] ([ida-f1b39e8-outbound-effects-pass-through-an-actuator.md](../ideas/ida-f1b39e8-outbound-effects-pass-through-an-actuator.md)) |
| 64 | - Incident memory: [design/roadmap.md](../../design/roadmap.md#phase-7--feedback--incident-memory) |