| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-2aa1a12 |
| 4 | status: proposed |
| 5 | title: "Decide when to replace the valley CLI prototype" |
| 6 | created: 2026-07-17 |
| 7 | source: Phase 1 landing and design conversation, 2026-07-17 |
| 8 | --- |
| 9 | |
| 10 | # Decide when to replace the valley CLI prototype |
| 11 | |
| 12 | The CLI has exceeded the dependency limit set by |
| 13 | [[dcr-74c3158]](dcr-74c3158-valley-cli-lifecycle.md): its `tail` and `replay` commands require the |
| 14 | NATS CLI. A decision is needed on whether to move it to a separate repository and implementation |
| 15 | language, or continue prototyping while developing a durable specification. |
| 16 | |
| 17 | This decision remains proposed. The existing lifecycle policy has not been superseded. |
| 18 | |
| 19 | ## Options under consideration |
| 20 | |
| 21 | Moving the CLI now would make structured parsing and testing easier. Go is the established |
| 22 | implementation language elsewhere in the project. The cost is maintaining a separate project while |
| 23 | the command interface is still developing. |
| 24 | |
| 25 | Continuing the prototype would allow the interface and specification to develop together. The |
| 26 | argument for this approach is that an implementation can be replaced from a sufficiently complete |
| 27 | specification and conformance suite, as explored in |
| 28 | [[ida-4557af7]](../ideas/ida-4557af7-spec-driven-iteration.md). Klaus provides a related example: |
| 29 | its GitHub-based prototype is intended to inform a later implementation against the valley design. |
| 30 | |
| 31 | Under the second option, specification coverage would become the limit on prototype growth. New |
| 32 | behavior would need a schema, conformance check, or design description sufficient to reproduce it. |
| 33 | Size and dependency count would no longer independently require a rewrite. |
| 34 | |
| 35 | The event schema and bus checks provide examples of that coverage. The CLI's review behavior needs |
| 36 | the same assessment: behavior present only in `bin/valley` would prevent the prototype from being |
| 37 | safely replaced from its specification. |
| 38 | |
| 39 | ## Decision needed |
| 40 | |
| 41 | Choose between immediate separation and continued prototyping under a specification-coverage rule. |
| 42 | Adopting the latter requires explicitly superseding the size and dependency rules in |
| 43 | [[dcr-74c3158]](dcr-74c3158-valley-cli-lifecycle.md). |