| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-f16bd96 |
| 4 | status: exploring |
| 5 | title: The system observes itself |
| 6 | created: 2026-08-05 |
| 7 | source: design conversation, 2026-08-05 |
| 8 | --- |
| 9 | |
| 10 | # The system observes itself |
| 11 | |
| 12 | The system has state-of-the-art observability as a goal: metrics, error detection, and runtime |
| 13 | insights — detected by the system itself, reported, and acted on. Not best-effort logging a human |
| 14 | reads after the fact; the bar is that the system notices before a human does. |
| 15 | |
| 16 | ## The skeleton already exists |
| 17 | |
| 18 | The design holds the pieces this goal raises the bar on: |
| 19 | |
| 20 | - **The scenario.** [S4](../../design/user-scenarios.md#the-rest-of-the-ladder): consequences just |
| 21 | happen, and "why did X occur" is answerable from one history. |
| 22 | - **The acting half.** Reactive controllers |
| 23 | ([roadmap Phase 5](../../design/roadmap.md#phase-5--effectful-reactions-armstrong-as-controller)) |
| 24 | act on events; feedback and incident memory |
| 25 | ([roadmap Phase 7](../../design/roadmap.md#phase-7--feedback--incident-memory)) remembers them. |
| 26 | - **The remembering half, already in practice.** Incidents become bug nodes in the graph — |
| 27 | operational friction has produced `bd-` nodes directly — and [[ida-b48bded]] |
| 28 | ([ida-b48bded-production-dags-and-events.md](./ida-b48bded-production-dags-and-events.md)) frames |
| 29 | an incident as an event invalidating the observed satisfaction of a root. |
| 30 | |
| 31 | ## What the goal adds |
| 32 | |
| 33 | 1. **Detection, not discovery.** Failures currently surface when a human looks. The goal inverts |
| 34 | that: errors and anomalies are detected by the system and reported unprompted. Operational |
| 35 | history shows the cost of the current state — a broken build can sit for hours before anyone |
| 36 | notices. |
| 37 | 2. **Metrics are a named signal class.** Rates, latencies, error counts, resource use. Their |
| 38 | placement follows an existing carve-out: [architecture.md](../../design/architecture.md) |
| 39 | designates an ephemeral cross-system event class for which the bus is the source of truth, and |
| 40 | metrics belong to it — so metrics arrive without violating the rule that durable events are a |
| 41 | projection of git. |
| 42 | 3. **The loop closes.** Detected errors and insights feed decisions — the same observe, orient, |
| 43 | decide, act shape as the neural-node performance loop ([[ida-a006b02]] |
| 44 | ([ida-a006b02-ooda-over-neural-nodes.md](./ida-a006b02-ooda-over-neural-nodes.md))). That loop is |
| 45 | one instance of this goal; this node states the general one, which covers deterministic machinery |
| 46 | as well: convergence latency, mirror pushes, backup runs, bus health. |
| 47 | |
| 48 | ## Unification, not a platform |
| 49 | |
| 50 | State-of-the-art does not mean adopting a monitoring platform. The Minimal constraint |
| 51 | ([requirements.md](../../design/requirements.md)) holds that small composed tools stay |
| 52 | understandable while platforms accrete, and the differentiating property here is unification: |
| 53 | insights are derived views over the one history, not a parallel telemetry silo with its own truth. |
| 54 | An observability stack imported wholesale would be a second platform inside a system built to escape |
| 55 | platforms. |
| 56 | |
| 57 | ## Constraints |
| 58 | |
| 59 | - Anything that acts on a detection is an automated bus consumer, and [[bd-d853d9c]] |
| 60 | ([bd-d853d9c-bus-unauthenticated.md](../bugs/bd-d853d9c-bus-unauthenticated.md)) gates automated |
| 61 | consumers on bus authentication. The acting half waits on that fix. |
| 62 | - The observability machinery is itself system output. The candidate invariant of |
| 63 | [self-transparency.md](../../design/self-transparency.md) applies: the thing that watches the |
| 64 | system is governed, versioned, and transparent like the system. |
| 65 | |
| 66 | ## Open |
| 67 | |
| 68 | - What state-of-the-art means concretely — which signals, what latency of detection, whether |
| 69 | anything SLO-shaped exists here — without importing a platform's vocabulary wholesale. |
| 70 | - Whether detected incidents open graph nodes automatically, and what distinguishes an incident |
| 71 | worth a node from noise. |
| 72 | - What the system may act on autonomously versus what it may only report — actions with blast radius |
| 73 | meet the same gates as any effect. |