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