| 1 | # Requirements |
| 2 | |
| 3 | These requirements describe what the system must do. The [user scenarios](./user-scenarios.md) |
| 4 | explain the needs behind them; the [architecture](./architecture.md) explains the proposed |
| 5 | solutions. |
| 6 | |
| 7 | ## Who it is for |
| 8 | |
| 9 | The first users are a solo developer and the AI agents working with them, as described in S1–S4. The |
| 10 | system must be useful in that setting before it expands to small, invited teams in S5–S6. |
| 11 | |
| 12 | Open participation by unknown contributors is deferred. Public discovery, social features, and spam |
| 13 | resistance are outside the current scope. |
| 14 | |
| 15 | ## User needs |
| 16 | |
| 17 | 1. **Control and recover project state (S1).** Repositories live on infrastructure the operator |
| 18 | controls. Familiar development habits remain usable. Project knowledge is available alongside the |
| 19 | code and receives the same protection against loss. The recovery requirements are |
| 20 | [below](#durability). |
| 21 | 2. **Integrate verified changes in seconds (S2).** Verification performed during authorship must be |
| 22 | trustworthy enough to count at integration. A change should not wait for already established |
| 23 | results to be produced again. The evidence must identify the work it covers and allow a verifier |
| 24 | to check the claim. |
| 25 | 3. **Support agent authorship (S3).** An agent's change meets the same requirements as a human's. |
| 26 | Authorized work can proceed without someone supervising each step. The record identifies the run |
| 27 | that produced the change and the authority under which it acted. The strength and limits of that |
| 28 | attribution must be clear. |
| 29 | 4. **Explain automated consequences (S4).** Builds, deployments, and notifications follow authorized |
| 30 | changes automatically. Reactions can be added or removed independently. A durable history |
| 31 | connects an effect to the events that caused it. |
| 32 | 5. **Grant and revoke bounded trust (S5).** The operator can invite a collaborator, give them the |
| 33 | access they need, and withdraw it. This must not require adopting a vendor's account or role |
| 34 | system. |
| 35 | 6. **Preserve incident knowledge (S6).** When a change causes a failure, the system supports finding |
| 36 | the cause, reverting it, and recording what was learned. Attribution must state its uncertainty. |
| 37 | The incident and its response remain available to later work. |
| 38 | 7. **Work toward requested outcomes.** The system records desired outcomes and their dependencies so |
| 39 | it can help determine and perform the work needed to complete them. This broader requirement |
| 40 | comes from the [project's direction](../README.md#where-this-goes). Agent dispatch in S3 and |
| 41 | outcome completion in S4 are its first applications. |
| 42 | |
| 43 | Project knowledge grows with these needs. S1 requires it to survive alongside the code. S3 requires |
| 44 | agents to use and improve it. S4 connects it to the record of automated work. S6 adds incidents and |
| 45 | their causes. No scenario requires a complete knowledge-management system before useful work can |
| 46 | begin. |
| 47 | |
| 48 | ## Constraints |
| 49 | |
| 50 | These constraints come from the [project premise](../README.md) and apply to every proposed |
| 51 | solution. |
| 52 | |
| 53 | - **Open source.** The system must be inspectable and forkable. |
| 54 | - **Small, replaceable parts.** Components should remain understandable and independently |
| 55 | replaceable. Meeting one need should not require adopting an unrelated set of services. |
| 56 | - **A Nix reference implementation with portable contracts.** Nix provides the reference build and |
| 57 | verification environment. Schemas must remain implementable without it, as described in the |
| 58 | [backend decision](../.the-valley/ideas/ida-b9f646c-nix-backend-not-substrate.md). |
| 59 | - **One verification environment.** A check has one definition and runs the same way wherever |
| 60 | verification occurs. Local development, agent work, and verification services must not require |
| 61 | separate configuration languages or debugging procedures. |
| 62 | - **Verification latency must not determine integration throughput.** A slow check may delay its own |
| 63 | change. It must not force unrelated changes to wait behind it. This requirement still needs |
| 64 | validation under contention; the |
| 65 | [integration starvation risk](../.the-valley/bugs/bd-c324184-occ-starvation-under-contention.md) |
| 66 | questions whether the current design meets it. |
| 67 | - **Explicit coordination.** Central coordination is acceptable where ordering or agreement requires |
| 68 | it. The reason for that coordination and the authority it holds must be visible. |
| 69 | - **An auditable supply chain.** Dependencies must be enumerable and their provenance establishable. |
| 70 | Pinning a large dependency set does not by itself make that set understandable or reviewed. |
| 71 | |
| 72 | ## Durability |
| 73 | |
| 74 | Project state must survive the loss of the primary host. Today, code and knowledge nodes live in |
| 75 | Git. The requirement applies to any additional |
| 76 | [project stores](../.the-valley/ideas/ida-48c8868-stores-beyond-git.md) as they are introduced. |
| 77 | |
| 78 | Every integrated change must be present in at least two independent locations within minutes, with |
| 79 | one copy offsite. Full recovery from the offsite copy must be possible within a day. A copy counts |
| 80 | toward the guarantee only after a restore from it has been performed and verified. |
| 81 | |
| 82 | Pending topic branches have a different guarantee. They receive periodic offsite backup, but the |
| 83 | publication mirror contains integrated history only. The |
| 84 | [durability scope decision](../.the-valley/decisions/dcr-24d62f7-publication-mirror-not-review-queue.md) |
| 85 | records this distinction. |
| 86 | |
| 87 | Infrastructure and derived views may be rebuilt. Records needed to explain deployments or recover |
| 88 | project state may not be discarded merely because they are outside Git. S4 therefore requires a |
| 89 | durability decision for cross-system history before it can be considered complete. |
| 90 | |
| 91 | ## Non-goals |
| 92 | |
| 93 | - Public social features, discovery, and spam resistance. |
| 94 | - A platform that requires administering unrelated services to host a project or invite a |
| 95 | collaborator. |
| 96 | - Proving that a fully compromised authoring machine executed a check honestly solely from that |
| 97 | machine's signature. Detection and recovery remain part of the trust design; the signature alone |
| 98 | cannot establish execution. |
| 99 | - General migration tooling for every existing forge and tracker. Migration starts with the |
| 100 | operator's own projects. |