gunk-dev/the-valley

README.md

sourced7aca57f4c15main's published tip history
3.5 KiB · Rendered
1# the-valley
2
3the-valley is a software change, verification, and planning system for teams where humans and
4autonomous agents build together. Like a valley, it is the low place where streams of work meet and
5settle into `main`.
6
7## How a change moves
8
91. **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`).
132. **Review** — An operator lists ready changes (`valley pending`) and inspects one
14 (`valley review <change>`).
153. **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.
184. **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
28valley plan # view the live plan graph (knots)
29valley checks # list checks required for your diff
30valley ready --stamp # stamp a Change-Id, push, and mark v1 ready
31valley pending # list ready changes and what each awaits
32valley 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- **[Guide](./docs/guide.md)** — Setup and everyday journeys for authors, reviewers, planners,
52 administrators, and contributors.
53- **[Reference](./docs/reference.md)** — CLI commands, environment variables, ref layout, wire
54 formats, JSON outputs, and CUE schemas.
55- **[Architecture](./docs/architecture.md)** — Component design, policy, identity, and checks.
56- **[Security](./docs/security.md)** — Threat model, trust boundaries, and rollout gates.
57- **[Plan graph](./docs/concepts.md#records-project-storage-the-plan-graph-and-knots)** — The
58 project's plan lives in the plan graph (`valley plan` on `refs/the-valley/knots`), which the
59 host's mirror publisher does not mirror to GitHub.
60- **[Archive](./archive/)** and **[Research](./research/)** — Historical nodes and research notes.