gunk-dev/the-valley

dcr-74c3158-valley-cli-lifecycle.md

source601b054bc28emain's published tip history
1.4 KiB · Rendered
1---
2type: decision
3id: dcr-74c3158
4status: decided
5title: "valley CLI: born as a shell script in-engine, graduates deliberately"
6created: 2026-07-13
7source: ratified 2026-07-13
8---
9
10# valley CLI: born as a shell script in-engine, graduates deliberately
11
12**Decided 2026-07-13.**
13
14The `valley` CLI lives at [`bin/valley`](../../../bin/valley) in the engine repo because its verbs
15are engine-generic — `pending` and `review` serve any valley project's integrator, not just this
16one. It ships two ways: run directly from any checkout, or as the flake package
17(`nix run .#valley`). It is deliberately a shell script — runs from any checkout, no machinery — the
18portability stance of [[ida-b9f646c]].
19
20**Tripwires.** It graduates to its own repo and a real language the moment ANY of these is crossed:
21it grows past ~300 lines; it needs persistent state, config, or a daemon; it needs dependencies
22beyond git + coreutils (Phase 1's `valley tail` will trip this); its behavior gets subtle enough to
23need real tests; it needs nontrivial parsing or concurrency.
24
25Graduation is a deliberate act recorded as a decision node — precedent: klaus, born in cosmo,
26graduated deliberately. The anti-goal this guards against: a massive bash project that no human —
27and sometimes no machine — can understand.
28
29## Related
30
31- The portability stance this instantiates: [[ida-b9f646c]]
32 ([ideas/ida-b9f646c-nix-backend-not-substrate.md](../ideas/ida-b9f646c-nix-backend-not-substrate.md))