gunk-dev/the-valley

ida-4557af7-spec-driven-iteration.md

sourceb40fcdedd01cmain's published tip history
2.2 KiB · Rendered
1---
2type: idea
3id: ida-4557af7
4status: exploring
5title: "Develop specifications and conformance checks as components mature"
6created: 2026-07-15
7source: 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
12As each component matures, the project could maintain a precise specification and conformance suite
13from which implementations can be developed or replaced. Prototyping would help discover the
14contract; the contract would then preserve the behavior that matters.
15
16The host configuration already demonstrates part of this approach.
17[schema/valley.cue](../../schema/valley.cue) defines the data model, installers consume it, and CUE
18validation checks conformance. [[ida-b9f646c]](ida-b9f646c-nix-backend-not-substrate.md) requires
19the model to remain implementable outside Nix.
20
21The same approach could cover event formats, attestation claims, and integrator invariants. These
22need specifications suited to their behavior, not necessarily the same notation used for data
23shapes.
24
25Agent-assisted implementation makes this worth exploring. If replacing an implementation becomes
26cheaper, more effort can go into the specification and the tests that distinguish a correct
27replacement. This extends the existing practice of deriving requirements from scenarios and the
28roadmap 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
32Specifications should develop component by component when the relevant scenario becomes a priority.
33The 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
43question.