gunk-dev/the-valley

ida-3145b7a-demand-pressure.md

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