| 1 | # Controller report: Mac runners slice F (Engineering on a Mac) |
| 2 | |
| 3 | Branch `mac-slice-f`. It was built 2026-11-28 to 2026-11-30 from `origin/main` 8bd40ed1. `mac-placement-wait` was merged in, and main was merged in twice: 8ce34788, then 5875f30b with `mac-placement-wait` at 207d3237. The plan is `2026-11-28-mac-runners-slice-f.md` rev 4. What each task built, and every decision and ruling, is in `MAC-SLICE-F-PROGRESS.md`. Task 1's evidence is in `MAC-SLICE-F-TASK1-FINDINGS.md`. The live witness is `MAC-SLICE-F-WITNESS-RUNBOOK.md`. |
| 4 | |
| 5 | Review and Luna outputs, `make ci` logs and every task report are in the git-ignored `.superpowers/sdd/2026-11-28-mac-runners-slice-f/` of this worktree (`reviews/` and `task-*-report.md`). |
| 6 | |
| 7 | ## Numbers |
| 8 | |
| 9 | - **Protocol 37** (`wire.ProtocolMacEngineering`). Main took 36 for lookups. Allocation was by the coordinating session; whichever branch merges second renumbers. |
| 10 | - **Migration 0120** (`0120_mac_engineering.sql`). Main has 0115 to 0117, and the migration check accepts the gap. |
| 11 | |
| 12 | ## How it was run |
| 13 | |
| 14 | - The process was subagent-driven development. An Opus implementer did each task, and Astra (`gpt-6-astra`, high effort, read-only) reviewed every task, not only the plan's risky ones, plus the whole branch. Each review had at most three rounds. |
| 15 | - Tasks 5, 6 and 7 ran in parallel worktrees and were merged back in order. |
| 16 | - Where a task's third round still had findings, the controller ruled them clearly right and had them fixed without a fourth round. The whole-branch review then checked those fixes: task 9 (ab7a5de0), the task 9 follow-up (a16e4bee), task 10 (1e1bad03), task 14 (9c429dc8) and task 16 (4854d8fe). |
| 17 | - Luna (`gpt-6-luna`) reviewed every new string under Paul's delegation of 2026-10-25, in four passes. Paul reviewed his six card lines himself. |
| 18 | |
| 19 | ## Whole-branch review |
| 20 | |
| 21 | Astra reviewed the branch in three rounds: |
| 22 | |
| 23 | - **Round 1** was NOT READY, with 5 Important findings and 1 Minor. All six were fixed in ada71470..ecf71a8d: |
| 24 | - a Keychain clock bypass; |
| 25 | - cleanup errors ignored; |
| 26 | - worker reports accepted below 37; |
| 27 | - the publication's primary; |
| 28 | - oversize outbound packs; |
| 29 | - probe prose outside copy.go. |
| 30 | - **Round 2** was NOT READY, with 5 Important findings, fixed in 6b8ba04b, 31c96803 and 03248d30: |
| 31 | - one deadline with two bounds; |
| 32 | - a failed cleanup keeps its boot evidence; |
| 33 | - a commit reported between primaries; |
| 34 | - Retry surviving the transfer prune; |
| 35 | - readiness needing P2. |
| 36 | - **Round 3**, the final round, was NOT READY, with 4 Important findings. The controller ruled them clearly right, and they were fixed without a fourth round in 70724b9b, 9478490f and 8c71000e: |
| 37 | - the turn held until cleanup ends; |
| 38 | - reboot evidence kept after a failed cleanup; |
| 39 | - a lost wakeup for held reports; |
| 40 | - secrets screened before truncation. |
| 41 | |
| 42 | No reviewer has seen these three commits. |
| 43 | |
| 44 | ## Rulings that changed the design |
| 45 | |
| 46 | These are all recorded in the progress file. In short: |
| 47 | |
| 48 | - **D1 no and D2 keep `paulequipo`.** Paul ruled both on 2026-11-28. |
| 49 | - **Task 1 findings.** These rulings followed from what the CLI and macOS turned out to do: |
| 50 | - `network.strictAllowlist`; |
| 51 | - the token only by file descriptor; |
| 52 | - the transcript directory pinned by `CLAUDE_CODE_PROJECT_DIR_NAME`; |
| 53 | - Bash answered by the permission tool, because the env scrub turns auto-allow off. |
| 54 | - **Termination (task 9).** Bash commands start in their own sessions, and macOS 27.2 hides platform binaries' environments. Termination is therefore proven by: |
| 55 | - tracking groups and sessions; |
| 56 | - a sweep of every new runner-uid process that is not the runner's own; |
| 57 | - one re-snapshot; |
| 58 | - proof within a 30 s deadline, with cleanup under its own bound. |
| 59 | |
| 60 | The coordinating session approved this and its stricter follow-up. Spec §8.8 records it. |
| 61 | - **Clearing a turn left unproven** (requested by the coordinating session). An idle read under `Turns` clears it, but only for turns that ran nothing outside a sandbox. A reboot clears any turn. |
| 62 | - **Credential holds (tasks 10 and 11).** A hold clears only when `Verify` proves the turn ended or the machine has rebooted, and a clean Keychain listing follows. |
| 63 | - **Probes (task 14).** They use protected execution evidence. Only the hashed probe script may run, its results go where only that script writes, and F6 is judged from the CLI's own events. Model text never counts. |
| 64 | - **Engineering readiness.** A Mac is ready only with P2 `denied`, because the object scan's gitleaks runs under the srt profile that P2 proves. |
| 65 | - **Declined: the protocol 1 primary exception.** `mac-placement-wait`'s own review had removed it. The copy-gate finding was declined too: the coordinating session fixed the gate on main. |
| 66 | |
| 67 | ## Process deviations (recorded exceptions) |
| 68 | |
| 69 | - **Tests after code.** Several tasks wrote code before its tests: 9, 10, 11, 12, 13, 14 and 16. Each case is a recorded exception granted on one condition: every original guard gets a named mutation, killed by a named test, listed in the fix commit's body. The coordinating session accepted this for task 9. Task 14's exceptions are written into its brief. |
| 70 | - **F2's "other closed home".** It is marked not applicable, because the OS protects that home and the runner cannot plant a file in it. |
| 71 | |
| 72 | ## Copy |
| 73 | |
| 74 | - **Paul's six** are `COPY APPROVED (Paul, 2026-11-29, copy-review d62qn3bsdsvg6g2c42p2t3ptqm, unchanged)`. |
| 75 | - **159 strings** are `COPY ACCEPTED BY DELEGATION (Luna, 2026-11-29)`. |
| 76 | - **Six keys keep main's markers.** These are the four `work.decide.mac_*` card lines Paul approved, among them. |
| 77 | - **Controller settlements of Luna's flags:** |
| 78 | - `runner.mac.home_open` ships without backticks (formatting only); |
| 79 | - the docs say "the runner user" and "about 50 minutes"; |
| 80 | - two probe-detail parameters became counts, so their wording says counts. |
| 81 | - The coordinating session ruled that build agents write these markers, as main does. |
| 82 | - `make copy-release-check` passes. Only the `docs/mac-runner.md` section is pending, and the gate does not read it. |
| 83 | |
| 84 | ## Verification |
| 85 | |
| 86 | - **`make ci`** ran once before the whole-branch review (task 17; logs in `~/.cache/mac-slice-f-build/make-ci-1*.log`). Every failure this branch caused was fixed. Failures that also happen at 8bd40ed1: `TestBrowserUsageAndAdvice/390`, and the containment socket path under a long TMPDIR. Flakes that passed on retry: the oficinaid native session lifetime test, OpenCode startup, and `TestMacWorker/M9e` under load. |
| 87 | - **The full thin package** takes about 15 minutes locally. It was 820 s at the base, and slice F adds tests. This stays open: speed up the darwin creds tests, or raise the lane timeout. |
| 88 | - **Hosted CI** on 6f21c002 failed two shards: a budget record over 200 bytes, and a staticcheck finding. Both are fixed in 8c71000e. On 5da6f1fb, `TestMacWorker/M9c` failed twice. The cause was a lock-order inversion: the connection refresh took the account lock, then waited for the Mac's turn, while a step held the turn and waited for the account. It is fixed in cbb516aa, which pins the cause with a test. **Hosted CI passed on cbb516aa.** |
| 89 | |
| 90 | ## Only the Mac can show |
| 91 | |
| 92 | This is listed in the progress file. The items most likely to matter at the witness: |
| 93 | - whether the CLI asks the permission tool for every Bash command; |
| 94 | - the CLI's permission-denied wording; |
| 95 | - whether `xcodebuild` can build from a read-only fixture; |
| 96 | - the login Keychain listing under launchd; |
| 97 | - `kern.bootsessionuuid`; |
| 98 | - whether `proc_pidpath` and `getsid` work on 27.2. |
| 99 | |
| 100 | Each fails closed. |
| 101 | |
| 102 | ## Open |
| 103 | |
| 104 | - Under heavy local load, `TestMacWorker/M9b` sometimes reads the result before its fix round's push lands (a test settle race). It has not been seen on hosted CI, and it is not fixed. |
| 105 | |
| 106 | - The round 3 fixes (70724b9b, 9478490f, 8c71000e) are unreviewed, because the round limit allows no fourth review. |
| 107 | - Since 8c71000e, a secret written into a worker's commit message is redacted before the commit, rather than ending the step `secret_in_candidate`. |
| 108 | - The Linux primary still clips its summary and log tail before redaction. This predates slice F; the finding named only the worker. |
| 109 | |
| 110 | - The Studio's Machines page line (protocol, P1 to P7, the taint) was never read. It needs Paul's sign-in. P2 must be `denied` before the witness. |
| 111 | - The thin package's local run time. |
| 112 | - The mac package's tests take about 46 to 50 s against a 45 s budget on a loaded host. |
| 113 | - Older protocol downgrades (26, 28, 31, 35) still pass explicitly empty keys on message types slice F does not touch. This was found in task 2. |
| 114 | |