| 1 | # Requirements |
| 2 | |
| 3 | What the system must be. No solutions here — those are [architecture.md](./architecture.md). The requirements derive from the escalating ladder of user scenarios in [user-scenarios.md](./user-scenarios.md). |
| 4 | |
| 5 | ## Who it's for |
| 6 | |
| 7 | - **v1: a solo developer plus AI agents as first-class authors.** The system must be pleasant at N=1 before it's asked to hold at N>1. |
| 8 | - **Later: small, trusted teams.** Invite-only contributor sets where trust is granted, measured, and revocable. |
| 9 | - **Explicitly not: public-social scale.** No open-registration contributors, no spam-resistance, no social graph in v1. |
| 10 | |
| 11 | ## The needs |
| 12 | |
| 13 | GitHub's bundle, restated as needs rather than features: |
| 14 | |
| 15 | 1. **Hosting.** Repos live on infrastructure the owner controls, reachable and browsable, with no vendor lock-in. |
| 16 | 2. **Identity & access.** Contributors — human and agent — are cryptographically identifiable, and access is grantable and revocable without a vendor. |
| 17 | 3. **Verification & artifacts.** Checks give feedback in seconds, not minutes; build outputs are reproducible, content-addressed, and cacheable. |
| 18 | 4. **Automation.** Reactions to events are independently addable and removable, without a central workflow file. |
| 19 | 5. **Integration.** Changes reach protected branches through an observable, policy-driven path — never by unchecked direct write. |
| 20 | 6. **Observability & feedback.** Anyone or anything that needs to know about a change's state — before or after it lands — can find out, without drowning in a notification firehose. |
| 21 | 7. **Project knowledge & discussion.** Everything that isn't code or user docs — outcomes, bugs, decisions, principles, ideas, threads — has a durable home, equally legible to humans and agents; the work to be done is itself knowledge, not a vendor-tracker artifact. |
| 22 | |
| 23 | ## Constraints |
| 24 | |
| 25 | - **Open source.** The substrate must be inspectable and forkable; a closed dependency reintroduces the lock-in being escaped. |
| 26 | - **Minimal.** Small composed tools stay understandable and replaceable; platforms accrete. |
| 27 | - **Nix-native.** Hermetic, content-addressed builds are what make verification trustworthy and artifacts reproducible. |
| 28 | - **Decentralized where possible.** Centralization is accepted only where ordering or coordination genuinely require it, and must be explicit. |
| 29 | |
| 30 | ## Durability |
| 31 | |
| 32 | The git data is the crown jewel; losing it is the one unrecoverable failure. Everything else — infrastructure, tooling, even the event history's ephemeral parts — is rebuildable. Durability is therefore a first-class requirement, not an operational afterthought: multiple copies, offsite, with restores actually performed and verified before any copy becomes the only one. |
| 33 | |
| 34 | ## Non-goals |
| 35 | |
| 36 | - Public-social scale, discovery, or spam resistance. |
| 37 | - Building a platform. This is a set of small tools over a substrate. |
| 38 | - Defense against a compromised developer machine signing genuine attestations of malicious code — hardware attestation is the only fix and is out of scope. |
| 39 | - Migration tooling for the world's existing repos and trackers. The pilot is our own. |