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