# Projects up front for Amadan

Approved scope: G12, projects section of the 2026-11-22 GitHub connector
spec on `origin/design/github-connector`. The dispatch message is this
slice's controller brief. No GitHub integration or native screen changes.

1. Add failing contracts for trusted team names, private learned names,
   ambiguous and unknown resolution, repository metadata isolation, and
   current roster checks. Add an additive names/metadata migration.
2. Implement owner-edited titles, descriptions and team names. Keep repository
   metadata separate. Resolve exact titles, trusted names and repository keys
   in code. Unknown or ambiguous names use the existing placement card with
   code-built choices, starred first. Its answer learns only for that person.
3. Test and implement the per-turn project block: starred then recent, at most
   30 projects, trusted names and bounded, quoted, source-labelled descriptions.
   Test retries and follow-up turns; preserve placement authority.
4. Test and implement the Projects page additions: Your projects, Can add
   grouped under Amadan, filtering, descriptions, owner Add and metadata edit.
   Preserve existing task activity and personal stars.
5. Test and implement device contracts and document them in equipo-v1.md and
   equipo-v1.openapi.json. Keep old fields and native fixtures compatible:
   - `GET /api/v1/projects`: retain `items`, `allowed`, `home`; add
     `connections`, `can_add`; project entries gain personal `starred`, trusted
     `names`, description provenance and forge/connection identification.
   - `PUT /api/v1/projects/{id}/star`: `{ "starred": true }`, authenticated
     device bearer, affects only that person's star; return the project.
   - `SendMessage`: optional `project_id`, validated against an active,
     reachable project and retained with the message. It is the person's
     explicit placement and binds subsequent task writes.
   - Owner metadata edits use a bounded explicit request type and revision
     guard, shared with the web form.
6. Mutate each new authority/placement guard, observe its contract fail, and
   restore. Record exact commands and results in the controller report.
7. Mark runtime copy pending with scripts/copy-status.py for Luna's review.
   Run pinned Go 1.26.11 formatting, gitleaks, measured budgets, migrations,
   copy release, lanes, touched package tests, TestPersonAPI and native fixture
   checks. Commit with the required trailer; run runner-dead-references.py
   after commit. Push only projects/up-front using the supplied push script,
   then record Linux CI's verdict. No merge or deployment.

Review report will list mutations, new copy keys, wire details, gate results
and any remaining decision. Engineering does not accept its own copy.

## Independent review follow-up

1. Regressions through runner frames for member add/refusal and stale selected
   queued/running turns. Convert expected permission/selection losses to tool
   results and a visible notice; preserve preceding replies and lane progress.
2. Restore unknown-task refusal and non-person discovery. Require a person
   placement request before named cards; learn only explicit project-name
   phrases, with minimum length and stopword rejection.
3. Bound cards to six options of 80 bytes, with a typed-name continuation for
   overflow. Trusted unique names precede personal aliases; add a private
   forget operation on web/device and document it in OpenAPI.
4. Kill all eight surviving mutations. Cover batching, star answers, selected
   start_task, per-person writes and project-block viewer isolation.
5. Ignore blank names, retain per-field metadata provenance unless edited,
   and send each viewer their own stars/names in events and snapshots.
6. Obtain Luna's copy/docs verdicts, run all requested gates and full equipo,
   chat and thintest suites, commit, reference scan, helper push and Linux CI.
