oficina / equipo Public

placement: Mac work waits for a Mac instead of running on Linux

Work that needs a Mac (checks whose gate needs Xcode, or a change that
must be made on a Mac) no longer runs on a Linux primary. It waits,
placed as waiting_mac or waiting_mac_engineering, and shows a Needs you
card with the reason and what to do. Placement is decided again when an
older primary would have taken it, on enrol and back online, and before
an Engineering step starts; retired Apple rounds are skipped, delivered
attempts are left be, and a cancelled task gets no start. The headless
end-to-end scenarios cover the wait.

Merged with main's abilities work: in Authorize a held step is refused
first, then a queued Engineering step is placed again on a Mac.

Copy: Luna's text for the Mac wait lines (COPY ACCEPTED BY DELEGATION,
Luna, 2026-11-28). Paul approved the four card lines unchanged on
2026-11-29 (copy review ugmpahjf6nxcpfkjflv35rjoeq):
work.decide.mac_runner_why, mac_runner_ask, mac_engineering_why and
mac_engineering_ask, now COPY APPROVED in copy.go, the Plan 3 inventory
and the inventory test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from mac-placement-wait into main.
Co-Authored-By: claude~paul@keymail.dev <claude~paul@keymail.dev>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 207d323756e8b253020d244c2df8c4d1622b1079 parent fcf6786
25 files changed, +882 −95
  • .rastrillo/budgets.txt +6 −6
  • docs/superpowers/plans/2026-11-28-mac-fixes-copy.md +2 −0
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +8 −0
  • internal/equipo/chat/explore.go +5 −0
  • internal/equipo/chat/mac_needs_test.go +87 −0
  • internal/equipo/chat/review.go +6 −0
  • internal/equipo/chat/runner.go +10 −0
  • internal/equipo/chat/runners.go +180 −25
  • internal/equipo/chat/tools.go +4 −0
  • internal/equipo/copy.go +8 −0
  • internal/equipo/mac_wait_view_test.go +46 −0
  • internal/equipo/work_pages.go +5 −0
  • internal/equipo/work_views.go +10 −2
  • internal/headless/ask_test.go +14 −4
  • internal/headless/env_test.go +29 −0
  • internal/headless/mac_test.go +49 −17
  • internal/headless/merge_test.go +22 −1
  • internal/headless/review_test.go +24 −12
  • internal/plan3test/plan3_release_test.go +3 −1
  • internal/thintest/mac_wait_contract_test.go +316 −0
  • internal/thintest/macrecheck_contract_test.go +24 −9
  • internal/thintest/macrecheck_mergeauth_contract_test.go +2 −6
  • internal/thintest/placement_contract_test.go +6 −9
  • internal/wire/runners.go +10 −3
  • internal/wire/tasks.go +6 −0

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/main: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.5s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.9s
ci-box: clone deepened in 5.6s
ci-box: file times set from content: 3369 files, 218 directories
ci-box: ready in 19.4s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.238s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.8s
+ go list -export -test -tags testbuild -f  ./...
  5.2s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.9s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless

receipt: test step 1m20.588s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m18.597s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.6s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 74.93, cpu waiting 43.03%, memory waiting 0.00%, io waiting 0.36%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m20.499s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.993s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.99s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 74.93, cpu waiting 43.06%, memory waiting 0.00%, io waiting 0.37%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m23.922s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m21.418s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.25s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.19s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.98s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 72.77, cpu waiting 42.93%, memory waiting 0.00%, io waiting 0.34%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless

receipt: test step 1m20.888s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m18.359s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.56s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.44s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.22s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 74.93, cpu waiting 43.06%, memory waiting 0.00%, io waiting 0.37%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 1m38.817s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m36.452s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m6.5s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.41s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.81s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 64.47, cpu waiting 41.40%, memory waiting 0.00%, io waiting 0.27%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 3m6.366s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m3.689s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m42.85s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 20.76s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.4s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.23s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.81s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 21.47, cpu waiting 10.43%, memory waiting 0.00%, io waiting 0.05%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 3m23.485s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m20.739s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.69s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.67s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.44s amadan.net/oficina/equipo/internal/thintest TestAbilityHoldResumes
receipt: slow test 5.44s amadan.net/oficina/equipo/internal/thintest TestNudgeResumesHeldJob
machine: 32 CPUs, load 16.12, cpu waiting 7.73%, memory waiting 0.00%, io waiting 0.04%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 2m4.618s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m1.917s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.54s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.98s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.69s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.1s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 46.80, cpu waiting 28.66%, memory waiting 0.00%, io waiting 0.17%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 5m15.91s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m21.823s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 5m15.91s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.87s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.81s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 10s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 2.87, cpu waiting 1.08%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 51.545s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 50.398s amadan.net/oficina/equipo/internal/runner
receipt: slow test 30.37s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 51.69, cpu waiting 33.66%, memory waiting 0.00%, io waiting 0.59%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 1m3.364s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m1.938s amadan.net/oficina/equipo/internal/runner
receipt: slow test 51.88s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 44.22s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 66.79, cpu waiting 40.38%, memory waiting 0.00%, io waiting 0.48%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 41.896s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 40.906s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.3s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
machine: 32 CPUs, load 41.72, cpu waiting 25.96%, memory waiting 0.00%, io waiting 0.70%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 38.3%, load 25.90
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m11.659s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m9.526s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.9s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 29.77s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 27.55s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 24.49s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 24.4s amadan.net/oficina/equipo/internal/equipotest TestAccountConcurrentDuplicate
machine: 32 CPUs, load 64.47, cpu waiting 39.89%, memory waiting 0.00%, io waiting 0.25%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 38.3%, load 25.90
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 2m16.093s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m14.014s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 21.24s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 21.23s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 21.19s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 21.19s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 21.17s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
machine: 32 CPUs, load 28.03, cpu waiting 14.55%, memory waiting 0.00%, io waiting 0.08%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 38.3%, load 25.90
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m21.742s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.747s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.03s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.84s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.97s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.91s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.83s amadan.net/oficina/equipo/internal/equipotest TestRosterAuditFailureRollsBack
machine: 32 CPUs, load 57.03, cpu waiting 34.37%, memory waiting 0.00%, io waiting 0.21%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 38.3%, load 25.90
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m10.923s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m8.712s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.44s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 26.41s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 26.38s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.56s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 24.38s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 64.47, cpu waiting 39.89%, memory waiting 0.00%, io waiting 0.25%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 38.3%, load 25.90
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 57.393s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 55.244s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.95s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.57s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.35s amadan.net/oficina/equipo/internal/plan3test TestPersonAPIMigrationUpgrade
machine: 32 CPUs, load 72.77, cpu waiting 42.13%, memory waiting 0.00%, io waiting 0.32%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 38.3%, load 25.90
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/websource/hostaddrs ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/websource/hostaddrs ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/chatmarkdown: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeTerminalErrors
=== RUN   TestClaudeTerminalErrors
--- FAIL: TestClaudeTerminalErrors (3.38s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeTerminalErrors/partial
=== RUN   TestClaudeTerminalErrors/partial
    launcher_test.go:556: claude_turn_uncertain
--- FAIL: TestClaudeTerminalErrors/partial (0.44s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude (package output)
FAIL
rastrillo-budget/v1 ran 31.767s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	33.931s

--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:304 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.63s)

--- FAIL amadan.net/oficina/equipo/internal/runner/webread (package output)
FAIL
rastrillo-budget/v1 ran 2.393s
FAIL	amadan.net/oficina/equipo/internal/runner/webread	2.411s

budget note: internal/equipo took 2m30.896s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 34.409s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 40.581s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 13.564s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m1.364s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 40.524s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 51.739s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 24.362s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 15.954s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m23.206s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 12.627s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m36.932s against a 60s target (the gate's other steps are not in this figure)
receipt: 36 packages ran, 34 cached, 17 without tests, 2 failed
receipt: slow package 2m30.896s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m1.364s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m23.206s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m11.29s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m1.142s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 58.79s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 49.62s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 49.44s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 48.82s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 47.08s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestClaudeTerminalErrors$/^partial$' -count=1 ./internal/runner/provider/claude   (retry, once)
##############################################################################
FLAKE ./internal/runner/provider/claude:TestClaudeTerminalErrors/partial rest 207d323756e8b253020d244c2df8c4d1622b1079 0.44s 21.47
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest 207d323756e8b253020d244c2df8c4d1622b1079 0.63s 21.47
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 19.91, cpu waiting 9.76%, memory waiting 0.00%, io waiting 0.05%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m26.838s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m24.996s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.22s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.74s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.8s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.5s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 7.13s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 69.43, cpu waiting 41.73%, memory waiting 0.00%, io waiting 0.31%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless

receipt: test step 1m37.334s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m35.105s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.89s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.94s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.49s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.99s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.82s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 64.47, cpu waiting 41.40%, memory waiting 0.00%, io waiting 0.27%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m55.971s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m54.166s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.78s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.46s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.28s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
machine: 32 CPUs, load 53.58, cpu waiting 31.29%, memory waiting 0.00%, io waiting 0.19%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m42.43s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m40.446s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.1s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 13.96s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.1s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.83s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.54s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 60.43, cpu waiting 38.98%, memory waiting 0.00%, io waiting 0.24%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 4.799s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.657s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.94s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 720ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/equipotest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserGitHubManifestCSP)$' ./internal/equipotest

receipt: test step 7.927s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 6.283s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.28s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 10.789s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 12.437s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 10.789s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.68s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.11s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test

receipt: test step 4.138s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.419s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.42s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

receipt: test step 3m41.609s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m39.026s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 27.32s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.06s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.79s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.5s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 8.10, cpu waiting 3.47%, memory waiting 0.00%, io waiting 0.01%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.80s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.23s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.21s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.65s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.11s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (68s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 16.49s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.63s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.43s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.16s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 18.47s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.87s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
first attempt failed: TestRunnerCancelAndSupersede; output tail:
=== RUN   TestRunnerCancelAndSupersede
time=2026-11-29T22:50:16.324Z level=INFO msg=connecting host=127.0.0.1:36981 protocol=36
time=2026-11-29T22:50:16.325Z level=INFO msg=connected host=127.0.0.1:36981 took=896µs
time=2026-11-29T22:50:16.325Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T22:50:16.326Z level=INFO msg=welcome protocol=1 role=primary generation=3
    contract_test.go:289: waiting for ack: failed to get reader: failed to read frame header: read tcp 127.0.0.1:36981->127.0.0.1:39416: read: connection reset by peer
--- FAIL: TestRunnerCancelAndSupersede (0.06s)
FAIL
rastrillo-budget/v1 ran 59ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.085s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' -count=1 ./internal/runner/thin   (retry, once)
##############################################################################
FLAKE ./internal/runner/thin:TestRunnerCancelAndSupersede quarantine 207d323756e8b253020d244c2df8c4d1622b1079 0.06s 2.83
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
quarantine: 1 flaked (passed on the retry), 0 failed
quarantine flake: TestRunnerCancelAndSupersede
machine: 32 CPUs, load 68.81, cpu waiting 41.19%, memory waiting 0.00%, io waiting 0.45%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 13.819s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.675s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 225ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 92ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.44s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.7s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 390ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.442s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.096s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 250ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 17.32, cpu waiting 10.81%, memory waiting 0.00%, io waiting 1.05%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 38.3%, load 25.90
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 3081 text files, 3282 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 98 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.674s
machine: 32 CPUs, load 74.93, cpu waiting 43.06%, memory waiting 0.00%, io waiting 0.37%
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 38.3%, load 25.90
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 62.21, cpu waiting 36.58%, memory waiting 0.00%, io waiting 0.55%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 38.3%, load 25.90
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 62.21, cpu waiting 36.58%, memory waiting 0.00%, io waiting 0.55%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 38.3%, load 25.90
shard 28: make gitleaks
10:50PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:51PM INF 1314 commits scanned.
10:51PM INF scanned ~69452951 bytes (69.45 MB) in 27.4s
10:51PM INF no leaks found
machine: 32 CPUs, load 62.21, cpu waiting 37.70%, memory waiting 0.00%, io waiting 0.54%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.122ms, worst 1.171ms, budget 150ms
perf: GET /api/runner/protocol: median 72µs, worst 110µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 596µs, worst 627µs, budget 150ms
perf: GET /api/v1/accounts: median 411µs, worst 430µs, budget 150ms
perf: GET /api/v1/auth/devices: median 460µs, worst 469µs, budget 150ms
perf: GET /api/v1/budgets: median 485µs, worst 508µs, budget 150ms
perf: GET /api/v1/capabilities: median 257µs, worst 263µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.246ms, worst 1.349ms, budget 150ms
perf: GET /api/v1/connections: median 557µs, worst 580µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 524µs, worst 578µs, budget 150ms
perf: GET /api/v1/conversation: median 898µs, worst 965µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.408ms, worst 1.488ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.729ms, worst 1.795ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 435µs, worst 472µs, budget 150ms
perf: GET /api/v1/journey: median 8.933ms, worst 9.138ms, budget 150ms
perf: GET /api/v1/me: median 473µs, worst 499µs, budget 150ms
perf: GET /api/v1/me/settings: median 548µs, worst 575µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.532ms, worst 8.684ms, budget 150ms
perf: GET /api/v1/notifications: median 1.674ms, worst 1.731ms, budget 150ms
perf: GET /api/v1/onboarding: median 413µs, worst 531µs, budget 150ms
perf: GET /api/v1/people: median 453µs, worst 489µs, budget 150ms
perf: GET /api/v1/playbooks: median 595µs, worst 628µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 545µs, worst 564µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 858µs, worst 938µs, budget 150ms
perf: GET /api/v1/preferences: median 773µs, worst 840µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 454µs, worst 499µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 630µs, worst 666µs, budget 150ms
perf: GET /api/v1/roster: median 481µs, worst 516µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 434µs, worst 457µs, budget 150ms
perf: GET /api/v1/specialists: median 8.006ms, worst 8.185ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.883ms, worst 8.138ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 885µs, worst 961µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.167ms, worst 1.251ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 757µs, worst 815µs, budget 150ms
perf: GET /api/v1/teams: median 894µs, worst 1.213ms, budget 150ms
perf: GET /api/v1/templates: median 619µs, worst 674µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 457µs, worst 495µs, budget 150ms
perf: GET /auth/callback: median 69µs, worst 113µs, budget 150ms
perf: GET /auth/devices/{id}: median 4.093ms, worst 4.177ms, budget 150ms
perf: GET /auth/verify: median 87µs, worst 131µs, budget 150ms
perf: GET /connections: median 4.497ms, worst 4.691ms, budget 150ms
perf: GET /conversation: median 8.936ms, worst 9.233ms, budget 150ms
perf: GET /conversation/connections: median 257µs, worst 284µs, budget 150ms
perf: GET /conversation/notebook: median 250µs, worst 266µs, budget 150ms
perf: GET /conversation/settings: median 4.913ms, worst 5.055ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 5.015ms, worst 5.264ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.562ms, worst 7.727ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.87ms, worst 8.175ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.945ms, worst 6.449ms, budget 150ms
perf: GET /conversation/settings/github: median 4.461ms, worst 4.538ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 5.01ms, worst 5.135ms, budget 150ms
perf: GET /conversation/settings/machines: median 5.352ms, worst 5.45ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 5.371ms, worst 5.56ms, budget 150ms
perf: GET /conversation/settings/notebook: median 4.136ms, worst 4.237ms, budget 150ms
perf: GET /conversation/settings/places: median 4.317ms, worst 4.418ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.938ms, worst 4.972ms, budget 150ms
perf: GET /github/connect/installation: median 173µs, worst 210µs, budget 150ms
perf: GET /github/connect/manifest: median 164µs, worst 185µs, budget 150ms
perf: GET /housekeeping: median 4.638ms, worst 4.687ms, budget 150ms
perf: GET /invites/new: median 619µs, worst 661µs, budget 150ms
perf: GET /invites/{id}: median 665µs, worst 693µs, budget 150ms
perf: GET /jobs: median 4.279ms, worst 6.562ms, budget 150ms
perf: GET /jobs/{id}: median 5.651ms, worst 5.971ms, budget 150ms
perf: GET /journey: median 11.653ms, worst 11.781ms, budget 150ms
perf: GET /nav/rail: median 3.689ms, worst 3.797ms, budget 150ms
perf: GET /needs-you: median 11.052ms, worst 11.258ms, budget 150ms
perf: GET /onboarding: median 4.864ms, worst 4.937ms, budget 150ms
perf: GET /people: median 4.209ms, worst 4.345ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.499ms, worst 5.603ms, budget 150ms
perf: GET /playbooks: median 5.021ms, worst 5.126ms, budget 150ms
perf: GET /playbooks/new: median 5.313ms, worst 7.531ms, budget 150ms
perf: GET /playbooks/{id}: median 5.727ms, worst 5.895ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.709ms, worst 5.844ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.882ms, worst 5.034ms, budget 150ms
perf: GET /preferences: median 5.138ms, worst 5.278ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.939ms, worst 5.144ms, budget 150ms
perf: GET /projects: median 6.797ms, worst 7.028ms, budget 150ms
perf: GET /projects/accounts: median 4.38ms, worst 4.516ms, budget 150ms
perf: GET /projects/new: median 4.479ms, worst 4.64ms, budget 150ms
perf: GET /projects/{id}: median 11.658ms, worst 11.971ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.765ms, worst 7.801ms, budget 150ms
perf: GET /runners/enrol: median 5.463ms, worst 5.628ms, budget 150ms
perf: GET /settings: median 4.363ms, worst 4.52ms, budget 150ms
perf: GET /settings/coordinator: median 6.514ms, worst 6.6ms, budget 150ms
perf: GET /settings/devices: median 4.033ms, worst 4.147ms, budget 150ms
perf: GET /settings/recovery: median 4.283ms, worst 4.453ms, budget 150ms
perf: GET /settings/recovery/release: median 4.298ms, worst 4.37ms, budget 150ms
perf: GET /settings/thinking: median 254µs, worst 328µs, budget 150ms
perf: GET /signed-out: median 260µs, worst 328µs, budget 150ms
perf: GET /signin: median 270µs, worst 314µs, budget 150ms
perf: GET /specialists/new: median 4.187ms, worst 4.291ms, budget 150ms
perf: GET /specialists/{key}: median 11.634ms, worst 11.779ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.324ms, worst 4.39ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.671ms, worst 6.395ms, budget 150ms
perf: GET /tasks: median 6.869ms, worst 7.095ms, budget 150ms
perf: GET /tasks/new: median 4.087ms, worst 4.167ms, budget 150ms
perf: GET /tasks/{id}: median 6.431ms, worst 6.649ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.769ms, worst 5.977ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.631ms, worst 5.846ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.687ms, worst 6.91ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.783ms, worst 1.869ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 6.073ms, worst 6.132ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.619ms, worst 5.796ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 5.19ms, worst 7.702ms, budget 150ms
perf: GET /tasks/{id}/thread: median 9.249ms, worst 9.785ms, budget 150ms
perf: GET /team/{specialist}: median 5.405ms, worst 5.618ms, budget 150ms
perf: GET /teams: median 11.199ms, worst 11.402ms, budget 150ms
perf: GET /templates: median 4.257ms, worst 4.304ms, budget 150ms
perf: GET /usage: median 5.073ms, worst 5.35ms, budget 150ms
perf: GET /work: median 3.866ms, worst 3.952ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/github: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/places: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 169ms of [167.163602ms 168.597177ms 169.124665ms], budget 500ms

receipt: test step 56.084s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 94 without tests, 0 failed
receipt: slow package 11.043s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 10.48s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 570ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.91 GiB in 29203 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.25 GiB in 41706 files
ci-box: build cache over 4.0 GiB: dropped 2.07 GiB this job did not read, kept 2.85 GiB

landed from mac-placement-wait

diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 37d7c876..6fbfd69c 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
-size internal/equipo 24162 - Preview grants, retry/timeline, no-access merges, kept work, check-db copy, notification actions, places, GitHub owner routes, installer copy, abilities, lookups; measured 24162.
-size internal/wire 8561 - Protocol 31 facts, 32 unfinished work, task evidence, CI units, notification inputs, 33 Assistant files, 34 places, 35 diffs, abilities, 36 lookups; measured 8561.
+size internal/equipo 24183 - Preview grants, retry/timeline, no-access merges, kept work, check-db copy, notification actions, places, GitHub owner routes, installer copy, abilities, lookups, Mac waits; measured 24183.
+size internal/wire 8574 - Protocol 31 facts, 32 unfinished work, task evidence, CI units, notification inputs, 33 Assistant files, 34 places, 35 diffs, abilities, 36 lookups, Mac waits; measured 8574.
size internal/equipotest - 12683 GitHub connect value search, lifecycle and sweep-log contracts; Task 21 migration fixtures and Rastrillo asset contract; measured 0/12683 source/test lines.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
@@ -30,7 +30,7 @@ size internal/runner/provider 5731 - Fable follow-up: base and diagnostic gates,
time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops.
-size internal/plan3test - 12038 Preview, paused work, Assistant, merge authority, check-db, Assistant files, places, Mac fixes, GitHub App and abilities inventory, direct-card contracts; measured 12038 test lines.
+size internal/plan3test - 12040 Preview, paused work, Assistant, merge authority, check-db, Assistant files, places, Mac fixes, GitHub App and abilities inventory, direct-card contracts, Mac card approvals; measured 12040.
time internal/runner/forge 20s Plan 3 CI repair measured 10.527s for the full package (controller CI 10.407s).
time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full package (controller CI 10.709s);
@@ -57,7 +57,7 @@ perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
perf GET /api/v1/assistant/abilities skip Assistant person API: bearer-only JSON for Base's Settings line, not a browser screen.
-size internal/equipo/chat 41389 14634 File facts/diffs, previews, merge authority, unfinished work, CI feedback, receipts, Assistant files, places, waiting cards, abilities, lookups, go-aheads; measured 41389/14634.
+size internal/equipo/chat 41569 14721 File facts/diffs, previews, merge authority, unfinished work, CI feedback, receipts, Assistant files, places, waiting cards, abilities, lookups, go-aheads, Mac waits; measured 41569/14721.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
@@ -71,8 +71,8 @@ perf GET /api/v1/tasks/{id}/files/{file} skip Research kept images: bearer-only
perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one image, shown on the task page; a file, not a screen.
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally).
-size internal/headless - 11944 Grant scenarios (#48); sign-in email at 1280 and 390; Assistant files end to end; the restart wait; the live site waits for a place; card answers settle; scenario 7 replay; measured 11944.
-size internal/thintest - 38179 Protocol 31 contracts, 35 diffs, stuck tasks, no-access merges, held retries, unfinished work, free rounds, previews, Assistant files, places, abilities, lookups, go-aheads; measured 38179.
+size internal/headless - 12048 Grant scenarios (#48); sign-in email at 1280 and 390; Assistant files end to end; the restart wait; the live site waits for a place; card answers settle; scenario 7 replay; Mac waits; measured 12048.
+size internal/thintest - 38503 Protocol 31 contracts, 35 diffs, stuck tasks, no-access merges, held retries, unfinished work, free rounds, previews, Assistant files, places, abilities, lookups, go-aheads, Mac waits; measured 38503.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
diff --git a/docs/superpowers/plans/2026-11-28-mac-fixes-copy.md b/docs/superpowers/plans/2026-11-28-mac-fixes-copy.md
index 0a84041f..7c3a381e 100644
--- a/docs/superpowers/plans/2026-11-28-mac-fixes-copy.md
+++ b/docs/superpowers/plans/2026-11-28-mac-fixes-copy.md
@@ -2,6 +2,8 @@
Paul ruled 2026-11-28: Luna (codex gpt-5.6-luna, read-only) reviews all 13 strings of the two Mac fixes; its edits are applied. Paul reviews only the four Needs you card lines he sees in Equipo (`work.decide.mac_runner_why`, `work.decide.mac_runner_ask`, `work.decide.mac_engineering_why`, `work.decide.mac_engineering_ask`): they take Luna's text but stay COPY REVIEW PENDING for him (/home/paulca/.cache/mac-fixes-paul-copy.json). The other nine are COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28): five installer strings on mac-install-safe, four task status and summary strings on mac-placement-wait. Luna changed 9, flagged 0, left 4 unchanged.
+Paul approved the four card lines unchanged on 2026-11-29 (copy review ugmpahjf6nxcpfkjflv35rjoeq, action approve, none edited); they are now COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged).
+
Luna ran in a new scratch directory under `$TMPDIR`, with:
```sh
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index c5a9194e..1bfabe03 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -7021,6 +7021,14 @@ records remain unchanged.
| `places.deploy_held` | Its deploy key is %s. | Places slice 1, Places page (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-26) |
| `places.deploy_lost` | A deploy key named %s may still be live on CARLOS without Equipo holding it. You can revoke it in the CARLOS console. | Places slice 1, Places page (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-26) |
| `places.deploy_none` | No deploy key yet: the first publish makes one. | Places slice 1, Places page (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-26) |
+| `work.needs.mac_runner` | Needs you: this work needs a Mac, and no Mac runner has been added yet | Mac fixes 2026-11-28 (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28) |
+| `work.needs.mac_engineering` | Needs you: this change needs a Mac, and Mac runners can’t make changes yet | Mac fixes 2026-11-28 (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28) |
+| `work.decide.mac_runner_why` | This work needs a Mac, and your team has no Mac runner yet. It waits instead of running on Linux. | Mac work waits for a Mac, Needs you card (Luna draft) | Runtime; COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged) |
+| `work.decide.mac_runner_ask` | Add a Mac runner and the work starts by itself. | Mac work waits for a Mac, Needs you card (Luna draft) | Runtime; COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged) |
+| `work.decide.mac_engineering_why` | This change needs a Mac. Your Mac runner can run checks but can’t make changes yet, so it waits instead of running on Linux. | Mac work waits for a Mac, Needs you card (Luna draft) | Runtime; COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged) |
+| `work.decide.mac_engineering_ask` | Leave it waiting or cancel it. | Mac work waits for a Mac, Needs you card (Luna draft) | Runtime; COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged) |
+| `work.waits.mac_runner` | It needs a Mac runner | Mac fixes 2026-11-28 (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28) |
+| `work.waits.mac_engineering` | It needs a Mac that can make changes | Mac fixes 2026-11-28 (Luna, codex gpt-5.6-luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28) |
## Task 21
diff --git a/internal/equipo/chat/explore.go b/internal/equipo/chat/explore.go
index 6a99c3dd..17cf7177 100644
--- a/internal/equipo/chat/explore.go
+++ b/internal/equipo/chat/explore.go
@@ -48,6 +48,11 @@ func (p progress) needsExplore(k taskRecord) string {
return wire.NeedsReviewBlocked
case w.State == wire.StepFailed && w.Terminated:
return wire.NeedsRetry
+ case w.State == wire.StepQueued && w.Placement == wire.PlacementMac:
+ // Waiting for a Mac, as any task (needsYou).
+ return wire.NeedsMacRunner
+ case w.State == wire.StepQueued && w.Placement == wire.PlacementMacEngineering:
+ return wire.NeedsMacEngineering
case w.State != wire.StepDone || p.candidate == "":
return ""
}
diff --git a/internal/equipo/chat/mac_needs_test.go b/internal/equipo/chat/mac_needs_test.go
new file mode 100644
index 00000000..4f8afa92
--- /dev/null
+++ b/internal/equipo/chat/mac_needs_test.go
@@ -0,0 +1,87 @@
+package chat
+
+import (
+ "context"
+ "io"
+ "log/slog"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/wire"
+ "amadan.net/rastrillo/rastrillo/db"
+ "gorm.io/gorm"
+)
+
+// Checks need a Mac when any Engineering round of the task touched Apple
+// files, not only the round whose commit is the candidate: a delegated
+// Copy commit, or a later fix round that touched only the README, makes
+// a new candidate that still holds the Swift changes (Astra,
+// mac-placement-wait).
+func TestChecksNeedAMacForEveryAppleRound(t *testing.T) {
+ src, err := hkTemplatePath()
+ if err != nil {
+ t.Fatal(err)
+ }
+ raw, err := os.ReadFile(src)
+ if err != nil {
+ t.Fatal(err)
+ }
+ path := filepath.Join(t.TempDir(), "macneeds.db")
+ if err := os.WriteFile(path, raw, 0o600); err != nil {
+ t.Fatal(err)
+ }
+ d, err := db.Open(path, slog.New(slog.NewTextHandler(io.Discard, nil)))
+ if err != nil {
+ t.Fatal(err)
+ }
+ t.Cleanup(func() { _ = d.Close() })
+ s := NewStore(d, Authority{Copy: func(key string) string { return key }, PrimaryRunner: func(*gorm.DB, string) (string, error) { return "", nil }}, nil)
+ const person = "owner@example.com"
+ now := time.Now().UTC()
+ sha := func(c string) string { return strings.Repeat(c, 40) }
+ if err := d.G.Create(&projectRecord{ID: "p1", Repo: "oficina/sample"}).Error; err != nil {
+ t.Fatal(err)
+ }
+ for _, k := range []taskRecord{{ID: "tk1", ProjectID: "p1", Creator: person, Stage: wire.StageInProgress, Revision: 1, CreatedAt: now, UpdatedAt: now}, {ID: "tk2", ProjectID: "p1", Creator: person, Stage: wire.StageInProgress, Revision: 1, CreatedAt: now, UpdatedAt: now}, {ID: "tk3", ProjectID: "p1", Creator: person, Stage: wire.StageInProgress, Revision: 1, CreatedAt: now, UpdatedAt: now}} {
+ if err := d.G.Create(&k).Error; err != nil {
+ t.Fatal(err)
+ }
+ }
+ for _, st := range []stepRecord{
+ {ID: "e1", TaskID: "tk1", Idx: 1, Specialist: wire.SpecialistEngineering, Person: person, State: wire.StepDone, Round: 1, CandidateSHA: sha("a"), Apple: true},
+ {ID: "c1", TaskID: "tk1", Idx: 2, Specialist: wire.SpecialistCopy, Person: person, State: wire.StepDone, Round: 1, CandidateSHA: sha("b")},
+ {ID: "e2", TaskID: "tk1", Idx: 3, Specialist: wire.SpecialistEngineering, Person: person, State: wire.StepDone, Round: 2, CandidateSHA: sha("c")},
+ {ID: "e3", TaskID: "tk2", Idx: 1, Specialist: wire.SpecialistEngineering, Person: person, State: wire.StepDone, Round: 1, CandidateSHA: sha("d")},
+ // Moved to another project: the Swift change was retired with
+ // the old project's steps, and the new branch touched README only.
+ {ID: "e4", TaskID: "tk3", Idx: 1, Specialist: wire.SpecialistEngineering, Person: person, State: wire.StepDone, Round: 1, CandidateSHA: sha("e"), Apple: true, Retired: true},
+ {ID: "e5", TaskID: "tk3", Idx: 2, Specialist: wire.SpecialistEngineering, Person: person, State: wire.StepDone, Round: 1, CandidateSHA: sha("f")},
+ } {
+ if err := d.G.Create(&st).Error; err != nil {
+ t.Fatal(err)
+ }
+ }
+ for _, c := range []struct {
+ task, candidate string
+ mac bool
+ }{{"tk1", sha("a"), true}, {"tk1", sha("b"), true}, {"tk1", sha("c"), true}, {"tk2", sha("d"), false}, {"tk3", sha("f"), false}} {
+ var needs []string
+ err := s.tx(context.Background(), func(t *txn) error {
+ k, err := t.loadTask(c.task)
+ if err != nil {
+ return err
+ }
+ needs, err = t.checksNeeds(k, stepRecord{TaskID: c.task, Specialist: wire.SpecialistChecks, Person: person, CandidateSHA: c.candidate})
+ return err
+ })
+ if err != nil {
+ t.Fatal(err)
+ }
+ if got := strings.Join(needs, ","); (got == "macos,xcode") != c.mac {
+ t.Errorf("%s at %s: needs %q", c.task, c.candidate[:1], got)
+ }
+ }
+}
diff --git a/internal/equipo/chat/review.go b/internal/equipo/chat/review.go
index 0295c045..88d7b834 100644
--- a/internal/equipo/chat/review.go
+++ b/internal/equipo/chat/review.go
@@ -180,6 +180,12 @@ func (p progress) needsYou(k taskRecord) string {
if p.last.Specialist == wire.SpecialistChecks && p.last.State == wire.StepQueued && p.last.Placement == wire.PlacementSandbox {
return wire.NeedsMacSandbox
}
+ if p.last.State == wire.StepQueued && p.last.Placement == wire.PlacementMac {
+ return wire.NeedsMacRunner
+ }
+ if p.last.State == wire.StepQueued && p.last.Placement == wire.PlacementMacEngineering {
+ return wire.NeedsMacEngineering
+ }
if p.last.Specialist == wire.SpecialistEngineering && p.last.State == wire.StepDone && p.last.Publication == wire.PublicationFailed {
return wire.NeedsRetry
}
diff --git a/internal/equipo/chat/runner.go b/internal/equipo/chat/runner.go
index 518cdfb3..f586abc2 100644
--- a/internal/equipo/chat/runner.go
+++ b/internal/equipo/chat/runner.go
@@ -136,6 +136,9 @@ func (s *Store) Connect(ctx context.Context, p RunnerPrincipal, process string,
if err := t.placeWaiting(p.Person); err != nil {
return err
}
+ if err := t.recheckMacEngineering(p.RunnerID); err != nil {
+ return err
+ }
return t.recheckMac(p.Person, p.RunnerID)
})
return lease, err
@@ -223,6 +226,13 @@ func (s *Store) Heartbeat(ctx context.Context, l Lease, hello wire.Hello) error
return err
}
}
+ // An older primary asks for no start authorization: its queued
+ // Engineering is looked at again with each catalog it sends.
+ if hello.Protocol < wire.Protocol2 {
+ if err := t.recheckMacEngineering(l.Runner.RunnerID); err != nil {
+ return err
+ }
+ }
}
if !online {
if err := t.runnerEvent(l.Runner.Person, r); err != nil {
diff --git a/internal/equipo/chat/runners.go b/internal/equipo/chat/runners.go
index 99544bb2..923e3c6c 100644
--- a/internal/equipo/chat/runners.go
+++ b/internal/equipo/chat/runners.go
@@ -375,35 +375,72 @@ const OfflineLimit = 30 * time.Minute
// checksNeeds are the tags checks of the task's newest candidate need:
// macOS and Xcode when the change touched Apple files or the
// repository's gate needs Xcode (the primary's index says so), and the
-// iOS simulator when the repository has a shared scheme.
+// iOS simulator when the repository has a shared scheme. The change is
+// every Engineering round of the task, not only the one whose commit is
+// the candidate: a later round, or a delegated Copy commit, makes a new
+// candidate that still holds an earlier round's Apple files. Retired
+// rounds (a task moved to another project) are not the candidate's.
func (t *txn) checksNeeds(k taskRecord, s stepRecord) ([]string, error) {
- var eng stepRecord
- err := t.db.Where("task_id = ? AND specialist = ? AND candidate_sha = ?", k.ID, wire.SpecialistEngineering, s.CandidateSHA).Order("idx DESC").First(&eng).Error
- if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
+ var apple int64
+ if err := t.db.Model(&stepRecord{}).Where("task_id = ? AND specialist = ? AND apple = ? AND coalesce(retired, 0) = 0", k.ID, wire.SpecialistEngineering, true).Count(&apple).Error; err != nil {
return nil, err
}
- var p projectRecord
- if err := t.db.Where("id = ?", k.ProjectID).First(&p).Error; err != nil {
+ info, err := t.repoInfo(k, s.Person)
+ if err != nil {
return nil, err
}
- h, err := t.hello(s.Person)
+ return macNeeds(apple > 0 || info.NeedsMacOS, info), nil
+}
+
+// engineeringNeeds are the tags Engineering of the task needs: macOS and
+// Xcode (and the simulator) when the repository's gate needs Xcode, as
+// the primary's index of its default branch says (the base, not anything
+// the change wrote). Anything else needs nothing.
+func (t *txn) engineeringNeeds(k taskRecord, person string) ([]string, error) {
+ info, err := t.repoInfo(k, person)
if err != nil {
return nil, err
}
+ return macNeeds(info.NeedsMacOS, info), nil
+}
+
+// repoInfo is the primary's catalog entry for the task's repository
+// (zero when it has none).
+func (t *txn) repoInfo(k taskRecord, person string) (wire.RepoInfo, error) {
+ var p projectRecord
+ if err := t.db.Where("id = ?", k.ProjectID).First(&p).Error; err != nil {
+ return wire.RepoInfo{}, err
+ }
+ h, err := t.hello(person)
+ if err != nil {
+ return wire.RepoInfo{}, err
+ }
var info wire.RepoInfo
for _, r := range h.Catalog {
if r.Repo == p.Repo {
info = r
}
}
- if !eng.Apple && !info.NeedsMacOS {
- return []string{}, nil
+ return info, nil
+}
+
+func macNeeds(mac bool, info wire.RepoInfo) []string {
+ if !mac {
+ return []string{}
}
needs := []string{wire.TagMacOS, wire.TagXcode}
if info.Simulator {
needs = append(needs, wire.TagIOSSimulator)
}
- return needs, nil
+ return needs
+}
+
+// waitForMac leaves Mac work waiting (placed false): for a Mac runner to
+// be added (waiting_mac), or, placement, for the reason it names.
+func (t *txn) waitForMac(s *stepRecord, needs []string, placement string) (bool, error) {
+ now := t.now()
+ s.Needs, s.RunnerID, s.Placement, s.WaitingSince = encodeList(needs), "", placement, &now
+ return false, nil
}
func decodeList(raw string) []string {
@@ -423,14 +460,19 @@ func encodeList(v []string) string {
}
// place chooses the runner for a step's current attempt (Mac runners spec
-// §1.4). Only checks are placed by their needs in this release:
-// Engineering, Review and merges run on the primary (Engineering pinned
-// there for the task), as before. Among the person's runners whose tags
-// cover the needs: the primary if it does, else the online worker running
-// fewest steps, ties by enrolment order. A fitting runner that is offline
-// leaves the step waiting (placed false). When no runner has ever had the
-// tags, or the primary cannot relay a pack (protocol 1), the step goes to
-// the primary without needs and ends honestly there (needs_macos). A Mac
+// §1.4). Checks are placed by their needs; Review and merges run on the
+// primary; Engineering runs on the primary (pinned there for the task)
+// unless it is Mac work. Mac work never runs on a Linux primary
+// (2026-11-28): checks that need macOS with no enrolled runner that fits
+// wait for a Mac runner (waiting_mac, the person's to add), and so does
+// Engineering for a repository whose gate needs Xcode; with a Mac
+// enrolled, that Engineering still waits (waiting_mac_engineering), since
+// a Mac worker takes only checks until slice F. Among the person's
+// runners whose tags cover the needs: the primary if it does, else the
+// online worker running fewest steps, ties by enrolment order. A fitting
+// runner that is offline leaves the step waiting (placed false). When the
+// primary cannot relay a pack (protocol 1), the step goes to the primary
+// without needs and ends honestly there (needs_macos), as before. A Mac
// whose sandbox is not proven gets checks only with the person's choice
// for this attempt on it (macsandbox.go); when it is the only one online
// that fits, the step waits for its sandbox (placed false).
@@ -442,6 +484,9 @@ func (t *txn) place(k *taskRecord, s *stepRecord) (placed bool, err error) {
s.Placement, s.WaitingSince, s.SandboxRunner = "", nil, ""
switch s.Specialist {
case wire.SpecialistEngineering:
+ if wait, err := t.macEngineering(k, s, primary); err != nil || wait {
+ return false, err
+ }
s.Needs = ""
s.RunnerID = primary
if k.EngineeringRunner != "" && k.EngineeringRunner != primary {
@@ -495,9 +540,20 @@ func (t *txn) place(k *taskRecord, s *stepRecord) (placed bool, err error) {
fit = append(fit, r)
}
}
- if len(fit) == 0 || !relay {
- // Nobody can: the primary judges it and says why (needs_macos).
- return true, nil
+ if len(fit) == 0 {
+ // No runner can, and none is enrolled that could: the checks wait
+ // for a Mac runner instead of the Linux primary judging them
+ // needs_macos, whatever its protocol.
+ return t.waitForMac(s, needs, wire.PlacementMac)
+ }
+ if !relay {
+ // A Mac is enrolled but an older primary cannot relay a pack to
+ // it: the checks wait for a runner (the primary's update), and
+ // resolve as not run after the offline limit, as for an offline
+ // Mac. Never judged on the Linux primary.
+ now := t.now()
+ s.RunnerID, s.Placement, s.WaitingSince = "", wire.PlacementWaiting, &now
+ return false, nil
}
var chosen, unproven *runnerInfo
for i := range fit {
@@ -531,6 +587,91 @@ func (t *txn) place(k *taskRecord, s *stepRecord) (placed bool, err error) {
return true, nil
}
+// macEngineering decides whether Engineering of the task is Mac work that
+// must wait rather than run on the Linux primary, and leaves it waiting
+// if so: for a Mac runner when none enrolled fits, else because no runner
+// that fits takes Engineering (only the primary does). An older primary
+// (protocol 1) is no exception.
+func (t *txn) macEngineering(k *taskRecord, s *stepRecord, primary string) (bool, error) {
+ needs, err := t.engineeringNeeds(*k, s.Person)
+ if err != nil || len(needs) == 0 {
+ return false, err
+ }
+ rs, err := t.runners(s.Person)
+ if err != nil {
+ return false, err
+ }
+ fit := false
+ for _, r := range rs {
+ if r.fits(needs, nil) {
+ if r.ID == primary {
+ // A primary that is a Mac takes it.
+ return false, nil
+ }
+ fit = true
+ }
+ }
+ if !fit {
+ _, err := t.waitForMac(s, needs, wire.PlacementMac)
+ return true, err
+ }
+ _, err = t.waitForMac(s, needs, wire.PlacementMacEngineering)
+ return true, err
+}
+
+// restartMacEngineering: whether the unstarted Engineering attempt s is
+// Mac work its runner cannot take, so it must not start; if so the
+// attempt is ended and the next one placed (it waits for a Mac). A
+// finished or cancelled task's attempt is not replaced (its cancellation
+// is on the way), but it does not start either.
+func (t *txn) restartMacEngineering(s *stepRecord) (bool, error) {
+ k, err := t.loadTask(s.TaskID)
+ if err != nil {
+ return false, err
+ }
+ primary, err := t.s.authority.PrimaryRunner(t.db, s.Person)
+ if err != nil {
+ return false, err
+ }
+ probe := *s
+ wait, err := t.macEngineering(&k, &probe, primary)
+ if err != nil || !wait || wire.FinalStage(k.Stage) || k.CancelRequested {
+ return wait, err
+ }
+ if err := t.replace(&k, s); err != nil {
+ return false, err
+ }
+ return true, t.saveStep(s, &k)
+}
+
+// recheckMacEngineering places again the runner's queued Engineering
+// attempts that are Mac work it cannot take and that it has not been
+// given yet (the dispatch not acknowledged): one queued before Mac work
+// waited for a Mac, or before the catalog said the gate needs Xcode. A
+// protocol 2 runner's start authorization checks the ones it was given;
+// an older runner asks for none, and one it holds is left with it, as
+// before, rather than lose track of an attempt it may run.
+func (t *txn) recheckMacEngineering(runner string) error {
+ var rows []stepRecord
+ if err := t.db.Where("runner_id = ? AND specialist = ? AND state = ? AND started_at IS NULL AND coalesce(withdrawn, 0) = 0", runner, wire.SpecialistEngineering, wire.StepQueued).Find(&rows).Error; err != nil {
+ return err
+ }
+ for i := range rows {
+ s := rows[i]
+ var undelivered int64
+ if err := t.db.Model(&commandRecord{}).Where("runner_id = ? AND kind = ? AND acked_at IS NULL AND body LIKE ?", s.RunnerID, wire.FrameDispatch, `%"step_id":"`+s.ID+`","attempt":`+itoa64(s.Attempt)+`,%`).Count(&undelivered).Error; err != nil {
+ return err
+ }
+ if undelivered == 0 {
+ continue
+ }
+ if _, err := t.restartMacEngineering(&s); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
// replace ends the current attempt's placement and places the next one:
// after a refusal, a withdrawal before it started, or a withdrawn
// attempt's termination. The caller saves s.
@@ -677,18 +818,32 @@ func (s *Store) Authorize(ctx context.Context, l Lease, stepID string, attempt i
refused = wire.CodeAbilityOff
return nil
}
+ if st.Specialist == wire.SpecialistEngineering {
+ // Placement is decided again before Engineering starts: one
+ // dispatched to the Linux primary before Mac work waited for a
+ // Mac (an instance upgraded with it queued), or before the
+ // catalog said the gate needs Xcode, does not start there.
+ mac, err := t.restartMacEngineering(&st)
+ if err != nil || mac {
+ refused = "withdrawn"
+ return err
+ }
+ }
now := t.now()
return t.db.Model(&stepRecord{}).Where("id = ? AND attempt = ?", st.ID, st.Attempt).Update("started_at", now).Error
})
return refused, err
}
+// waitingPlacements are the placements of a step waiting to be placed.
+var waitingPlacements = []string{wire.PlacementWaiting, wire.PlacementSandbox, wire.PlacementMac, wire.PlacementMacEngineering}
+
// placeWaiting places the person's steps waiting for a runner, when one
-// that fits may have come online, or for a Mac's sandbox, when it may be
-// proven now.
+// that fits may have come online or been added, or for a Mac's sandbox,
+// when it may be proven now.
func (t *txn) placeWaiting(person string) error {
var rows []stepRecord
- if err := t.db.Where("person = ? AND placement IN ? AND state = ?", person, []string{wire.PlacementWaiting, wire.PlacementSandbox}, wire.StepQueued).Order("created_at").Find(&rows).Error; err != nil {
+ if err := t.db.Where("person = ? AND placement IN ? AND state = ?", person, waitingPlacements, wire.StepQueued).Order("created_at").Find(&rows).Error; err != nil {
return err
}
for i := range rows {
@@ -727,7 +882,7 @@ func (t *txn) placeWaiting(person string) error {
func (s *Store) Place(ctx context.Context) error {
return s.tx(ctx, func(t *txn) error {
var persons []string
- if err := t.db.Model(&stepRecord{}).Where("state IN ? AND (placement IN ? OR runner_id IN (SELECT id FROM runners WHERE role = ?))", []string{wire.StepQueued, wire.StepRunning}, []string{wire.PlacementWaiting, wire.PlacementSandbox}, wire.RoleWorker).Distinct().Pluck("person", &persons).Error; err != nil {
+ if err := t.db.Model(&stepRecord{}).Where("state IN ? AND (placement IN ? OR runner_id IN (SELECT id FROM runners WHERE role = ?))", []string{wire.StepQueued, wire.StepRunning}, waitingPlacements, wire.RoleWorker).Distinct().Pluck("person", &persons).Error; err != nil {
return err
}
for _, p := range persons {
diff --git a/internal/equipo/chat/tools.go b/internal/equipo/chat/tools.go
index 8be96d5b..e695fec8 100644
--- a/internal/equipo/chat/tools.go
+++ b/internal/equipo/chat/tools.go
@@ -171,6 +171,10 @@ func blockedLine(cause string) string {
return "they need to bring their computer back online"
case wire.NeedsMacSandbox:
return "they need to let it be tested on their Mac"
+ case wire.NeedsMacRunner:
+ return "it needs a Mac, and they need to add a Mac runner; it will not run on Linux"
+ case wire.NeedsMacEngineering:
+ return "it needs a Mac to make the change, and their Mac runner can only run checks for now; it will not run on Linux"
case causeGoingLive:
return "going live failed, and they need to try it again"
case causeNoAccess:
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index c90dbaac..8c4bf02a 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -1764,6 +1764,14 @@ var pageCopy = map[string]string{
"work.checks.waiting_sandbox": "Waiting for the Mac's sandbox", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.sandbox_why": "Checks are waiting for the Mac's sandbox. They run automatically once %s passes its sandbox check, unless the Mac is tainted.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.sandbox_ask": "Wait, or run them outside the sandbox?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
+ "work.needs.mac_runner": "Needs you: this work needs a Mac, and no Mac runner has been added yet", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28)
+ "work.needs.mac_engineering": "Needs you: this change needs a Mac, and Mac runners can’t make changes yet", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28)
+ "work.decide.mac_runner_why": "This work needs a Mac, and your team has no Mac runner yet. It waits instead of running on Linux.", // COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged)
+ "work.decide.mac_runner_ask": "Add a Mac runner and the work starts by itself.", // COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged)
+ "work.decide.mac_engineering_why": "This change needs a Mac. Your Mac runner can run checks but can’t make changes yet, so it waits instead of running on Linux.", // COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged)
+ "work.decide.mac_engineering_ask": "Leave it waiting or cancel it.", // COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged)
+ "work.waits.mac_runner": "It needs a Mac runner", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28)
+ "work.waits.mac_engineering": "It needs a Mac that can make changes", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28)
"work.decide.unsandboxed": "Run outside the sandbox", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.unsandboxed_warning": "This runs the checks on %s outside the sandbox. They can read anything that account can. The Mac is then marked tainted.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.decide.unsandboxed_confirm": "Run them outside the sandbox", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
diff --git a/internal/equipo/mac_wait_view_test.go b/internal/equipo/mac_wait_view_test.go
new file mode 100644
index 00000000..cc3b25a3
--- /dev/null
+++ b/internal/equipo/mac_wait_view_test.go
@@ -0,0 +1,46 @@
+package equipo
+
+import (
+ "strings"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+// Mac work waiting for a Mac runner, or for a Mac that can make changes,
+// is the creator's to see under Needs you (2026-11-28): the decision says
+// why in words, the line says what waits, and a waiting checks step does
+// not read as running. Only the wait for a runner links setting up a Mac.
+func TestMacWaitNeedsYou(t *testing.T) {
+ for _, c := range []struct {
+ need, specialist, placement, why, line, checks string
+ mac bool
+ }{
+ {wire.NeedsMacRunner, wire.SpecialistChecks, wire.PlacementMac, "work.decide.mac_runner_why", "work.needs.mac_runner", "work.chip.waiting_mac", true},
+ {wire.NeedsMacRunner, wire.SpecialistEngineering, wire.PlacementMac, "work.decide.mac_runner_why", "work.needs.mac_runner", "", true},
+ {wire.NeedsMacEngineering, wire.SpecialistEngineering, wire.PlacementMacEngineering, "work.decide.mac_engineering_why", "work.needs.mac_engineering", "", false},
+ } {
+ task := wire.Task{ID: "t1", Creator: "owner@example.com", Stage: wire.StageInProgress, NeedsYou: c.need, Steps: []wire.Step{{ID: "s1", Specialist: c.specialist, State: wire.StepQueued, Placement: c.placement, Attempt: 1}}}
+ if !needsViewer(task, "owner@example.com", nil) || !needsSomeone(task) || groupOf(task, "owner@example.com", nil) != "needs" {
+ t.Fatalf("%s: not under Needs you", c.need)
+ }
+ if needsViewer(task, "other@example.com", nil) {
+ t.Fatalf("%s: someone else's decision", c.need)
+ }
+ v := taskLineOf(task, "owner@example.com")
+ if v.StageLine != copyText(c.line) || copyText(c.line) == "" {
+ t.Fatalf("%s: stage line %q", c.need, v.StageLine)
+ }
+ if c.checks != "" && v.ChecksLine != copyText(c.checks) {
+ t.Fatalf("%s: checks line %q", c.need, v.ChecksLine)
+ }
+ v.Mine, v.Cancel = true, true
+ d := decisionOf(task, v)
+ if d == nil || d.Why != copyText(c.why) || d.Why == "" || d.Ask == "" || d.Mac != c.mac || !d.Cancel {
+ t.Fatalf("%s: decision %+v", c.need, d)
+ }
+ if r := waitReason(task, v); r == "" || strings.HasPrefix(r, "Needs you") {
+ t.Fatalf("%s: wait reason %q", c.need, r)
+ }
+ }
+}
diff --git a/internal/equipo/work_pages.go b/internal/equipo/work_pages.go
index fcd85de5..026f4c2e 100644
--- a/internal/equipo/work_pages.go
+++ b/internal/equipo/work_pages.go
@@ -203,6 +203,9 @@ func taskLineOf(t wire.Task, viewer string) taskLine {
if s.Placement == wire.PlacementSandbox {
v.ChecksLine = copyText("work.checks.waiting_sandbox")
}
+ if s.Placement == wire.PlacementMac {
+ v.ChecksLine = copyText("work.chip.waiting_mac")
+ }
case wire.SpecialistReview:
v.ReviewLine = copyText("work.review.running")
}
@@ -229,6 +232,8 @@ func taskLineOf(t wire.Task, viewer string) taskLine {
v.StageLine = copyText("work.needs." + t.NeedsYou)
case wire.NeedsMacSandbox:
v.StageLine = copyText("work.checks.waiting_sandbox")
+ case wire.NeedsMacRunner, wire.NeedsMacEngineering:
+ v.StageLine = copyText("work.needs." + t.NeedsYou)
case wire.NeedsBranchMoved:
// What was checked and reviewed is not what the branch holds now:
// none of it is shown beside the branch's link.
diff --git a/internal/equipo/work_views.go b/internal/equipo/work_views.go
index e865b8e3..7906d3ba 100644
--- a/internal/equipo/work_views.go
+++ b/internal/equipo/work_views.go
@@ -260,7 +260,7 @@ func needsViewer(t wire.Task, viewer string, card *wire.Card) bool {
return true
}
switch t.NeedsYou {
- case wire.NeedsRetry, wire.NeedsReviewBlocked, wire.NeedsFixRounds, wire.NeedsBranchMoved, wire.NeedsMergeConflict, wire.NeedsMachineRemoved, wire.NeedsMacSandbox, wire.NeedsDirection:
+ case wire.NeedsRetry, wire.NeedsReviewBlocked, wire.NeedsFixRounds, wire.NeedsBranchMoved, wire.NeedsMergeConflict, wire.NeedsMachineRemoved, wire.NeedsMacSandbox, wire.NeedsMacRunner, wire.NeedsMacEngineering, wire.NeedsDirection:
return true
case wire.NeedsMerge, wire.NeedsHeld:
return card != nil
@@ -274,7 +274,7 @@ func needsSomeone(t wire.Task) bool {
return !wire.FinalStage(t.Stage)
}
switch t.NeedsYou {
- case wire.NeedsRetry, wire.NeedsReviewBlocked, wire.NeedsFixRounds, wire.NeedsBranchMoved, wire.NeedsMergeConflict, wire.NeedsMachineRemoved, wire.NeedsMacSandbox, wire.NeedsDirection:
+ case wire.NeedsRetry, wire.NeedsReviewBlocked, wire.NeedsFixRounds, wire.NeedsBranchMoved, wire.NeedsMergeConflict, wire.NeedsMachineRemoved, wire.NeedsMacSandbox, wire.NeedsMacRunner, wire.NeedsMacEngineering, wire.NeedsDirection:
return !wire.FinalStage(t.Stage)
}
return false
@@ -803,6 +803,14 @@ func decisionOf(t wire.Task, v taskLine) *decisionView {
d.Choices = append(d.Choices, decisionChoice{Value: o, Label: copyText("chat.card." + o), Primary: o == wire.ChoiceBuild})
}
}
+ case wire.NeedsMacRunner:
+ // Not a failure: Mac work waits for a Mac runner rather than run on
+ // Linux, and starts by itself once one is added.
+ d.Why, d.Ask, d.Mac, d.Cancel = copyText("work.decide.mac_runner_why"), copyText("work.decide.mac_runner_ask"), true, v.Cancel
+ case wire.NeedsMacEngineering:
+ // A Mac runner takes only checks so far: the change waits, and
+ // never goes to Linux.
+ d.Why, d.Ask, d.Cancel = copyText("work.decide.mac_engineering_why"), copyText("work.decide.mac_engineering_ask"), v.Cancel
case wire.NeedsMacSandbox:
// Not a failure: the checks wait, and run by themselves once the
// Mac's sandbox is proven. Only the creator may choose otherwise.
diff --git a/internal/headless/ask_test.go b/internal/headless/ask_test.go
index 4829c8a0..40b020af 100644
--- a/internal/headless/ask_test.go
+++ b/internal/headless/ask_test.go
@@ -61,10 +61,13 @@ func scenarioAsk(t *testing.T, env *Env) {
s := open(t, env)
s.keep()
s.wait(t, "runner online", 30*time.Second, func(c *thintest.Conversation) bool { return c.Runner.Online })
- // The change touches the iOS app too, so its checks cannot run here
- // and Equipo asks before merging: the task waits at Ready to merge
- // while its creator asks (a task Equipo merges ends at once).
- sent := s.send(t, "tool:record_task:oficina/sample|Fix the README typo|The README says teh panes.\ntool:start_task:$task|edit:ios/App.swift|import SwiftUI|import SwiftUI // reading edit:README.md|teh panes|the panes")
+ // The change adds a file under .github too, a sensitive path, so Equipo asks
+ // before merging: the task waits at Ready to merge while its creator
+ // asks (a task Equipo merges ends at once). It touched the iOS app
+ // until 2026-11-28, when such a change began waiting for a Mac instead
+ // of having its checks judged on Linux. Review tries to write too
+ // (4_checks_honest did this until then): it is read-only.
+ sent := s.send(t, "tool:record_task:oficina/sample|Fix the README typo|The README says teh panes.\ntool:start_task:$task|create:.github/notes.md|Reading notes.; edit:README.md|teh panes|the panes review:write:README.md")
id := s.taskOf(t, sent.Turn.ID)
k := s.settled(t, id, 5*time.Minute)
if k.Stage != wire.StageReadyToMerge {
@@ -82,6 +85,13 @@ func scenarioAsk(t *testing.T, env *Env) {
if !eng.Askable || !rev.Askable {
t.Fatalf("sessions not kept: engineering %v review %v", eng.Askable, rev.Askable)
}
+ // Review read the change and could not write anything.
+ if !strings.Contains(rev.Summary, "Write to README.md was denied.") || rev.Family != "claude" || rev.Account == "" {
+ t.Fatalf("review %+v", rev)
+ }
+ if strings.Contains(forgeShow(t, env.ForgePath("amadan.net/oficina/sample"), k.CandidateSHA+":README.md"), "\nx") {
+ t.Fatal("review wrote")
+ }
if n := env.KeptSessions(t); n != 2 {
t.Fatalf("%d kept sessions, want 2", n)
}
diff --git a/internal/headless/env_test.go b/internal/headless/env_test.go
index 0d989b17..940be893 100644
--- a/internal/headless/env_test.go
+++ b/internal/headless/env_test.go
@@ -20,6 +20,7 @@ import (
"testing"
"time"
+ "amadan.net/oficina/equipo/internal/equipo/chat"
"amadan.net/oficina/equipo/internal/fakeclaude"
"amadan.net/oficina/equipo/internal/fakecodex"
"amadan.net/oficina/equipo/internal/runner"
@@ -100,6 +101,13 @@ type Env struct {
Witness, CrashWitness, CancelWitness string
// ForgePath is a local forge repository's bare path (local only).
ForgePath func(repo string) string
+ // OfflineMac enrols a Mac worker that said hello once and is offline
+ // (local only): checks that need a Mac wait for it (waiting_runner),
+ // not for a Mac runner to be added. The func it returns removes it.
+ // PastOfflineLimit runs placement with the clock past the offline
+ // limit, so such checks end not run (runner_offline).
+ OfflineMac func(t *testing.T) func()
+ PastOfflineLimit func(t *testing.T)
// GrantNow makes a repository reachable without restarting the
// runner, like a grant on the hub (local only).
GrantNow func(t *testing.T, repo string)
@@ -314,6 +322,27 @@ func localEnv(t *testing.T) (*Env, *thintest.Instance, *localRunner) {
r.start(t)
},
ForgePath: forge.path,
+ OfflineMac: func(t *testing.T) func() {
+ cred := inst.EnrolRunner(t)
+ w, err := thintest.DialRunnerHello(context.Background(), inst.URL, cred.Token, thintest.WorkerHello(0))
+ if err != nil {
+ t.Fatal(err)
+ }
+ w.Close()
+ return func() {
+ if _, err := inst.DB.Writer().Exec("UPDATE runners SET revoked_at = ? WHERE id = ?", time.Now().UTC(), cred.RunnerID); err != nil {
+ t.Error(err)
+ }
+ }
+ },
+ PastOfflineLimit: func(t *testing.T) {
+ later := time.Now().UTC().Add(chat.OfflineLimit + time.Minute)
+ inst.Store.Chat().SetClock(func() time.Time { return later })
+ defer inst.Store.Chat().SetClock(func() time.Time { return time.Now().UTC() })
+ if err := inst.Store.Chat().Place(context.Background()); err != nil {
+ t.Fatal(err)
+ }
+ },
AskNamespace: func(t *testing.T, question string) string {
d, err := sql.Open("sqlite", "file:"+filepath.Join(state, "thin.db")+"?mode=ro&_pragma=busy_timeout(5000)")
if err != nil {
diff --git a/internal/headless/mac_test.go b/internal/headless/mac_test.go
index 322a4192..5f9515df 100644
--- a/internal/headless/mac_test.go
+++ b/internal/headless/mac_test.go
@@ -18,25 +18,41 @@ import (
"amadan.net/oficina/equipo/internal/wire"
)
-const woodstar = "amadan.net/woodstar/woodstar"
+const woodstar, panes = "amadan.net/woodstar/woodstar", "amadan.net/woodstar/panes"
-// addWoodstar adds an iOS app to the local forge: its gate runs
-// xcodebuild test, it has a shared scheme, and edge swipe does nothing.
+// addWoodstar adds an iOS app to the local forge: it has a shared scheme
+// and edge swipe does nothing. Its gate runs scripts/test, which runs
+// xcodebuild test, so its base does not say it needs a Mac: Engineering
+// runs on the Linux primary and a change to its Swift files is checked on
+// a Mac. Panes is the same app whose gate runs xcodebuild itself, so
+// everything about it is Mac work (Engineering waits for a Mac that can
+// make changes, 2026-11-28).
func addWoodstar(t *testing.T, root string, f *localForge) {
t.Helper()
- work := filepath.Join(root, "seed-woodstar")
- for p, body := range map[string]string{
+ xcode := "xcodebuild test -scheme Woodstar -destination 'platform=iOS Simulator,name=iPhone 16 Pro'\n"
+ seedIOS(t, root, f, woodstar, map[string]string{".amadan/ci": "#!/bin/sh\nset -e\nexec ./scripts/test\n", "scripts/test": "#!/bin/sh\nset -e\n" + xcode})
+ seedIOS(t, root, f, panes, map[string]string{".amadan/ci": "#!/bin/sh\nset -e\n" + xcode})
+}
+
+func seedIOS(t *testing.T, root string, f *localForge, repo string, gate map[string]string) {
+ t.Helper()
+ work := filepath.Join(root, "seed-"+filepath.Base(repo))
+ files := map[string]string{
"README.md": "# Woodstar\n\nAn iOS reading app with sliding panes.\n",
".equipo/gates.json": "{\"version\":1,\"files\":[]}\n",
- ".amadan/ci": "#!/bin/sh\nset -e\nxcodebuild test -scheme Woodstar -destination 'platform=iOS Simulator,name=iPhone 16 Pro'\n",
"Woodstar/Swipe.swift": "let edgeSwipe = false\n",
+ "Woodstar/About.swift": "let about = \"An iOS reading app\"\n",
"Woodstar.xcodeproj/xcshareddata/xcschemes/Woodstar.xcscheme": "<Scheme/>\n",
- } {
+ }
+ for p, body := range gate {
+ files[p] = body
+ }
+ for p, body := range files {
if err := os.MkdirAll(filepath.Dir(filepath.Join(work, p)), 0700); err != nil {
t.Fatal(err)
}
mode := os.FileMode(0600)
- if p == ".amadan/ci" {
+ if p == ".amadan/ci" || p == "scripts/test" {
mode = 0700
}
if err := os.WriteFile(filepath.Join(work, p), []byte(body), mode); err != nil {
@@ -46,9 +62,9 @@ func addWoodstar(t *testing.T, root string, f *localForge) {
gitRun(t, work, "init", "-q", "-b", "main")
gitRun(t, work, "add", "-A")
gitRun(t, work, "commit", "-q", "-m", "seed")
- gitRun(t, root, "clone", "-q", "--bare", work, f.path(woodstar))
+ gitRun(t, root, "clone", "-q", "--bare", work, f.path(repo))
f.mu.Lock()
- f.repos = append(f.repos, woodstar)
+ f.repos = append(f.repos, repo)
f.mu.Unlock()
}
@@ -158,11 +174,27 @@ func TestMacWorker(t *testing.T) {
return false
})
- // M5: the fake gate fails on the worker (a README change, judged on a
- // Mac because Woodstar's gate is xcodebuild); the fix round works from
- // its output; the new candidate's checks pass on the worker.
+ // Mac work: Panes' gate runs xcodebuild, so its Engineering never runs
+ // on the Linux primary, and the Mac worker takes only checks: it
+ // waits, saying why, under Needs you.
+ t.Run("M0", func(t *testing.T) {
+ sent := s.send(t, "tool:record_task:woodstar/panes|Pane titles|Say what each pane is for.\ntool:start_task:$task|edit:Woodstar/About.swift|An iOS reading app|An iOS reading app with titled panes")
+ id := s.taskOf(t, sent.Turn.ID)
+ k := s.settled(t, id, 2*time.Minute)
+ eng := stepOf(k, wire.SpecialistEngineering, 0)
+ if k.NeedsYou != wire.NeedsMacEngineering || eng.State != wire.StepQueued || eng.Placement != wire.PlacementMacEngineering || eng.RunnerID != "" {
+ t.Fatalf("Mac engineering %+v / %+v", k, eng)
+ }
+ if _, err := env.Client.CancelTask(s.ctx, id); err != nil {
+ t.Fatal(err)
+ }
+ })
+
+ // M5: the fake gate fails on the worker (a Swift change, judged on a
+ // Mac); the fix round works from its output; the new candidate's
+ // checks pass on the worker.
t.Run("M5", func(t *testing.T) {
- sent := s.send(t, "tool:record_task:woodstar/woodstar|Describe the panes|Say what the panes are for.\ntool:start_task:$task|edit:README.md|sliding panes|sliding panes, again")
+ sent := s.send(t, "tool:record_task:woodstar/woodstar|Describe the panes|Say what the panes are for.\ntool:start_task:$task|edit:Woodstar/About.swift|An iOS reading app|An iOS reading app with sliding panes")
id := s.taskOf(t, sent.Turn.ID)
k := s.mergeWorkerPass(t, id, 4*time.Minute)
first, second := stepOf(k, wire.SpecialistChecks, 0), stepOf(k, wire.SpecialistChecks, 1)
@@ -207,7 +239,7 @@ func TestMacWorker(t *testing.T) {
}
return false
})
- sent := s.send(t, "tool:record_task:woodstar/woodstar|README while away|Name the app.\ntool:start_task:$task|edit:README.md|reading app|reading app (m2a)")
+ sent := s.send(t, "tool:record_task:woodstar/woodstar|About while away|Name the app.\ntool:start_task:$task|edit:Woodstar/About.swift|reading app|reading app (m2a)")
id := s.taskOf(t, sent.Turn.ID)
s.wait(t, "checks waiting", 2*time.Minute, func(c *thintest.Conversation) bool {
for _, st := range c.Tasks[id].Steps {
@@ -224,7 +256,7 @@ func TestMacWorker(t *testing.T) {
}
worker.stop(t)
- sent = s.send(t, "tool:record_task:woodstar/woodstar|README, worker gone|Name it again.\ntool:start_task:$task|edit:README.md|reading app (m2a)|reading app (m2b)")
+ sent = s.send(t, "tool:record_task:woodstar/woodstar|About, worker gone|Name it again.\ntool:start_task:$task|edit:Woodstar/About.swift|reading app (m2a)|reading app (m2b)")
late := s.taskOf(t, sent.Turn.ID)
s.wait(t, "checks waiting", 2*time.Minute, func(c *thintest.Conversation) bool {
for _, st := range c.Tasks[late].Steps {
@@ -256,7 +288,7 @@ func TestMacWorker(t *testing.T) {
if err := os.WriteFile(xcodebuild+".hang", nil, 0600); err != nil {
t.Fatal(err)
}
- sent := s.send(t, "tool:record_task:woodstar/woodstar|Killed mid checks|Tighten the summary line.\ntool:start_task:$task|edit:README.md|reading app (m2a)|reading app (m4)")
+ sent := s.send(t, "tool:record_task:woodstar/woodstar|Killed mid checks|Tighten the summary line.\ntool:start_task:$task|edit:Woodstar/About.swift|reading app (m2a)|reading app (m4)")
id := s.taskOf(t, sent.Turn.ID)
s.wait(t, "checks running on the worker", 3*time.Minute, func(c *thintest.Conversation) bool {
for _, st := range c.Tasks[id].Steps {
diff --git a/internal/headless/merge_test.go b/internal/headless/merge_test.go
index ebcad95c..3cde52d0 100644
--- a/internal/headless/merge_test.go
+++ b/internal/headless/merge_test.go
@@ -75,7 +75,24 @@ func (s *session) mergeCard(t *testing.T, id string) wire.Card {
return card
}
-// 4c: checks that could not run (an iOS change on Linux) are no pass, so
+// offlineMacChecks lets the task's checks wait for the offline Mac
+// (env.OfflineMac), then end not run (runner_offline) past the offline
+// limit, as they do when the Mac stays away.
+func (s *session) offlineMacChecks(t *testing.T, id string) {
+ t.Helper()
+ s.wait(t, "checks waiting for the Mac", 2*time.Minute, func(c *thintest.Conversation) bool {
+ for _, st := range c.Tasks[id].Steps {
+ if st.Specialist == wire.SpecialistChecks && st.Placement == wire.PlacementWaiting {
+ return true
+ }
+ }
+ return false
+ })
+ s.env.PastOfflineLimit(t)
+}
+
+// 4c: checks that could not run (an iOS change whose Mac stayed offline;
+// with no Mac at all it waits for one, 4_checks_honest) are no pass, so
// Equipo asks once with a card instead of merging. While it waits the
// task branch moves and comes back (readiness follows it, Astra round 1).
// Wait leaves it at Ready to merge, and a person may still merge it on
@@ -89,8 +106,10 @@ func scenarioChecksCard(t *testing.T, env *Env) {
s.keep()
s.wait(t, "runner online", 30*time.Second, func(c *thintest.Conversation) bool { return c.Runner.Online })
bare := env.ForgePath("amadan.net/oficina/sample")
+ defer env.OfflineMac(t)()
sent := s.send(t, "tool:record_task:oficina/sample|iOS edge swipe|Swipe back does nothing on iOS.\ntool:start_task:$task|edit:ios/App.swift|edgeSwipe = false|edgeSwipe = true")
id := s.taskOf(t, sent.Turn.ID)
+ s.offlineMacChecks(t, id)
card := s.mergeCard(t, id)
k, _ := env.Client.Task(s.ctx, id)
if k.Stage != wire.StageReadyToMerge || k.Checks != wire.ChecksCannotRun || k.NeedsYou != wire.NeedsMerge || card.Question != "Merge iOS edge swipe? I'd wait: I don't know yet whether merging to Sample's main branch ships to users." || card.State != wire.CardOpen {
@@ -142,6 +161,7 @@ func scenarioChecksCard(t *testing.T, env *Env) {
// The next one: Merge.
sent = s.send(t, "tool:record_task:oficina/sample|iPad edge swipe|Swipe back does nothing on iPad.|separate\ntool:start_task:$task|edit:ios/App.swift|import SwiftUI|import SwiftUI // iPad")
id2 := s.taskOf(t, sent.Turn.ID)
+ s.offlineMacChecks(t, id2)
card2 := s.mergeCard(t, id2)
asked := time.Now()
if out, err := env.Client.Answer(s.ctx, card2.ID, wire.ChoiceMerge, card2.Revision); err != nil || out.Card.Choice != wire.ChoiceMerge {
@@ -176,6 +196,7 @@ func scenarioChecksCard(t *testing.T, env *Env) {
}
sent = s.send(t, "tool:record_task:oficina/sample|Haptics on iOS|No haptic on a swipe back.|separate\ntool:start_task:$task|edit:ios/App.swift|edgeSwipe = true|edgeSwipe = true // haptic")
id3 := s.taskOf(t, sent.Turn.ID)
+ s.offlineMacChecks(t, id3)
s.wait(t, "merged on its own", 2*time.Minute, func(c *thintest.Conversation) bool { return c.Tasks[id3].Stage == wire.StageDone })
k3, _ := env.Client.Task(s.ctx, id3)
if k3.Merged == nil || !k3.Merged.WithoutChecks || !k3.UndoOffered || k3.MergeDecision == nil || k3.MergeDecision.Class != "act" {
diff --git a/internal/headless/review_test.go b/internal/headless/review_test.go
index 3af5d0f5..8ad48368 100644
--- a/internal/headless/review_test.go
+++ b/internal/headless/review_test.go
@@ -192,9 +192,10 @@ func firstOf(v ...string) string {
}
// Checks are honest about what this runner cannot check: a change to an
-// iOS file needs macOS, so the gate is not run (never a pass), and review
-// still reads it, unable to write anything. Ready to merge then says the
-// checks did not run, and why, and Equipo does not merge it on its own.
+// iOS file needs macOS, and with no Mac runner it is not checked on Linux
+// (never a pass, and since 2026-11-28 not judged needs_macos there
+// either). The task waits under Needs you for a Mac runner: no gate ran,
+// no review ran on an unchecked change, and nothing merged.
func scenarioChecksHonest(t *testing.T, env *Env) {
if env.Live {
t.Skip("local only: the live Woodstar witness covers it")
@@ -202,21 +203,32 @@ func scenarioChecksHonest(t *testing.T, env *Env) {
s := open(t, env)
s.keep()
s.wait(t, "runner online", 30*time.Second, func(c *thintest.Conversation) bool { return c.Runner.Online })
- sent := s.send(t, "tool:record_task:oficina/sample|iOS edge swipe|Swipe back does nothing on iOS.\ntool:start_task:$task|edit:ios/App.swift|edgeSwipe = false|edgeSwipe = true review:write:README.md")
+ sent := s.send(t, "tool:record_task:oficina/sample|iOS edge swipe|Swipe back does nothing on iOS.\ntool:start_task:$task|edit:ios/App.swift|edgeSwipe = false|edgeSwipe = true")
id := s.taskOf(t, sent.Turn.ID)
k := s.settled(t, id, 5*time.Minute)
- checks, review := oneSHA(t, k)
- if k.Stage != wire.StageReadyToMerge || k.Checks != wire.ChecksCannotRun || k.ChecksReason != "needs_macos" || checks.ExitCode != nil || checks.Gate != "" {
- t.Fatalf("checks not honest: %+v / %+v", k, checks)
+ if k.NeedsYou != wire.NeedsMacRunner || k.Stage == wire.StageReadyToMerge || k.Checks != "" {
+ t.Fatalf("not waiting for a Mac: %+v", k)
}
- if !strings.Contains(review.Summary, "Write to README.md was denied.") || review.Family != "claude" || review.Account == "" {
- t.Fatalf("review %+v", review)
+ var checks, review wire.Step
+ for _, st := range k.Steps {
+ switch st.Specialist {
+ case wire.SpecialistChecks:
+ checks = st
+ case wire.SpecialistReview:
+ review = st
+ }
}
- if strings.Contains(forgeShow(t, env.ForgePath("amadan.net/oficina/sample"), k.CandidateSHA+":README.md"), "\nx") {
- t.Fatal("review wrote")
+ if checks.State != wire.StepQueued || checks.Placement != wire.PlacementMac || checks.RunnerID != "" || checks.Gate != "" || checks.ExitCode != nil || checks.CandidateSHA != k.CandidateSHA {
+ t.Fatalf("checks %+v", checks)
+ }
+ if review.ID != "" {
+ t.Fatalf("reviewed before any checks: %+v", review)
}
if k.Merged != nil || forgeHead(t, env.ForgePath("amadan.net/oficina/sample"), k.Branch) != k.CandidateSHA {
- t.Fatalf("merged without checks on its own: %+v", k)
+ t.Fatalf("merged without checks: %+v", k)
+ }
+ if _, err := env.Client.CancelTask(s.ctx, id); err != nil {
+ t.Fatal(err)
}
}
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 4f7a184f..0ec208ae 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -229,10 +229,12 @@ func plan3CopyInventory(t *testing.T) {
approvedPlaces := slices.Contains([]string{"chat.card.place_question", "chat.card.place_option", "chat.card.place_chose", "chat.card.place_chose_not_now", "chat.card.publish_place_question", "chat.card.publish_setup_note", "chat.card.publish_mint_note", "chat.card.publish_stale"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-26, copy-review iic5rwpyavu7rnhiuvx7cnedzm, unchanged)")
// Luna's review of the Mac fixes' installer and task lines (Paul, 2026-11-28: Luna reviews all but the four Needs you card lines, which stay his).
acceptedMacFixes := slices.Contains([]string{"runner.mac.other_instance", "runner.install.other_instance", "runner.enrol.identity", "runner.mac.restored", "runner.mac.not_restored", "work.needs.mac_runner", "work.needs.mac_engineering", "work.waits.mac_runner", "work.waits.mac_engineering"}, key) && strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-28)"
+ // Paul's own review of the four Mac Needs you card lines (2026-11-29).
+ approvedMacCards := slices.Contains([]string{"work.decide.mac_runner_why", "work.decide.mac_runner_ask", "work.decide.mac_engineering_why", "work.decide.mac_engineering_ask"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-29, copy-review ugmpahjf6nxcpfkjflv35rjoeq, unchanged)")
acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key])
// Paul's own review of the Assistant abilities strings (2026-11-28).
approvedAbilities := slices.Contains([]string{"assistant.ability.web.name", "assistant.ability.apps_read.name", "assistant.ability.apps_write.name", "assistant.ability.build.name", "assistant.ability.go_live.name", "assistant.ability.services.name", "assistant.ability.services_add.name", "assistant.job.detail.ability_off", "assistant.job.detail.ability_back", "assistant.job.detail.go_live_off", "chat.card.ability_off", "oficina.connect.ability_off", "services.inventory.question", "services.inventory.confirm", "assistant.activity.lookup", "assistant.lookup.fallback_sources"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-28, copy-review mi3kgi7nubnsf7kxn235tqwrbu, unchanged)")
- if !approvedAbilities && !acceptedMacFixes && !acceptedGitHubApp && !acceptedGitHubSweep && !approvedPlaces && !acceptedPlaces && !acceptedAskFiles && !acceptedDBCheck && !acceptedPreview && !approvedNoAccess && !approvedMergeCredential && !approvedStuckTasks && !acceptedPaused && !acceptedNewTeamCard && !acceptedGitHubEgress && !acceptedForgeSeam && !acceptedAPIErrors && !acceptedNativeProjects && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies && !approvedStopReasons {
+ if !approvedMacCards && !approvedAbilities && !acceptedMacFixes && !acceptedGitHubApp && !acceptedGitHubSweep && !approvedPlaces && !acceptedPlaces && !acceptedAskFiles && !acceptedDBCheck && !acceptedPreview && !approvedNoAccess && !approvedMergeCredential && !approvedStuckTasks && !acceptedPaused && !acceptedNewTeamCard && !acceptedGitHubEgress && !acceptedForgeSeam && !acceptedAPIErrors && !acceptedNativeProjects && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies && !approvedStopReasons {
t.Fatal("entry has no copy review status or applicable acceptance", key)
}
}
diff --git a/internal/thintest/mac_wait_contract_test.go b/internal/thintest/mac_wait_contract_test.go
new file mode 100644
index 00000000..06e7bdf9
--- /dev/null
+++ b/internal/thintest/mac_wait_contract_test.go
@@ -0,0 +1,316 @@
+package thintest
+
+import (
+ "strings"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/equipo/chat"
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+// engineeringStep is the task's first Engineering step.
+func (r *runnersRig) engineeringStep(task string) wire.Step {
+ r.t.Helper()
+ k, err := r.client.Task(r.ctx, task)
+ if err != nil {
+ r.t.Fatal(err)
+ }
+ for _, s := range k.Steps {
+ if s.Specialist == wire.SpecialistEngineering {
+ return s
+ }
+ }
+ r.t.Fatalf("no engineering step: %+v", k.Steps)
+ return wire.Step{}
+}
+
+func (r *runnersRig) needsYou(task string) string {
+ r.t.Helper()
+ k, err := r.client.Task(r.ctx, task)
+ if err != nil {
+ r.t.Fatal(err)
+ }
+ return k.NeedsYou
+}
+
+// Checks that need a Mac, with no Mac runner enrolled, no longer go to the
+// Linux primary to end as needs_macos (task tkdn6i2ex2xj, 2026-11-28: a
+// Mac sidebar change checked and reviewed on docs-t1 alone). They wait,
+// needing the person (a Mac runner), past the offline limit too, and run
+// on the Mac as soon as one enrols.
+func TestContractChecksWaitForAMacRunner(t *testing.T) {
+ r := newRunnersRig(t)
+ task, sha := r.candidate("Mac sidebar", true)
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ s := r.checksStep(task)
+ if s.State != wire.StepQueued || s.Placement != wire.PlacementMac || s.RunnerID != "" || strings.Join(s.Needs, ",") != "macos,xcode" {
+ t.Fatalf("checks did not wait for a Mac: %+v", s)
+ }
+ if got := r.needsYou(task); got != wire.NeedsMacRunner {
+ t.Fatalf("needs you %q", got)
+ }
+ clock := time.Now().UTC().Add(chat.OfflineLimit + time.Hour)
+ r.inst.Store.Chat().SetClock(func() time.Time { return clock })
+ if err := r.inst.Store.Chat().Place(r.ctx); err != nil {
+ t.Fatal(err)
+ }
+ if s := r.checksStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMac {
+ t.Fatalf("waiting for a Mac ended by the offline limit: %+v", s)
+ }
+ w, _ := r.newWorker("Tito Studio")
+ _, body := w.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ if d.TaskID != task || d.Specialist != wire.SpecialistChecks || d.CandidateSHA != sha || strings.Join(d.Needs, ",") != "macos,xcode" {
+ t.Fatalf("checks on the new Mac: %+v", d)
+ }
+ if s := r.checksStep(task); s.Placement != "" || s.RunnerLabel != "Tito Studio" {
+ t.Fatalf("not placed on the Mac: %+v", s)
+ }
+ if got := r.needsYou(task); got != "" {
+ t.Fatalf("still needs you: %q", got)
+ }
+}
+
+// Engineering for a repository whose gate needs Xcode (the base's
+// catalog says so) never runs on the Linux primary: with no Mac runner it
+// waits for one; with one, it still waits, saying why, because a Mac
+// runner does not take Engineering yet (only checks, until slice F). A
+// repository that needs no Mac is unchanged: Engineering on the primary.
+func TestContractMacEngineeringWaits(t *testing.T) {
+ r := newRunnersRig(t)
+ h := primaryHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ r.primary.heartbeat(h)
+ task := taskID(t, r.call("c-mac", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac app", "brief": "b"}))
+ r.call("s-mac", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ s := r.engineeringStep(task)
+ if s.State != wire.StepQueued || s.Placement != wire.PlacementMac || s.RunnerID != "" {
+ t.Fatalf("engineering did not wait for a Mac: %+v", s)
+ }
+ if got := r.needsYou(task); got != wire.NeedsMacRunner {
+ t.Fatalf("needs you %q", got)
+ }
+ w, _ := r.newWorker("Tito Studio")
+ w.none(wire.FrameDispatch, 200*time.Millisecond)
+ r.primary.none(wire.FrameDispatch, 0)
+ if s := r.engineeringStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMacEngineering || s.RunnerID != "" {
+ t.Fatalf("engineering with a Mac that cannot take it: %+v", s)
+ }
+ if got := r.needsYou(task); got != wire.NeedsMacEngineering {
+ t.Fatalf("needs you %q", got)
+ }
+
+ // Not Mac work: Engineering on the primary, as before.
+ h.Catalog[0].NeedsMacOS = false
+ r.primary.heartbeat(h)
+ plain := taskID(t, r.call("c-go", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Go fix", "brief": "b"}))
+ r.call("s-go", wire.ToolStartTask, map[string]string{"task": plain, "brief": "go"})
+ // (The first task, no longer Mac work by its catalog, may go first.)
+ for range 2 {
+ _, body := r.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ if d.Specialist != wire.SpecialistEngineering || d.RunnerID == "" {
+ t.Fatalf("engineering %+v", d)
+ }
+ if d.TaskID == plain {
+ return
+ }
+ }
+ t.Fatal("plain engineering not dispatched to the primary")
+}
+
+// An older primary (protocol 1, no relay) is no way round the rule:
+// Mac Engineering and checks that need macOS wait for a Mac there too,
+// rather than run, or be judged needs_macos, on Linux (Astra,
+// mac-placement-wait).
+func TestContractMacWorkWaitsOnAnOlderPrimary(t *testing.T) {
+ // The tool rig's runner is a protocol 1 primary.
+ older := func() *runnersRig {
+ r := newToolRig(t)
+ return &runnersRig{toolRig: r, primary: &peer{t: t, r: r, fr: r.runner}, creds: map[*FakeRunner][2]string{}}
+ }
+ r := older()
+ h := toolHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ r.primary.heartbeat(h)
+ task := taskID(t, r.call("c-old", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac app", "brief": "b"}))
+ r.call("s-old", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ if n := r.heldKinds(wire.FrameDispatch); n != 0 {
+ t.Fatalf("%d dispatches to an older primary", n)
+ }
+ if s := r.engineeringStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMac || s.RunnerID != "" {
+ t.Fatalf("Mac engineering on an older primary: %+v", s)
+ }
+
+ r = older()
+ task = taskID(t, r.call("c-side", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac sidebar", "brief": "b"}))
+ r.call("s-side", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ _, body := r.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ sha := strings.Repeat("f", 40)
+ r.step("o1", wire.StepReport{TaskID: task, StepID: d.StepID, Attempt: d.Attempt, State: wire.StepRunning, BaseSHA: strings.Repeat("1", 40), Findings: []wire.Finding{}})
+ r.step("o2", wire.StepReport{TaskID: task, StepID: d.StepID, Attempt: d.Attempt, State: wire.StepDone, CandidateSHA: sha, Pushed: true, Termination: true, TerminationKind: wire.TerminationNamespace, Apple: true, Findings: []wire.Finding{}})
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ if n := r.heldKinds(wire.FrameDispatch); n != 0 {
+ t.Fatalf("%d checks dispatches to an older primary", n)
+ }
+ if s := r.checksStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMac || s.RunnerID != "" {
+ t.Fatalf("Mac checks on an older primary: %+v", s)
+ }
+ if got := r.needsYou(task); got != wire.NeedsMacRunner {
+ t.Fatalf("needs you %q", got)
+ }
+}
+
+// Engineering dispatched to the Linux primary before this rule (an
+// instance upgraded with it queued, here: the catalog said Xcode only
+// after the dispatch) is refused when the primary asks to start it, and
+// waits for a Mac like new work.
+func TestContractMacEngineeringQueuedBeforeTheRule(t *testing.T) {
+ r := newRunnersRig(t)
+ task := taskID(t, r.call("c-q", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac app", "brief": "b"}))
+ r.call("s-q", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ _, body := r.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ if d.Specialist != wire.SpecialistEngineering {
+ t.Fatalf("dispatch %+v", d)
+ }
+ h := primaryHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ r.primary.heartbeat(h)
+ if r.primary.lease(d.StepID, d.Attempt) {
+ t.Fatal("Mac engineering started on the Linux primary")
+ }
+ if s := r.engineeringStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMac || s.RunnerID != "" || s.Attempt != d.Attempt+1 {
+ t.Fatalf("not waiting for a Mac: %+v", s)
+ }
+ if got := r.needsYou(task); got != wire.NeedsMacRunner {
+ t.Fatalf("needs you %q", got)
+ }
+}
+
+// Checks of a change that touched no Apple file still wait for a Mac
+// when the repository's own gate needs Xcode (the base's catalog), and
+// run on the Mac once one enrols.
+func TestContractChecksWaitForTheGatesMac(t *testing.T) {
+ r := newRunnersRig(t)
+ task := taskID(t, r.call("c-g", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Readme", "brief": "b"}))
+ r.call("s-g", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ _, body := r.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ // Engineering ran before the gate needed Xcode; its checks come after.
+ h := primaryHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ r.primary.heartbeat(h)
+ sha := strings.Repeat("e", 40)
+ r.step("g1", wire.StepReport{TaskID: task, StepID: d.StepID, Attempt: d.Attempt, State: wire.StepRunning, BaseSHA: strings.Repeat("1", 40), Findings: []wire.Finding{}})
+ r.step("g2", wire.StepReport{TaskID: task, StepID: d.StepID, Attempt: d.Attempt, State: wire.StepDone, CandidateSHA: sha, Pushed: true, Termination: true, TerminationKind: wire.TerminationNamespace, Findings: []wire.Finding{}})
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ if s := r.checksStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMac || !strings.Contains(strings.Join(s.Needs, ","), "xcode") {
+ t.Fatalf("gate-only checks did not wait for a Mac: %+v", s)
+ }
+ w, _ := r.newWorker("Tito Studio")
+ _, body = w.expect(wire.FrameDispatch)
+ if c := body.(*wire.DispatchCommand); c.TaskID != task || c.Specialist != wire.SpecialistChecks || c.CandidateSHA != sha {
+ t.Fatalf("checks on the new Mac: %+v", c)
+ }
+}
+
+// An exploration of an Xcode repository waits for a Mac under Needs you,
+// like any task, and can be cancelled from there.
+func TestContractExplorationWaitsForAMac(t *testing.T) {
+ r := newRunnersRig(t)
+ h := primaryHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ r.primary.heartbeat(h)
+ task := taskID(t, r.call("c-x", wire.ToolRecordTask, map[string]any{"repo": "oficina/sample", "title": "Mac mockups", "brief": "Two mockups.", "separate": true, "kind": wire.KindExplore}))
+ r.call("s-x", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ if s := r.engineeringStep(task); s.State != wire.StepQueued || s.Placement != wire.PlacementMac {
+ t.Fatalf("exploration engineering %+v", s)
+ }
+ if got := r.needsYou(task); got != wire.NeedsMacRunner {
+ t.Fatalf("an exploration waiting for a Mac needs you %q", got)
+ }
+ if _, err := r.client.CancelTask(r.ctx, task); err != nil {
+ t.Fatal(err)
+ }
+ if k, err := r.client.Task(r.ctx, task); err != nil || k.Stage != wire.StageCancelled || k.NeedsYou != "" {
+ t.Fatalf("not cancelled: %+v %v", k, err)
+ }
+}
+
+// An older primary asks for no start authorization: Engineering queued
+// for it before Mac work waited for a Mac (or before the catalog said the
+// gate needs Xcode) is placed again when it says hello, and its old
+// dispatch is not served again (Astra round 2, mac-placement-wait).
+func TestContractMacEngineeringQueuedOnAnOlderPrimary(t *testing.T) {
+ r := newToolRig(t)
+ p := &peer{t: t, r: r, fr: r.runner}
+ task := taskID(t, r.call("c-oq", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac app", "brief": "b"}))
+ r.call("s-oq", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ if n := r.heldKinds(wire.FrameDispatch); n != 1 {
+ t.Fatalf("%d engineering dispatches", n)
+ }
+ h := toolHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ p.heartbeat(h)
+ k, err := r.client.Task(r.ctx, task)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, s := range k.Steps {
+ if s.Specialist == wire.SpecialistEngineering && (s.State != wire.StepQueued || s.Placement != wire.PlacementMac || s.Attempt != 2) {
+ t.Fatalf("queued Mac engineering left on the older primary: %+v", s)
+ }
+ }
+ if k.NeedsYou != wire.NeedsMacRunner {
+ t.Fatalf("needs you %q", k.NeedsYou)
+ }
+}
+
+// A delivered dispatch is left to the older primary that holds it: only
+// one it has not received is placed again, so no attempt it may already
+// run is lost track of (Astra round 3, mac-placement-wait).
+func TestContractMacEngineeringDeliveredToAnOlderPrimary(t *testing.T) {
+ r := newToolRig(t)
+ p := &peer{t: t, r: r, fr: r.runner}
+ task := taskID(t, r.call("c-od", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac app", "brief": "b"}))
+ r.call("s-od", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ _, body := r.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ h := toolHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ p.heartbeat(h)
+ k, err := r.client.Task(r.ctx, task)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, s := range k.Steps {
+ if s.Specialist == wire.SpecialistEngineering && (s.ID != d.StepID || s.Attempt != d.Attempt || s.Placement != "") {
+ t.Fatalf("a delivered attempt was replaced: %+v", s)
+ }
+ }
+}
+
+// A cancelled task's Mac Engineering is not let start on the Linux
+// primary while its cancellation is on the way.
+func TestContractCancelledMacEngineeringDoesNotStart(t *testing.T) {
+ r := newRunnersRig(t)
+ task := taskID(t, r.call("c-cx", wire.ToolRecordTask, map[string]string{"repo": "oficina/sample", "title": "Mac app", "brief": "b"}))
+ r.call("s-cx", wire.ToolStartTask, map[string]string{"task": task, "brief": "go"})
+ _, body := r.expect(wire.FrameDispatch)
+ d := body.(*wire.DispatchCommand)
+ h := primaryHello(0)
+ h.Catalog[0].NeedsMacOS = true
+ r.primary.heartbeat(h)
+ if _, err := r.client.CancelTask(r.ctx, task); err != nil {
+ t.Fatal(err)
+ }
+ if r.primary.lease(d.StepID, d.Attempt) {
+ t.Fatal("a cancelled task's Mac engineering started on the Linux primary")
+ }
+}
diff --git a/internal/thintest/macrecheck_contract_test.go b/internal/thintest/macrecheck_contract_test.go
index e76a16ca..6a592801 100644
--- a/internal/thintest/macrecheck_contract_test.go
+++ b/internal/thintest/macrecheck_contract_test.go
@@ -8,20 +8,35 @@ import (
"amadan.net/oficina/equipo/internal/wire"
)
+// legacyMacChecks is an iOS change's checks as an instance before
+// 2026-11-28 placed them with no Mac enrolled: on the Linux primary, which
+// judged them not run (needs_macos). An instance now leaves them waiting
+// for a Mac runner (waiting_mac); the tasks that reached Ready to merge
+// that way before still wait for a Mac, and these contracts keep them.
+// The fixture moves the waiting step onto the primary as the old
+// placement did and returns its dispatch, for the primary to report.
+func (r *runnersRig) legacyMacChecks(task, sha string) *wire.DispatchCommand {
+ r.t.Helper()
+ s := r.checksStep(task)
+ if s.Placement != wire.PlacementMac {
+ r.t.Fatalf("checks not waiting for a Mac: %+v", s)
+ }
+ if _, err := r.inst.DB.Writer().Exec("UPDATE chat_steps SET placement = '', waiting_since = NULL, needs = '', runner_id = ? WHERE id = ?", r.primary.fr.Welcome.RunnerID, s.ID); err != nil {
+ r.t.Fatal(err)
+ }
+ return &wire.DispatchCommand{TaskID: task, StepID: s.ID, Attempt: s.Attempt, Specialist: wire.SpecialistChecks, BaseSHA: s.BaseSHA, CandidateSHA: sha}
+}
+
// waitingForMac runs an iOS change with no Mac enrolled to Ready to merge:
-// its checks end on the primary as not run (needs_macos), review
-// approves, and the merge card asks. It returns the task, its candidate
-// and the card.
+// its checks end on the primary as not run (needs_macos, legacyMacChecks),
+// review approves, and the merge card asks. It returns the task, its
+// candidate and the card.
func (r *runnersRig) waitingForMac(title string) (task, sha string, card wire.Card) {
r.t.Helper()
task, sha = r.candidate(title, true)
- _, body := r.expect(wire.FrameDispatch)
- c := body.(*wire.DispatchCommand)
- if c.Specialist != wire.SpecialistChecks || c.TaskID != task || len(c.Needs) != 0 {
- r.t.Fatalf("checks on the primary %+v", c)
- }
+ c := r.legacyMacChecks(task, sha)
r.checks(task+"-c", c, wire.ChecksCannotRun, nil, "needs_macos", "")
- _, body = r.expect(wire.FrameDispatch)
+ _, body := r.expect(wire.FrameDispatch)
r.verdict(task+"-r", body.(*wire.DispatchCommand), wire.VerdictApprove)
r.wait("waiting for a Mac", func(c *Conversation) bool {
for _, k := range c.Cards {
diff --git a/internal/thintest/macrecheck_mergeauth_contract_test.go b/internal/thintest/macrecheck_mergeauth_contract_test.go
index a8fa7eff..e62664de 100644
--- a/internal/thintest/macrecheck_mergeauth_contract_test.go
+++ b/internal/thintest/macrecheck_mergeauth_contract_test.go
@@ -13,13 +13,9 @@ import (
func (r *runnersRig) waitingForMacMeasured(title string, paths ...string) (task, sha string, card wire.Card) {
r.t.Helper()
task, sha = r.candidate(title, true)
- _, body := r.expect(wire.FrameDispatch)
- c := body.(*wire.DispatchCommand)
- if c.Specialist != wire.SpecialistChecks || c.TaskID != task {
- r.t.Fatalf("checks on the primary %+v", c)
- }
+ c := r.legacyMacChecks(task, sha)
r.checks(task+"-c", c, wire.ChecksCannotRun, nil, "needs_macos", "")
- _, body = r.expect(wire.FrameDispatch)
+ _, body := r.expect(wire.FrameDispatch)
rv := body.(*wire.DispatchCommand)
r.step(task+"-r", wire.StepReport{TaskID: rv.TaskID, StepID: rv.StepID, Attempt: rv.Attempt, State: wire.StepDone, BaseSHA: rv.BaseSHA, CandidateSHA: rv.CandidateSHA, Termination: true, Family: "codex", Account: "codex-a", Verdict: wire.VerdictApprove, ReviewLabel: wire.ReviewOtherFamily, Findings: []wire.Finding{}, Summary: "Read it.", Change: facts(rv, paths...)})
card = r.mergeCardsWait(task)
diff --git a/internal/thintest/placement_contract_test.go b/internal/thintest/placement_contract_test.go
index 37651b76..d7ea3885 100644
--- a/internal/thintest/placement_contract_test.go
+++ b/internal/thintest/placement_contract_test.go
@@ -341,17 +341,14 @@ func TestContractChecksPlacedOnTheWorker(t *testing.T) {
}
}
-// M3 at the contract: with no worker that fits, checks go to the primary
-// with no needs and end there honestly (needs_macos), as before.
+// M3 at the contract: with no worker that fits, checks no longer go to
+// the Linux primary (2026-11-28): they wait for a Mac runner, nothing
+// dispatched (TestContractChecksWaitForAMacRunner follows them to a Mac).
func TestContractChecksWithoutAWorker(t *testing.T) {
r := newRunnersRig(t)
- task, sha := r.candidate("iOS swipe", true)
- _, body := r.expect(wire.FrameDispatch)
- d := body.(*wire.DispatchCommand)
- if d.Specialist != wire.SpecialistChecks || len(d.Needs) != 0 || d.CandidateSHA != sha {
- t.Fatalf("checks %+v", d)
- }
- if s := r.checksStep(task); s.Placement != "" || s.RunnerLabel != "docs-t1" {
+ task, _ := r.candidate("iOS swipe", true)
+ r.primary.none(wire.FrameDispatch, 200*time.Millisecond)
+ if s := r.checksStep(task); s.Placement != wire.PlacementMac || s.RunnerID != "" {
t.Fatalf("checks step %+v", s)
}
}
diff --git a/internal/wire/runners.go b/internal/wire/runners.go
index 33d21304..2b779325 100644
--- a/internal/wire/runners.go
+++ b/internal/wire/runners.go
@@ -470,10 +470,17 @@ func Covers(tags, needs []string) bool {
// Placement of a step: "" placed on its runner; waiting_runner while the
// only runners that fit are offline; waiting_sandbox while the only Macs
// online that fit have not proven their sandbox (probe P2) or are
-// tainted, and nobody chose to run the checks outside it.
+// tainted, and nobody chose to run the checks outside it; waiting_mac
+// while Mac work (checks that need macOS, Engineering for a repository
+// whose gate needs Xcode) has no enrolled runner that fits, so it waits
+// for one rather than run on a Linux primary; waiting_mac_engineering
+// while the only runners that fit Mac Engineering are Mac workers, which
+// do not take Engineering yet.
const (
- PlacementWaiting = "waiting_runner"
- PlacementSandbox = "waiting_sandbox"
+ PlacementWaiting = "waiting_runner"
+ PlacementSandbox = "waiting_sandbox"
+ PlacementMac = "waiting_mac"
+ PlacementMacEngineering = "waiting_mac_engineering"
)
// Publication of a worker's Engineering candidate: only the primary
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go
index 655a977d..6921efb5 100644
--- a/internal/wire/tasks.go
+++ b/internal/wire/tasks.go
@@ -122,6 +122,12 @@ const (
// themselves once it is proven, or the creator may choose to run them
// outside it.
NeedsMacSandbox = "mac_sandbox"
+ // NeedsMacRunner: Mac work waits for a Mac runner to be added; it
+ // starts by itself once one is.
+ NeedsMacRunner = "mac_runner"
+ // NeedsMacEngineering: Engineering for Mac work waits because a Mac
+ // runner does not take Engineering yet, and it never runs on Linux.
+ NeedsMacEngineering = "mac_engineering"
)
// MaxRebaseRounds is how many times Engineering is sent to put the change