gunk-dev/the-valley

README.md

source214e1789a9cdmain's published tip history
5.3 KiB · Rendered
1# the-valley
2
3> "Whatever."
4
5A space to rethink developer workflow and source management from scratch.
6
7This is not a project to "move off GitHub." That framing is too narrow. The question is: **what
8would source management look like if designed today**, with AI agents as first-class authors and no
9assumption that a single platform should own hosting, identity, CI, artifacts, review, and
10automation?
11
12## The pain
13
14GitHub bundles seven concerns — hosting, identity and access, verification and artifacts,
15automation, integration, observability and feedback, and project knowledge — and does several of
16them poorly enough that unbundling looks attractive:
17
18- **CI is slow and YAML-shaped.** The feedback loop that matters most runs in minutes on someone
19 else's infrastructure, configured in a language nobody chose.
20- **The pull request conflates four things** — coordination, gating, record, and notification — and
21 the bundle serves each worse than a mechanism designed for it would.
22- **Agents are second-class.** The platform is built around a human clicking through a web UI. An AI
23 agent authoring changes, reading project knowledge, or reacting to events is an afterthought
24 bolted on through APIs designed for something else.
25- **Project knowledge has no home.** Issues, wikis, docs, scratch files, and heads — scattered,
26 unstructured, and invisible to the agents doing a growing share of the work.
27
28## The promise
29
30Compose small tools over a durable substrate you own. Each concern gets the mechanism it deserves
31instead of the bundle's compromise, and everything that matters survives the loss of any one host.
32
33## Where this goes
34
35At its most general, the-valley is a **recursive, transparent outcome-production engine**. Outcomes
36chain and recurse on a dependency graph — "add this code to a VCS" serves "deliver a feature users
37love," which serves something larger still — and the system's job is to complete that graph,
38transparently. The software development lifecycle is the v1 reference implementation, not the
39boundary: everything above is how the engine gets pointed at code first. Recursive includes the
40engine itself — the-valley builds the-valley.
41
42## Constraints
43
44- **Open source.**
45- **Minimal.** Prefer composing small tools over building a platform.
46- **Nix-native.** Builds, verification, and artifacts run as derivations in the reference
47 implementation — Nix is a backend, not the substrate, and every schema stays portable beyond it
48 ([ida-b9f646c](./.the-valley/ideas/ida-b9f646c-nix-backend-not-substrate.md)).
49- **Decentralized where possible.** Accept centralization only where ordering or coordination
50 genuinely require it, and be explicit about it.
51
52## Status
53
54Phase 0 in progress. The repo ships its first artifacts: the CUE schema defining what a valley host
55declares — its projects, their push mirrors, and the durability policy for its data
56([`schema/valley.cue`](./schema/valley.cue), with an example in
57[`examples/host.cue`](./examples/host.cue)) — and a NixOS module ([`flake.nix`](./flake.nix)) that
58installs a valley host from that declaration. Phase 1's spine is landing: the host module can run an
59event bus onto which every push's ref updates are projected as events
60([`schema/events.cue`](./schema/events.cue)), watchable with `valley tail`. The knowledge-graph
61convention has a checkable form as well: [`schema/node.cue`](./schema/node.cue) describes a node's
62frontmatter, and the flake exposes the lint that enforces it as `lib.knowledgeLint`, so any project
63can instantiate the same check over its own tree from a flake input. The plan-of-record —
64incremental, MVP-first, validation-gated — is [`design/roadmap.md`](./design/roadmap.md).
65
66## The docs
67
68- [`design/user-scenarios.md`](./design/user-scenarios.md) — the escalating ladder of problem-space
69 user scenarios the requirements derive from; only the top-priority rung carries acceptance
70 criteria.
71- [`design/requirements.md`](./design/requirements.md) — what the system must be: who it's for, the
72 unbundled needs, the constraints, non-goals.
73- [`design/architecture.md`](./design/architecture.md) — the bets and their rationale: the event
74 log, attestations instead of CI gates, the pull-based integrator, review as feedback, knowledge as
75 a graph.
76- [`design/contribute.md`](./design/contribute.md) — the contributor protocol: what a human or agent
77 does to push a change and request integration.
78- [`design/verification.md`](./design/verification.md) — pure vs. effectful checks and what makes an
79 attestation hard to forge.
80- [`design/scenarios.md`](./design/scenarios.md) — end-to-end walk-throughs and what each stresses.
81- [`design/self-transparency.md`](./design/self-transparency.md) — **DRAFT.** A candidate invariant,
82 deliberately unresolved: no actor can durably change the system or an output without transparency,
83 recursively. Names the facets; decides nothing.
84- [`design/openquestions.md`](./design/openquestions.md) — consolidated open questions, tagged by
85 layer.
86- [`design/roadmap.md`](./design/roadmap.md) — the incremental validation plan.
87- [`bin/valley`](./bin/valley) — the integrator's CLI: the Phase 0 verbs (`pending`, `review`) as a
88 plain shell script, accreting one verb per phase per the roadmap's CLI thread. `valley checks`
89 derives the checks a change owes from the declared verification policy, and only reports them.