| 1 | # Requirements |
| 2 | |
| 3 | What the system must be. No solutions here — those are [architecture.md](./architecture.md). Each |
| 4 | requirement derives from a rung of the [scenario ladder](./user-scenarios.md#the-ladder): the rung |
| 5 | says what a user experiences; the requirement is what must hold for the rung to be true. The mapping |
| 6 | runs both ways — every rung below S7 leaves a mark here, and a requirement no rung demands has no |
| 7 | business 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 | |
| 12 | The 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 | |
| 23 | 1. **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. |
| 28 | 2. **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. That trust must carry: verification |
| 31 | performed where a change is authored counts across the integration boundary, and landing a change |
| 32 | must not require repeating work already done and proven. This is the largest quality-of-life |
| 33 | change in the whole design and the reason unbundling is worth it at N=1. |
| 34 | 3. **Agents as first-class authors** (S3). An agent's change lands with the same guarantees as the |
| 35 | operator's own, unsupervised, attributable to exactly the agent that made it — attribution for a |
| 36 | non-human author that can be neither waved through nor forged. |
| 37 | 4. **Causality queryable from one history** (S4). Consequences — builds, deploys, notifications — |
| 38 | follow without anyone kicking anything, each reaction independently addable and removable; "why |
| 39 | did X occur" is answerable from one durable history, not reconstructed across tools. |
| 40 | 5. **Trust grantable, bounded, revocable** (S5). A second, semi-trusted human lands a change without |
| 41 | the operator administering accounts, roles, or a platform: exactly enough access — easy to grant, |
| 42 | limit, and take back — without a vendor. |
| 43 | 6. **Attributed incident memory** (S6). A landed change that goes bad gets attributed, reverted, and |
| 44 | remembered: the incident becomes durable project knowledge, not a war story. When the record |
| 45 | assigns blame, it carries its uncertainty honestly — a confidently wrong attribution is worse |
| 46 | than none. |
| 47 | 7. **Demand-shaped work** ([README: where this goes](../README.md#where-this-goes)). Work to be done |
| 48 | is itself knowledge — outcomes on a dependency graph the system is under pressure to complete |
| 49 | toward what someone actually asked for, not merely to record. |
| 50 | |
| 51 | **The unbundling note.** The concerns this design unbundles are enumerated once, in the |
| 52 | [architecture](./architecture.md)'s table. They cut across these needs rather than mapping |
| 53 | one-to-one — hosting serves need 1, verification and integration serve need 2, and project knowledge |
| 54 | runs through most of the rest. The concerns remain the vocabulary the architecture unbundles by; the |
| 55 | rungs are why each is needed. The knowledge substrate itself grows one rung-sized increment at a |
| 56 | time instead of arriving as a system: nodes live with the repo as plain files (S1); agents read and |
| 57 | write them, and work is dispatched against them (S3); changes to them are observable, and a landed |
| 58 | change can close the outcome it serves (S4); incidents file their own nodes, with attribution (S6). |
| 59 | |
| 60 | ## Constraints |
| 61 | |
| 62 | Not 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 make verification trustworthy and artifacts |
| 69 | reproducible in the reference implementation; the contract is the schemas, which stay |
| 70 | implementable without Nix |
| 71 | ([ida-b9f646c](../.the-valley/ideas/ida-b9f646c-nix-backend-not-substrate.md)). |
| 72 | - **Verification has no platform of its own.** Checks are defined once and run identically wherever |
| 73 | work happens: the operator's machine, an agent's worktree, integration. A verification platform |
| 74 | separate from the development runtime — its own configuration dialect, its own execution |
| 75 | environment, its own debugging surface — is rejected. Nix-native supplies hermetic, reproducible |
| 76 | execution; this constraint adds the demand that there is only one such runtime, everywhere. |
| 77 | - **Verification latency stays off the serialized path.** Integration throughput must not degrade as |
| 78 | the product of change frequency and check latency grows. The time a check takes may bound how soon |
| 79 | its own change lands, never how fast the stream of changes lands. This must hold from the start, |
| 80 | ahead of the scale at which it hurts. |
| 81 | - **Decentralized where possible.** Centralization is accepted only where ordering or coordination |
| 82 | genuinely require it, and must be explicit. |
| 83 | - **Auditable supply chain.** What a build depends on must be enumerable, and the provenance of each |
| 84 | dependency establishable. Pinning fixes which dependencies are used but not how many; a dependency |
| 85 | set too large to read is trusted rather than verified. |
| 86 | |
| 87 | ## Durability |
| 88 | |
| 89 | The project's state is the crown jewel; losing it is the one unrecoverable failure. Today that state |
| 90 | lives entirely in a git repo — code and knowledge nodes alike — but the requirement attaches to the |
| 91 | state, not to the store: a project has stores, and git is one of them |
| 92 | ([stores beyond git](../.the-valley/ideas/ida-48c8868-stores-beyond-git.md)). Everything else — |
| 93 | infrastructure, tooling, even the event history's ephemeral parts — is rebuildable. Durability is |
| 94 | therefore a first-class requirement, not an operational afterthought — it is the whole of |
| 95 | [S1](./user-scenarios.md#s1--my-repos-live-on-my-infrastructure-and-i-can-never-lose-them), the rung |
| 96 | everything else stands on. For the git store today that means: integrated means replicated — |
| 97 | integrated work is in at least two independent places, one of them offsite, within minutes; the |
| 98 | guarantee attaches to integrated work, not to in-flight branches |
| 99 | ([dcr-24d62f7](../.the-valley/decisions/dcr-24d62f7-publication-mirror-not-review-queue.md)). No |
| 100 | copy counts until a restore from it has been performed and verified. Configured is not durable; |
| 101 | tested is. |
| 102 | |
| 103 | ## Non-goals |
| 104 | |
| 105 | - Public-social scale, discovery, or spam resistance (S7: deferred, maybe never). |
| 106 | - Building a platform. This is a set of small tools over a substrate; S5 is passed precisely by |
| 107 | _not_ having a platform to administer. |
| 108 | - Defense against a compromised developer machine signing genuine attestations of malicious code — |
| 109 | hardware attestation is the only fix and is out of scope. No rung demands it. |
| 110 | - Migration tooling for the world's existing repos and trackers. The pilot is the project's own — |
| 111 | every rung is anchored in the operator's real repos. |