# Controller brief: build dynamic specialists slice 1

You are the controller for building slice 1 of dynamic specialists: a
Design specialist that makes mockups on a task's branch and shows them as
screenshots, with a runner-side page renderer. Paul approved the spec and
its open-question rulings on 2026-11-28 and asked for this build. You did
not take part in the design conversation; everything you need is here:

- Spec: `docs/superpowers/specs/2026-11-28-dynamic-specialists.md` (rev
  3.2, approved; Paul's rulings in section 7).
- Plan: `docs/superpowers/plans/2026-11-28-dynamic-specialists-slice-1.md`
  (rev 3.1; Astra plan rounds 1 to 3 folded in; 21 tasks in two halves).
  The plan's task text, including its "Astra plan round" sections, is
  binding.
- Repo rules: this repo's `AGENTS.md`. Earlier slices built the same way:
  `docs/superpowers/plans/2026-11-26-places-slice-1.md` and its copy file.

## Set up

From `/home/paulca/amadan.net/oficina/equipo`:
`git fetch origin && test ! -e ../equipo-specialists-1 && git worktree add ../equipo-specialists-1 -b specialists-slice-1 origin/design-dynamic-specialists && test -d ../equipo-specialists-1`,
then in it `git merge origin/main` (renumber protocol 36 and migration 0115
if main took them). Create one Amadan task per plan task on the branch and
advance each as it finishes.

## How to run it

Use `superpowers:subagent-driven-development` with these adaptations:

1. **Opus implements** (Paul, 2026-11-08): one Opus subagent per task,
   given the task's text from the plan, the plan's "Rules for every task"
   and the facts section. It writes the failing test first, sees it fail,
   implements, runs a mutation check for each guard, and records the
   commands and results in the commit body. Targeted
   `go test ./pkg/... -run TestX` only.
2. **Astra reviews the risky tasks** as they finish: tasks 4 (verify), 5
   (render sandbox), 9 (workspace snapshot), 15 (proposal and
   continuation) and 16 (grants and revocation). Run with the sandbox off,
   from the worktree:
   `codex exec -m gpt-6-astra -c model_reasoning_effort=high -s read-only -c 'sandbox_permissions=["disk-full-read-access"]' -o <file> "<prompt>" </dev/null`.
   The other tasks get no task review; the whole-branch review covers them.
3. **Astra reviews the whole branch** at the end, against the spec and
   plan.
4. **Round limit: at most three rounds per review**, task or branch.
   After a third round's findings are fixed, record the fix in the plan's
   build notes and do not review again.
5. **Task 1 is a spike and a gate.** If Chromium's own sandbox cannot run
   inside the render sandbox on docs-t1, stop the build there and ask Paul:
   the spec forbids `--no-sandbox`.
6. Run `make ci` once, after the branch review's fixes, not in a loop.

## Copy

Implementers list new strings; they never start a copy-review server. Put
every new string into `copy.go` marked pending
(`scripts/copy-status.py pending`) and into
`/home/paulca/.cache/specialists-1-copy.json` as copy-review entries,
following `docs/superpowers/plans/2026-11-26-places-slice-1-copy.md`
(the 11-26 convention). Luna (`codex exec -m gpt-5.6-luna`, read-only)
reviews them all and its text is applied. The Design card strings, the
recovery card and the Design pack (`internal/specialist/packs/design-v1.md`)
are for Paul. Write the evidence file
`docs/superpowers/plans/2026-11-28-dynamic-specialists-slice-1-copy.md`.
Never mark copy accepted yourself; the pending-copy gate stays red until
the repository's own copy flow accepts it.

## Stop for Paul only on

True product decisions: the task 1 gate; a licence that stops the pack
drawing on impeccable's method; anything that would widen what a
specialist may do beyond the spec. Put the question in a discussion on
the branch (`amadan discuss new oficina/equipo -branch specialists-slice-1 ...`)
and keep building what does not depend on it. Rule on everything else
yourself and record the ruling and what it costs if wrong.

## Never

- Merge, release, deploy, push `main`, or run `upgrade-thin.sh`.
- Enrol a machine, sign in to a provider, or run live provider sessions:
  use fakes and recorded fixtures.
- `sudo`; change `GOCACHE` or `GOMODCACHE`; `git clean -fdx` outside
  `$TMPDIR`; `git worktree prune`; glob deletes. Delete scratch by name.
- Bind anything but `127.0.0.1`.
- Touch other sessions' Paseo agents, worktrees or daemons.

Scratch goes under on-disk `$TMPDIR` via `mktemp -d`. Socket tests fail
with a long `TMPDIR` (the `sun_path` limit); give only those a short one
and remove it after. The task 1 spike downloads the pinned debs (a few
hundred MB); that is expected.

## Keep the branch page true

Push after each finished task. When you finish or stop, write the branch
handoff (`amadan branch handoff ...`) and end with: what was built, test
and mutation results, every Astra verdict by round, every ruling you made,
the copy file path, and what happens after release: an agent-run upgrade
whose `verify-installed` renders the fixture page on the production
runner, then Paul asks for the Patrix design overhaul and taps Add. Clean
up scratch and any processes you started.
