gunk-dev/the-valley

requirements.md

source9081ff0f1d3cmain's published tip history
6.5 KiB · Rendered
1# Requirements
2
3What the system must be. No solutions here — those are [architecture.md](./architecture.md). Each
4requirement derives from a rung of the [scenario ladder](./user-scenarios.md#the-ladder): the rung
5says what a user experiences; the requirement is what must hold for the rung to be true. The mapping
6runs both ways — every rung below S7 leaves a mark here, and a requirement no rung demands has no
7business on this page. The one exception is the constraints, which are imposed by the premise
8([README](../README.md)) rather than derived: they bind the solutions, not the problem.
9
10## Who it's for
11
12The ladder is ordered by actors and trust, so the audience falls straight out of it:
13
14- **v1: a solo developer plus AI agents as first-class authors** (S1–S4). The system must be
15 pleasant at N=1 before it's asked to hold at N>1.
16- **Later: small, trusted teams** (S5–S6). Invite-only contributor sets where trust is granted,
17 bounded, and revocable.
18- **Explicitly not: public-social scale.** S7 is deferred, maybe never; it stays on the ladder only
19 as the limit the trust model should degrade toward gracefully.
20
21## The needs
22
231. **Never losable** (S1). Repos live on infrastructure the operator controls, with no vendor
24 lock-in: daily life stays clone-edit-push, and the platform fades to a mirror nobody thinks
25 about. Project knowledge (outcomes, ideas, decisions, threads) travels with the repo, protected
26 by the same motion that protects the code. Precisely what this means: [durability](#durability),
27 below.
282. **Integrated in seconds** (S2). Push to integrated completes in seconds, resting on checks that
29 are **trustworthy where the work was written** — a verifiable claim, not a hope — with
30 reproducible build outputs so the claim can be checked. This is the largest quality-of-life
31 change in the whole design and the reason unbundling is worth it at N=1.
323. **Agents as first-class authors** (S3). An agent's change lands with the same guarantees as the
33 operator's own, unsupervised, attributable to exactly the agent that made it — attribution for a
34 non-human author that can be neither waved through nor forged.
354. **Causality queryable from one history** (S4). Consequences — builds, deploys, notifications —
36 follow without anyone kicking anything, each reaction independently addable and removable; "why
37 did X occur" is answerable from one durable history, not reconstructed across tools.
385. **Trust grantable, bounded, revocable** (S5). A second, semi-trusted human lands a change without
39 the operator administering accounts, roles, or a platform: exactly enough access — easy to grant,
40 limit, and take back — without a vendor.
416. **Attributed incident memory** (S6). A landed change that goes bad gets attributed, reverted, and
42 remembered: the incident becomes durable project knowledge, not a war story. When the record
43 assigns blame, it carries its uncertainty honestly — a confidently wrong attribution is worse
44 than none.
457. **Demand-shaped work** ([README: where this goes](../README.md#where-this-goes)). Work to be done
46 is itself knowledge — outcomes on a dependency graph the system is under pressure to complete
47 toward what someone actually asked for, not merely to record.
48
49**The unbundling note.** GitHub's bundle — hosting, identity & access, verification & artifacts,
50automation, integration, observability & feedback, project knowledge & discussion — cuts across
51these needs: hosting is need 1; verification, artifacts, and integration are need 2; identity &
52access serves needs 3 and 5; automation is need 4; observability & feedback runs through needs 4 and
536; project knowledge & discussion runs through needs 1, 3, 4, 6, and 7. The concerns remain the
54vocabulary the [architecture](./architecture.md) unbundles by; the rungs are why each is needed. The
55knowledge substrate itself grows one rung-sized increment at a time instead of arriving as a system:
56nodes live with the repo as plain files (S1); agents read and write them, and work is dispatched
57against them (S3); changes to them are observable, and a landed change can close the outcome it
58serves (S4); incidents file their own nodes, with attribution (S6).
59
60## Constraints
61
62Not derived from the ladder — imposed on every solution to it, from the premise
63([README](../README.md)):
64
65- **Open source.** The substrate must be inspectable and forkable; a closed dependency reintroduces
66 the lock-in being escaped.
67- **Minimal.** Small composed tools stay understandable and replaceable; platforms accrete.
68- **Nix-native.** Hermetic, content-addressed builds are what make verification trustworthy and
69 artifacts reproducible.
70- **Decentralized where possible.** Centralization is accepted only where ordering or coordination
71 genuinely require it, and must be explicit.
72- **Auditable supply chain.** What a build depends on must be enumerable, and the provenance of each
73 dependency establishable. Pinning fixes which dependencies are used but not how many; a dependency
74 set too large to read is trusted rather than verified.
75
76## Durability
77
78The project's state is the crown jewel; losing it is the one unrecoverable failure. Today that state
79lives entirely in a git repo — code and knowledge nodes alike — but the requirement attaches to the
80state, not to the store: a project has stores, and git is one of them
81([stores beyond git](../.the-valley/ideas/ida-48c8868-stores-beyond-git.md)). Everything else —
82infrastructure, tooling, even the event history's ephemeral parts — is rebuildable. Durability is
83therefore a first-class requirement, not an operational afterthought — it is the whole of
84[S1](./user-scenarios.md#s1--my-repos-live-on-my-infrastructure-and-i-can-never-lose-them), the rung
85everything else stands on. For the git store today that means: pushed means replicated — pushed work
86is in at least two independent places, one of them offsite, within minutes. No copy counts until a
87restore from it has been performed and verified. Configured is not durable; tested is.
88
89## Non-goals
90
91- Public-social scale, discovery, or spam resistance (S7: deferred, maybe never).
92- Building a platform. This is a set of small tools over a substrate; S5 is passed precisely by
93 _not_ having a platform to administer.
94- Defense against a compromised developer machine signing genuine attestations of malicious code —
95 hardware attestation is the only fix and is out of scope. No rung demands it.
96- Migration tooling for the world's existing repos and trackers. The pilot is the project's own —
97 every rung is anchored in the operator's real repos.