| 1 | # User scenarios |
| 2 | |
| 3 | These scenarios describe what a user needs from the-valley. They begin with one developer and their |
| 4 | agents, then introduce collaboration and less trusted contributors. |
| 5 | |
| 6 | Only S1 has an acceptance checklist so far. Later scenarios gain detailed criteria as work reaches |
| 7 | them. Their ordering describes the intended progression; the [roadmap](./roadmap.md) records |
| 8 | implementation and validation. |
| 9 | |
| 10 | ## The ladder |
| 11 | |
| 12 | | ID | User experience | First application | Project knowledge needed | |
| 13 | | --- | -------------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------------------------------------ | |
| 14 | | S1 | My repositories are under my control, and I can recover them after a failure. | The-valley itself | Issues, outcomes, ideas, and decisions survive alongside code | |
| 15 | | S2 | I submit a verified change and see it integrated within seconds. | Daily solo work | Existing knowledge remains usable through the integration process | |
| 16 | | S3 | I dispatch an agent and its authorized work can land without further supervision. | Klaus | Agents read and update project knowledge; work is assigned to an outcome | |
| 17 | | S4 | Builds, deployments, and notifications follow changes, and I can find out why each happened. | Cosmo and reel-life | The history includes knowledge changes and completed outcomes | |
| 18 | | S5 | I invite a collaborator and give them bounded, revocable access. | The first invited contributor | The same project record is available to authorized collaborators | |
| 19 | | S6 | I can identify a bad deployment, recover, and retain what was learned. | A reel-life regression | Incidents include attribution, uncertainty, and the response | |
| 20 | | S7 | Unknown contributors can participate safely. | Deferred | Undetermined | |
| 21 | |
| 22 | ## S1 — repositories under my control and recoverable |
| 23 | |
| 24 | Daily work still consists of cloning, editing, and pushing. The primary repository lives on |
| 25 | infrastructure the operator controls. GitHub can remain a publication mirror during migration. |
| 26 | |
| 27 | Within minutes of integration, a change exists in at least two independent places, one offsite. If |
| 28 | the primary host fails, a full restore from the offsite copy is possible within a day. That recovery |
| 29 | must have been tested. Pending work receives periodic backup, but does not yet have the same |
| 30 | replication guarantee as integrated work. |
| 31 | |
| 32 | Issues, ideas, outcomes, and decisions travel with the code. Moving the repository must not leave |
| 33 | behind the knowledge needed to work on it. Agents must continue to contribute during the move, even |
| 34 | while parts of their workflow still require manual help. |
| 35 | |
| 36 | The initial hosting and migration choices are recorded in |
| 37 | [roadmap Phase 0](./roadmap.md#phase-0--durable-self-hosting). The |
| 38 | [contributor protocol](./contribute.md) describes the current submission process. |
| 39 | |
| 40 | ### Acceptance criteria |
| 41 | |
| 42 | A checked box records observed behavior. It is not a claim that configuration alone establishes the |
| 43 | result. |
| 44 | |
| 45 | - [x] The-valley's canonical origin is classic-laddie; GitHub is a mirror. |
| 46 | - [x] Every integrated change is present in at least two independent locations within minutes, |
| 47 | verified by checking both. Pending branches receive periodic offsite backup, as specified by |
| 48 | the |
| 49 | [durability scope](../.the-valley/decisions/dcr-24d62f7-publication-mirror-not-review-queue.md). |
| 50 | - [x] A full restore from the offsite copy has been performed and verified. |
| 51 | - [ ] A week of real human and agent work on the pilot repository has been completed without |
| 52 | touching GitHub. |
| 53 | - [x] A Klaus agent change has landed end to end through the initial direct-push workflow. |
| 54 | - [x] A real issue has been opened, worked, and closed as an in-repository node, including an agent |
| 55 | dispatched against a node instead of a GitHub issue. |
| 56 | - [ ] A migration and restore runbook exists and is repeatable for the next repository. |
| 57 | |
| 58 | ## The rest of the ladder |
| 59 | |
| 60 | ### S2 — prompt integration |
| 61 | |
| 62 | After completing the required verification, a contributor submits a change and sees it integrated |
| 63 | within seconds. The system uses work already performed during authorship when that evidence still |
| 64 | applies. The contributor does not wait for a separate service to repeat it. The central requirement |
| 65 | is knowing when local verification is trustworthy and remains relevant to the change that will land. |
| 66 | |
| 67 | ### S3 — unattended agent contributions |
| 68 | |
| 69 | The operator dispatches work to an agent. The resulting change meets the same integration |
| 70 | requirements as the operator's own work and can land without someone supervising the remaining |
| 71 | steps. The record identifies the agent run and its delegated authority. Project knowledge provides |
| 72 | both the assignment and the place to record what the work changed or discovered. |
| 73 | |
| 74 | ### S4 — automatic work with an explainable history |
| 75 | |
| 76 | A change lands, a build runs, a deployment follows, and the appropriate notification arrives. These |
| 77 | steps need no manual coordination. When an effect is surprising, its cause can be traced through a |
| 78 | shared history. A Cosmo deployment or reel-life release is an initial example. Changes to project |
| 79 | knowledge and completion of the requested outcome belong in that history too. |
| 80 | |
| 81 | ### S5 — invited collaboration |
| 82 | |
| 83 | A second person can contribute without the operator creating accounts in a hosted platform. The |
| 84 | operator trusts them with a defined scope of work, rather than every capability in the system. |
| 85 | Access is easy to grant, limit, and revoke. This is the first scenario that requires the workflow to |
| 86 | work for a collaborator outside the operator's own agents. |
| 87 | |
| 88 | ### S6 — incident recovery and memory |
| 89 | |
| 90 | A deployment causes a regression. The system helps identify the responsible change, revert it, and |
| 91 | record the incident. The record links the evidence, the suspected cause, the uncertainty in that |
| 92 | attribution, and the recovery. Later contributors can use what was learned. |
| 93 | |
| 94 | ### S7 — open contribution |
| 95 | |
| 96 | Unknown contributors can submit work without receiving authority over the project. This remains |
| 97 | deferred and may never become a supported scenario. It identifies a possible future limit of the |
| 98 | trust model; public discovery and spam resistance remain outside the current requirements. |