| 1 | # COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| 2 | |
| 3 | Plan 3a adds a private coordinator conversation, shared task threads, editable |
| 4 | plans, sourced recommendations and personal preferences. Tasks 1–11 cover the 3a offline stop. Tasks 12–21 add invitations, runner/account |
| 5 | setup, specialist and playbook copies, remembered teams, device authentication |
| 6 | and a private notification feed. Production use still needs reviewed copy and certification |
| 7 | with Paul's dedicated provider accounts. |
| 8 | |
| 9 | For the offline gate, run these commands from the `plan-3` checkout with on-disk |
| 10 | `TMPDIR` and the default Go caches: |
| 11 | |
| 12 | ```bash |
| 13 | CGO_ENABLED=0 go test ./internal/plan3test \ |
| 14 | -run 'TestCoordinatorAcceptance3[AB]|TestCoordinatorRelease|TestPlan3ReleaseBoundaries|TestPlan3Upgrade|TestPersonAPIContractCoverage' -count=1 |
| 15 | CGO_ENABLED=0 go build ./cmd/equipo ./cmd/equipo-runner |
| 16 | make migration-check |
| 17 | make budget |
| 18 | staticcheck ./... |
| 19 | go vet ./... |
| 20 | ``` |
| 21 | |
| 22 | Use the pinned `go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./...` invocation |
| 23 | if staticcheck is not installed. The controller runs `make ci` once before final |
| 24 | review. Individual task runs use targeted tests. |
| 25 | |
| 26 | The acceptance test uses two fixture browser identities, loopback HTTP, the |
| 27 | runner service, durable capture and journal, and fake provider frames. It covers |
| 28 | bug, feature and recommendation proposals, editing, approval, project correction, |
| 29 | questions, routed replies, preference privacy, cancellation and interrupted-turn |
| 30 | recovery. The companion runner graph tests use local Git, fake providers and the |
| 31 | fake forge to check exact-candidate evidence, independent-family review, |
| 32 | publication readback and the wait for a person. These fixtures establish offline |
| 33 | behavior only. |
| 34 | |
| 35 | The browser-session person API uses `/api/v1`. Fetch the current revision before |
| 36 | editing. Send it as `If-Match` and use an `Idempotency-Key` for a mutation. Retry |
| 37 | an identical request with the same key after a lost response. A different edit |
| 38 | needs a new key and the current revision. Plan 3b also accepts revocable person-device bearers. They never authenticate |
| 39 | as a runner and cannot approve another device. See [the API schema](api/equipo-v1.openapi.json). |
| 40 | |
| 41 | List cursors are opaque and scoped to the person and stream. They expire after |
| 42 | 24 hours. Tasks, journey, actionable work, cards and preferences use the latest |
| 43 | stored resource audit time, newest first, then ID to break ties. People use |
| 44 | address order. Conversation and thread messages use their stored sequence. |
| 45 | Changes can move an item ahead of an existing cursor; start again to see the |
| 46 | latest order. Lists read current authorized data and never carry stored copies |
| 47 | of private content in a cursor. |
| 48 | |
| 49 | A contained uncertain coordinator turn waits for your choice. Retrying creates |
| 50 | new admitted work; resetting advances the coordinator generation. A refused |
| 51 | recovery does not make that choice for you. Cancellation and reset still need |
| 52 | containment before they can release a running account. |
| 53 | |
| 54 | Before live use, review every pending entry in the controller report's |
| 55 | `Plan 3 copy inventory (for Paul's review)`, then run the live checks on |
| 56 | staging. Record the offline result, copy-review result and live checks separately. |
| 57 | Keep release eligibility off until all three are complete. Equipo publishes |
| 58 | review branches and waits for the decision owner; you merge manually. |
| 59 | |
| 60 | |
| 61 | COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context). The 3b acceptance path uses fake official CLIs on disk, |
| 62 | temporary dedicated homes, actual pairing proofs, runner HTTP and application |
| 63 | transactions. It connects two same-provider accounts and an independent review |
| 64 | family, edits copied templates, chooses a project default, approves a feature |
| 65 | plan and answers a question with a device token. Separate runner fixtures use |
| 66 | local Git, trusted checks and a fake forge. Installation fixtures test missing |
| 67 | containment prerequisites, unsupported platforms and the stops-at-logout state. |
| 68 | These are layered tests, not a real-provider certification or one continuous |
| 69 | browser-to-merge run. |
| 70 | |
| 71 | Upgrade tests start at schema 0018 with active tasks, historical evidence, |
| 72 | reservations, recovery charges and decision ownership, and at the end of 3a |
| 73 | with private conversation and preference data. They compare retained columns, |
| 74 | check the current schema and reopen the database and execution core twice. |
| 75 | |
| 76 | The release check refuses pending runtime copy, the API guide, acceptance and |
| 77 | live instructions, and the consolidated inventory containing the onboarding |
| 78 | mockup proposals. No pending entry is treated as reviewed. The manifest still |
| 79 | needs exact live policy certificates and the supported terminal login evidence. |
| 80 | Paul and a teammate run section 3b separately after review and certification. |
| 81 | The controller runs `make ci` once; Task 21 runs the named tests, build, migration, |
| 82 | budget, vet, pinned staticcheck and the previously skipped `equipotest` package. |
| 83 | |