oficina / equipo Public

Merge branch 'mac-xcode-scratch' into main

Merge mac-xcode-scratch: Xcode writes into the attempt scratch

P2 and the Xcode checks gate send derived data, cloned packages and
the package cache into the attempt's scratch, so the srt profile need
not widen. The writable set is unchanged. Hosted CI passed on cca253e.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 8d7f21761f339636c8a421d6336945e344750066 parent 4e51bcdparent cca253e
9 files changed, +186 −14
  • .rastrillo/budgets.txt +1 −1
  • internal/runner/mac/caps_test.go +1 −1
  • internal/runner/mac/fixtures/hostile/project/Hostile.xcodeproj/xcshareddata/xcschemes/HostileScript.xcscheme +58 −0
  • internal/runner/mac/p2why_test.go +1 −1
  • internal/runner/mac/probe.go +16 −7
  • internal/runner/mac/probe_test.go +7 −1
  • internal/runner/mac/xcode.go +22 −3
  • internal/runner/mac/xcode_test.go +74 −0
  • internal/runner/thin/mac_test.go +6 −0

CI passed — run details

diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 6f3ff60b..6d0722e6 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -34,7 +34,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full
perf GET /releases/* skip Verified runner release file downloads, not browser GET screens.
perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen.
time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s; niced serial reruns measured 5.773s and 5.750s. The added coordinator mount check has no repeated launches to remove; 15s leaves 38 percent headroom for namespace, process-exit and recovery assertions.
-size internal/runner/thin 16948 8594 Empty repositories merged onto main: measured 16948/8594. Empty repositories: the index lists a reachable repository with no commits as empty, DefaultBranch tells that from no access (lsRemote), reads of it say so, and the handshake hello keeps empty entries back until a protocol 6 welcome (about 52 lines); their tests (index_empty_test.go, the handshake hello at protocols 5 and 6, startLinkWith; about 183 lines). Token row facts merged onto main: measured 16896/8411. Token row facts read the check's rate limit and record it as a turn's (TokenCheck, the Verify wiring, about 40 lines); measured 16614. The leftover helper's debug line adds 3 lines: measured 16572. The Mac host's hang fix and probe pacing add the process group and its kill (procgroup_unix.go, procgroup_other.go), the bounded wait for a command's output, and the untrusted report's rerun decision with its tool fingerprint (about 165 lines); measured 16569. Runner startup logs add the info lines a silent start is pinned to a phase by (startup phases, the Mac host's xcode-select and capability commands, slow-command warnings, the probes, and the link's connecting, hello and welcome lines: startPhase, openRunner, watchSlow and logged, about 155 lines); measured 16405. Merge authority thin v1 adds the review's measured change facts (facts.go: raw and numstat listings, modes, signing lines, the revert tree check, about 230 lines), the merge_request confirmation and the merge's provenance; measured 16196 with spend-1 merged. Spend 1 resumes a fix round in Engineering's kept session on its healthy connection (fixSession, fixPlan, fixPrompt, keptCommit, about 90 lines); measured 15873. Claude's sign-in by a link's review round 1 contains its setup-token in a recorded namespace (the contained terminal, its proven stop and the start's recovery before a home goes, about 130 lines); measured 15787. Claude's sign-in by a link adds the runner's own setup-token attempt, the code's sealed delivery with its crash boundaries and the shared token commit (signin.go, about 300 lines, less the removed terminal watcher); measured 15655. Claude setup tokens add sealed delivery, the token check, Check again and recovery (token.go, tokencheck.go, about 700 lines) beside the composer and Mac lines; measured 15239. Astra round 2 moves the attachment quota to admission: arriving files counted by declared size, admissions protecting a file until its message names it, room made from the oldest unprotected files, refusal as runner_storage_full, and a sweep that stops when protection cannot be read (about 150 lines); measured 12191. Mac runners slices A and B add protocol negotiation (link.go), the capability report, the start authorization, the pack relay (relay.go), the primary's publication, the worker executor (worker.go) and the test-build fake worker, about 2700 lines on the same step engine. Composer attachments add the chunked receipt with exactly-once writes, the read-only desk delivery and its checks (files.go, about 230 lines), image blocks and localImage inputs, the attachment read through read_file; measured 11736. Connections slice 1 Astra round 1 adds the Codex step path (codexstep.go: Engineering and Review on the pinned app-server in the implement and inspect containment, about 300 lines); measured 11345. Connections slice 1 (after Astra round 1) also keeps a durable ledger of each turn's write tools so a later attempt never repeats one (effects.go), the waiting state between attempts and usage rows per attempt, about 500 lines more; measured 10590 before gate 1d. Connections slice 1 adds the Codex coordinator beside the Claude one (codex.go: the pinned app-server over JSON-RPC in the converse containment, sharing the coordinator base, desk, tool socket and session table), the connection registry over the bindings with health and provider limits (conns.go), in-app sign-in attempts (connector.go) and turn failover and holding (failover.go), about 1500 lines; the pure parts (the choice function, limit parsing, the app-server client, the sign-in flows) live in internal/runner/connect. Measured 10097. Thin v1 UX1 adds step activity lines from the specialist's stream, the repository head and checks gate in the index and project-tagged notes (about 120 lines); measured 8615 with slice 4c's review fixes. Thin v1 slice 4c adds the merge step (mergestep.go, about 190 lines) and the rebase round beside the slice 4b ask fixes. Thin v1 slice 3 adds Engineering steps beside the coordinator: the durable step state and engine (step.go) and the executor that checks out the task tree, runs the CLI in the implement containment, commits and pushes (engineer.go), about 800 lines sharing the coordinator's launch, tool socket and account selection. Measured 5686 source lines. Splitting would export the launch internals; revisit at the slice 7 sweep. Slice 4 adds checks and review on a candidate (judge.go) and the merge watch (merge.go), about 800 lines, sharing the Engineer launch path; measured 6808, 7035 after review round 1 (branch head watch, deadlines, streamed outputs). Slice 4b keeps Engineering and Review sessions and answers the creator's questions from them (ask.go: kept-session and ask state, read-only git tools, the answer stream), about 700 lines on the same launch path. Mac P2 diagnostics hand the probes' host runner.log's WARN (macHost.warn, 8 lines) and pin it with a test (12 lines): measured 16854/8411. Mac probe deadlines bound the booted simctl list, move the worker's wait for the probes out of its lock (hold) and warn when a probe run reaches its limit (about 24 lines); their tests (mac_stall_test.go: a fake xcrun that never answers, probes stalled while an update applies, about 270 lines) beside the Mac host they drive: measured 16846/8399. Release slice 1 merged onto main: measured 16822/8130. Release slice 1 (hosted checks) adds the hub's hosted CI verdict for checks: the deferred one-read poll with its persisted deadline, the one-snapshot verdict, the failing units and the restart case (judge_hosted.go, about 200 lines) and the forge's CI reads (forge.go, about 40); measured 16821. Its tests (judge_hosted_test.go, about 270 lines) take the package's tests to 8113, beside the step engine they drive. The leftover helper's debug line adds 3 lines: measured 16572. The Mac host's hang fix and probe pacing add the process group and its kill (procgroup_unix.go, procgroup_other.go), the bounded wait for a command's output, and the untrusted report's rerun decision with its tool fingerprint (about 165 lines); measured 16569. Runner startup logs add the info lines a silent start is pinned to a phase by (startup phases, the Mac host's xcode-select and capability commands, slow-command warnings, the probes, and the link's connecting, hello and welcome lines: startPhase, openRunner, watchSlow and logged, about 155 lines); measured 16405. Merge authority thin v1 adds the review's measured change facts (facts.go: raw and numstat listings, modes, signing lines, the revert tree check, about 230 lines), the merge_request confirmation and the merge's provenance; measured 16196 with spend-1 merged. Spend 1 resumes a fix round in Engineering's kept session on its healthy connection (fixSession, fixPlan, fixPrompt, keptCommit, about 90 lines); measured 15873. Claude's sign-in by a link's review round 1 contains its setup-token in a recorded namespace (the contained terminal, its proven stop and the start's recovery before a home goes, about 130 lines); measured 15787. Claude's sign-in by a link adds the runner's own setup-token attempt, the code's sealed delivery with its crash boundaries and the shared token commit (signin.go, about 300 lines, less the removed terminal watcher); measured 15655. Claude setup tokens add sealed delivery, the token check, Check again and recovery (token.go, tokencheck.go, about 700 lines) beside the composer and Mac lines; measured 15239. Astra round 2 moves the attachment quota to admission: arriving files counted by declared size, admissions protecting a file until its message names it, room made from the oldest unprotected files, refusal as runner_storage_full, and a sweep that stops when protection cannot be read (about 150 lines); measured 12191. Mac runners slices A and B add protocol negotiation (link.go), the capability report, the start authorization, the pack relay (relay.go), the primary's publication, the worker executor (worker.go) and the test-build fake worker, about 2700 lines on the same step engine. Composer attachments add the chunked receipt with exactly-once writes, the read-only desk delivery and its checks (files.go, about 230 lines), image blocks and localImage inputs, the attachment read through read_file; measured 11736. Connections slice 1 Astra round 1 adds the Codex step path (codexstep.go: Engineering and Review on the pinned app-server in the implement and inspect containment, about 300 lines); measured 11345. Connections slice 1 (after Astra round 1) also keeps a durable ledger of each turn's write tools so a later attempt never repeats one (effects.go), the waiting state between attempts and usage rows per attempt, about 500 lines more; measured 10590 before gate 1d. Connections slice 1 adds the Codex coordinator beside the Claude one (codex.go: the pinned app-server over JSON-RPC in the converse containment, sharing the coordinator base, desk, tool socket and session table), the connection registry over the bindings with health and provider limits (conns.go), in-app sign-in attempts (connector.go) and turn failover and holding (failover.go), about 1500 lines; the pure parts (the choice function, limit parsing, the app-server client, the sign-in flows) live in internal/runner/connect. Measured 10097. Thin v1 UX1 adds step activity lines from the specialist's stream, the repository head and checks gate in the index and project-tagged notes (about 120 lines); measured 8615 with slice 4c's review fixes. Thin v1 slice 4c adds the merge step (mergestep.go, about 190 lines) and the rebase round beside the slice 4b ask fixes. Thin v1 slice 3 adds Engineering steps beside the coordinator: the durable step state and engine (step.go) and the executor that checks out the task tree, runs the CLI in the implement containment, commits and pushes (engineer.go), about 800 lines sharing the coordinator's launch, tool socket and account selection. Measured 5686 source lines. Splitting would export the launch internals; revisit at the slice 7 sweep. Slice 4 adds checks and review on a candidate (judge.go) and the merge watch (merge.go), about 800 lines, sharing the Engineer launch path; measured 6808, 7035 after review round 1 (branch head watch, deadlines, streamed outputs). Slice 4b keeps Engineering and Review sessions and answers the creator's questions from them (ask.go: kept-session and ask state, read-only git tools, the answer stream), about 700 lines on the same launch path. The paste box house rule merged onto the runner logs: measured 16573. The leftover helper's debug line adds 3 lines: measured 16572. The Mac host's hang fix and probe pacing add the process group and its kill (procgroup_unix.go, procgroup_other.go), the bounded wait for a command's output, and the untrusted report's rerun decision with its tool fingerprint (about 165 lines); measured 16569. Runner startup logs add the info lines a silent start is pinned to a phase by (startup phases, the Mac host's xcode-select and capability commands, slow-command warnings, the probes, and the link's connecting, hello and welcome lines: startPhase, openRunner, watchSlow and logged, about 155 lines); measured 16405. Merge authority thin v1 adds the review's measured change facts (facts.go: raw and numstat listings, modes, signing lines, the revert tree check, about 230 lines), the merge_request confirmation and the merge's provenance; measured 16196 with spend-1 merged. Spend 1 resumes a fix round in Engineering's kept session on its healthy connection (fixSession, fixPlan, fixPrompt, keptCommit, about 90 lines); measured 15873. Claude's sign-in by a link's review round 1 contains its setup-token in a recorded namespace (the contained terminal, its proven stop and the start's recovery before a home goes, about 130 lines); measured 15787. Claude's sign-in by a link adds the runner's own setup-token attempt, the code's sealed delivery with its crash boundaries and the shared token commit (signin.go, about 300 lines, less the removed terminal watcher); measured 15655. Claude setup tokens add sealed delivery, the token check, Check again and recovery (token.go, tokencheck.go, about 700 lines) beside the composer and Mac lines; measured 15239. Astra round 2 moves the attachment quota to admission: arriving files counted by declared size, admissions protecting a file until its message names it, room made from the oldest unprotected files, refusal as runner_storage_full, and a sweep that stops when protection cannot be read (about 150 lines); measured 12191. Mac runners slices A and B add protocol negotiation (link.go), the capability report, the start authorization, the pack relay (relay.go), the primary's publication, the worker executor (worker.go) and the test-build fake worker, about 2700 lines on the same step engine. Composer attachments add the chunked receipt with exactly-once writes, the read-only desk delivery and its checks (files.go, about 230 lines), image blocks and localImage inputs, the attachment read through read_file; measured 11736. Connections slice 1 Astra round 1 adds the Codex step path (codexstep.go: Engineering and Review on the pinned app-server in the implement and inspect containment, about 300 lines); measured 11345. Connections slice 1 (after Astra round 1) also keeps a durable ledger of each turn's write tools so a later attempt never repeats one (effects.go), the waiting state between attempts and usage rows per attempt, about 500 lines more; measured 10590 before gate 1d. Connections slice 1 adds the Codex coordinator beside the Claude one (codex.go: the pinned app-server over JSON-RPC in the converse containment, sharing the coordinator base, desk, tool socket and session table), the connection registry over the bindings with health and provider limits (conns.go), in-app sign-in attempts (connector.go) and turn failover and holding (failover.go), about 1500 lines; the pure parts (the choice function, limit parsing, the app-server client, the sign-in flows) live in internal/runner/connect. Measured 10097. Thin v1 UX1 adds step activity lines from the specialist's stream, the repository head and checks gate in the index and project-tagged notes (about 120 lines); measured 8615 with slice 4c's review fixes. Thin v1 slice 4c adds the merge step (mergestep.go, about 190 lines) and the rebase round beside the slice 4b ask fixes. Thin v1 slice 3 adds Engineering steps beside the coordinator: the durable step state and engine (step.go) and the executor that checks out the task tree, runs the CLI in the implement containment, commits and pushes (engineer.go), about 800 lines sharing the coordinator's launch, tool socket and account selection. Measured 5686 source lines. Splitting would export the launch internals; revisit at the slice 7 sweep. Slice 4 adds checks and review on a candidate (judge.go) and the merge watch (merge.go), about 800 lines, sharing the Engineer launch path; measured 6808, 7035 after review round 1 (branch head watch, deadlines, streamed outputs). Slice 4b keeps Engineering and Review sessions and answers the creator's questions from them (ask.go: kept-session and ask state, read-only git tools, the answer stream), about 700 lines on the same launch path.
+size internal/runner/thin 16948 8600 Mac Xcode scratch: the Mac host test pins the gate's environment (the runner user's HOME kept, no scratch home; 6 lines); measured 16948/8600. Empty repositories merged onto main: measured 16948/8594. Empty repositories: the index lists a reachable repository with no commits as empty, DefaultBranch tells that from no access (lsRemote), reads of it say so, and the handshake hello keeps empty entries back until a protocol 6 welcome (about 52 lines); their tests (index_empty_test.go, the handshake hello at protocols 5 and 6, startLinkWith; about 183 lines). Token row facts merged onto main: measured 16896/8411. Token row facts read the check's rate limit and record it as a turn's (TokenCheck, the Verify wiring, about 40 lines); measured 16614. The leftover helper's debug line adds 3 lines: measured 16572. The Mac host's hang fix and probe pacing add the process group and its kill (procgroup_unix.go, procgroup_other.go), the bounded wait for a command's output, and the untrusted report's rerun decision with its tool fingerprint (about 165 lines); measured 16569. Runner startup logs add the info lines a silent start is pinned to a phase by (startup phases, the Mac host's xcode-select and capability commands, slow-command warnings, the probes, and the link's connecting, hello and welcome lines: startPhase, openRunner, watchSlow and logged, about 155 lines); measured 16405. Merge authority thin v1 adds the review's measured change facts (facts.go: raw and numstat listings, modes, signing lines, the revert tree check, about 230 lines), the merge_request confirmation and the merge's provenance; measured 16196 with spend-1 merged. Spend 1 resumes a fix round in Engineering's kept session on its healthy connection (fixSession, fixPlan, fixPrompt, keptCommit, about 90 lines); measured 15873. Claude's sign-in by a link's review round 1 contains its setup-token in a recorded namespace (the contained terminal, its proven stop and the start's recovery before a home goes, about 130 lines); measured 15787. Claude's sign-in by a link adds the runner's own setup-token attempt, the code's sealed delivery with its crash boundaries and the shared token commit (signin.go, about 300 lines, less the removed terminal watcher); measured 15655. Claude setup tokens add sealed delivery, the token check, Check again and recovery (token.go, tokencheck.go, about 700 lines) beside the composer and Mac lines; measured 15239. Astra round 2 moves the attachment quota to admission: arriving files counted by declared size, admissions protecting a file until its message names it, room made from the oldest unprotected files, refusal as runner_storage_full, and a sweep that stops when protection cannot be read (about 150 lines); measured 12191. Mac runners slices A and B add protocol negotiation (link.go), the capability report, the start authorization, the pack relay (relay.go), the primary's publication, the worker executor (worker.go) and the test-build fake worker, about 2700 lines on the same step engine. Composer attachments add the chunked receipt with exactly-once writes, the read-only desk delivery and its checks (files.go, about 230 lines), image blocks and localImage inputs, the attachment read through read_file; measured 11736. Connections slice 1 Astra round 1 adds the Codex step path (codexstep.go: Engineering and Review on the pinned app-server in the implement and inspect containment, about 300 lines); measured 11345. Connections slice 1 (after Astra round 1) also keeps a durable ledger of each turn's write tools so a later attempt never repeats one (effects.go), the waiting state between attempts and usage rows per attempt, about 500 lines more; measured 10590 before gate 1d. Connections slice 1 adds the Codex coordinator beside the Claude one (codex.go: the pinned app-server over JSON-RPC in the converse containment, sharing the coordinator base, desk, tool socket and session table), the connection registry over the bindings with health and provider limits (conns.go), in-app sign-in attempts (connector.go) and turn failover and holding (failover.go), about 1500 lines; the pure parts (the choice function, limit parsing, the app-server client, the sign-in flows) live in internal/runner/connect. Measured 10097. Thin v1 UX1 adds step activity lines from the specialist's stream, the repository head and checks gate in the index and project-tagged notes (about 120 lines); measured 8615 with slice 4c's review fixes. Thin v1 slice 4c adds the merge step (mergestep.go, about 190 lines) and the rebase round beside the slice 4b ask fixes. Thin v1 slice 3 adds Engineering steps beside the coordinator: the durable step state and engine (step.go) and the executor that checks out the task tree, runs the CLI in the implement containment, commits and pushes (engineer.go), about 800 lines sharing the coordinator's launch, tool socket and account selection. Measured 5686 source lines. Splitting would export the launch internals; revisit at the slice 7 sweep. Slice 4 adds checks and review on a candidate (judge.go) and the merge watch (merge.go), about 800 lines, sharing the Engineer launch path; measured 6808, 7035 after review round 1 (branch head watch, deadlines, streamed outputs). Slice 4b keeps Engineering and Review sessions and answers the creator's questions from them (ask.go: kept-session and ask state, read-only git tools, the answer stream), about 700 lines on the same launch path. Mac P2 diagnostics hand the probes' host runner.log's WARN (macHost.warn, 8 lines) and pin it with a test (12 lines): measured 16854/8411. Mac probe deadlines bound the booted simctl list, move the worker's wait for the probes out of its lock (hold) and warn when a probe run reaches its limit (about 24 lines); their tests (mac_stall_test.go: a fake xcrun that never answers, probes stalled while an update applies, about 270 lines) beside the Mac host they drive: measured 16846/8399. Release slice 1 merged onto main: measured 16822/8130. Release slice 1 (hosted checks) adds the hub's hosted CI verdict for checks: the deferred one-read poll with its persisted deadline, the one-snapshot verdict, the failing units and the restart case (judge_hosted.go, about 200 lines) and the forge's CI reads (forge.go, about 40); measured 16821. Its tests (judge_hosted_test.go, about 270 lines) take the package's tests to 8113, beside the step engine they drive. The leftover helper's debug line adds 3 lines: measured 16572. The Mac host's hang fix and probe pacing add the process group and its kill (procgroup_unix.go, procgroup_other.go), the bounded wait for a command's output, and the untrusted report's rerun decision with its tool fingerprint (about 165 lines); measured 16569. Runner startup logs add the info lines a silent start is pinned to a phase by (startup phases, the Mac host's xcode-select and capability commands, slow-command warnings, the probes, and the link's connecting, hello and welcome lines: startPhase, openRunner, watchSlow and logged, about 155 lines); measured 16405. Merge authority thin v1 adds the review's measured change facts (facts.go: raw and numstat listings, modes, signing lines, the revert tree check, about 230 lines), the merge_request confirmation and the merge's provenance; measured 16196 with spend-1 merged. Spend 1 resumes a fix round in Engineering's kept session on its healthy connection (fixSession, fixPlan, fixPrompt, keptCommit, about 90 lines); measured 15873. Claude's sign-in by a link's review round 1 contains its setup-token in a recorded namespace (the contained terminal, its proven stop and the start's recovery before a home goes, about 130 lines); measured 15787. Claude's sign-in by a link adds the runner's own setup-token attempt, the code's sealed delivery with its crash boundaries and the shared token commit (signin.go, about 300 lines, less the removed terminal watcher); measured 15655. Claude setup tokens add sealed delivery, the token check, Check again and recovery (token.go, tokencheck.go, about 700 lines) beside the composer and Mac lines; measured 15239. Astra round 2 moves the attachment quota to admission: arriving files counted by declared size, admissions protecting a file until its message names it, room made from the oldest unprotected files, refusal as runner_storage_full, and a sweep that stops when protection cannot be read (about 150 lines); measured 12191. Mac runners slices A and B add protocol negotiation (link.go), the capability report, the start authorization, the pack relay (relay.go), the primary's publication, the worker executor (worker.go) and the test-build fake worker, about 2700 lines on the same step engine. Composer attachments add the chunked receipt with exactly-once writes, the read-only desk delivery and its checks (files.go, about 230 lines), image blocks and localImage inputs, the attachment read through read_file; measured 11736. Connections slice 1 Astra round 1 adds the Codex step path (codexstep.go: Engineering and Review on the pinned app-server in the implement and inspect containment, about 300 lines); measured 11345. Connections slice 1 (after Astra round 1) also keeps a durable ledger of each turn's write tools so a later attempt never repeats one (effects.go), the waiting state between attempts and usage rows per attempt, about 500 lines more; measured 10590 before gate 1d. Connections slice 1 adds the Codex coordinator beside the Claude one (codex.go: the pinned app-server over JSON-RPC in the converse containment, sharing the coordinator base, desk, tool socket and session table), the connection registry over the bindings with health and provider limits (conns.go), in-app sign-in attempts (connector.go) and turn failover and holding (failover.go), about 1500 lines; the pure parts (the choice function, limit parsing, the app-server client, the sign-in flows) live in internal/runner/connect. Measured 10097. Thin v1 UX1 adds step activity lines from the specialist's stream, the repository head and checks gate in the index and project-tagged notes (about 120 lines); measured 8615 with slice 4c's review fixes. Thin v1 slice 4c adds the merge step (mergestep.go, about 190 lines) and the rebase round beside the slice 4b ask fixes. Thin v1 slice 3 adds Engineering steps beside the coordinator: the durable step state and engine (step.go) and the executor that checks out the task tree, runs the CLI in the implement containment, commits and pushes (engineer.go), about 800 lines sharing the coordinator's launch, tool socket and account selection. Measured 5686 source lines. Splitting would export the launch internals; revisit at the slice 7 sweep. Slice 4 adds checks and review on a candidate (judge.go) and the merge watch (merge.go), about 800 lines, sharing the Engineer launch path; measured 6808, 7035 after review round 1 (branch head watch, deadlines, streamed outputs). Slice 4b keeps Engineering and Review sessions and answers the creator's questions from them (ask.go: kept-session and ask state, read-only git tools, the answer stream), about 700 lines on the same launch path. The paste box house rule merged onto the runner logs: measured 16573. The leftover helper's debug line adds 3 lines: measured 16572. The Mac host's hang fix and probe pacing add the process group and its kill (procgroup_unix.go, procgroup_other.go), the bounded wait for a command's output, and the untrusted report's rerun decision with its tool fingerprint (about 165 lines); measured 16569. Runner startup logs add the info lines a silent start is pinned to a phase by (startup phases, the Mac host's xcode-select and capability commands, slow-command warnings, the probes, and the link's connecting, hello and welcome lines: startPhase, openRunner, watchSlow and logged, about 155 lines); measured 16405. Merge authority thin v1 adds the review's measured change facts (facts.go: raw and numstat listings, modes, signing lines, the revert tree check, about 230 lines), the merge_request confirmation and the merge's provenance; measured 16196 with spend-1 merged. Spend 1 resumes a fix round in Engineering's kept session on its healthy connection (fixSession, fixPlan, fixPrompt, keptCommit, about 90 lines); measured 15873. Claude's sign-in by a link's review round 1 contains its setup-token in a recorded namespace (the contained terminal, its proven stop and the start's recovery before a home goes, about 130 lines); measured 15787. Claude's sign-in by a link adds the runner's own setup-token attempt, the code's sealed delivery with its crash boundaries and the shared token commit (signin.go, about 300 lines, less the removed terminal watcher); measured 15655. Claude setup tokens add sealed delivery, the token check, Check again and recovery (token.go, tokencheck.go, about 700 lines) beside the composer and Mac lines; measured 15239. Astra round 2 moves the attachment quota to admission: arriving files counted by declared size, admissions protecting a file until its message names it, room made from the oldest unprotected files, refusal as runner_storage_full, and a sweep that stops when protection cannot be read (about 150 lines); measured 12191. Mac runners slices A and B add protocol negotiation (link.go), the capability report, the start authorization, the pack relay (relay.go), the primary's publication, the worker executor (worker.go) and the test-build fake worker, about 2700 lines on the same step engine. Composer attachments add the chunked receipt with exactly-once writes, the read-only desk delivery and its checks (files.go, about 230 lines), image blocks and localImage inputs, the attachment read through read_file; measured 11736. Connections slice 1 Astra round 1 adds the Codex step path (codexstep.go: Engineering and Review on the pinned app-server in the implement and inspect containment, about 300 lines); measured 11345. Connections slice 1 (after Astra round 1) also keeps a durable ledger of each turn's write tools so a later attempt never repeats one (effects.go), the waiting state between attempts and usage rows per attempt, about 500 lines more; measured 10590 before gate 1d. Connections slice 1 adds the Codex coordinator beside the Claude one (codex.go: the pinned app-server over JSON-RPC in the converse containment, sharing the coordinator base, desk, tool socket and session table), the connection registry over the bindings with health and provider limits (conns.go), in-app sign-in attempts (connector.go) and turn failover and holding (failover.go), about 1500 lines; the pure parts (the choice function, limit parsing, the app-server client, the sign-in flows) live in internal/runner/connect. Measured 10097. Thin v1 UX1 adds step activity lines from the specialist's stream, the repository head and checks gate in the index and project-tagged notes (about 120 lines); measured 8615 with slice 4c's review fixes. Thin v1 slice 4c adds the merge step (mergestep.go, about 190 lines) and the rebase round beside the slice 4b ask fixes. Thin v1 slice 3 adds Engineering steps beside the coordinator: the durable step state and engine (step.go) and the executor that checks out the task tree, runs the CLI in the implement containment, commits and pushes (engineer.go), about 800 lines sharing the coordinator's launch, tool socket and account selection. Measured 5686 source lines. Splitting would export the launch internals; revisit at the slice 7 sweep. Slice 4 adds checks and review on a candidate (judge.go) and the merge watch (merge.go), about 800 lines, sharing the Engineer launch path; measured 6808, 7035 after review round 1 (branch head watch, deadlines, streamed outputs). Slice 4b keeps Engineering and Review sessions and answers the creator's questions from them (ask.go: kept-session and ask state, read-only git tools, the answer stream), about 700 lines on the same launch path.
time internal/thintest 180s Mac runners slices A and B add role, scoping, migration, placement, withdrawal, transfer and publication contracts, and Astra round 1 eight transition contracts (about 15s; the package measured 126s locally under load). Housekeeping slice 1 adds six contract tests (combine, Undo round trips and the race, Pause, auto-disable, quiet hours, restart while claimed; about 6s); the package measured 67.7s beside other packages locally, so 75s. Thin v1 slice 4c adds the merge, adoption, cancel and retention contract tests (CI measured 35.7s). Thin v1 contract tests: a real instance and a scripted runner per test, fixtures replayed against every request, frame and event. Slice 3 adds the task, step-sync and grant contracts; CI measured 14.805s. 30s keeps room for the slice 4 review contracts. UX1 adds step activity, task source and duplicates, coordinator merging and project facts (four contracts, about 6s); the package measured 34s locally under load, so 40s. UX1's inner screens gallery (two owners, seven tasks, every page) adds about 3s; measured 40.9s locally under load, so 60s.
time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing a waiting test two seconds after it starts. About 6s alone; loaded CI measured 12.5s.
time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s). Measured 17.8s locally under load. Slice 4b review adds a 16 MiB git output bound, an injected index-pack failure and stall (3s deadline) and held-answer tests; measured 30.3s locally under load. 45s keeps 33 percent headroom.
diff --git a/internal/runner/mac/caps_test.go b/internal/runner/mac/caps_test.go
index f1448ac2..0095a317 100644
--- a/internal/runner/mac/caps_test.go
+++ b/internal/runner/mac/caps_test.go
@@ -96,7 +96,7 @@ func TestXcodeGate(t *testing.T) {
sims := ParseSimulators(mustRead(t, "testdata/simctl-devices.json"))
tree := woodstarTree(t, "Woodstar.xcodeproj/xcshareddata/xcschemes/Woodstar.xcscheme", "Woodstar/Swipe.swift")
argv, ok, reason := XcodeGate(tree, sims)
- want := `exec /usr/bin/xcodebuild test -project 'Woodstar.xcodeproj' -scheme 'Woodstar' -destination 'platform=iOS Simulator,id=8F0A1E2B-3D4F-4A5B-9C6D-7E8F90A1B2C3' -derivedDataPath "$TMPDIR/DerivedData" CODE_SIGNING_ALLOWED=NO`
+ want := `exec /usr/bin/xcodebuild test -project 'Woodstar.xcodeproj' -scheme 'Woodstar' -destination 'platform=iOS Simulator,id=8F0A1E2B-3D4F-4A5B-9C6D-7E8F90A1B2C3' -derivedDataPath "$TMPDIR/DerivedData" -clonedSourcePackagesDirPath "$TMPDIR/SourcePackages" -packageCachePath "$TMPDIR/PackageCache" CODE_SIGNING_ALLOWED=NO`
if !ok || reason != "" || !slices.Equal(argv, []string{"/bin/bash", "-c", want}) {
t.Fatalf("%v %v %q", argv, ok, reason)
}
diff --git a/internal/runner/mac/fixtures/hostile/project/Hostile.xcodeproj/xcshareddata/xcschemes/HostileScript.xcscheme b/internal/runner/mac/fixtures/hostile/project/Hostile.xcodeproj/xcshareddata/xcschemes/HostileScript.xcscheme
new file mode 100644
index 00000000..1440d0ca
--- /dev/null
+++ b/internal/runner/mac/fixtures/hostile/project/Hostile.xcodeproj/xcshareddata/xcschemes/HostileScript.xcscheme
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "1600"
+ version = "1.7">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "E0E0E0E0E0E0E0E0E0E00001"
+ BuildableName = "HostileScript"
+ BlueprintName = "HostileScript"
+ ReferencedContainer = "container:Hostile.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <Testables>
+ </Testables>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ allowLocationSimulation = "YES">
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Release"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/internal/runner/mac/p2why_test.go b/internal/runner/mac/p2why_test.go
index ad291225..a4859361 100644
--- a/internal/runner/mac/p2why_test.go
+++ b/internal/runner/mac/p2why_test.go
@@ -202,7 +202,7 @@ func TestP2Script(t *testing.T) {
}
last = i
}
- if strings.Count(s, "-skipPackagePluginValidation") != 3 || strings.Count(s, `-derivedDataPath "$TMPDIR/dd"`) != 3 || strings.Contains(s, "http") {
+ if strings.Count(s, "-skipPackagePluginValidation") != 3 || strings.Count(s, XcodeWrites) != 5 || strings.Contains(s, "http") {
t.Fatalf("script %s", s)
}
}
diff --git a/internal/runner/mac/probe.go b/internal/runner/mac/probe.go
index 68403680..0bf8ebd8 100644
--- a/internal/runner/mac/probe.go
+++ b/internal/runner/mac/probe.go
@@ -383,14 +383,18 @@ func p2Detail(groups map[string][]string, total int, srtRan, ended bool, why str
// p2Script is P2's run under srt, one step at a time, each reporting
// its exit (EQUIPO-PHASE <step> <exit>) so a failure names its step: the
// hostile script phase's build, then the package's resolve, test build,
-// the simulator's boot and the hostile test on it.
+// the simulator's boot and the hostile test on it. Every xcodebuild
+// writes only into the attempt's scratch (XcodeWrites), as checks do;
+// the script phase's target is built through its shared scheme because
+// xcodebuild takes -derivedDataPath only for a scheme, and SYMROOT and
+// OBJROOT stay in scratch too should a build fall back to them.
func p2Script(xb, xcrun, udid string) string {
dest := quote("platform=iOS Simulator,id=" + udid)
- pkg := ` -scheme "$s" -derivedDataPath "$TMPDIR/dd" -skipPackagePluginValidation`
+ pkg := ` -scheme "$s" ` + XcodeWrites + ` -skipPackagePluginValidation`
return `phase() { p=$1; shift; "$@"; c=$?; echo "EQUIPO-PHASE $p $c"; return $c; }
-(cd project && phase script-build ` + xb + ` -project Hostile.xcodeproj -target HostileScript -configuration Debug build SYMROOT="$TMPDIR/sym" OBJROOT="$TMPDIR/obj"); a=$?
+(cd project && phase script-build ` + xb + ` -project Hostile.xcodeproj -scheme HostileScript -configuration Debug build ` + XcodeWrites + ` SYMROOT="$TMPDIR/sym" OBJROOT="$TMPDIR/obj"); a=$?
cd package || exit 1
-s=Hostile-Package; ` + xb + ` -list 2>/dev/null | grep -q Hostile-Package || s=Hostile
+s=Hostile-Package; ` + xb + ` -list ` + XcodeWrites + ` 2>/dev/null | grep -q Hostile-Package || s=Hostile
phase package-resolve ` + xb + ` -resolvePackageDependencies` + pkg + ` &&
phase test-build ` + xb + ` build-for-testing -destination ` + dest + pkg + ` &&
phase simulator-boot ` + xcrun + ` simctl bootstatus ` + quote(udid) + ` -b &&
@@ -637,9 +641,7 @@ func probeP6(ctx context.Context, h ProbeHost, caps wire.Capabilities, srtRan bo
if wait <= 0 {
wait = 8 * time.Minute
}
- xb := quote(h.Tools.Xcodebuild)
- script := `cd package && s=Hostile-Package; ` + xb + ` -list 2>/dev/null | grep -q Hostile-Package || s=Hostile
-exec ` + xb + ` test -scheme "$s" -destination ` + quote(destination) + ` -only-testing:HostileTests/HostileTests/testWait -derivedDataPath "$TMPDIR/dd" -skipPackagePluginValidation`
+ script := p6Script(quote(h.Tools.Xcodebuild), destination)
res := g.Run(run, attempt, root, []string{"/bin/bash", "-c", script}, wait, func(string) error { return nil })
mu.Lock()
defer mu.Unlock()
@@ -669,6 +671,13 @@ exec ` + xb + ` test -scheme "$s" -destination ` + quote(destination) + ` -only-
return wire.Probe{ID: "P6", Verdict: verdict, Detail: clean(strings.Join(parts, "; "))}
}
+// p6Script starts the fixture's waiting test, its writes in the
+// attempt's scratch as P2's and the checks' are.
+func p6Script(xb, destination string) string {
+ return `cd package && s=Hostile-Package; ` + xb + ` -list ` + XcodeWrites + ` 2>/dev/null | grep -q Hostile-Package || s=Hostile
+exec ` + xb + ` test -scheme "$s" -destination ` + quote(destination) + ` -only-testing:HostileTests/HostileTests/testWait ` + XcodeWrites + ` -skipPackagePluginValidation`
+}
+
// processNames are this user's processes by name (basename), counted.
func processNames(ctx context.Context, x Exec) map[string]int {
ctx, cancel := context.WithTimeout(ctx, QueryLimit)
diff --git a/internal/runner/mac/probe_test.go b/internal/runner/mac/probe_test.go
index 0bfa13c8..4084b907 100644
--- a/internal/runner/mac/probe_test.go
+++ b/internal/runner/mac/probe_test.go
@@ -21,9 +21,15 @@ import (
// FAKE_CONNECT connects to the test's loopback port while saying
// "denied" (the probe's listener must catch the lie). FAKE_NOISE prints
// what a real build does: far more than the gate's last 200 lines.
-// FAKE_*_FAIL fails a step the way it fails on a Mac.
+// FAKE_*_FAIL fails a step the way it fails on a Mac. A call that would
+// write Xcode's derived data, package checkouts or package caches
+// anywhere but the gate's TMPDIR fails as the Studio's P2 did under srt
+// (exit 65, the PIF cache's "workspace" folder not writable).
const fakeXcodebuild = `#!/bin/bash
noise() { [ -n "$FAKE_NOISE" ] && for i in $(seq 1 300); do echo "CompileSwift normal arm64 step $i"; done; true; }
+for f in -derivedDataPath -clonedSourcePackagesDirPath -packageCachePath; do
+ case " $* " in *" $f $TMPDIR/"*) ;; *) echo "error: Could not compute dependency graph: Error Domain=NSCocoaErrorDomain Code=513 (no permission to save in the folder workspace; $f not in TMPDIR)"; echo "** BUILD FAILED **"; exit 65 ;; esac
+done
case "$*" in
*-list*) echo " Schemes:"; echo " Hostile-Package"; exit 0 ;;
*HostileScript*)
diff --git a/internal/runner/mac/xcode.go b/internal/runner/mac/xcode.go
index 4ab5e817..65ddb5de 100644
--- a/internal/runner/mac/xcode.go
+++ b/internal/runner/mac/xcode.go
@@ -14,8 +14,8 @@ import (
// XcodeGate is the gate a repository with an Xcode project and no gate
// of its own gets on a Mac (spec §4.4): `xcodebuild test` with its one
// shared scheme (or the one named like the project) on the newest
-// available iPhone simulator, DerivedData in the attempt's scratch,
-// without signing. ok is false when there is no project; reason is
+// available iPhone simulator, Xcode's writes in the attempt's scratch
+// (XcodeWrites), without signing. ok is false when there is no project; reason is
// checks_unavailable when there are several candidates or none fits.
func XcodeGate(tree string, sims []wire.Simulator) (argv []string, ok bool, reason string) {
root, err := os.OpenRoot(tree)
@@ -77,10 +77,29 @@ func XcodeGate(tree string, sims []wire.Simulator) (argv []string, ok bool, reas
return nil, true, "checks_unavailable"
}
cmd := "exec /usr/bin/xcodebuild test " + flag + " " + quote(container) + " -scheme " + quote(scheme) +
- " -destination " + quote("platform=iOS Simulator,id="+sim.UDID) + ` -derivedDataPath "$TMPDIR/DerivedData" CODE_SIGNING_ALLOWED=NO`
+ " -destination " + quote("platform=iOS Simulator,id="+sim.UDID) + " " + XcodeWrites + " CODE_SIGNING_ALLOWED=NO"
return []string{"/bin/bash", "-c", cmd}, true, ""
}
+// XcodeWrites sends what xcodebuild writes for itself into the
+// attempt's scratch ($TMPDIR: the gate's, which the checks profile lets
+// it write and the run removes), not the runner user's ~/Library. Every
+// xcodebuild the synthesised gate, P2 and P6 run carries it, so P2
+// proves the way checks build.
+// - -derivedDataPath: build products and intermediates, XCBuildData
+// with its PIF cache (the "workspace" folder P2's script build could
+// not write under srt), the module cache, logs and a test's result
+// bundle.
+// - -clonedSourcePackagesDirPath: the packages' checkouts and
+// workspace state (inside DerivedData by default; named so no
+// default can move them).
+// - -packageCachePath: SwiftPM's caches (~/Library/Caches/
+// org.swift.swiftpm by default), in xcodebuild since Xcode 13.
+//
+// xcodebuild applies -derivedDataPath to an action on a scheme, so a
+// target is built through its scheme.
+const XcodeWrites = `-derivedDataPath "$TMPDIR/DerivedData" -clonedSourcePackagesDirPath "$TMPDIR/SourcePackages" -packageCachePath "$TMPDIR/PackageCache"`
+
// XcodeGateName names the synthesised gate on the task page.
const XcodeGateName = "xcodebuild test"
diff --git a/internal/runner/mac/xcode_test.go b/internal/runner/mac/xcode_test.go
new file mode 100644
index 00000000..261349f3
--- /dev/null
+++ b/internal/runner/mac/xcode_test.go
@@ -0,0 +1,74 @@
+package mac
+
+import (
+ "regexp"
+ "strings"
+ "testing"
+)
+
+// xcodeWriteFlags are xcodebuild's options and build settings that name
+// a place it writes.
+var xcodeWriteFlags = regexp.MustCompile(`(-derivedDataPath|-clonedSourcePackagesDirPath|-packageCachePath|-resultBundlePath|-archivePath|-testProductsPath|-exportPath|\b(?:SYMROOT|OBJROOT|DSTROOT|SHARED_PRECOMPS_DIR|MODULE_CACHE_DIR)=)\s*("[^"]*"|'[^']*'|\S+)`)
+
+// Every xcodebuild the synthesised gate, P2 and P6 run sends Xcode's
+// writes into the attempt's scratch: derived data, package checkouts
+// and package caches each named under $TMPDIR, and nothing names the
+// real home. A check and P2 build the same way, so P2's verdict holds
+// for checks.
+func TestXcodeWritesStayInScratch(t *testing.T) {
+ sims := ParseSimulators(mustRead(t, "testdata/simctl-devices.json"))
+ gate, ok, reason := XcodeGate(woodstarTree(t, "Woodstar.xcodeproj/xcshareddata/xcschemes/Woodstar.xcscheme"), sims)
+ if !ok || reason != "" {
+ t.Fatalf("no gate: %q", reason)
+ }
+ xb := quote("/usr/bin/xcodebuild")
+ scripts := map[string]string{
+ "checks gate": gate[2],
+ "P2": p2Script(xb, quote("/usr/bin/xcrun"), "ABCDEF01-2345-6789-ABCD-EF0123456789"),
+ "P6": p6Script(xb, "platform=iOS Simulator,id=ABCDEF01-2345-6789-ABCD-EF0123456789"),
+ }
+ for name, s := range scripts {
+ calls := 0
+ for _, seg := range regexp.MustCompile(`&&|\|\||[;|\n()]`).Split(s, -1) {
+ if !strings.Contains(seg, "xcodebuild") {
+ continue
+ }
+ calls++
+ for _, flag := range []string{"-derivedDataPath", "-clonedSourcePackagesDirPath", "-packageCachePath"} {
+ if !strings.Contains(seg, flag+` "$TMPDIR/`) {
+ t.Errorf("%s: %s not in the attempt's scratch in %q", name, flag, seg)
+ }
+ }
+ // -derivedDataPath applies to an action on a scheme only.
+ if strings.Contains(seg, " -target ") || !strings.Contains(seg, " -scheme ") && !strings.Contains(seg, " -list ") {
+ t.Errorf("%s: a build without a scheme: %q", name, seg)
+ }
+ }
+ if calls == 0 {
+ t.Fatalf("%s: no xcodebuild in %q", name, s)
+ }
+ for _, m := range xcodeWriteFlags.FindAllStringSubmatch(s, -1) {
+ if !strings.HasPrefix(m[2], `"$TMPDIR/`) {
+ t.Errorf("%s: %s writes outside the attempt's scratch: %s", name, m[1], m[2])
+ }
+ }
+ for _, home := range []string{"$HOME", "${HOME", "~", "/Users/", "Library/", "CFFIXED_USER_HOME"} {
+ if strings.Contains(s, home) {
+ t.Errorf("%s names the real home (%s): %q", name, home, s)
+ }
+ }
+ }
+}
+
+// The fixture's script target has the shared scheme P2 builds it with.
+func TestFixtureScriptScheme(t *testing.T) {
+ raw, err := fixtures.ReadFile("fixtures/hostile/project/Hostile.xcodeproj/xcshareddata/xcschemes/HostileScript.xcscheme")
+ if err != nil {
+ t.Fatal(err)
+ }
+ pbx, _ := fixtures.ReadFile("fixtures/hostile/project/Hostile.xcodeproj/project.pbxproj")
+ id := regexp.MustCompile(`BlueprintIdentifier = "([0-9A-F]{24})"`).FindSubmatch(raw)
+ if id == nil || !strings.Contains(string(pbx), string(id[1])+" /* HostileScript */ = {") || !strings.Contains(string(raw), `ReferencedContainer = "container:Hostile.xcodeproj"`) {
+ t.Fatalf("the scheme does not build HostileScript: %s", raw)
+ }
+}
diff --git a/internal/runner/thin/mac_test.go b/internal/runner/thin/mac_test.go
index d61ce184..2ed0fded 100644
--- a/internal/runner/thin/mac_test.go
+++ b/internal/runner/thin/mac_test.go
@@ -303,6 +303,12 @@ func TestMacHostPaths(t *testing.T) {
if !strings.Contains(strings.Join(h.env, " "), "PATH="+filepath.Dir(tools["EQUIPO_RG_PATH"])+":"+filepath.Dir(tools["EQUIPO_NODE_PATH"])+":") {
t.Fatalf("gate env %v", h.env)
}
+ // The runner user's HOME stays (CoreSimulator's device set is found
+ // from it); Xcode's writes go to scratch by mac.XcodeWrites instead.
+ home, _ := os.UserHomeDir()
+ if want := []string{"HOME=" + home, h.env[1], "CI=1", "LANG=en_US.UTF-8"}; !slices.Equal(h.env[:min(4, len(h.env))], want) || len(h.env) > 4 && (len(h.env) > 5 || !strings.HasPrefix(h.env[4], "DEVELOPER_DIR=")) || h.checks.sandboxed.ScratchHome || h.checks.unproven.ScratchHome {
+ t.Fatalf("gate env %v", h.env)
+ }
}
// A worker's attempt has its marker on record before it starts anything,