| 1 | --- |
| 2 | type: decision |
| 3 | id: dcr-74c3158 |
| 4 | status: decided |
| 5 | title: "valley CLI: born as a shell script in-engine, graduates deliberately" |
| 6 | created: 2026-07-13 |
| 7 | source: 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 | |
| 14 | The `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 | |
| 18 | Graduation 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)) |