| 1 | # Projects up front for Amadan |
| 2 | |
| 3 | Approved scope: G12, projects section of the 2026-11-22 GitHub connector |
| 4 | spec on `origin/design/github-connector`. The dispatch message is this |
| 5 | slice's controller brief. No GitHub integration or native screen changes. |
| 6 | |
| 7 | 1. Add failing contracts for trusted team names, private learned names, |
| 8 | ambiguous and unknown resolution, repository metadata isolation, and |
| 9 | current roster checks. Add an additive names/metadata migration. |
| 10 | 2. Implement owner-edited titles, descriptions and team names. Keep repository |
| 11 | metadata separate. Resolve exact titles, trusted names and repository keys |
| 12 | in code. Unknown or ambiguous names use the existing placement card with |
| 13 | code-built choices, starred first. Its answer learns only for that person. |
| 14 | 3. Test and implement the per-turn project block: starred then recent, at most |
| 15 | 30 projects, trusted names and bounded, quoted, source-labelled descriptions. |
| 16 | Test retries and follow-up turns; preserve placement authority. |
| 17 | 4. Test and implement the Projects page additions: Your projects, Can add |
| 18 | grouped under Amadan, filtering, descriptions, owner Add and metadata edit. |
| 19 | Preserve existing task activity and personal stars. |
| 20 | 5. Test and implement device contracts and document them in equipo-v1.md and |
| 21 | equipo-v1.openapi.json. Keep old fields and native fixtures compatible: |
| 22 | - `GET /api/v1/projects`: retain `items`, `allowed`, `home`; add |
| 23 | `connections`, `can_add`; project entries gain personal `starred`, trusted |
| 24 | `names`, description provenance and forge/connection identification. |
| 25 | - `PUT /api/v1/projects/{id}/star`: `{ "starred": true }`, authenticated |
| 26 | device bearer, affects only that person's star; return the project. |
| 27 | - `SendMessage`: optional `project_id`, validated against an active, |
| 28 | reachable project and retained with the message. It is the person's |
| 29 | explicit placement and binds subsequent task writes. |
| 30 | - Owner metadata edits use a bounded explicit request type and revision |
| 31 | guard, shared with the web form. |
| 32 | 6. Mutate each new authority/placement guard, observe its contract fail, and |
| 33 | restore. Record exact commands and results in the controller report. |
| 34 | 7. Mark runtime copy pending with scripts/copy-status.py for Luna's review. |
| 35 | Run pinned Go 1.26.11 formatting, gitleaks, measured budgets, migrations, |
| 36 | copy release, lanes, touched package tests, TestPersonAPI and native fixture |
| 37 | checks. Commit with the required trailer; run runner-dead-references.py |
| 38 | after commit. Push only projects/up-front using the supplied push script, |
| 39 | then record Linux CI's verdict. No merge or deployment. |
| 40 | |
| 41 | Review report will list mutations, new copy keys, wire details, gate results |
| 42 | and any remaining decision. Engineering does not accept its own copy. |
| 43 | |
| 44 | ## Independent review follow-up |
| 45 | |
| 46 | 1. Regressions through runner frames for member add/refusal and stale selected |
| 47 | queued/running turns. Convert expected permission/selection losses to tool |
| 48 | results and a visible notice; preserve preceding replies and lane progress. |
| 49 | 2. Restore unknown-task refusal and non-person discovery. Require a person |
| 50 | placement request before named cards; learn only explicit project-name |
| 51 | phrases, with minimum length and stopword rejection. |
| 52 | 3. Bound cards to six options of 80 bytes, with a typed-name continuation for |
| 53 | overflow. Trusted unique names precede personal aliases; add a private |
| 54 | forget operation on web/device and document it in OpenAPI. |
| 55 | 4. Kill all eight surviving mutations. Cover batching, star answers, selected |
| 56 | start_task, per-person writes and project-block viewer isolation. |
| 57 | 5. Ignore blank names, retain per-field metadata provenance unless edited, |
| 58 | and send each viewer their own stars/names in events and snapshots. |
| 59 | 6. Obtain Luna's copy/docs verdicts, run all requested gates and full equipo, |
| 60 | chat and thintest suites, commit, reference scan, helper push and Linux CI. |
| 61 | |