gunk-dev/the-valley

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

sourceb865557270a3main's published tip history
1.5 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 by patflynn
8---
9
10# valley CLI: born as a shell script in-engine, graduates deliberately
11
12**Decided by patflynn, 2026-07-13.**
13
14The `valley` CLI lives at [`bin/valley`](../../bin/valley) in the engine repo because its verbs are engine-generic — `pending` and `review` serve any valley project's integrator, not just this one. It ships two ways: run directly from any checkout, or as the flake package (`nix run .#valley`). It is deliberately a shell script — runs from any checkout, no machinery — the portability stance of [[ida-b9f646c]].
15
16**Tripwires.** It graduates to its own repo and a real language the moment ANY of these is crossed: it grows past ~300 lines; it needs persistent state, config, or a daemon; it needs dependencies beyond git + coreutils (Phase 1's `valley tail` will trip this); its behavior gets subtle enough to need real tests; it needs nontrivial parsing or concurrency.
17
18Graduation is a deliberate act recorded as a decision node — precedent: klaus, born in cosmo, graduated deliberately. The anti-goal this guards against: a massive bash project that no human — and sometimes no machine — can understand.
19
20## Related
21
22- The portability stance this instantiates: [[ida-b9f646c]] ([ideas/ida-b9f646c-nix-backend-not-substrate.md](../ideas/ida-b9f646c-nix-backend-not-substrate.md))