| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-b48bded |
| 4 | status: exploring |
| 5 | title: "Outcomes as production: can DAGs and events weave?" |
| 6 | created: 2026-07-16 |
| 7 | source: design conversations, 2026-07-16/17 |
| 8 | --- |
| 9 | |
| 10 | # Outcomes as production: can DAGs and events weave? |
| 11 | |
| 12 | A central pillar of the architecture is a bet to be tested: most valuable outcomes can be modeled |
| 13 | as *production* — the result of computing and satisfying a DAG. But DAGs and event-based systems |
| 14 | have very different topologies and control flow. The question: can the two be woven naturally, or |
| 15 | not? |
| 16 | |
| 17 | ## What about the SDLC is DAG-shaped |
| 18 | |
| 19 | An existing build target has an a priori DAG: a transitive closure of inputs that produce the thing |
| 20 | that meets some behavior requirement. Development is the process of manifesting the DAG of a root |
| 21 | node in the future whose spec is yet to be satisfied. A build is a completed development — the same |
| 22 | DAG seen after the fact. The development process does not look like a DAG while it runs because the |
| 23 | missing structure is not known yet, not because the work has a different shape; the engine must |
| 24 | suspend and resume as structure appears rather than plan-then-execute ("Build Systems à la Carte" |
| 25 | studies exactly this axis). |
| 26 | |
| 27 | Two kinds of compute do the manifesting. Deterministic compute executes code that exists. Neural |
| 28 | compute — human or LLM agents — manifests the missing deterministic instructions in the stack. |
| 29 | While the root node does not satisfy its requirements, neural nodes produce the elements needed to |
| 30 | deterministically produce a satisfying artifact. The formal signature: deterministic nodes are |
| 31 | graph-preserving (they execute known edges); neural nodes are graph-extending (their output is new |
| 32 | graph structure). A neural node's end goal is to put itself out of business, automating as much as |
| 33 | it can with deterministic nodes — the graduation policy ([[dcr-74c3158]], |
| 34 | [dcr-74c3158-valley-cli-lifecycle.md](../decisions/dcr-74c3158-valley-cli-lifecycle.md)) |
| 35 | generalized to all neural work. |
| 36 | |
| 37 | Pressure ([[ida-3145b7a]], [ida-3145b7a-demand-pressure.md](./ida-3145b7a-demand-pressure.md)) is |
| 38 | the engine: the system always trying to unblock stalls in the realization of the future DAG. The |
| 39 | root's behavior requirement is what makes "not yet satisfied" decidable, so pressure has a |
| 40 | gradient; the conformance-suite move ([[ida-4557af7]], |
| 41 | [ida-4557af7-spec-driven-iteration.md](./ida-4557af7-spec-driven-iteration.md)) is the same |
| 42 | requirement seen from the spec side. |
| 43 | |
| 44 | ## The weave |
| 45 | |
| 46 | Events at the boundary, the DAG explicit in the middle, levels underneath — the shape k8s, |
| 47 | incremental build systems, and Excel share. Events never drive work; they *invalidate* observed |
| 48 | state. The knowledge graph holds the dependency structure, queryable at rest, and a level-triggered |
| 49 | reconciler compares demand against observation and pulls the frontier. The anti-pattern is reaction |
| 50 | chains that encode the DAG implicitly in event wiring — the failure "a log, not a workflow engine" |
| 51 | ([architecture.md](../../design/architecture.md)) guards against. |
| 52 | |
| 53 | Incidents fit inside the model: an incident is an event invalidating the observed satisfaction of |
| 54 | an already-satisfied root, and pressure resumes. Cycles fit too: review→revise→review is cyclic, |
| 55 | but the artifact dependency structure is acyclic at any instant — versioning turns cycles into |
| 56 | spirals, the same move changes-not-branches makes ([[ida-93e4f91]], |
| 57 | [ida-93e4f91-changes-not-branches.md](./ida-93e4f91-changes-not-branches.md)). |
| 58 | |
| 59 | ## The residue, undecided |
| 60 | |
| 61 | Standing obligations — infrastructure, long-lived services, timers — have no terminal "satisfied" |
| 62 | state; their specs quantify over time. Production claims demanded, terminating work; the standing |
| 63 | layer is delegated to level-triggered convergence, which this stack already runs (armstrong, |
| 64 | cosmo). Perhaps no innovation is needed there — undecided. The Terraform ban does not settle it: |
| 65 | the ban indicts statefulness and the configuration language, not DAGishness, and a reconciler might |
| 66 | still need to compute all the dependencies of, for example, a service to cleanly instantiate it. |
| 67 | |
| 68 | Phase 5 (effectful reactions, [roadmap.md](../../design/roadmap.md)) is where this resolves in |
| 69 | practice: reconciler-against-the-graph, or reaction chains. Deciding early is cheap; refactoring |
| 70 | Phase 5 later is not. |
| 71 | |
| 72 | Extends the outcome-DAG bet ([[ida-eac723e]], |
| 73 | [ida-eac723e-outcome-dag.md](./ida-eac723e-outcome-dag.md)). |