| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-3145b7a |
| 4 | status: exploring |
| 5 | title: "Keep requested outcomes moving and surface stalled work" |
| 6 | created: 2026-07-02 |
| 7 | source: design conversation, 2026-07-02 |
| 8 | --- |
| 9 | |
| 10 | # Keep requested outcomes moving and surface stalled work |
| 11 | |
| 12 | A scheduler could keep working toward requested outcomes until they are completed, abandoned, or |
| 13 | blocked on a decision it cannot make. It would dispatch capable AI agents and direct human attention |
| 14 | to work that requires a person. This continuing reconciliation is the idea called **demand |
| 15 | pressure**. |
| 16 | |
| 17 | The proposal extends the adopted outcome-DAG sketch in [[ida-eac723e]](ida-eac723e-outcome-dag.md). |
| 18 | It remains exploratory. The [outcomes directory](../outcomes/) provides a small dependency graph for |
| 19 | examining it; that graph is not evidence that an automated scheduler exists. |
| 20 | |
| 21 | ## Humans and agents |
| 22 | |
| 23 | Both humans and AI agents can be producers of work in the graph. Dispatch differs: an AI run can be |
| 24 | started, while a human receives a request for attention. |
| 25 | |
| 26 | This lets scheduling cover a human decision that blocks an outcome. It does not settle the broader |
| 27 | attention problem of which completed work, incidents, and reports a person should see. That remains |
| 28 | a separate question. |
| 29 | |
| 30 | ## Reconcile outstanding work |
| 31 | |
| 32 | Demand follows dependencies from active root outcomes. The controller repeatedly compares that |
| 33 | demand with current progress. |
| 34 | |
| 35 | Events tell the controller that its view may be stale. It then reads current state and decides what |
| 36 | work is needed, following [[ida-b48bded]](ida-b48bded-production-dags-and-events.md). A missed or |
| 37 | repeated event should not determine whether an outcome eventually receives attention. |
| 38 | |
| 39 | ## Recognizing stalls |
| 40 | |
| 41 | | Condition | Evidence to look for | |
| 42 | | ----------------------------------------------- | --------------------------------------------------------- | |
| 43 | | A run died | An outcome is in progress without a live run | |
| 44 | | A human has not responded | A human-assigned item remains ready past a threshold | |
| 45 | | A dependency no longer supplies what was needed | A blocker was abandoned or its premise changed | |
| 46 | | Demand disappeared | No active root still depends on the outcome | |
| 47 | | A proposal repeatedly fails to land | Successive attempts for the same change fail verification | |
| 48 | |
| 49 | Repeated proposals need a stable identity. For example, four nightly attempts at the same dependency |
| 50 | update should be recognizable as four failures of one intended change. Treating each generated |
| 51 | branch as unrelated work would hide the recurrence. |
| 52 | [[ida-93e4f91]](ida-93e4f91-changes-not-branches.md) explores the required change identity. |
| 53 | |
| 54 | ## Possible responses |
| 55 | |
| 56 | A lease could associate an in-progress outcome with a live run. If the lease expires, the controller |
| 57 | could make the outcome available again. |
| 58 | |
| 59 | Repeated failure could trigger escalation to another actor, including a human. An unanswered human |
| 60 | request might be redirected where policy permits. A counter and threshold for one repeatedly failing |
| 61 | proposal can be useful before the broader attention-routing design is settled. |
| 62 | |
| 63 | Outcomes no longer needed by an active root would stop receiving automatic work. They could then be |
| 64 | reviewed for archival or removal from the active graph. |
| 65 | |
| 66 | These responses need limits. |
| 67 | [[bd-5cb2034]](../bugs/bd-5cb2034-unbounded-loops-under-demand-pressure.md) examines retry and |
| 68 | decomposition budgets, and [[bd-c4d069b]](../bugs/bd-c4d069b-git-churn-from-task-state.md) examines |
| 69 | the cost of storing frequent coordination updates in Git. |
| 70 | |
| 71 | ## Relationship to build scheduling |
| 72 | |
| 73 | The dependency traversal resembles a build system: request a result, reuse completed prerequisites, |
| 74 | and schedule the remaining work. Completed outcomes play a role similar to cached build results. |
| 75 | |
| 76 | The analogy helps explain scheduling, but an outcome may depend on judgment, changed circumstances, |
| 77 | or mutable state. The controller needs explicit completion and invalidation rules for those cases. |
| 78 | |
| 79 | The [architecture](../../design/architecture.md#work-from-outcomes-and-dependencies) records the |
| 80 | high-level commitment. [[oc-f3bcfd0]](../outcomes/oc-f3bcfd0-s1-holds.md) and |
| 81 | [[oc-fc348f0]](../outcomes/oc-fc348f0-hetzner-mechanism.md) provide the initial examples, including |
| 82 | work deliberately blocked on a human choice. |