gunk-dev/the-valley

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

source6b125788140fmain's published tip history
4.1 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 — a
21 decision pending on branch dcr/signal-contracts.
22- **Remember.** The promotion ladder distills decaying raw signal into durable insight events and,
23 where warranted, knowledge-graph nodes.
24- **Orient.** Derived views over the one history.
25- **Decide.** A declared policy: a CUE document versioned in a repository, per the pattern
26 [[ida-1ec03b1]]
27 ([ida-1ec03b1-path-scoped-verification-policy.md](./ida-1ec03b1-path-scoped-verification-policy.md))
28 establishes — policy is data.
29- **Act.** A controller subscribing to events and acting through gated effects — the reactive
30 controller pattern of [architecture.md](../../design/architecture.md#the-concerns-unbundled), with
31 effects crossing the boundary in [[ida-f1b39e8]]
32 ([ida-f1b39e8-outbound-effects-pass-through-an-actuator.md](./ida-f1b39e8-outbound-effects-pass-through-an-actuator.md))'s
33 direction.
34
35A new loop adds exactly two artifacts: a policy document and a controller. Nothing else is ever new.
36A proposed loop that needs a sixth piece is evidence against the proposal.
37
38## Self-improvement is ordinary change authorship
39
40A loop improves itself by authoring a change to its own policy document, and that change lands
41through the same integration path as any change: review, verification, and the gates the policy's
42path class requires ([[ida-1ec03b1]]). Self-improvement therefore needs no mechanism of its own and
43escapes no oversight — it is ordinary change authorship. This makes
44[self-transparency.md](../../design/self-transparency.md)'s candidate invariant operational: the
45system's own configuration is an outcome, produced and integrated exactly like code. Where a policy
46class requires human presence, the gate of [[ida-b7025b5]]
47([ida-b7025b5-human-decisions-are-signed-acts.md](./ida-b7025b5-human-decisions-are-signed-acts.md))
48applies to the loop's own improvements automatically. Uniformity is what makes self-improvement
49safe, not an aesthetic preference.
50
51## The instances
52
53Each of these is an instance of the shape:
54
55- The neural-node performance loop and its task-sizing function — "An OODA loop over neural nodes",
56 pending on branch idea/ooda-over-neural-nodes.
57- The observability loop — "The system observes itself", pending on branch
58 idea/the-system-observes-itself.
59- Retention policy tuned by the observed value of what is retained — part of the signal-contracts
60 decision, pending on branch dcr/signal-contracts.
61- The trust loop already designed in [verification.md](../../design/verification.md), where confirm
62 rates drive revocation.
63
64## The today-form
65
66Every loop named above already runs, manually: incidents become bug nodes, corrections become
67restatements, and dispatch sizing is a practiced habit about to become a declared default. The shape
68is already the practice; mechanization replaces the executor, not the shape. This is [[ida-b48bded]]
69([ida-b48bded-production-dags-and-events.md](./ida-b48bded-production-dags-and-events.md))'s arc
70applied to the loops themselves: the neural closure of a loop self-obsolesces into a deterministic
71controller.
72
73## Open
74
75- Which loop mechanizes first.
76- Whether a controller that authors policy changes needs its own authority class — what a delegation
77 bundle for "may propose changes to policy X" looks like ([[ida-a8243d2]]
78 ([ida-a8243d2-agent-runs-act-under-delegated-authority.md](./ida-a8243d2-agent-runs-act-under-delegated-authority.md))).
79- How loop health is itself observed without infinite regress — the loop that watches the loops.