gunk-dev/the-valley

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

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