| 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`), writing an integration |
| 17 | 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 checks --build # ask the host's check worker to build them |
| 31 | valley ready --stamp # stamp a Change-Id, push, and mark v1 ready |
| 32 | valley pending # list ready changes and what each awaits |
| 33 | valley review kqxm # inspect the diff (and interactively approve) |
| 34 | ``` |
| 35 | |
| 36 | ## Configuration and current status |
| 37 | |
| 38 | - **Configuration vs. guarantees:** Sealing `main` against direct SSH pushes, choosing which |
| 39 | principals may approve, and enabling the integrator or identity compiler are host choices |
| 40 | (`valley.cue`, `services.valley`); push mirrors receive only `main` and tags, not |
| 41 | [project storage](./docs/concepts.md#records-project-storage-the-plan-graph-and-knots). |
| 42 | - **Not built yet:** Automatic approval carry across restacks and hardware-key (`sk-*`) touch-bound |
| 43 | approval envelopes are not built yet. |
| 44 | |
| 45 | ## Documentation |
| 46 | |
| 47 | - **[Concepts and glossary](./docs/concepts.md)** — Core concepts and every term defined. |
| 48 | - **[Guide](./docs/guide.md)** — Setup and everyday journeys for authors, reviewers, planners, |
| 49 | administrators, and contributors. |
| 50 | - **[Reference](./docs/reference.md)** — CLI commands, environment variables, ref layout, wire |
| 51 | formats, JSON outputs, and CUE schemas. |
| 52 | - **[Architecture](./docs/architecture.md)** — Component design, policy, identity, and checks. |
| 53 | - **[Security](./docs/security.md)** — Threat model, trust boundaries, and rollout gates. |
| 54 | - **[Plan graph](./docs/concepts.md#records-project-storage-the-plan-graph-and-knots)** — The |
| 55 | project's plan lives in the plan graph (`valley plan` on `refs/the-valley/knots`), which the |
| 56 | host's mirror publisher does not copy to mirrors. |
| 57 | - **[flow](./flow/README.md)** — Launch and follow coding agents with `valley flow`. |
| 58 | - **[Archive](./archive/)** and **[Research](./research/)** — Historical nodes and research notes. |