gunk-dev/the-valley

user-scenarios.md

sourcebda0fd39abcamain's published tip history
6.6 KiB · Rendered
1# User scenarios
2
3These scenarios describe what a user needs from the-valley. They begin with one developer and their
4agents, then introduce collaboration and less trusted contributors.
5
6Only S1 has an acceptance checklist so far. Later scenarios gain detailed criteria as work reaches
7them. Their ordering describes the intended progression; the [roadmap](./roadmap.md) records
8implementation 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
24Daily work still consists of cloning, editing, and pushing. The primary repository lives on
25infrastructure the operator controls. GitHub can remain a publication mirror during migration.
26
27Within minutes of integration, a change exists in at least two independent places, one offsite. If
28the primary host fails, a full restore from the offsite copy is possible within a day. That recovery
29must have been tested. Pending work receives periodic backup, but does not yet have the same
30replication guarantee as integrated work.
31
32Issues, ideas, outcomes, and decisions travel with the code. Moving the repository must not leave
33behind the knowledge needed to work on it. Agents must continue to contribute during the move, even
34while parts of their workflow still require manual help.
35
36The 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
42A checked box records observed behavior. It is not a claim that configuration alone establishes the
43result.
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
62After completing the required verification, a contributor submits a change and sees it integrated
63within seconds. The system uses work already performed during authorship when that evidence still
64applies. The contributor does not wait for a separate service to repeat it. The central requirement
65is knowing when local verification is trustworthy and remains relevant to the change that will land.
66
67### S3 — unattended agent contributions
68
69The operator dispatches work to an agent. The resulting change meets the same integration
70requirements as the operator's own work and can land without someone supervising the remaining
71steps. The record identifies the agent run and its delegated authority. Project knowledge provides
72both the assignment and the place to record what the work changed or discovered.
73
74### S4 — automatic work with an explainable history
75
76A change lands, a build runs, a deployment follows, and the appropriate notification arrives. These
77steps need no manual coordination. When an effect is surprising, its cause can be traced through a
78shared history. A Cosmo deployment or reel-life release is an initial example. Changes to project
79knowledge and completion of the requested outcome belong in that history too.
80
81### S5 — invited collaboration
82
83A second person can contribute without the operator creating accounts in a hosted platform. The
84operator trusts them with a defined scope of work, rather than every capability in the system.
85Access is easy to grant, limit, and revoke. This is the first scenario that requires the workflow to
86work for a collaborator outside the operator's own agents.
87
88### S6 — incident recovery and memory
89
90A deployment causes a regression. The system helps identify the responsible change, revert it, and
91record the incident. The record links the evidence, the suspected cause, the uncertainty in that
92attribution, and the recovery. Later contributors can use what was learned.
93
94### S7 — open contribution
95
96Unknown contributors can submit work without receiving authority over the project. This remains
97deferred and may never become a supported scenario. It identifies a possible future limit of the
98trust model; public discovery and spam resistance remain outside the current requirements.