gunk-dev/the-valley

ida-5a59fef-one-plumbing-for-every-loop.md

sourcebc331c79617cmain's published tip history
4.2 KiB · Rendered
1---
2type: idea
3id: ida-5a59fef
4status: exploring
5title: One uniform plumbing carries every self-improving loop
6created: 2026-08-05
7source: design conversation, 2026-08-05
8---
9
10# One uniform plumbing carries every self-improving loop
11
12The engineering goal is the plumbing: one substrate by which all of the system's feedback loops can
13self-improve, with the design as simple and uniform as possible. The individual loops matter less
14than the shared shape that carries them.
15
16## The anatomy — five shared pieces
17
18Every loop is built from the same five pieces:
19
20- **Sense.** Signals arrive under the three signal contracts — domain events, metrics, and logs —
21 decided in [[dcr-62ecc36]]
22 ([dcr-62ecc36-signal-contracts.md](../decisions/dcr-62ecc36-signal-contracts.md)).
23- **Remember.** The promotion ladder distills decaying raw signal into durable insight events and,
24 where warranted, knowledge-graph nodes.
25- **Orient.** Derived views over the one history.
26- **Decide.** A declared policy: a CUE document versioned in a repository, per the pattern
27 [[ida-1ec03b1]]
28 ([ida-1ec03b1-path-scoped-verification-policy.md](./ida-1ec03b1-path-scoped-verification-policy.md))
29 establishes — policy is data.
30- **Act.** A controller subscribing to events and acting through gated effects — the reactive
31 controller pattern of [architecture.md](../../design/architecture.md#the-concerns-unbundled), with
32 effects crossing the boundary in [[ida-f1b39e8]]
33 ([ida-f1b39e8-outbound-effects-pass-through-an-actuator.md](./ida-f1b39e8-outbound-effects-pass-through-an-actuator.md))'s
34 direction.
35
36A new loop adds exactly two artifacts: a policy document and a controller. Nothing else is ever new.
37A proposed loop that needs a sixth piece is evidence against the proposal.
38
39## Self-improvement is ordinary change authorship
40
41A loop improves itself by authoring a change to its own policy document, and that change lands
42through the same integration path as any change: review, verification, and the gates the policy's
43path class requires ([[ida-1ec03b1]]). Self-improvement therefore needs no mechanism of its own and
44escapes no oversight — it is ordinary change authorship. This makes
45[self-transparency.md](../../design/self-transparency.md)'s candidate invariant operational: the
46system's own configuration is an outcome, produced and integrated exactly like code. Where a policy
47class requires human presence, the gate of [[ida-b7025b5]]
48([ida-b7025b5-human-decisions-are-signed-acts.md](./ida-b7025b5-human-decisions-are-signed-acts.md))
49applies to the loop's own improvements automatically. Uniformity is what makes self-improvement
50safe, not an aesthetic preference.
51
52## The instances
53
54Each of these is an instance of the shape:
55
56- The neural-node performance loop and its task-sizing function — [[ida-a006b02]]
57 ([ida-a006b02-ooda-over-neural-nodes.md](./ida-a006b02-ooda-over-neural-nodes.md)).
58- The observability loop — [[ida-f16bd96]]
59 ([ida-f16bd96-the-system-observes-itself.md](./ida-f16bd96-the-system-observes-itself.md)).
60- Retention policy tuned by the observed value of what is retained — part of the signal-contracts
61 decision [[dcr-62ecc36]].
62- The trust loop already designed in [verification.md](../../design/verification.md), where confirm
63 rates drive revocation.
64
65## The today-form
66
67Every loop named above already runs, manually: incidents become bug nodes, corrections become
68restatements, and dispatch sizing is a practiced habit about to become a declared default. The shape
69is already the practice; mechanization replaces the executor, not the shape. This is [[ida-b48bded]]
70([ida-b48bded-production-dags-and-events.md](./ida-b48bded-production-dags-and-events.md))'s arc
71applied to the loops themselves: the neural closure of a loop self-obsolesces into a deterministic
72controller.
73
74## Open
75
76- Which loop mechanizes first.
77- Whether a controller that authors policy changes needs its own authority class — what a delegation
78 bundle for "may propose changes to policy X" looks like ([[ida-a8243d2]]
79 ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](./ida-a8243d2-agent-runs-act-under-delegated-authority.md))).
80- How loop health is itself observed without infinite regress — the loop that watches the loops.