gunk-dev/the-valley

dcr-2aa1a12-valley-cli-graduation.md

sourcecd3079668d04main's published tip history
2.2 KiB · Rendered
1---
2type: decision
3id: dcr-2aa1a12
4status: proposed
5title: valley crossed its first graduation tripwire — graduate, or prototype mode until the spec hardens
6created: 2026-07-17
7source: Phase 1 landing and design conversation, 2026-07-17
8---
9
10# valley crossed its first graduation tripwire
11
12The 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
16here.
17
18Two real options:
19
201. **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.
222. **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
32Under option 2, one tripwire survives, transformed: **behavior that exists only in the prototype**.
33A prototype may grow only as fast as its spec — schemas, conformance checks, design docs — so the
34prototype is never the sole description of the system and regeneration stays possible at any moment.
35Phase 1 met that bar (schema/events.cue, the closedness checks, the bus-e2e check); the review verbs
36currently 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
39Status: proposed — undecided until reviewed.