| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-2aa1a12 |
| 4 | status: proposed |
| 5 | title: valley crossed its first graduation tripwire — graduate, or prototype mode until the spec hardens |
| 6 | created: 2026-07-17 |
| 7 | source: Phase 1 landing and design conversation, 2026-07-17 |
| 8 | --- |
| 9 | |
| 10 | # valley crossed its first graduation tripwire |
| 11 | |
| 12 | The dependency tripwire in [[dcr-74c3158]] |
| 13 | ([dcr-74c3158-valley-cli-lifecycle.md](./dcr-74c3158-valley-cli-lifecycle.md)) is crossed: the |
| 14 | `tail` and `replay` verbs need the nats CLI, beyond git and coreutils. The line-count tripwire |
| 15 | (~300) is close behind. Per the lifecycle policy, crossing triggers a deliberate decision, recorded |
| 16 | here. |
| 17 | |
| 18 | Two real options: |
| 19 | |
| 20 | 1. **Graduate now** — own repo, a real language (Go is the house pattern). Buys tests and robust |
| 21 | parsing; costs ceremony while the verb surface is six verbs in one file. |
| 22 | 2. **Prototype mode until the spec hardens.** Everything built along the roadmap is a prototype, |
| 23 | deliberately, all the way through; re-engineering happens once against a robust and durable spec |
| 24 | rather than piecemeal at code-size tripwires. The lifecycle policy's dependency and line-count |
| 25 | tripwires encode the assumption that rewrites are expensive and code must therefore stay |
| 26 | continuously maintainable — but re-engineering from a hard spec is what the agent toolbox makes |
| 27 | cheap ([[ida-4557af7]], |
| 28 | [ida-4557af7-spec-driven-iteration.md](../ideas/ida-4557af7-spec-driven-iteration.md): |
| 29 | implementations become derived artifacts). Precedent: klaus already lives this way — a frozen |
| 30 | GitHub-shaped prototype, fix only what bleeds, re-engineered against the valley spec at Phase 4. |
| 31 | |
| 32 | Under option 2, one tripwire survives, transformed: **behavior that exists only in the prototype**. |
| 33 | A prototype may grow only as fast as its spec — schemas, conformance checks, design docs — so the |
| 34 | prototype is never the sole description of the system and regeneration stays possible at any moment. |
| 35 | Phase 1 met that bar (schema/events.cue, the closedness checks, the bus-e2e check); the review verbs |
| 36 | currently do not — `valley review`'s behavior lives only in bin/valley. Adopting option 2 supersedes |
| 37 | [[dcr-74c3158]]'s size-and-dependency tripwires with that single spec-coverage tripwire. |
| 38 | |
| 39 | Status: proposed — undecided until reviewed. |