| 1 | # the-valley |
| 2 | |
| 3 | the-valley is a software change, verification, and planning system for teams where humans and |
| 4 | autonomous agents build together. Like a valley, it is the low place where streams of work meet and |
| 5 | settle into `main`. |
| 6 | |
| 7 | ## How a change moves |
| 8 | |
| 9 | 1. **Author** — A person or agent commits work, inspects the |
| 10 | [checks](./docs/concepts.md#checks-and-evidence) the |
| 11 | [change](./docs/concepts.md#a-change-ready-approve-submitted) **requires** (`valley checks`), and |
| 12 | marks it **ready** (`valley ready`). |
| 13 | 2. **Review** — An operator lists ready changes (`valley pending`) and inspects one |
| 14 | (`valley review <change>`). |
| 15 | 3. **Approve** — A [principal](./docs/concepts.md#principals-and-grants) allowed to approve approves |
| 16 | the change (`valley approve <change>`, or `[a]pprove` in `valley review`), running and signing |
| 17 | the required checks and writing an integration request for that commit. |
| 18 | 4. **Integrate** — When enabled on the |
| 19 | [host](./docs/concepts.md#the-host-the-hook-and-the-integrator), the **integrator** checks each |
| 20 | request, verifies a ready change's signed check evidence against the verification policy, and |
| 21 | records an outcome. When the change passes and integrates cleanly into `main`, the integrator |
| 22 | signs the transfer, advances `main`, and stores the signed evidence so the change is |
| 23 | **submitted**. |
| 24 | |
| 25 | ## Quick tour |
| 26 | |
| 27 | ```sh |
| 28 | valley plan # view the live plan graph (knots) |
| 29 | valley checks # list checks required for your diff |
| 30 | valley ready --stamp # stamp a Change-Id, push, and mark v1 ready |
| 31 | valley pending # list ready changes and what each awaits |
| 32 | valley review kqxm # inspect the diff (and interactively approve) |
| 33 | ``` |
| 34 | |
| 35 | ## Configuration and current status |
| 36 | |
| 37 | - **Configuration vs. guarantees:** Sealing `main` against direct SSH pushes, choosing which |
| 38 | principals may approve, and enabling the integrator or identity compiler are host choices |
| 39 | (`valley.cue`, `services.valley`); push mirrors receive only `main` and tags, not |
| 40 | [project storage](./docs/concepts.md#records-project-storage-the-plan-graph-and-knots). |
| 41 | - **Not built yet:** For restacking, the rebase library behind `valley rebase` and `[b]ase` in |
| 42 | `valley review`, the host's `restack` grant and report validation, and the read-only planner |
| 43 | (`valley-restacker once --report-only`) are built, while the service that rebases ready changes |
| 44 | automatically after each landing is not built or running yet. Automatic approval carry across |
| 45 | restacks, skipping already-attested checks in `valley approve`, hardware-key (`sk-*`) touch-bound |
| 46 | approval envelopes, and atomic multi-ref landing transactions are also not built yet. |
| 47 | |
| 48 | ## Documentation |
| 49 | |
| 50 | - **[Concepts and glossary](./docs/concepts.md)** — Core concepts and every term defined. |
| 51 | - **[Architecture](./docs/architecture.md)** — Component design, policy, identity, and checks. |
| 52 | - **[Security](./docs/security.md)** — Threat model, trust boundaries, and rollout gates. |
| 53 | - **[Archive](./archive/)** and **[Research](./research/)** — Historical nodes and research notes. |