| 1 | # Controller brief: build Mac runners slice F (Engineering on a Mac) |
| 2 | |
| 3 | You are the controller for building slice F on branch `mac-slice-f` in |
| 4 | `/home/paulca/amadan.net/oficina/equipo-mac-slice-f`. Paul asked for it |
| 5 | on 2026-11-28: "Surely mac runners need to be able to do native Mac and |
| 6 | iOS development?" You did not take part in the planning. Everything you |
| 7 | need is in these files: |
| 8 | |
| 9 | - Plan: `docs/superpowers/plans/2026-11-28-mac-runners-slice-f.md` |
| 10 | (rev 4, after three Astra rounds: NOT READY, NOT READY, READY AFTER |
| 11 | FIXES, with every finding applied). Its §0 ground rules bind every |
| 12 | task. |
| 13 | - Spec: `docs/superpowers/specs/2026-11-07-equipo-mac-runners.md`, |
| 14 | accepted rev 4, plus its **§8 addendum (2026-11-28)**. §8 is current |
| 15 | where it differs from §§1 to 7. §8.7 holds the two open decisions, D1 |
| 16 | and D2. |
| 17 | - How slices A to E were built: `docs/superpowers/plans/RUNNERS-PROGRESS.md` |
| 18 | and `DARWIN-PROGRESS.md`. Follow their conventions. |
| 19 | - Repo rules: `AGENTS.md`. Read it before anything else. |
| 20 | - Background if useful (read-only): the parent's memory notes |
| 21 | `equipo.md` (search "Mac", "Studio", "slice"), `tito-studio-ssh.md` |
| 22 | and `equipo-native-design-bar.md` under |
| 23 | `/home/paulca/.paseo/zerosub/homes/claude-9560fc757d62/projects/-home-paulca-amadan-net-carlos-platform/memory/`. |
| 24 | |
| 25 | ## How to run it |
| 26 | |
| 27 | Use `superpowers:subagent-driven-development`, with these rulings (Paul, |
| 28 | 2026-11-08: Opus implements, Astra reviews): |
| 29 | |
| 30 | 1. **Implementers are Opus subagents** (model `opus`), one per plan task, |
| 31 | each given its task text, the plan's §0 rules, and the spec sections |
| 32 | the task names. Tasks 5, 6 and 7 are independent and may run in |
| 33 | parallel, each in its own worktree branched from `mac-slice-f`; |
| 34 | merge them back in order. Everything else runs in plan order. |
| 35 | 2. **Astra reviews the risky tasks** (3, 4, 7, 8, 9, 10, 11, 12, 15) and |
| 36 | the **whole branch**, read-only, at most **three rounds each**: |
| 37 | |
| 38 | codex exec -m gpt-6-astra -c model_reasoning_effort=high -s read-only \ |
| 39 | -c 'sandbox_permissions=["disk-full-read-access"]' \ |
| 40 | -o ~/.cache/mac-slice-f-build/<task>-r<n>.md "<prompt>" </dev/null |
| 41 | |
| 42 | Run it with the Bash sandbox off. The prompt names the task, the plan |
| 43 | section, the diff range and the previous round's findings file, and |
| 44 | asks for a verdict line and numbered findings tagged Critical, |
| 45 | Important or Minor. After round 3, fix what is clearly right, record |
| 46 | what stays open in the progress file, and tell the parent. Never run |
| 47 | a fourth round. |
| 48 | 3. **Tests first, mutations observed** (plan §0). An implementer's report |
| 49 | must list the failing-first runs and the mutations with the test each |
| 50 | one failed. A task without them is not done. |
| 51 | 4. **Gates.** Targeted `go test -run` while iterating, plus the darwin |
| 52 | cross-build and `make vet` on any task touching darwin files. Run |
| 53 | `make ci` once, before the whole-branch review. There is no CI on |
| 54 | docs-t1; the forge's hosted CI runs on push. |
| 55 | |
| 56 | ## Keep the branch true |
| 57 | |
| 58 | - Before each task, `git fetch origin`. If `origin/main` or |
| 59 | `origin/mac-placement-wait` moved, merge them in (task 0 explains), and |
| 60 | resolve conflicts in favour of what landed there. |
| 61 | - Push after each completed task. |
| 62 | - Keep `docs/superpowers/plans/MAC-SLICE-F-PROGRESS.md` current: done, |
| 63 | tests, mutations, decisions, only-the-Mac-can-show, open issues, copy. |
| 64 | - One amadan task per plan task on the branch |
| 65 | (`amadan task list oficina/equipo -branch mac-slice-f`; set each one |
| 66 | Done as it lands). Questions for the parent or Paul go in an amadan |
| 67 | discussion on the branch, never a GitHub issue. Keep going on |
| 68 | everything that does not depend on the answer. |
| 69 | - Commit subjects under 80 characters, a blank line, then the body, |
| 70 | ending with `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>`. |
| 71 | |
| 72 | ## Copy |
| 73 | |
| 74 | New user-facing strings go in `internal/equipo/copy.go`, marked pending |
| 75 | with `scripts/copy-status.py pending`, and in |
| 76 | `docs/superpowers/plans/2026-11-28-mac-slice-f-copy.json` (copy-review |
| 77 | skill format: key, where it shows, draft). When task 15 is done, hand the |
| 78 | JSON to **Luna** for review. Paul sees only the user-facing card lines: |
| 79 | the Needs-you lines, the "Add Claude to <Mac>" button and the step's |
| 80 | "Made on" line, about four lines. Apply the reviewed text verbatim. The |
| 81 | strings stay pending: acceptance goes only through the project's own |
| 82 | path (AGENTS.md), never by you or an implementer. |
| 83 | |
| 84 | ## The Studio |
| 85 | |
| 86 | - Read-only probes only, as `paulca`: |
| 87 | `ssh -o BatchMode=yes tito-studio 'bash -s' <<'EOF' ... EOF`, with the |
| 88 | Bash sandbox off. No `sudo`. |
| 89 | - Do not read `paulequipo`'s files. Do not change users, ACLs, installs, |
| 90 | launch agents or the runner. Scratch on the Studio goes in a |
| 91 | `mktemp -d` under paulca's temp dir and is removed in the same |
| 92 | command. |
| 93 | - The Studio is enrolled to production only. Nothing in the build needs |
| 94 | it. Task 18 (the live witness) happens after someone else deploys, so |
| 95 | write its runbook and stop. |
| 96 | |
| 97 | ## Stop for Paul only for |
| 98 | |
| 99 | - **D1 and D2** (spec §8.7). Build the recommended defaults and ask once |
| 100 | through the parent, early (after task 0), so the answers are in before |
| 101 | task 18. If Paul overrules D1, the change is the one predicate in task |
| 102 | 15 plus a warning string. |
| 103 | - Anything that needs his sign-in (adding Claude to Tito Studio), his |
| 104 | `sudo` on the Studio, a new macOS user, or a change to his home or the |
| 105 | runner user's home (for example `chmod 700 ~`). |
| 106 | |
| 107 | **Raise with the parent first; these are not Paul's unless the parent |
| 108 | says so:** |
| 109 | |
| 110 | - a task 1 stop: a sandbox settings key the design needs that the |
| 111 | pinned CLI does not read (S2); the attempt marker not surviving the |
| 112 | CLI's environment scrub (S5); |
| 113 | - the Studio's P2 not `denied` (it blocks task 18, not the build); |
| 114 | - the protocol and migration numbers (task 0). |
| 115 | |
| 116 | ## Never |
| 117 | |
| 118 | - Merge, deploy, push `main`, or run `scripts/upgrade-thin.sh`. |
| 119 | - Enrol a machine, sign in to a provider, create credential homes on a |
| 120 | real machine, or run a live model turn. Use the fake CLI and recorded |
| 121 | fixtures. |
| 122 | - Download anything over a few GB. The task 1 CLI download (about |
| 123 | 200 MB) is fine. |
| 124 | - Glob-delete. Remove only paths you created, by exact name. |
| 125 | `git worktree prune`, `git clean -fdx` outside `$TMPDIR`, `sudo`, and |
| 126 | changes to `GOCACHE`, `GOMODCACHE` or `GOTMPDIR` are all out. |
| 127 | - Bind a server to anything but `127.0.0.1`. |
| 128 | - Touch other sessions' Paseo agents, worktrees or branches |
| 129 | (`mac-install-safe`, `mac-placement-wait`, the dynamic specialists |
| 130 | branch and others are someone else's). |
| 131 | |
| 132 | ## Scratch and cleanup |
| 133 | |
| 134 | Scratch goes in `mktemp -d` under `$TMPDIR` (on disk), or |
| 135 | `~/.cache/mac-slice-f-build/` for review outputs. Remove it when you are |
| 136 | done. Stop every process you started. |
| 137 | |
| 138 | ## Done means |
| 139 | |
| 140 | All tasks 0 to 17 done, with their tests and mutations recorded. `make |
| 141 | ci` green once, and hosted CI green on the pushed head. The whole-branch |
| 142 | Astra review closed within three rounds, or what stays open written |
| 143 | down. The copy JSON reviewed by Luna, with Paul's card lines shown to |
| 144 | him. A controller report |
| 145 | (`docs/superpowers/plans/CONTROLLER-REPORT-mac-slice-f.md`) and a |
| 146 | handoff to the parent with: |
| 147 | |
| 148 | - the head SHA; |
| 149 | - the D1 and D2 answers, or that they are still open; |
| 150 | - the Studio's P2 status; |
| 151 | - the task 18 runbook, saying which steps are Paul's. |
| 152 | |