gunk-dev/the-valley

ida-f16bd96-the-system-observes-itself.md

source5cf60500fab4main's published tip history
2.6 KiB · Rendered
1---
2type: idea
3id: ida-f16bd96
4status: exploring
5title: "Detect operational problems and use the results to improve the system"
6created: 2026-08-05
7source: design conversation, 2026-08-05
8---
9
10# Detect operational problems and use the results to improve the system
11
12The-valley should detect and report operational failures without waiting for someone to inspect
13logs. Relevant observations include convergence latency, mirror failures, backup results, bus
14health, and the results of agent work.
15
16The system should retain enough evidence to explain what happened and support an appropriate
17response.
18
19## Detection and records
20
21[S4](../../design/user-scenarios.md#the-rest-of-the-ladder) requires consequences to be traceable
22through a shared history. Detected incidents can contribute to that history as durable events and,
23where useful, bug nodes.
24
25[[dcr-62ecc36]](../decisions/dcr-62ecc36-signal-contracts.md) defines separate contracts for events,
26metrics, and logs. Metrics may lose samples; durable findings and decisions have stronger retention
27requirements.
28
29[[ida-b48bded]](ida-b48bded-production-dags-and-events.md) describes an incident as evidence that an
30outcome believed to be satisfied may need more work.
31
32## Response
33
34A detector can report a problem or initiate a permitted response. The policy must distinguish those
35cases.
36
37[[ida-a006b02]](ida-a006b02-ooda-over-neural-nodes.md) applies the same observation-and-adjustment
38pattern to agent dispatch. The broader operational loop also covers deterministic services.
39
40Reusable collectors, views, and controllers should support the
41[minimality constraint](../../design/requirements.md). Project findings must remain connected to the
42authoritative history, with the interface and storage choices serving that requirement.
43
44## Constraints
45
46Automated consumers acting on bus events require authenticated events and suitable permissions.
47[[bd-d853d9c]](../bugs/bd-d853d9c-bus-unauthenticated.md) tracks that dependency.
48
49Detection rules and responding controllers are system configuration. Changes to them must be
50versioned and governed under [self-transparency.md](../../design/self-transparency.md).
51
52## Open questions
53
54Which failures should be detected first, and within what delay? What makes a detected incident worth
55a graph node? How should noise and repeated reports be handled? Which responses can run
56autonomously, and which require a person?
57
58The [effectful-reactions work](../../design/roadmap.md#phase-5--effectful-reactions) and
59[feedback work](../../design/roadmap.md#phase-7--feedback-and-incident-memory) provide the broader
60implementation context.