gunk-dev/the-valley

ida-3145b7a-demand-pressure.md

sourceeef7c167174fmain's published tip history
4.7 KiB · Rendered
1---
2type: idea
3id: ida-3145b7a
4status: exploring
5title: Actors in the graph + demand pressure as anti-stall
6created: 2026-07-02
7source: owner
8---
9
10# Actors in the graph + demand pressure as anti-stall
11
12> Extends the adopted outcome-DAG sketch: [[ida-eac723e]] ([ida-eac723e-outcome-dag.md](./ida-eac723e-outcome-dag.md)); the thin bet is [architecture.md § the knowledge graph read generatively — an outcome DAG](../../design/architecture.md#bet-the-knowledge-graph-read-generatively--an-outcome-dag). Status is *exploring*, not adopted — this node is an experiment candidate, and its first test is already running: the seeded [outcomes/](../outcomes/) DAG rooted at [[oc-f3bcfd0]] ([oc-f3bcfd0-s1-holds.md](../outcomes/oc-f3bcfd0-s1-holds.md)).
13
14**The owner's core idea, faithfully:** agents — human and AI — can play parts in the outcome graph and be scheduled to unblock productions, so that there is a form of standing pressure toward producing the final node: an anti-stall mechanism.
15
16Everything below the next heading is development of that idea, not part of it.
17
18## Heterogeneous actor pool
19
20Humans and AI agents are the same kind of participant: schedulable actors with capabilities. What differs is how dispatch reaches them — an AI agent is *spawned* (klaus-shaped, as in the adopted sketch's dispatch section), while a human's *attention is routed* to the blocked node. Same scheduler, two delivery mechanisms.
21
22Stated plainly, the consequence: the priority-layer question that [[ida-eac723e]] split in two — **work-scheduling** vs **attention-routing** — partially *reunifies*. Attention-routing is work-scheduling for the actor class that cannot be spawned. A human-blocked outcome is not a different kind of thing from an agent-dispatchable one; it is a frontier node whose assigned actor happens to be reached by notification rather than by process creation. (The firehose half of attention-routing — what a human must *see* across all finished work — stays a separate open question; only the "human as blocking producer" half folds back in.)
23
24## Pressure is standing, not event-shaped
25
26Demand propagates from live root outcomes down the `blocked_by` closure, exactly as priority does in the adopted sketch — but the controller does not dispatch once and forget. It continuously reconciles *what should be moving but isn't*: level-triggered, not edge-triggered, the same reconcile-don't-just-react controller principle the rest of the architecture leans on. An event kicks a recompute sooner; the absence of events never means the absence of pressure.
27
28## Stall is the named failure mode
29
30Naming the failure mode makes anti-stall designable. A small taxonomy:
31
32| Stall | Signature |
33| --- | --- |
34| Agent run died silently | Outcome stuck `in-progress`, no live run behind it |
35| Blocked on an unresponsive human | Human-actor frontier node open past a threshold |
36| Dependency went stale | A blocker closed as `abandoned`, or its premise no longer holds |
37| Orphaned outcome | No path from any live root — demand for it is gone |
38
39Candidate mechanisms, one per stall class: **leases** on `in-progress` with expiry (a run that dies loses its lease and the node returns to the frontier — the adopted sketch's staleness threshold, made explicit); **escalation** to a different actor class (an unresponsive human's node can be re-routed, or an agent's repeated failure escalated to a human); **re-dispatch** for dead runs; and the inverse for orphans — outcomes with no path to a live root *lose* pressure and become garbage-collectible, an anti-clutter mechanism for free.
40
41## The Nix resonance
42
43This is `nix build` for work: you demand the final artifact and the graph schedules everything required to produce it, caching what is already done. Closed outcomes are cache hits; the frontier is the build plan; pressure is the outstanding derivation. A Nix-native system whose work management mirrors its build semantics is pleasingly self-similar.
44
45## Why it matters
46
47Without pressure the graph is a passive tracker — an issue list with extra steps. Pressure is what makes it a production *engine*: the standing force that turns "here is what blocks what" into "this is being produced." It is load-bearing for the **recursive, transparent outcome-production engine** framing in the [README](../../README.md).
48
49## Related
50
51- The sketch this extends: [[ida-eac723e]] ([ida-eac723e-outcome-dag.md](./ida-eac723e-outcome-dag.md))
52- The thin bet: [architecture.md § the knowledge graph read generatively — an outcome DAG](../../design/architecture.md#bet-the-knowledge-graph-read-generatively--an-outcome-dag)
53- First test: the live [outcomes/](../outcomes/) DAG rooted at [[oc-f3bcfd0]], with [[oc-fc348f0]] as the first deliberately human-blocked frontier item