oficina / equipo Public

headless: Mac work waits for a Mac in the end-to-end scenarios

CI on a55d7d95 failed the headless lanes that assumed the old path
(an iOS change checked as needs_macos on the Linux primary, and
Woodstar Engineering on Linux). With the real runner and the fake CLI:

- 4_checks_honest: an iOS change with no Mac now waits (mac_runner,
  checks waiting_mac, no gate, no review, nothing merged), then is
  cancelled.
- 4b_ask: asks because the change adds a file under .github (a
  sensitive path), not because its checks could not run.
- 4c_checks_card: checks that could not run come from a Mac that stays
  offline past the limit (env.OfflineMac, env.PastOfflineLimit);
  the card, Wait, Merge without checks and the own merge are unchanged.
- TestMacWorker: Woodstar's gate runs scripts/test (which runs
  xcodebuild), so its Engineering is on Linux and its Swift changes are
  checked on the Mac (M1, M2, M4, M5 edit Swift files); a new M0 on
  Panes, whose gate runs xcodebuild itself, shows Mac Engineering
  waiting (mac_engineering) with the worker enrolled.
- Budget: internal/headless 11969 test lines, measured.

Local: go test -tags testbuild ./internal/headless -run
'^(TestHeadless|TestMacWorker)$' ok (309s).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 570375ec8bfc55ad2f681541862735e69fe04e6f parent a55d7d9
6 files changed, +131 −35
  • .rastrillo/budgets.txt +1 −1
  • internal/headless/ask_test.go +6 −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

CI failed — 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/mac-placement-wait: 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.4s
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.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
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.1s
ci-box: file times set from content: 3284 files, 213 directories
ci-box: ready in 18.9s
=== 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.152s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.5s
+ go list -export -test -tags testbuild -f  ./...
  1.3s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  1.3s
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 1m14.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 1m13.113s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.11s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 46.08, cpu waiting 28.47%, memory waiting 0.00%, io waiting 0.49%
--- 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 1m13.399s 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 1m11.696s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.69s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 46.08, cpu waiting 28.32%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m15.627s 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 1m13.657s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.15s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.17s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.33s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 46.08, cpu waiting 28.72%, memory waiting 0.00%, io waiting 0.47%
--- 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 1m12.214s 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 1m10.476s amadan.net/oficina/equipo/internal/headless
receipt: slow test 34.05s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 18.4s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 8.87s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 46.09, cpu waiting 28.32%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m31.213s 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 1m29.474s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m0.01s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.91s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.37s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.76s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 48.96, cpu waiting 27.11%, memory waiting 0.00%, io waiting 0.37%
--- 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 2m53.599s 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 2m51.716s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m34.05s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 20.57s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.29s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.23s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.84s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 16.86, cpu waiting 7.26%, memory waiting 0.00%, io waiting 0.09%
--- 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 550ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m13.423s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.11s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.75s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.05s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.85s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.7s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 1.03, cpu waiting 0.41%, memory waiting 0.00%, io waiting 1.72%
--- 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 1m59.065s 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 1m57.429s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.53s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.05s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.97s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.59s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.02s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 34.56, cpu waiting 17.76%, memory waiting 0.00%, io waiting 0.23%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 5m9.892s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m24.241s 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 5m9.892s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.05s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.86s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.5s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.87s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 2.07, cpu waiting 0.57%, 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 49.109s 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 47.943s amadan.net/oficina/equipo/internal/runner
receipt: slow test 27.91s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 39.52, cpu waiting 25.53%, memory waiting 0.00%, io waiting 0.76%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 52.788s 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.884s amadan.net/oficina/equipo/internal/runner
receipt: slow test 40.74s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 36.96s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 39.52, cpu waiting 26.75%, memory waiting 0.00%, io waiting 0.71%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 36.421s 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 35.464s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.71s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.79s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 20.92, cpu waiting 18.23%, memory waiting 0.00%, io waiting 0.94%
--- 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 33.5%, load 15.08
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
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m9.801s 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 1m7.656s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.68s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 29.56s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 27.24s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 24.5s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 24.28s amadan.net/oficina/equipo/internal/equipotest TestAuthorityRejectsMismatchedTarget
machine: 32 CPUs, load 44.37, cpu waiting 24.28%, memory waiting 0.00%, io waiting 0.32%
--- 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 33.5%, load 15.08
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 645ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m12.122s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.55s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.54s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.51s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.49s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 20.47s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
machine: 32 CPUs, load 15.08, cpu waiting 13.56%, memory waiting 0.00%, io waiting 1.04%
--- 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 33.5%, load 15.08
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
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m23.501s 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.432s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.63s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.64s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.58s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.56s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.48s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 36.96, cpu waiting 19.59%, memory waiting 0.00%, io waiting 0.25%
--- 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 33.5%, load 15.08
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 602ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m7.608s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.72s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.72s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.59s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.79s amadan.net/oficina/equipo/internal/equipotest TestSigninCSRF
receipt: slow test 23.77s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettings
machine: 32 CPUs, load 15.08, cpu waiting 13.56%, memory waiting 0.00%, io waiting 1.04%
--- 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 33.5%, load 15.08
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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries
--- FAIL: TestPlan3ReleaseBoundaries (0.32s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries/inventory
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance work.needs.mac_runner
--- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test (package output)
FAIL
rastrillo-budget/v1 ran 53.081s
FAIL	amadan.net/oficina/equipo/internal/plan3test	53.406s


receipt: test step 55.055s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 53.081s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.97s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.44s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.71s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.33s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestPlan3ReleaseBoundaries$/^inventory$' -count=1 ./internal/plan3test   (retry, once)
FAILED TWICE ./internal/plan3test:TestPlan3ReleaseBoundaries/inventory plan3test
=== RUN   TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance work.needs.mac_runner
--- FAIL: TestPlan3ReleaseBoundaries (0.02s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)
FAIL
rastrillo-budget/v1 ran 20ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.222s
FAIL
machine: 32 CPUs, load 48.78, cpu waiting 27.88%, memory waiting 0.00%, io waiting 0.40%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 16 of 29 failed: exit status 2
--- 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 33.2%, load 15.08
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/websource ./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/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 2m17.283s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 26.113s, 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/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 10.438s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 1m52.885s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 24.619s, 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 44.811s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m22.404s against a 60s target (the gate's other steps are not in this figure)
receipt: 15 packages ran, 54 cached, 16 without tests, 0 failed
receipt: slow package 2m17.283s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m52.885s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m2.137s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 54.482s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 44.811s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 56.5s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.98s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 46.77s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 46.55s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 46.07s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
machine: 32 CPUs, load 15.75, cpu waiting 7.26%, memory waiting 0.00%, io waiting 0.09%
--- 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 1m23.32s 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.515s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.55s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.88s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.95s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 48.78, cpu waiting 28.07%, memory waiting 0.00%, io waiting 0.41%
--- 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 1m27.236s 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 1m25.547s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.28s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 20.84s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.28s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.29s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.89s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 48.96, cpu waiting 27.65%, memory waiting 0.00%, io waiting 0.39%
--- 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 1m50.92s 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 1m48.919s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.31s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 13.08s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.26s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 39.13, cpu waiting 20.22%, memory waiting 0.00%, io waiting 0.26%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-28T17:01:08.987Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T17:01:08.987Z level=INFO msg="startup phase done" phase=state_lock took=143µs
time=2026-11-28T17:01:08.987Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T17:01:08.988Z level=INFO msg="startup phase done" phase=claim_roots took=131µs
time=2026-11-28T17:01:08.988Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T17:01:09.028Z level=INFO msg="startup phase done" phase=sweep took=40.337ms
time=2026-11-28T17:01:09.030Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T17:01:09.030Z level=INFO msg="startup phase done" phase=credentials took=206µs
time=2026-11-28T17:01:09.030Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T17:01:09.080Z level=INFO msg="startup phase done" phase=open_state took=50.415ms
time=2026-11-28T17:01:09.081Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T17:01:09.082Z level=INFO msg=connecting host=127.0.0.1:34981 protocol=35
time=2026-11-28T17:01:09.085Z level=INFO msg=connected host=127.0.0.1:34981 took=2.441ms
time=2026-11-28T17:01:09.085Z level=INFO msg="capabilities gathering"
time=2026-11-28T17:01:09.085Z level=INFO msg="capabilities gathered" took=467µs tags=linux,claude,go
time=2026-11-28T17:01:09.088Z level=INFO msg="hello sent" protocol=35
time=2026-11-28T17:01:09.094Z level=INFO msg=welcome protocol=35 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (2.00s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m32.802s
FAIL	amadan.net/oficina/equipo/internal/headless	93.009s


receipt: test step 1m34.494s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m32.802s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.72s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.05s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.14s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.55s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.57s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go 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$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 570375ec8bfc55ad2f681541862735e69fe04e6f 2.00s 46.32
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 44.37, cpu waiting 24.28%, memory waiting 0.00%, io waiting 0.32%
--- 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 478ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2.455s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.84s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 610ms 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 444ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 6.303s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.3s 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 11.341s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

receipt: test step 294ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 11.341s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.28s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.06s 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 246ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2.268s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.27s 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 315ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m33.777s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 26.03s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.01s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.71s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.2s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 1.03, cpu waiting 1.74%, memory waiting 0.00%, io waiting 1.66%
--- 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   (49s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.84s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.45s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.56s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.47s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.15s
+ 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   (59s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.29s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.26s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.35s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.89s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (20s)
ok ./internal/headless TestMixedVersions 17.91s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 44.69, cpu waiting 28.00%, memory waiting 0.00%, io waiting 0.65%
--- 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 9.141s 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.436s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 176ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 77ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 5ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.35s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
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.319s 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.955s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 7.24, cpu waiting 5.77%, memory waiting 0.00%, io waiting 1.40%
--- 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 33.2%, load 15.08
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2996 text files, 3229 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: 94 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.673s
machine: 32 CPUs, load 35.30, cpu waiting 25.53%, memory waiting 0.00%, io waiting 0.76%
--- 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 33.5%, load 15.08
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 15.08, cpu waiting 15.08%, memory waiting 0.00%, io waiting 1.00%
--- 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 33.5%, load 15.08
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 39.52, cpu waiting 26.26%, memory waiting 0.00%, io waiting 0.74%
--- 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 33.5%, load 15.08
shard 28: make gitleaks
5:00PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
5:01PM INF 1265 commits scanned.
5:01PM INF scanned ~68800872 bytes (68.80 MB) in 17.5s
5:01PM INF no leaks found
machine: 32 CPUs, load 35.30, cpu waiting 24.77%, memory waiting 0.00%, io waiting 0.79%

amadan: job failed at step check shard 16 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 5ee68134..ea637566 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -70,7 +70,7 @@ 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 - 11873 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; a card answer settles at the bottom; measured 11873 test lines.
+size internal/headless - 11969 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; a card answer settles at the bottom; measured 11969 test lines.
size internal/thintest - 37101 Protocol 31 contracts, 35 diffs, stuck tasks, no-access merges, held retries, unfinished work, free rounds, previews, Assistant files, places and where their cards land, Mac waits; measured 37101.
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}.
diff --git a/internal/headless/ask_test.go b/internal/headless/ask_test.go
index 4829c8a0..66e78229 100644
--- a/internal/headless/ask_test.go
+++ b/internal/headless/ask_test.go
@@ -61,10 +61,12 @@ 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.
+ 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")
id := s.taskOf(t, sent.Turn.ID)
k := s.settled(t, id, 5*time.Minute)
if k.Stage != wire.StageReadyToMerge {
diff --git a/internal/headless/env_test.go b/internal/headless/env_test.go
index 4e4fd8c5..7830e32f 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)
@@ -310,6 +318,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)
}
}