| 1 | # the-valley |
| 2 | |
| 3 | > "Whatever." |
| 4 | |
| 5 | A space to rethink developer workflow and source management from scratch. |
| 6 | |
| 7 | This is not a project to "move off GitHub." That framing is too narrow. The question is: **what would source management look like if designed today**, with AI agents as first-class authors and no assumption that a single platform should own hosting, identity, CI, artifacts, review, and automation? |
| 8 | |
| 9 | ## The pain |
| 10 | |
| 11 | GitHub bundles seven concerns — hosting, identity and access, verification and artifacts, automation, integration, observability and feedback, and project knowledge — and does several of them poorly enough that unbundling looks attractive: |
| 12 | |
| 13 | - **CI is slow and YAML-shaped.** The feedback loop that matters most runs in minutes on someone else's infrastructure, configured in a language nobody chose. |
| 14 | - **The pull request conflates four things** — coordination, gating, record, and notification — and the bundle serves each worse than a mechanism designed for it would. |
| 15 | - **Agents are second-class.** The platform is built around a human clicking through a web UI. An AI agent authoring changes, reading project knowledge, or reacting to events is an afterthought bolted on through APIs designed for something else. |
| 16 | - **Project knowledge has no home.** Issues, wikis, docs, scratch files, and heads — scattered, unstructured, and invisible to the agents doing a growing share of the work. |
| 17 | |
| 18 | ## The promise |
| 19 | |
| 20 | Compose small tools over a durable substrate you own. Each concern gets the mechanism it deserves instead of the bundle's compromise, and everything that matters survives the loss of any one host. |
| 21 | |
| 22 | ## Where this goes |
| 23 | |
| 24 | At its most general, the-valley is a **recursive, transparent outcome-production engine**. Outcomes chain and recurse on a dependency graph — "add this code to a VCS" serves "deliver a feature users love," which serves something larger still — and the system's job is to complete that graph, transparently. The software development lifecycle is the v1 reference implementation, not the boundary: everything above is how the engine gets pointed at code first. Recursive includes the engine itself — the-valley builds the-valley. |
| 25 | |
| 26 | ## Constraints |
| 27 | |
| 28 | - **Open source.** |
| 29 | - **Minimal.** Prefer composing small tools over building a platform. |
| 30 | - **Nix-native.** Builds, verification, and artifacts are derivations. |
| 31 | - **Decentralized where possible.** Accept centralization only where ordering or coordination genuinely require it, and be explicit about it. |
| 32 | |
| 33 | ## Status |
| 34 | |
| 35 | Phase 0 in progress. The repo ships its first artifacts: the CUE schema defining what a valley project is ([`schema/valley.cue`](./schema/valley.cue), with an example in [`examples/host.cue`](./examples/host.cue)) and a NixOS module ([`flake.nix`](./flake.nix)) that installs a valley host from that declaration. The plan-of-record — incremental, MVP-first, validation-gated — is [`design/roadmap.md`](./design/roadmap.md). |
| 36 | |
| 37 | ## The docs |
| 38 | |
| 39 | - [`design/user-scenarios.md`](./design/user-scenarios.md) — the escalating ladder of problem-space user scenarios the requirements derive from; only the top-priority rung carries acceptance criteria. |
| 40 | - [`design/requirements.md`](./design/requirements.md) — what the system must be: who it's for, the unbundled needs, the constraints, non-goals. |
| 41 | - [`design/architecture.md`](./design/architecture.md) — the bets and their rationale: the event log, attestations instead of CI gates, the pull-based integrator, review as feedback, knowledge as a graph. |
| 42 | - [`design/contribute.md`](./design/contribute.md) — the contributor protocol: what a human or agent does to push a change and request integration. |
| 43 | - [`design/verification.md`](./design/verification.md) — pure vs. effectful checks and what makes an attestation hard to forge. |
| 44 | - [`design/scenarios.md`](./design/scenarios.md) — end-to-end walk-throughs and what each stresses. |
| 45 | - [`design/self-transparency.md`](./design/self-transparency.md) — **DRAFT.** A candidate invariant, deliberately unresolved: no actor can durably change the system or an output without transparency, recursively. Names the facets; decides nothing. |
| 46 | - [`design/openquestions.md`](./design/openquestions.md) — consolidated open questions, tagged by layer. |
| 47 | - [`design/roadmap.md`](./design/roadmap.md) — the incremental validation plan. |