| 1 | --- |
| 2 | type: bug |
| 3 | id: bd-5cb2034 |
| 4 | status: open |
| 5 | title: "Automatic redispatch needs cumulative budgets and limits on decomposition" |
| 6 | created: 2026-09-01 |
| 7 | source: knowledge base design review, 2026-09-01 |
| 8 | --- |
| 9 | |
| 10 | # Automatic redispatch needs cumulative budgets and limits on decomposition |
| 11 | |
| 12 | A scheduler that keeps redispatching unfinished work can spend resources indefinitely when a task |
| 13 | cannot succeed. A scheduler that also lets runs create further dependencies can keep expanding the |
| 14 | work beyond the original request. |
| 15 | |
| 16 | This is a design risk in the continuing reconciliation proposed by |
| 17 | [[ida-3145b7a]](../ideas/ida-3145b7a-demand-pressure.md) and |
| 18 | [[ida-eac723e]](../ideas/ida-eac723e-outcome-dag.md). The autonomous outcome scheduler is not yet |
| 19 | implemented. The existing sketches mention budgets and loop limits, but do not define a complete |
| 20 | cumulative enforcement mechanism. |
| 21 | |
| 22 | ## Failure conditions |
| 23 | |
| 24 | A run may fail because its task is unsatisfiable, its environment is broken, or its output |
| 25 | repeatedly fails verification. If lease expiry simply makes the same outcome eligible again, each |
| 26 | individually budgeted run can start another individually budgeted run. Per-run limits do not bound |
| 27 | their total cost. |
| 28 | |
| 29 | Decomposition can create a similar problem. A run adds prerequisite outcomes, those outcomes become |
| 30 | eligible for dispatch, and later runs add more. Without limits or review, the graph can accumulate |
| 31 | redundant work or drift from the intended result. |
| 32 | |
| 33 | These failures depend on the scheduler's retry and authorization rules. They are not inevitable |
| 34 | consequences of representing dependencies as a graph. |
| 35 | |
| 36 | ## Candidate controls |
| 37 | |
| 38 | - Enforce a shared spending or execution budget across runs, with a defined stop and reset |
| 39 | condition. |
| 40 | - Count attempts per outcome and use backoff. Repeated failure should stop automatic retries and |
| 41 | request intervention. |
| 42 | - Limit or require approval for decomposition, using limits on depth, breadth, or cumulative work. |
| 43 | - Give persistently failing outcomes an explicit state that excludes them from automatic redispatch |
| 44 | until reviewed. |
| 45 | |
| 46 | Specific thresholds remain undecided. The limit must be enforced where dispatch or expenditure can |
| 47 | actually be refused; |
| 48 | [[ida-f1b39e8]](../ideas/ida-f1b39e8-outbound-effects-pass-through-an-actuator.md) is a possible |
| 49 | part of that boundary. |
| 50 | |
| 51 | ## Work needed |
| 52 | |
| 53 | Define how budgets apply across child outcomes, concurrent runs, retries, and controller restarts. |
| 54 | Define how stopped work becomes eligible again. |
| 55 | |
| 56 | Then exercise repeated failure and recursive decomposition to show that the controller stops at the |
| 57 | declared limits and reports the reason. |
| 58 | [Feedback and incident memory](../../design/roadmap.md#phase-7--feedback-and-incident-memory) should |
| 59 | preserve what was learned from those failures. |