oficina / equipo Public

vminit: Task 8 review 2, state and results apart once resolved

/run refuses a state path holding a link, or a state directory and
results that hold one another once resolved, before measuring, and
rechecks the results ancestry after the runner's chowns. The stop test
waits on events only and proves the creation lock with TryLock.
Mutation checks 56 to 62 are in HOSTED-SLICE2-PROGRESS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 842d4d5b662ed7df8de86cb42a7615d37e70af1d parent 5e5b743
4 files changed, +200 −47
  • docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md +17 −0
  • internal/vminit/hooks.go +46 −0
  • internal/vminit/init.go +5 −1
  • internal/vminit/init_test.go +132 −46

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/hosted-runners-2: 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 2.0s
ci-box: codex: fetched and verified in 3.7s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
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 10.2s
ci-box: pi: installed and verified in 8.4s
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 9.3s
ci-box: clone deepened in 5.0s
ci-box: file times set from content: 3806 files, 256 directories
ci-box: ready in 19.8s
=== 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.234s
=== compile ===
go build ./...
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.31
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.7s
+ go list -export -test -tags testbuild -f  ./...
  6.4s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  4.1s
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 1m23.902s 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.336s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.34s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 77.52, cpu waiting 46.81%, memory waiting 0.00%, io waiting 0.34%
--- 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 1m21.088s 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.602s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.6s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 77.52, cpu waiting 46.43%, memory waiting 0.00%, io waiting 0.35%
--- 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 1m25.726s 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 1m23.144s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.26s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.02s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.86s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 83.40, cpu waiting 47.27%, memory waiting 0.00%, io waiting 0.33%
--- 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 2m49.215s 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 2m46.488s amadan.net/oficina/equipo/internal/headless
receipt: slow test 2m12.35s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 15.7s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.28s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.15s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 39.83, cpu waiting 18.29%, memory waiting 0.00%, io waiting 0.07%
--- 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 1m42.149s 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 1m39.499s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.71s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.47s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.55s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.67s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.09s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 87.41, cpu waiting 46.54%, memory waiting 0.00%, io waiting 0.25%
--- 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 3m34.447s 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 3m31.559s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.83s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.53s amadan.net/oficina/equipo/internal/headless TestMacMixedVersions
receipt: slow test 20.92s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.55s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
machine: 32 CPUs, load 21.70, cpu waiting 8.83%, memory waiting 0.00%, io waiting 0.03%
--- 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 3m30.807s 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 3m27.819s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.66s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 11.1s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.67s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.46s amadan.net/oficina/equipo/internal/thintest TestResumeBeforeRefusalReported
receipt: slow test 5.45s amadan.net/oficina/equipo/internal/thintest TestAbilityHoldResumes
machine: 32 CPUs, load 21.70, cpu waiting 9.12%, memory waiting 0.00%, io waiting 0.03%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractChecksPlacedOnTheWorker
=== RUN   TestContractChecksPlacedOnTheWorker
    placement_contract_test.go:272: waiting for send_pack: failed to get reader: context deadline exceeded
--- FAIL: TestContractChecksPlacedOnTheWorker (45.26s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 3m5.834s
FAIL	amadan.net/oficina/equipo/internal/thintest	186.095s


receipt: test step 3m8.08s 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 3m5.834s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 45.26s amadan.net/oficina/equipo/internal/thintest TestContractChecksPlacedOnTheWorker
receipt: slow test 9.36s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 8.91s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.9s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.83s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
exit status 1
+ go 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)' -v -run '^TestContractChecksPlacedOnTheWorker$' -count=1 ./internal/thintest   (retry, once)
##############################################################################
FLAKE ./internal/thintest:TestContractChecksPlacedOnTheWorker thintest-contract 842d4d5b662ed7df8de86cb42a7615d37e70af1d 45.26s 30.55
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 28.51, cpu waiting 12.73%, memory waiting 0.00%, io waiting 0.05%
--- 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 7m34.496s, over the 45s its record on line 45 allows; reported only, timing fails on CI

receipt: test step 7m41.422s 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 7m34.496s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.06s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.93s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 33.26s amadan.net/oficina/equipo/internal/runner/thin TestWorkerHelloConnections
receipt: slow test 18.52s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
machine: 32 CPUs, load 1.08, cpu waiting 0.13%, 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 50.333s 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 49.444s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.41s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 48.03, cpu waiting 32.60%, memory waiting 0.00%, io waiting 0.61%
--- 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.672s 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 1m2.283s amadan.net/oficina/equipo/internal/runner
receipt: slow test 52.33s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 43.66s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.44s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 68.18, cpu waiting 42.31%, 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.602s 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.675s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.2s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.97s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 41.24, cpu waiting 27.70%, memory waiting 0.00%, io waiting 0.68%
--- 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 40.0%, load 30.24
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
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        cmd/equipo-vm-init/main.go:57:49: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:744: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:783: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:287:60: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:296:119: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:318:225: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:382:97: unclassified equipo-runner
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:336:204: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:338:12: unclassified equipo-runner
        internal/hostedproxy/policy_test.go:404:24: unclassified Node
        internal/hostedproxy/policy_test.go:425:29: unclassified Node
        internal/hostedproxy/policy_test.go:443:29: unclassified Node
        internal/vminit/init.go:44:21: unclassified equipo-runner
        internal/vminit/init_test.go:128:28: unclassified equipo-runner
        internal/vminit/init_test.go:805:33: unclassified node
        internal/vminit/init_test.go:1244:64: unclassified equipo-runner
        internal/vminit/mounts_linux.go:37:70: unclassified node
        internal/vminit/mounts_linux.go:140:107: unclassified NODE
        reference scan: 3518 text files, 4003 matches, 19 failures
--- FAIL: TestDirectDeadReferencesRepository (2.87s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m14.495s
FAIL	amadan.net/oficina/equipo/internal/equipotest	74.819s


receipt: test step 1m16.659s 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 1m14.495s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 34s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 33.87s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 31.3s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 27.88s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 27.41s amadan.net/oficina/equipo/internal/equipotest TestAuthorityReadsOneSnapshot
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        cmd/equipo-vm-init/main.go:57:49: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:744: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:783: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:287:60: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:296:119: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:318:225: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:382:97: unclassified equipo-runner
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:336:204: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:338:12: unclassified equipo-runner
        internal/hostedproxy/policy_test.go:404:24: unclassified Node
        internal/hostedproxy/policy_test.go:425:29: unclassified Node
        internal/hostedproxy/policy_test.go:443:29: unclassified Node
        internal/vminit/init.go:44:21: unclassified equipo-runner
        internal/vminit/init_test.go:128:28: unclassified equipo-runner
        internal/vminit/init_test.go:805:33: unclassified node
        internal/vminit/init_test.go:1244:64: unclassified equipo-runner
        internal/vminit/mounts_linux.go:37:70: unclassified node
        internal/vminit/mounts_linux.go:140:107: unclassified NODE
        reference scan: 3518 text files, 4003 matches, 19 failures
--- FAIL: TestDirectDeadReferencesRepository (2.74s)
FAIL
rastrillo-budget/v1 ran 2.745s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.940s
FAIL
machine: 32 CPUs, load 78.78, cpu waiting 43.94%, memory waiting 0.00%, io waiting 0.21%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 12 of 29 failed: exit status 2
--- 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 39.4%, load 27.12
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 2m25.492s 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 2m23.328s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.19s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 24.19s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 24.15s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 24.12s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 24.12s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
machine: 32 CPUs, load 37.28, cpu waiting 16.58%, memory waiting 0.00%, io waiting 0.06%
--- 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 40.0%, load 30.24
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
budget note: internal/equipotest took 5m48.067s, over the 5m0s its record on line 15 allows; reported only, timing fails on CI

receipt: test step 5m54.293s 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 5m48.067s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m51.31s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 14.67s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 11.63s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 11.6s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 8.51s amadan.net/oficina/equipo/internal/equipotest TestRosterAuditFailureRollsBack
machine: 32 CPUs, load 2.86, cpu waiting 0.49%, memory waiting 0.00%, io waiting 0.00%
--- 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 39.4%, load 27.12
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 1m13.702s 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.45s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.97s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 29.93s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 29.36s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 27.4s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
receipt: slow test 27.4s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 87.41, cpu waiting 46.85%, memory waiting 0.00%, io waiting 0.24%
--- 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 39.4%, load 27.12
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 1m0.131s 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 57.951s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.44s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.58s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.55s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 83.40, cpu waiting 47.47%, memory waiting 0.00%, io waiting 0.31%
--- 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 39.4%, load 27.12
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-hosted-proxy ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./cmd/equipo-vm-init ./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/hostedcert ./internal/hostedclient ./internal/hostedctl ./internal/hostedctl/ctlcert ./internal/hostedctl/ctlcert/ctlcerttest ./internal/hostedctl/ctlegress ./internal/hostedctl/ctlops ./internal/hostedctl/ctlproxy ./internal/hostedctl/ctlproxy/ctlproxytest ./internal/hostedproxy ./internal/hostedproxy/proxytest ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mac/creds ./internal/runner/mac/denylist ./internal/runner/mac/fprobe ./internal/runner/mac/proc ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./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/render ./internal/runner/renderpage ./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/teamprobe ./internal/testci ./internal/toolproxy ./internal/vminit ./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-hosted-controller ./cmd/equipo-hosted-proxy ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./cmd/equipo-vm-init ./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/hostedcert ./internal/hostedclient ./internal/hostedctl ./internal/hostedctl/ctlcert ./internal/hostedctl/ctlcert/ctlcerttest ./internal/hostedctl/ctlegress ./internal/hostedctl/ctlops ./internal/hostedctl/ctlproxy ./internal/hostedctl/ctlproxy/ctlproxytest ./internal/hostedproxy ./internal/hostedproxy/proxytest ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mac/creds ./internal/runner/mac/denylist ./internal/runner/mac/fprobe ./internal/runner/mac/proc ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./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/render ./internal/runner/renderpage ./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/teamprobe ./internal/testci ./internal/toolproxy ./internal/vminit ./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/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/isolatedjob: 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
--- FAIL amadan.net/oficina/equipo/internal/testci TestBudgetRecordsAreShort
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 268 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:87: record is 2414 bytes, over 500: keep the reason to the measured value and a short why
--- FAIL: TestBudgetRecordsAreShort (0.00s)

--- FAIL amadan.net/oficina/equipo/internal/testci (package output)
FAIL
rastrillo-budget/v1 ran 2.042s
FAIL	amadan.net/oficina/equipo/internal/testci	2.075s

budget: amadan.net/oficina/equipo/internal/hostedctl/ctlproxy ran tests but printed no time: add func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
budget note: cmd/equipo-runner took 1m23.464s, over the 1m0s its record on line 74 allows; reported only, timing fails on CI
budget note: internal/equipo took 3m2.6s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 49.488s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 40.217s, 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.192s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/hostedctl took 36.776s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m11.36s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 1m7.758s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m13.831s, over the 15s its record on line 41 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 30.504s, over the 20s its record on line 36 allows; reported only, timing fails on CI
budget note: internal/runner/mac took 46.29s, over the 45s its record on line 44 allows; reported only, timing fails on CI
budget note: internal/runner/mac/fprobe took 13.811s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 16.397s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m22.153s, over the 1m0s its record on line 28 allows; reported only, timing fails on CI
budget note: internal/runner/render took 1m28.896s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 3m8.549s against a 60s target (the gate's other steps are not in this figure)
receipt: 59 packages ran, 33 cached, 26 without tests, 1 failed
receipt: slow package 3m2.6s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m11.36s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m28.896s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 1m23.464s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 1m22.153s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 1m15.91s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 1m3.24s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 54.5s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 54.49s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 53.76s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestBudgetRecordsAreShort$' -count=1 ./internal/testci   (retry, once)
FAILED TWICE ./internal/testci:TestBudgetRecordsAreShort rest
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 268 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:87: record is 2414 bytes, over 500: keep the reason to the measured value and a short why
--- FAIL: TestBudgetRecordsAreShort (0.00s)
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/testci	0.004s
FAIL
machine: 32 CPUs, load 20.36, cpu waiting 7.99%, memory waiting 0.00%, io waiting 0.02%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 17 of 29 failed: exit status 2
--- 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 1m27.249s 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.255s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.17s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.97s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.61s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.63s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 83.40, cpu waiting 47.47%, 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 1m39.154s 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.939s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.11s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 24.42s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.59s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.85s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 10.12s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 86.83, cpu waiting 46.22%, memory waiting 0.00%, io waiting 0.26%
--- 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 1m57.67s 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 1m55.832s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.49s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.65s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.48s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.31s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 73.35, cpu waiting 39.41%, memory waiting 0.00%, io waiting 0.18%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-30T23:21:09.396Z level=INFO msg="startup phase" phase=state_lock
rastrillo: budget test: go test failed
time=2026-11-30T23:21:09.396Z level=INFO msg="startup phase done" phase=state_lock took=67µs
time=2026-11-30T23:21:09.396Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-30T23:21:09.396Z level=INFO msg="startup phase done" phase=claim_roots took=85µs
time=2026-11-30T23:21:09.396Z level=INFO msg="startup phase" phase=sweep
time=2026-11-30T23:21:09.451Z level=INFO msg="startup phase done" phase=sweep took=54.908ms
time=2026-11-30T23:21:09.451Z level=INFO msg="startup phase" phase=credentials
time=2026-11-30T23:21:09.451Z level=INFO msg="startup phase done" phase=credentials took=147µs
time=2026-11-30T23:21:09.451Z level=INFO msg="startup phase" phase=open_state
time=2026-11-30T23:21:09.514Z level=INFO msg="startup phase done" phase=open_state took=63.28ms
time=2026-11-30T23:21:09.515Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-30T23:21:09.516Z level=INFO msg=connecting host=127.0.0.1:41881 protocol=39
time=2026-11-30T23:21:09.517Z level=INFO msg=connected host=127.0.0.1:41881 took=1.802ms
time=2026-11-30T23:21:09.518Z level=INFO msg="capabilities gathering"
time=2026-11-30T23:21:09.519Z level=INFO msg="capabilities gathered" took=1.708ms tags=linux,claude,go
time=2026-11-30T23:21:09.520Z level=INFO msg="hello sent" protocol=39
time=2026-11-30T23:21:09.531Z level=INFO msg=welcome protocol=39 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.45s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m45.162s
FAIL	amadan.net/oficina/equipo/internal/headless	105.385s


receipt: test step 1m46.886s 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 1m45.162s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.16s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.92s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.06s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.81s amadan.net/oficina/equipo/internal/headless TestBrowserCardAnswerSettlesAtBottom
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 842d4d5b662ed7df8de86cb42a7615d37e70af1d 6.45s 83.29
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 78.78, cpu waiting 42.89%, memory waiting 0.00%, io waiting 0.20%
--- 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.572s 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.699s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 2.01s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 690ms 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 8.037s 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.472s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.47s 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.598s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 13.212s 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 11.598s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.27s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.33s 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.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 2.656s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.66s 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|TestBrowserAskMacOffline|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 3m43.885s 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 3m40.71s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 26.76s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.38s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.06s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.78s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 11.45, cpu waiting 4.24%, 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   (55s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.88s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.32s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.89s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.51s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.58s
+ 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   (60s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.04s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.20s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.70s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 18.96s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 20.10s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.84s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (3s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 68.18, cpu waiting 41.06%, memory waiting 0.00%, io waiting 0.50%
--- 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 14.281s 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.769s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 184ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 71ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 4ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.65s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 350ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 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 4.478s 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.306s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms 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 TestNamespaceDirectPolicy
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 24.10, cpu waiting 12.29%, memory waiting 0.00%, io waiting 1.01%
--- 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 40.0%, load 30.24
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
cmd/equipo-vm-init/main.go:57:49: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:744: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:783: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:287:60: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:296:119: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:318:225: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:382:97: unclassified equipo-runner
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:336:204: unclassified node
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:338:12: unclassified equipo-runner
internal/hostedproxy/policy_test.go:404:24: unclassified Node
internal/hostedproxy/policy_test.go:425:29: unclassified Node
internal/hostedproxy/policy_test.go:443:29: unclassified Node
internal/vminit/init.go:44:21: unclassified equipo-runner
internal/vminit/init_test.go:128:28: unclassified equipo-runner
internal/vminit/init_test.go:805:33: unclassified node
internal/vminit/init_test.go:1244:64: unclassified equipo-runner
internal/vminit/mounts_linux.go:37:70: unclassified node
internal/vminit/mounts_linux.go:140:107: unclassified NODE
reference scan: 3518 text files, 4003 matches, 19 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 30.24, cpu waiting 19.50%, memory waiting 0.00%, io waiting 0.80%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 25 of 29 failed: exit status 2
--- 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 39.4%, load 27.12
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 68.18, cpu waiting 42.31%, memory waiting 0.00%, io waiting 0.48%
--- 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 40.0%, load 27.12
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 70.41, cpu waiting 44.63%, memory waiting 0.00%, io waiting 0.43%
--- 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 39.4%, load 27.12
shard 28: make gitleaks
11:20PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
11:21PM INF 1360 commits scanned.
11:21PM INF scanned ~75964239 bytes (75.96 MB) in 27.3s
11:21PM WRN leaks found: 1
exit status 1
make[1]: *** [Makefile:214: gitleaks] Error 1
machine: 32 CPUs, load 63.85, cpu waiting 38.11%, memory waiting 0.00%, io waiting 0.53%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 28 of 29 failed: exit status 2

amadan: job failed at step check shards 12, 17, 25, 28 of 29 — its output is above, not at the tail of this log
diff --git a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
index 170e188f..360dd681 100644
--- a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
@@ -389,3 +389,20 @@ Mutation checks (each applied by script, the named test run with `CGO_ENABLED=0
55. Paths left out of the digest. TestPolicySetDigest: FAIL, `one file: e20b8efb..., want 86d5e72b...`, `run 0: 5256b79f..., want 7e0a22c2...`. Restored.
Also run: `go test ./internal/vminit -count=1` ok (22 tests); `-count=20` ok; `-race` once ok (3.7 s); `GOOS=linux go build ./cmd/equipo-vm-init` ok; staticcheck v0.7.0 clean; gofmt clean; `make budget build vet` ok (129 directories within budget; `internal/vminit` 1405 source and 1180 test lines).
+
+### Task 8 review round 2 (t8-r2.md: the Important and the Minor finding fixed)
+
+1. Results ancestry handed to the runner through an alias. `launch` now runs `separate` after `rootDir` and before anything is measured: every directory on StateDir's path, from StateDir up to `/`, must be a real directory (lstat, no symbolic link), and StateDir and ResultsDir, each resolved with `EvalSymlinks`, must not hold one another. After the runner's chowns (state directory, its `tmp`, the bootstrap file), `rootPath(ResultsDir)` runs again, just before the runner is created. The rig's fake lstat now reports what the hooks chowned, keyed by the resolved path, so a chown through an alias shows on the real path. New TestStateAndResultsApart: the review's layout (`state-alias` -> `srv`, StateDir `state-alias/equipo`, ResultsDir `srv/equipo/results`, which passes the lexical check) and a link on the state path that does not overlap; each answers 500 with no launch.
+2. TestTerminateDuringLaunch without the 200 ms wait. Every wait is on an event with a 10 s timeout that fails the test. Through `hooks.onTerminate` (a test seam, nil in production) the test knows `/terminate` has begun. Before the runner exists: `/terminate` must complete while the launch is still held, then the launch is released and `/run` answers 409 with no launch. During creation: the test proves with `TryLock` that the lock `/terminate` needs is held while the runner is created, then releases; `/terminate` signals the new pid.
+
+Mutation checks (each applied by script, `CGO_ENABLED=0 go test ./internal/vminit -run '^<Test>$' -count=1 -v`, restored and checked byte for byte):
+
+56. `separate` and the post-chown recheck both skipped (each `false && err != nil`). TestStateAndResultsApart: FAIL in both subtests, `init_test.go:703: /run = 200 "ok" with 1 launches, want 500 and none`. Restored.
+57. `separate` skipped. FAIL in `a_link_on_the_state_path` (`init_test.go:703`); the alias subtest still passes, held by the post-chown recheck alone. Restored.
+58. The post-chown recheck skipped. Survived: `separate` refuses both layouts before any chown. Recorded as one layer of three; 57 and 62 show the others hold alone. Restored.
+59. The resolved-overlap test ignored with the recheck skipped (`if false {`). Survived: the link walk refuses both layouts. Restored.
+62. The link walk and the recheck skipped (`false && (...)`), the resolved overlap kept. FAIL in `a_link_on_the_state_path` (`init_test.go:703`); the alias subtest passes, held by the resolved overlap alone. Restored. (The first form of this mutation did not compile and was redone.)
+60. The runner created outside the lock. TestTerminateDuringLaunch: FAIL, `init_test.go:607: the runner is created without the lock /terminate takes`, `init_test.go:611: /run = 409, want 200`, `init_test.go:619: launches 1, signals []; want 1 and ["4242 terminated"]`, and in the first subtest `init_test.go:597: launches 1, signals []; want none`. Restored.
+61. No stop-intent check. TestTerminateDuringLaunch: FAIL, `before_the_runner_exists: init_test.go:592: /run = 200, want 409`, `init_test.go:597: launches 1, signals []; want none`. Restored.
+
+Also run: `go test ./internal/vminit -count=1` ok (23 tests); `-count=20` ok (4.2 s); `-race` once ok (3.4 s); `GOOS=linux go build ./cmd/equipo-vm-init` ok; staticcheck v0.7.0 clean; gofmt clean; `git diff --check` clean; `make budget build vet` ok (`internal/vminit` 1455 source and 1266 test lines).
diff --git a/internal/vminit/hooks.go b/internal/vminit/hooks.go
index a41177f2..ad9a8b20 100644
--- a/internal/vminit/hooks.go
+++ b/internal/vminit/hooks.go
@@ -63,6 +63,9 @@ type hooks struct {
ran bool
stopping bool // /terminate has been called
runner int // the runner's pid while it runs; 0 before and after
+
+ // onTerminate, a test's seam, runs as /terminate begins.
+ onTerminate func()
}
func newHooks(cfg Config, sys system) *hooks {
@@ -224,6 +227,9 @@ func (h *hooks) launch(ctx context.Context, vm isolatedjob.Ref, boot hostedwire.
if err := h.rootDir(h.cfg.ResultsDir); err != nil {
return 0, "", err
}
+ if err := h.separate(); err != nil {
+ return 0, "", err
+ }
if err := h.rootPath(h.cfg.ResultsDir, acct); err != nil {
return 0, "", err
}
@@ -259,6 +265,11 @@ func (h *hooks) launch(ctx context.Context, vm isolatedjob.Ref, boot hostedwire.
if err := writeOwned(h.sys.chown, filepath.Join(h.cfg.StateDir, BootstrapFile), raw, 0o600, acct.UID, acct.GID); err != nil {
return 0, "", err
}
+ // Again, now that the runner owns its directories: nothing it was
+ // given may lie on the results' path.
+ if err := h.rootPath(h.cfg.ResultsDir, acct); err != nil {
+ return 0, "", err
+ }
// Creation and the pid's recording under the one lock /terminate
// takes: a stop before it means no runner, a stop after it finds the
@@ -315,6 +326,38 @@ func runnerLaunch(cfg Config, a account, sub string) launchSpec {
// errStopping is a launch that /terminate overtook.
var errStopping = errors.New("terminated before the runner started")
+// separate fails unless the runner's state directory and the results lie
+// apart once every link is resolved: neither may hold the other, so the
+// state directory /run gives the runner is never on the results' path.
+// The state directory's own path may hold no link at all. ResultsDir must
+// exist (rootDir made it).
+func (h *hooks) separate() error {
+ for p := h.cfg.StateDir; ; p = filepath.Dir(p) {
+ _, _, mode, err := h.sys.owner(p)
+ if err != nil {
+ return fmt.Errorf("state path: %w", err)
+ }
+ if mode&fs.ModeSymlink != 0 || !mode.IsDir() {
+ return fmt.Errorf("state path: %s is not a directory", p)
+ }
+ if p == "/" {
+ break
+ }
+ }
+ state, err := filepath.EvalSymlinks(h.cfg.StateDir)
+ if err != nil {
+ return fmt.Errorf("state path: %w", err)
+ }
+ results, err := filepath.EvalSymlinks(h.cfg.ResultsDir)
+ if err != nil {
+ return fmt.Errorf("results path: %w", err)
+ }
+ if within(state, results) || within(results, state) {
+ return fmt.Errorf("state directory %s and results %s overlap once resolved", state, results)
+ }
+ return nil
+}
+
// rootPath fails unless every directory from / down to dir is a real
// directory (no symbolic link anywhere), root's, and writable by no one
// else: otherwise the runner could rename a directory on the way and put
@@ -399,6 +442,9 @@ func (h *hooks) noPause(w http.ResponseWriter, _ *http.Request) {
// never starts, signals the runner's process group if it is running, and
// answers 200.
func (h *hooks) terminate(w http.ResponseWriter, _ *http.Request) {
+ if h.onTerminate != nil {
+ h.onTerminate()
+ }
h.mu.Lock()
h.stopping = true
pid := h.runner
diff --git a/internal/vminit/init.go b/internal/vminit/init.go
index 3b66623f..deb11913 100644
--- a/internal/vminit/init.go
+++ b/internal/vminit/init.go
@@ -84,7 +84,6 @@ const (
func (c Config) check() error {
bad := func(format string, a ...any) error { return fmt.Errorf("vminit: config: "+format, a...) }
abs := func(p string) bool { return p != "" && filepath.IsAbs(p) && filepath.Clean(p) == p }
- within := func(p, dir string) bool { return p == dir || strings.HasPrefix(p, dir+"/") }
switch {
case !c.HookAddr.IsValid() || c.HookAddr.Port() == 0:
return bad("hook address must be an address and a port")
@@ -121,6 +120,11 @@ func (c Config) check() error {
return nil
}
+// within reports whether path p is dir or inside it (both clean).
+func within(p, dir string) bool {
+ return p == dir || dir == "/" || strings.HasPrefix(p, dir+"/")
+}
+
// account is the runner user as the system knows it.
type account struct {
UID, GID int
diff --git a/internal/vminit/init_test.go b/internal/vminit/init_test.go
index fb6de9e6..fb523108 100644
--- a/internal/vminit/init_test.go
+++ b/internal/vminit/init_test.go
@@ -76,6 +76,9 @@ type rig struct {
// owners overrides the owner and mode the fake lstat gives a path;
// every other directory is root's, 0755.
owners map[string]fakeOwner
+ // given is each chown's owner by the path's resolved form, so the
+ // fake lstat sees what the hooks gave away through any alias.
+ given map[string][2]int
// gate, when set, stops the action named at until release closes.
gate *gate
}
@@ -103,7 +106,7 @@ func (r *rig) pause(event string) {
func newRig(t *testing.T) *rig {
t.Helper()
dir := t.TempDir()
- r := &rig{t: t, chowns: map[string][2]int{}, exited: make(chan struct{}), owners: map[string]fakeOwner{}}
+ r := &rig{t: t, chowns: map[string][2]int{}, exited: make(chan struct{}), owners: map[string]fakeOwner{}, given: map[string][2]int{}}
write := func(rel, content string) string {
p := filepath.Join(dir, rel)
if err := os.MkdirAll(filepath.Dir(p), 0o755); err != nil {
@@ -143,6 +146,9 @@ func newRig(t *testing.T) *rig {
r.mu.Lock()
r.events = append(r.events, event)
r.chowns[path] = [2]int{uid, gid}
+ if real, err := filepath.EvalSymlinks(path); err == nil {
+ r.given[real] = [2]int{uid, gid}
+ }
r.mu.Unlock()
r.pause(event)
return nil
@@ -155,6 +161,13 @@ func newRig(t *testing.T) *rig {
o, ok := r.owners[path]
if !ok {
o = fakeOwner{0, 0, 0o755}
+ r.mu.Lock()
+ if real, err := filepath.EvalSymlinks(path); err == nil {
+ if g, ok := r.given[real]; ok {
+ o.uid, o.gid = g[0], g[1]
+ }
+ }
+ r.mu.Unlock()
}
return o.uid, o.gid, st.Mode().Type() | o.perm, nil
},
@@ -527,53 +540,85 @@ func TestTerminateSignalsRunner(t *testing.T) {
// TestTerminateDuringLaunch stops /run at two points and calls
// /terminate there: before the runner exists (it must never start) and
-// while it is being created (the stop must reach its pid).
+// while it is being created (the stop must reach its pid). Every wait is
+// on an event; a wait that times out fails the test.
func TestTerminateDuringLaunch(t *testing.T) {
- for _, c := range []struct {
- at string
- code int
- starts int
- signals []string
- }{
- {"chown bootstrap.json", http.StatusConflict, 0, nil},
- {"start", http.StatusOK, 1, []string{fmt.Sprintf("%d %v", runnerPID, syscall.SIGTERM)}},
- } {
- t.Run(c.at, func(t *testing.T) {
- r := newRig(t)
- r.gate = &gate{at: c.at, reached: make(chan struct{}), release: make(chan struct{})}
- runDone := make(chan int, 1)
- go func() {
- code, _ := r.post("run", runBody(t, testVM, bootstrapPayload(t, hostedwire.PurposeChecks)))
- runDone <- code
- }()
- <-r.gate.reached
- termDone := make(chan int, 1)
- go func() {
- code, _ := r.post("terminate", nil)
- termDone <- code
- }()
- // Before the runner exists /terminate answers at once; while it
- // is being created /terminate waits for its pid. Give it the
- // chance to answer early either way, then let the launch go on.
- select {
- case code := <-termDone:
- termDone <- code
- case <-time.After(200 * time.Millisecond):
- }
- close(r.gate.release)
- if code := <-runDone; code != c.code {
- t.Errorf("/run = %d, want %d", code, c.code)
- }
- if code := <-termDone; code != http.StatusOK {
- t.Errorf("/terminate = %d, want 200", code)
- }
- r.mu.Lock()
- defer r.mu.Unlock()
- if len(r.starts) != c.starts || !slices.Equal(r.signals, c.signals) {
- t.Errorf("launches %d, signals %q; want %d and %q", len(r.starts), r.signals, c.starts, c.signals)
- }
- })
+ wait := func(t *testing.T, ch <-chan struct{}, what string) {
+ t.Helper()
+ select {
+ case <-ch:
+ case <-time.After(10 * time.Second):
+ t.Fatalf("timed out waiting for %s", what)
+ }
+ }
+ setup := func(t *testing.T, at string) (*rig, chan int, chan int, chan struct{}) {
+ r := newRig(t)
+ r.gate = &gate{at: at, reached: make(chan struct{}), release: make(chan struct{})}
+ began := make(chan struct{}, 1)
+ r.h.onTerminate = func() { began <- struct{}{} }
+ runDone := make(chan int, 1)
+ go func() {
+ code, _ := r.post("run", runBody(t, testVM, bootstrapPayload(t, hostedwire.PurposeChecks)))
+ runDone <- code
+ }()
+ wait(t, r.gate.reached, "the launch to reach "+at)
+ termDone := make(chan int, 1)
+ go func() {
+ code, _ := r.post("terminate", nil)
+ termDone <- code
+ }()
+ wait(t, began, "/terminate to begin")
+ return r, runDone, termDone, began
+ }
+ done := func(t *testing.T, ch <-chan int, what string) int {
+ t.Helper()
+ select {
+ case code := <-ch:
+ return code
+ case <-time.After(10 * time.Second):
+ t.Fatalf("timed out waiting for %s", what)
+ }
+ return 0
}
+
+ t.Run("before the runner exists", func(t *testing.T) {
+ r, runDone, termDone, _ := setup(t, "chown bootstrap.json")
+ // /terminate completes while the launch is still held.
+ if code := done(t, termDone, "/terminate"); code != http.StatusOK {
+ t.Errorf("/terminate = %d, want 200", code)
+ }
+ close(r.gate.release)
+ if code := done(t, runDone, "/run"); code != http.StatusConflict {
+ t.Errorf("/run = %d, want 409", code)
+ }
+ r.mu.Lock()
+ defer r.mu.Unlock()
+ if len(r.starts) != 0 || len(r.signals) != 0 {
+ t.Errorf("launches %d, signals %q; want none", len(r.starts), r.signals)
+ }
+ })
+
+ t.Run("while the runner is created", func(t *testing.T) {
+ r, runDone, termDone, _ := setup(t, "start")
+ // The runner is being created: the lock /terminate needs is held,
+ // so /terminate cannot have looked for a pid yet.
+ if r.h.mu.TryLock() {
+ r.h.mu.Unlock()
+ t.Error("the runner is created without the lock /terminate takes")
+ }
+ close(r.gate.release)
+ if code := done(t, runDone, "/run"); code != http.StatusOK {
+ t.Errorf("/run = %d, want 200", code)
+ }
+ if code := done(t, termDone, "/terminate"); code != http.StatusOK {
+ t.Errorf("/terminate = %d, want 200", code)
+ }
+ r.mu.Lock()
+ defer r.mu.Unlock()
+ if want := []string{fmt.Sprintf("%d %v", runnerPID, syscall.SIGTERM)}; len(r.starts) != 1 || !slices.Equal(r.signals, want) {
+ t.Errorf("launches %d, signals %q; want 1 and %q", len(r.starts), r.signals, want)
+ }
+ })
}
// TestResultsPathRootOnly: the runner must not be able to replace any
@@ -620,6 +665,47 @@ func TestResultsPathRootOnly(t *testing.T) {
}
}
+// TestStateAndResultsApart: the state directory /run gives the runner
+// must not be on the results' path through any link. The review's case:
+// /state-alias points to /srv, StateDir is /state-alias/equipo and
+// ResultsDir /srv/equipo/results, lexically apart.
+func TestStateAndResultsApart(t *testing.T) {
+ for name, layout := range map[string]func(r *rig, dir string){
+ "state aliases the results' parent": func(r *rig, dir string) {
+ if err := os.MkdirAll(filepath.Join(dir, "srv", "equipo"), 0o755); err != nil {
+ t.Fatal(err)
+ }
+ if err := os.Symlink(filepath.Join(dir, "srv"), filepath.Join(dir, "state-alias")); err != nil {
+ t.Fatal(err)
+ }
+ r.h.cfg.StateDir = filepath.Join(dir, "state-alias", "equipo")
+ r.h.cfg.ResultsDir = filepath.Join(dir, "srv", "equipo", "results")
+ },
+ "a link on the state path": func(r *rig, dir string) {
+ if err := os.MkdirAll(filepath.Join(dir, "elsewhere", "state"), 0o700); err != nil {
+ t.Fatal(err)
+ }
+ if err := os.Symlink(filepath.Join(dir, "elsewhere"), filepath.Join(dir, "link")); err != nil {
+ t.Fatal(err)
+ }
+ r.h.cfg.StateDir = filepath.Join(dir, "link", "state")
+ },
+ } {
+ t.Run(name, func(t *testing.T) {
+ r := newRig(t)
+ layout(r, t.TempDir())
+ r.cfg = r.h.cfg
+ if err := r.h.cfg.check(); err != nil {
+ t.Fatalf("the layout must pass the lexical check: %v", err)
+ }
+ code, body := r.run(hostedwire.PurposeChecks)
+ if code != http.StatusInternalServerError || len(r.starts) != 0 {
+ t.Errorf("/run = %d %q with %d launches, want 500 and none", code, body, len(r.starts))
+ }
+ })
+ }
+}
+
func TestRunnerDropsCapabilities(t *testing.T) {
r := newRig(t)
if code, body := r.run(hostedwire.PurposeChecks); code != http.StatusOK {