| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-4557af7 |
| 4 | status: exploring |
| 5 | title: "Develop specifications and conformance checks as components mature" |
| 6 | created: 2026-07-15 |
| 7 | source: design conversation, 2026-07-15 — captured imperfect on purpose ("even if it's imperfect, it's there to be polished") |
| 8 | --- |
| 9 | |
| 10 | # Develop specifications and conformance checks as components mature |
| 11 | |
| 12 | As each component matures, the project could maintain a precise specification and conformance suite |
| 13 | from which implementations can be developed or replaced. Prototyping would help discover the |
| 14 | contract; the contract would then preserve the behavior that matters. |
| 15 | |
| 16 | The host configuration already demonstrates part of this approach. |
| 17 | [schema/valley.cue](../../schema/valley.cue) defines the data model, installers consume it, and CUE |
| 18 | validation checks conformance. [[ida-b9f646c]](ida-b9f646c-nix-backend-not-substrate.md) requires |
| 19 | the model to remain implementable outside Nix. |
| 20 | |
| 21 | The same approach could cover event formats, attestation claims, and integrator invariants. These |
| 22 | need specifications suited to their behavior, not necessarily the same notation used for data |
| 23 | shapes. |
| 24 | |
| 25 | Agent-assisted implementation makes this worth exploring. If replacing an implementation becomes |
| 26 | cheaper, more effort can go into the specification and the tests that distinguish a correct |
| 27 | replacement. This extends the existing practice of deriving requirements from scenarios and the |
| 28 | roadmap from requirements, recorded in |
| 29 | [[oc-49555c7]](../outcomes/oc-49555c7-requirements-from-ladder.md) and |
| 30 | [[oc-2fbcd7b]](../outcomes/oc-2fbcd7b-roadmap-rederived.md). |
| 31 | |
| 32 | Specifications should develop component by component when the relevant scenario becomes a priority. |
| 33 | The proposal does not require a complete system specification before useful software can be built. |
| 34 | |
| 35 | ## Open questions |
| 36 | |
| 37 | - Which forms can specify behavior and invariants beyond CUE data shapes? |
| 38 | - Where should conformance suites live, and how should their results gate integration? |
| 39 | - How should specification changes be reviewed and authorized? |
| 40 | - When does a specification change invalidate pending implementation work or its evidence? |
| 41 | |
| 42 | [[ida-93e4f91]](ida-93e4f91-changes-not-branches.md) provides the change model relevant to that last |
| 43 | question. |