oficina / equipo Public

isolatedjob: vanishing VMs, a positive List check, lost resume replies

Review round 1. Fake.Vanish makes the provider forget a VM while its
client token still replays; Fake.Calls counts calls that reached the
provider. The contract now needs List to show a VM it launched (bounded
by Harness.ListLag) before trusting an unchanged List. Lost-reply Resume
is tested, and every fake guard has a mutation row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9da77433c8bd4e5bbf5cb213122be8df39ef4428 parent 5027ce3
4 files changed, +211 −11
  • docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md +20 −0
  • internal/isolatedjob/fake.go +54 −8
  • internal/isolatedjob/fake_test.go +97 −0
  • internal/isolatedjob/isolatedjobtest/contract.go +40 −3

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-1a: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.4s
ci-box: codex: fetched and verified in 3.5s
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.1s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.1s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 3.9s
ci-box: file times set from content: 2847 files, 188 directories
ci-box: ready in 17.4s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.248s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.2s
+ go list -export -test -tags testbuild -f  ./...
  0.7s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.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-11 02:51:11 +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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.591s 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 1m20s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m20s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 29.38, cpu waiting 20.07%, memory waiting 0.00%, io waiting 0.54%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m22.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 1m21.084s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.08s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 29.38, cpu waiting 20.07%, memory waiting 0.00%, io waiting 0.54%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m25.425s 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.206s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.54s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.77s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.89s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 28.47, cpu waiting 19.64%, memory waiting 0.00%, io waiting 0.52%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m19.171s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.469s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.08s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.34s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.48s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.57s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 29.38, cpu waiting 20.51%, memory waiting 0.00%, io waiting 0.55%
--- 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_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m37.26s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m35.582s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.73s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.05s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.84s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.95s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 25.55, cpu waiting 16.47%, memory waiting 0.00%, io waiting 0.42%
--- 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_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 3m9.931s 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 3m7.871s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.25s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.48s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.68s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.39s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 6.89, cpu waiting 3.46%, memory waiting 0.00%, io waiting 0.08%
--- 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 1.16s 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 2m1.624s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.31s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
machine: 32 CPUs, load 0.96, cpu waiting 0.02%, memory waiting 0.00%, io waiting 2.06%
--- 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 1.072s 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 1m26.784s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 0.96, cpu waiting 0.02%, memory waiting 0.00%, io waiting 2.06%
--- 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 4m30.952s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m44.053s 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 4m30.952s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.9s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.78s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.97s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.28, cpu waiting 0.71%, memory waiting 0.00%, io waiting 0.01%
--- 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 47.571s 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 46.496s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.47s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 32.32, cpu waiting 19.80%, memory waiting 0.00%, io waiting 0.95%
--- 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 46.576s 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 44.693s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.79s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.31s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 31.39, cpu waiting 19.62%, memory waiting 0.00%, io waiting 0.98%
--- 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 34.736s 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 33.886s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.56s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.97s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 26.43, cpu waiting 14.21%, memory waiting 0.00%, io waiting 1.20%
--- 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 28.2%, load 18.54
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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        internal/runner/containment/helper_version_test.go:133:35: unclassified Node
        reference scan: 2560 text files, 2854 matches, 1 failures
--- FAIL: TestDirectDeadReferencesRepository (1.83s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m2.598s
FAIL	amadan.net/oficina/equipo/internal/equipotest	63.016s


receipt: test step 1m4.373s 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 1m2.598s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.8s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.71s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.78s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.23s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.06s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfiguration
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
        internal/runner/containment/helper_version_test.go:133:35: unclassified Node
        reference scan: 2560 text files, 2854 matches, 1 failures
--- FAIL: TestDirectDeadReferencesRepository (1.82s)
FAIL
rastrillo-budget/v1 ran 1.818s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.076s
FAIL
machine: 32 CPUs, load 23.75, cpu waiting 15.93%, memory waiting 0.00%, io waiting 0.41%
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 28.2%, load 18.54
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 1.266s 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 1m12.399s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.2s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.12s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.08s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 18.54, cpu waiting 12.63%, memory waiting 0.00%, io waiting 1.25%
--- 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 28.2%, load 18.54
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 1m15.287s 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 1m3.666s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.27s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.95s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.94s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.86s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 22.08, cpu waiting 13.98%, memory waiting 0.00%, io waiting 0.36%
--- 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 28.2%, load 18.54
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 1.24s 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 1m5.041s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.98s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.87s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.81s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 22.1s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedAuditRollback
receipt: slow test 22.09s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 18.54, cpu waiting 12.63%, memory waiting 0.00%, io waiting 1.25%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 28.2%, load 18.54
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 636ms 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 48.756s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.21s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 18.54, cpu waiting 11.43%, memory waiting 0.00%, io waiting 1.29%
--- 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 28.2%, load 18.54
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/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./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/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/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/isolatedjobtest ./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/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/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/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./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/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/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/isolatedjobtest ./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/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/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: 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/runner/workspace: 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/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 45.275s, 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/chat took 12.529s, 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 39.84s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/release took 34.981s, 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 39.606s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m14.864s against a 60s target (the gate's other steps are not in this figure)
receipt: 12 packages ran, 50 cached, 20 without tests, 0 failed
receipt: slow package 53.625s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.246s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 45.275s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 39.84s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 39.606s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 22.26s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.1s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 10.89s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 10.82s amadan.net/oficina/equipo/internal/equipo TestAgentReadRechecksIdentity
receipt: slow test 9.32s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
machine: 32 CPUs, load 9.70, cpu waiting 5.16%, memory waiting 0.00%, io waiting 0.12%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m22.181s 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 1m20.717s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.37s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.14s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.2s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.52s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 28.47, cpu waiting 19.64%, memory waiting 0.00%, io waiting 0.52%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m32.355s 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 1m30.68s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.94s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.43s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.32s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.28s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.95s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 25.55, cpu waiting 17.00%, memory waiting 0.00%, io waiting 0.44%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m40.334s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m38.657s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.83s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.12s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.02s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.34s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 23.75, cpu waiting 15.41%, memory waiting 0.00%, io waiting 0.39%
--- 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|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|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-22T16:19:41.322Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-22T16:19:41.322Z level=INFO msg="startup phase done" phase=state_lock took=210µs
time=2026-11-22T16:19:41.322Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-22T16:19:41.322Z level=INFO msg="startup phase done" phase=claim_roots took=189µs
time=2026-11-22T16:19:41.324Z level=INFO msg="startup phase" phase=sweep
time=2026-11-22T16:19:41.359Z level=INFO msg="startup phase done" phase=sweep took=35.297ms
time=2026-11-22T16:19:41.359Z level=INFO msg="startup phase" phase=credentials
time=2026-11-22T16:19:41.359Z level=INFO msg="startup phase done" phase=credentials took=163µs
time=2026-11-22T16:19:41.359Z level=INFO msg="startup phase" phase=open_state
time=2026-11-22T16:19:41.412Z level=INFO msg="startup phase done" phase=open_state took=52.794ms
time=2026-11-22T16:19:41.413Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-22T16:19:41.415Z level=INFO msg=connecting host=127.0.0.1:37661 protocol=28
time=2026-11-22T16:19:41.418Z level=INFO msg=connected host=127.0.0.1:37661 took=1.191ms
time=2026-11-22T16:19:41.418Z level=INFO msg="capabilities gathering"
time=2026-11-22T16:19:41.418Z level=INFO msg="capabilities gathered" took=556µs tags=linux,claude,go
time=2026-11-22T16:19:41.422Z level=INFO msg="hello sent" protocol=28
time=2026-11-22T16:19:41.424Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.91s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-22T16:20:12.488Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-22T16:20:12.488Z level=INFO msg="startup phase done" phase=state_lock took=62µs
time=2026-11-22T16:20:12.488Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-22T16:20:12.488Z level=INFO msg="startup phase done" phase=claim_roots took=80µs
time=2026-11-22T16:20:12.488Z level=INFO msg="startup phase" phase=sweep
time=2026-11-22T16:20:12.517Z level=INFO msg="startup phase done" phase=sweep took=28.539ms
time=2026-11-22T16:20:12.517Z level=INFO msg="startup phase" phase=credentials
time=2026-11-22T16:20:12.517Z level=INFO msg="startup phase done" phase=credentials took=115µs
time=2026-11-22T16:20:12.517Z level=INFO msg="startup phase" phase=open_state
time=2026-11-22T16:20:12.558Z level=INFO msg="startup phase done" phase=open_state took=41.117ms
time=2026-11-22T16:20:12.558Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-22T16:20:12.559Z level=INFO msg=connecting host=127.0.0.1:38983 protocol=28
time=2026-11-22T16:20:12.560Z level=INFO msg=connected host=127.0.0.1:38983 took=942µs
time=2026-11-22T16:20:12.561Z level=INFO msg="capabilities gathering"
time=2026-11-22T16:20:12.561Z level=INFO msg="capabilities gathered" took=360µs tags=linux,claude,go
time=2026-11-22T16:20:12.561Z level=INFO msg="hello sent" protocol=28
time=2026-11-22T16:20:12.565Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-22T16:20:13.500Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (5.78s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m26.832s
FAIL	amadan.net/oficina/equipo/internal/headless	87.122s


receipt: test step 1m28.276s 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 1m26.832s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.26s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.94s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.49s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 8.1s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|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$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 9da77433c8bd4e5bbf5cb213122be8df39ef4428 1.91s 26.99
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 9da77433c8bd4e5bbf5cb213122be8df39ef4428 5.78s 26.99
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 23.75, cpu waiting 15.41%, memory waiting 0.00%, io waiting 0.39%
--- 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)$' ./internal/equipo

receipt: test step 952ms 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 573ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 570ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 818ms 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 1.673s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.67s 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 1.856s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.86s 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|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|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 1.136s 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 3m20.199s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 3.05, cpu waiting 1.56%, memory waiting 0.00%, io waiting 1.99%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.42s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.35s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.58s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.35s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.16s
+ 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   (55s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 14.94s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 13.04s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.68s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.48s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 20.99s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ 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 31.33, cpu waiting 20.96%, memory waiting 0.00%, io waiting 0.83%
--- 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 8.431s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 3 without tests, 0 failed
receipt: slow package 7.211s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 163ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 61ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 4ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.22s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 160ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 70ms 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 3.198s 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.849s 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 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 6.97, cpu waiting 4.60%, memory waiting 0.00%, io waiting 1.74%
--- 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 28.2%, load 18.54
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
internal/runner/containment/helper_version_test.go:133:35: unclassified Node
reference scan: 2560 text files, 2854 matches, 1 failures
make[1]: *** [Makefile:229: runner-dead-references] Error 1
machine: 32 CPUs, load 18.54, cpu waiting 12.63%, memory waiting 0.00%, io waiting 1.25%
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 28.2%, load 18.54
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 18.54, cpu waiting 12.63%, memory waiting 0.00%, io waiting 1.25%
--- 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 28.2%, load 18.54
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 0 vulnerabilities in packages you import and 5
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 26.43, cpu waiting 15.32%, memory waiting 0.00%, io waiting 1.16%
--- 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 28.2%, load 18.54
shard 28: make gitleaks
4:19PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
4:19PM INF 1106 commits scanned.
4:19PM INF scanned ~61291016 bytes (61.29 MB) in 12.5s
4:19PM INF no leaks found
machine: 32 CPUs, load 30.64, cpu waiting 18.36%, memory waiting 0.00%, io waiting 1.05%

amadan: job failed at step check shards 12, 25 of 29 — its output is above, not at the tail of this log
diff --git a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
index a6a639e2..c89c7c18 100644
--- a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
@@ -116,3 +116,23 @@ Every guard now has a mutation. `SystemClock` takes its wall and elapsed sources
| age unknown ignored (`case FaultAgeUnknown + "x":` in Get) | `go test ./internal/isolatedjob -run 'TestFakeFaults' -count=1` | `fake_test.go:175: faulted Get = {... AgeKnown:true}, want AgeKnown false and still running` | yes, passes |
| faults not used up (`f.faults[op] = q[0:]`) | `go test ./internal/isolatedjob -run 'TestFakeFaults' -count=1` | `fake_test.go:121: Launch(a1) = isolatedjob: throttled: fake launch` (and every other row) | yes, passes |
| resume straight to running (`vm.state = StateRunning` in place of `vm.resuming = true` in Resume) | `go test ./internal/isolatedjob -run 'TestFakeLifecycle' -count=1` | `fake_test.go:312: Get(vm-0001).State = running, want suspended` in `TestFakeLifecycle/resume_reports_suspended_until_the_next_tick` | yes, passes |
+
+Fix round 1 (review r1). `Vanish(ref)` makes the fake provider forget a VM: Get, Suspend and Resume return `ErrNotFound`, Stop returns nil, List and `LiveByAttempt` leave it out, `StopsIssued` is untouched, and the client token survives (a replay returns the same Ref, a changed spec conflicts). `Calls(op)` counts calls that reached the fake provider, so a test can show a refused spec made none. `Contract` gains `Harness.ListLag`, and `OversizeBootstrapRefusedBeforeProvider` first waits (bounded by `ListLag`) for a VM it launched to show live in List, so an always-empty List fails. Line numbers in the rows above are as of `5027ce36`; the rows below are from this round.
+
+| Mutation | Command | Observed failure | Restored |
+| --- | --- | --- | --- |
+| Get sees vanished VMs (`vm, ok := f.vms[ref]` in Get) | `go test ./internal/isolatedjob -run 'TestFakeLifecycle' -count=1` | `fake_test.go:411: Get of a vanished VM = <nil>, want ErrNotFound` | yes, passes |
+| List includes vanished VMs (`f.vms[ref]` in List) | same | `fake_test.go:415: List after vanish = ([{vm-0001 running ...} {vm-0002 running ...}], <nil>), want just vm-0002` | yes, passes |
+| LiveByAttempt counts vanished VMs (`if vm.state.Live() {`) | same | `fake_test.go:418: LiveByAttempt after vanish = map[a1:1 a2:1], want a2:1` | yes, passes |
+| Vanish drops the client token (`delete(f.byAttempt, vm.spec.AttemptID)`) | same | `fake_test.go:436: Launch replay after vanish = vm-0003, want vm-0001 (the client token outlives the VM)` | yes, passes |
+| Vanish records a stop (`f.stops = append(f.stops, ref)`) | same | `fake_test.go:421: StopsIssued after vanish = [vm-0001], want none: the controller stopped nothing` | yes, passes |
+| List always empty (`return nil, nil` in List) | `go test ./internal/isolatedjob -run 'TestFakeContract/OversizeBootstrapRefusedBeforeProvider' -count=1` | `contract.go:179: List = [] after 0s, want it to hold running VM vm-0001` | yes, passes |
+| Launch validates after the provider call (Validate moved after `begin`) | `go test ./internal/isolatedjob -run 'TestFakeLifecycle' -count=1` | `fake_test.go:384: Launch with a bad size = isolatedjob: throttled: fake launch, want ErrInvalid` | yes, passes |
+| lost-reply Resume skips the effect (`if fl != FaultLostReply { vm.resuming = true }`) | `go test ./internal/isolatedjob -run 'TestFakeFaults' -count=1` | `fake_test.go:173: Get(vm-0001).State = suspended, want running` | yes, passes |
+| lost-reply Resume suppresses the error (`return finish(fl+"x", OpResume, err)`) | same | `fake_test.go:171: lost-reply Resume(vm-0001) = <nil>, want ErrLostReply and no sentinel` | yes, passes |
+| changed spec accepted (`if false && !sameSpec(...)`) | `go test ./internal/isolatedjob -run 'TestFakeContract/ChangedSpecConflicts' -count=1` | `contract.go:104: Launch with the same attempt and a new bootstrap = ("vm-0001", <nil>), want ErrConflict` | yes, passes |
+| Suspend ignores state (`case false && vm.state != StateRunning:`) | `go test ./internal/isolatedjob -run 'TestFakeLifecycle' -count=1` | `fake_test.go:293: Suspend while starting = <nil>, want ErrConflict` | yes, passes |
+| Resume ignores state (`case false && vm.state != StateSuspended:`) | same | `fake_test.go:296: Resume while starting = <nil>, want ErrConflict` | yes, passes |
+| backstop switch ignored (`if (f.backstop \|\| true) && ...`) | same | `fake_test.go:463: Get(vm-0001).State = stopping, want running` | yes, passes |
+| Inject takes any pair (`if false && !ok {`) | same | `fake_test.go:531: Inject(OpGet, FaultIncompleteList) did not panic` | yes, passes |
+| lost-reply Stop skips the effect (`fl != FaultLostReply &&` in Stop) | `go test ./internal/isolatedjob -run 'TestFakeFaults' -count=1` | `fake_test.go:144: Get(vm-0001).State = starting, want stopping` | yes, passes |
diff --git a/internal/isolatedjob/fake.go b/internal/isolatedjob/fake.go
index 5e0c068a..250a0ea1 100644
--- a/internal/isolatedjob/fake.go
+++ b/internal/isolatedjob/fake.go
@@ -70,7 +70,7 @@ func SpikeLimits() Limits {
// dropping a pending resume, and does nothing to a
// stopped VM or a ref it never held. Other calls on a VM in the wrong state
// return ErrConflict; calls on an unknown ref return ErrNotFound. Stopped VMs
-// stay visible to Get and List.
+// stay visible to Get and List until Vanish removes them.
//
// Backstop. While the backstop is on (the default), Tick also moves to
// stopping every VM whose lifetime has reached its spec's MaxLifetime, with
@@ -100,6 +100,7 @@ type Fake struct {
byAttempt map[string]Ref // the client-token table; Plant does not write it
faults map[Op][]Fault
stops []Ref
+ calls map[Op]int
audit NetworkAudit
auditErr error
}
@@ -118,6 +119,10 @@ type fakeVM struct {
isPaused bool
resuming bool // Resume accepted; the next Tick moves suspended to running
+
+ // vanished: the provider no longer shows the VM. The record stays so
+ // the client token still replays to the same Ref and spec.
+ vanished bool
}
// NewFake returns a Fake reading time from c and reporting limits l. Pass
@@ -130,6 +135,7 @@ func NewFake(c Clock, l Limits) *Fake {
vms: map[Ref]*fakeVM{},
byAttempt: map[string]Ref{},
faults: map[Op][]Fault{},
+ calls: map[Op]int{},
audit: NetworkAudit{ResolverDisabled: true, IngressClosed: true, RouteOutAbsent: true},
}
}
@@ -172,6 +178,7 @@ func (f *Fake) begin(ctx context.Context, op Op) (Fault, error) {
return "", err
}
f.mu.Lock()
+ f.calls[op]++
fl := f.takeFault(op)
if fl == FaultThrottle {
f.mu.Unlock()
@@ -255,7 +262,7 @@ func (f *Fake) Get(ctx context.Context, ref Ref) (Job, error) {
return Job{}, err
}
defer f.mu.Unlock()
- vm, ok := f.vms[ref]
+ vm, ok := f.visibleLocked(ref)
if !ok {
return Job{}, finish(fl, OpGet, fmt.Errorf("%w: %s", ErrNotFound, ref))
}
@@ -289,7 +296,7 @@ func (f *Fake) Suspend(ctx context.Context, ref Ref) error {
return err
}
defer f.mu.Unlock()
- vm, ok := f.vms[ref]
+ vm, ok := f.visibleLocked(ref)
switch {
case !ok:
err = fmt.Errorf("%w: %s", ErrNotFound, ref)
@@ -311,7 +318,7 @@ func (f *Fake) Resume(ctx context.Context, ref Ref) error {
return err
}
defer f.mu.Unlock()
- vm, ok := f.vms[ref]
+ vm, ok := f.visibleLocked(ref)
switch {
case !ok:
err = fmt.Errorf("%w: %s", ErrNotFound, ref)
@@ -347,7 +354,7 @@ func (f *Fake) Stop(ctx context.Context, ref Ref, reason string) error {
return err
}
defer f.mu.Unlock()
- if vm, ok := f.vms[ref]; ok && vm.state.Live() && vm.state != StateStopping {
+ if vm, ok := f.visibleLocked(ref); ok && vm.state.Live() && vm.state != StateStopping {
f.stopLocked(vm, reason)
}
return finish(fl, OpStop, nil)
@@ -376,7 +383,9 @@ func (f *Fake) List(ctx context.Context) ([]Job, error) {
}
jobs := make([]Job, 0, len(f.order))
for _, ref := range f.order {
- jobs = append(jobs, f.jobLocked(f.vms[ref]))
+ if vm, ok := f.visibleLocked(ref); ok {
+ jobs = append(jobs, f.jobLocked(vm))
+ }
}
return jobs, nil
}
@@ -391,7 +400,10 @@ func (f *Fake) Tick() {
defer f.mu.Unlock()
now := f.clock.Mono()
for _, ref := range f.order {
- vm := f.vms[ref]
+ vm, ok := f.visibleLocked(ref)
+ if !ok {
+ continue
+ }
switch vm.state {
case StateStarting:
vm.state = StateRunning
@@ -426,6 +438,40 @@ func (f *Fake) lifetimeLocked(vm *fakeVM, now time.Duration) time.Duration {
return used
}
+// visibleLocked returns the VM for ref unless the fake never held it or it
+// has vanished. The caller holds f.mu.
+func (f *Fake) visibleLocked(ref Ref) (*fakeVM, bool) {
+ vm, ok := f.vms[ref]
+ if !ok || vm.vanished {
+ return nil, false
+ }
+ return vm, true
+}
+
+// Vanish makes the provider forget the VM for ref, in any state, as when a
+// stopped VM ages out or a VM is removed behind the controller's back. Get,
+// Suspend and Resume then return ErrNotFound, Stop returns nil, and List and
+// LiveByAttempt leave it out. It is not a Stop and is not recorded in
+// StopsIssued. The client token survives: a Launch replay of the same spec
+// still returns ref and a changed spec still conflicts. A ref the fake never
+// held is ignored.
+func (f *Fake) Vanish(ref Ref) {
+ f.mu.Lock()
+ defer f.mu.Unlock()
+ if vm, ok := f.vms[ref]; ok {
+ vm.vanished = true
+ vm.resuming = false
+ }
+}
+
+// Calls returns how many calls of op reached the fake provider: those past
+// spec validation and the context check, throttled ones included.
+func (f *Fake) Calls(op Op) int {
+ f.mu.Lock()
+ defer f.mu.Unlock()
+ return f.calls[op]
+}
+
// SetBackstop turns the lifetime backstop on or off. It is on by default.
func (f *Fake) SetBackstop(on bool) {
f.mu.Lock()
@@ -440,7 +486,7 @@ func (f *Fake) LiveByAttempt() map[string]int {
defer f.mu.Unlock()
out := map[string]int{}
for _, vm := range f.vms {
- if vm.state.Live() {
+ if !vm.vanished && vm.state.Live() {
out[vm.spec.AttemptID]++
}
}
diff --git a/internal/isolatedjob/fake_test.go b/internal/isolatedjob/fake_test.go
index d57dfb71..09436056 100644
--- a/internal/isolatedjob/fake_test.go
+++ b/internal/isolatedjob/fake_test.go
@@ -146,6 +146,44 @@ func TestFakeFaults(t *testing.T) {
t.Fatalf("the next Stop = %v, want nil", err)
}
})
+ t.Run("lost reply on resume", func(t *testing.T) {
+ f, _ := newFake(t)
+ suspendedVM := func(attempt string) isolatedjob.Ref {
+ ref := running(t, f, fakeSpec(attempt))
+ if err := f.Suspend(ctx, ref); err != nil {
+ t.Fatal(err)
+ }
+ f.Tick()
+ wantState(t, f, ref, isolatedjob.StateSuspended)
+ return ref
+ }
+ lost := func(ref isolatedjob.Ref) {
+ t.Helper()
+ f.Inject(isolatedjob.OpResume, isolatedjob.FaultLostReply)
+ err := f.Resume(ctx, ref)
+ if !errors.Is(err, isolatedjob.ErrLostReply) || isSentinel(err) {
+ t.Fatalf("lost-reply Resume(%s) = %v, want ErrLostReply and no sentinel", ref, err)
+ }
+ wantState(t, f, ref, isolatedjob.StateSuspended)
+ }
+ // The resume took effect: one Tick runs the VM with no second Resume.
+ a := suspendedVM("a1")
+ lost(a)
+ f.Tick()
+ wantState(t, f, a, isolatedjob.StateRunning)
+ // A retry finds no fault left and changes nothing while the resume is pending.
+ b := suspendedVM("a2")
+ lost(b)
+ if err := f.Resume(ctx, b); err != nil {
+ t.Fatalf("retried Resume(%s) = %v, want nil", b, err)
+ }
+ wantState(t, f, b, isolatedjob.StateSuspended)
+ f.Tick()
+ wantState(t, f, b, isolatedjob.StateRunning)
+ if err := f.Resume(ctx, b); err != nil {
+ t.Fatalf("Resume(%s) once running = %v, want nil", b, err)
+ }
+ })
t.Run("incomplete list", func(t *testing.T) {
f, _ := newFake(t)
ref := mustLaunch(t, f, fakeSpec("a1"))
@@ -338,15 +376,74 @@ func TestFakeLifecycle(t *testing.T) {
if again := mustLaunch(t, f, fakeSpec("a1")); again != ref {
t.Fatalf("Launch after stop = %s, want the stopped VM %s (client token replay)", again, ref)
}
+ calls := f.Calls(isolatedjob.OpLaunch)
+ f.Inject(isolatedjob.OpLaunch, isolatedjob.FaultThrottle)
bad := fakeSpec("a2")
bad.Size = "medium"
if _, err := f.Launch(ctx, bad); !errors.Is(err, isolatedjob.ErrInvalid) {
t.Fatalf("Launch with a bad size = %v, want ErrInvalid", err)
}
+ big := fakeSpec("a3")
+ big.Bootstrap = make([]byte, f.Limits().MaxBootstrapBytes+1)
+ if _, err := f.Launch(ctx, big); !errors.Is(err, isolatedjob.ErrBootstrapTooLarge) {
+ t.Fatalf("Launch with an oversized bootstrap = %v, want ErrBootstrapTooLarge", err)
+ }
+ if got := f.Calls(isolatedjob.OpLaunch); got != calls {
+ t.Fatalf("Calls(OpLaunch) = %d after two refused specs, want %d: a bad spec must not reach the provider", got, calls)
+ }
+ if _, err := f.Launch(ctx, fakeSpec("a4")); !errors.Is(err, isolatedjob.ErrThrottled) {
+ t.Fatalf("next good Launch = %v, want the queued ErrThrottled (a refused spec takes no fault)", err)
+ }
+ if got := f.Calls(isolatedjob.OpLaunch); got != calls+1 {
+ t.Fatalf("Calls(OpLaunch) = %d after a throttled launch, want %d", got, calls+1)
+ }
if jobs, _ := f.List(ctx); len(jobs) != 1 {
t.Fatalf("List = %v, want only the first VM", jobs)
}
})
+ t.Run("vanish hides the VM but keeps its client token", func(t *testing.T) {
+ f, _ := newFake(t)
+ gone := running(t, f, fakeSpec("a1"))
+ kept := running(t, f, fakeSpec("a2"))
+ f.Vanish(gone)
+ f.Vanish("vm-missing") // a ref the fake never held changes nothing
+ if _, err := f.Get(ctx, gone); !errors.Is(err, isolatedjob.ErrNotFound) {
+ t.Fatalf("Get of a vanished VM = %v, want ErrNotFound", err)
+ }
+ jobs, err := f.List(ctx)
+ if err != nil || len(jobs) != 1 || jobs[0].Ref != kept {
+ t.Fatalf("List after vanish = (%v, %v), want just %s", jobs, err, kept)
+ }
+ if live := f.LiveByAttempt(); len(live) != 1 || live["a2"] != 1 {
+ t.Fatalf("LiveByAttempt after vanish = %v, want a2:1", live)
+ }
+ if stops := f.StopsIssued(); len(stops) != 0 {
+ t.Fatalf("StopsIssued after vanish = %v, want none: the controller stopped nothing", stops)
+ }
+ for name, call := range map[string]func(context.Context, isolatedjob.Ref) error{"Suspend": f.Suspend, "Resume": f.Resume} {
+ if err := call(ctx, gone); !errors.Is(err, isolatedjob.ErrNotFound) {
+ t.Fatalf("%s of a vanished VM = %v, want ErrNotFound", name, err)
+ }
+ }
+ if err := f.Stop(ctx, gone, "late"); err != nil {
+ t.Fatalf("Stop of a vanished VM = %v, want nil", err)
+ }
+ f.Tick()
+ if _, err := f.Get(ctx, gone); !errors.Is(err, isolatedjob.ErrNotFound) {
+ t.Fatalf("Get of a vanished VM after Stop and Tick = %v, want ErrNotFound", err)
+ }
+ if again := mustLaunch(t, f, fakeSpec("a1")); again != gone {
+ t.Fatalf("Launch replay after vanish = %s, want %s (the client token outlives the VM)", again, gone)
+ }
+ changed := fakeSpec("a1")
+ changed.Bootstrap = []byte("another-code")
+ if _, err := f.Launch(ctx, changed); !errors.Is(err, isolatedjob.ErrConflict) {
+ t.Fatalf("Launch of a changed spec after vanish = %v, want ErrConflict", err)
+ }
+ if live := f.LiveByAttempt(); len(live) != 1 || live["a2"] != 1 {
+ t.Fatalf("LiveByAttempt after the replay = %v, want a2:1", live)
+ }
+ })
t.Run("times come from the clock", func(t *testing.T) {
f, c := newFake(t)
ref := mustLaunch(t, f, fakeSpec("a1"))
diff --git a/internal/isolatedjob/isolatedjobtest/contract.go b/internal/isolatedjob/isolatedjobtest/contract.go
index 094689ed..c39457a6 100644
--- a/internal/isolatedjob/isolatedjobtest/contract.go
+++ b/internal/isolatedjob/isolatedjobtest/contract.go
@@ -23,13 +23,16 @@ type Harness struct {
// may wrap isolatedjob.ErrNotFound) or when the state does not arrive in
// the implementation's own time bound.
Settle func(ctx context.Context, ref isolatedjob.Ref, want func(isolatedjob.State) bool) (isolatedjob.Job, error)
+ // ListLag is how long List may take to show a VM that Get already shows
+ // as running. Zero means at once, as for the fake.
+ ListLag time.Duration
}
// contractLifetime keeps VMs launched by a live run short.
const contractLifetime = 15 * time.Minute
// Contract checks the behaviour every Runner must share. It uses only the
-// Runner interface and h.Settle, so it runs against the fake and, behind the
+// Runner interface, h.Settle and h.ListLag, so it runs against the fake and, behind the
// hostedlive build tag, against a real provider. Each subtest stops the VMs it
// launched. Attempt IDs carry a random part, so a second run against a
// provider that remembers client tokens does not get the first run's VMs.
@@ -169,7 +172,11 @@ func Contract(t *testing.T, h Harness) {
})
t.Run("OversizeBootstrapRefusedBeforeProvider", func(t *testing.T) {
- before := listRefs(t, h.Runner)
+ // A VM the contract launched must show in List first, so a List
+ // that always comes back empty cannot pass the check below.
+ known := launch(t, spec())
+ settle(t, known, isolatedjob.StateRunning)
+ before := listUntil(t, h.Runner, known, h.ListLag)
s := spec()
s.Bootstrap = make([]byte, h.Runner.Limits().MaxBootstrapBytes+1)
for i := range s.Bootstrap {
@@ -182,7 +189,11 @@ func Contract(t *testing.T, h Harness) {
if !errors.Is(err, isolatedjob.ErrBootstrapTooLarge) {
t.Fatalf("Launch with a %d-byte bootstrap = (%q, %v), want ErrBootstrapTooLarge", len(s.Bootstrap), ref, err)
}
- for _, r := range listRefs(t, h.Runner) {
+ after := listRefs(t, h.Runner)
+ if !slices.Contains(after, known) {
+ t.Fatalf("List after a refused launch = %v, want it still to hold running VM %s", after, known)
+ }
+ for _, r := range after {
if !slices.Contains(before, r) {
t.Fatalf("List after a refused launch holds new VM %s; the refusal must come before the provider", r)
}
@@ -213,6 +224,32 @@ func listRefs(t *testing.T, r isolatedjob.Runner) []isolatedjob.Ref {
return refs
}
+// listUntil lists until the result holds a live job for ref, for at most lag,
+// and returns the refs of that list. It fails the test when ref never shows.
+func listUntil(t *testing.T, r isolatedjob.Runner, ref isolatedjob.Ref, lag time.Duration) []isolatedjob.Ref {
+ t.Helper()
+ deadline := time.Now().Add(lag)
+ for {
+ jobs, err := r.List(context.Background())
+ if err != nil {
+ t.Fatalf("List = %v", err)
+ }
+ refs := make([]isolatedjob.Ref, 0, len(jobs))
+ found := false
+ for _, j := range jobs {
+ refs = append(refs, j.Ref)
+ found = found || (j.Ref == ref && j.State.Live())
+ }
+ if found {
+ return refs
+ }
+ if !time.Now().Before(deadline) {
+ t.Fatalf("List = %v after %v, want it to hold running VM %s", refs, lag, ref)
+ }
+ time.Sleep(min(time.Second, time.Until(deadline)))
+ }
+}
+
func randomHex(t *testing.T, n int) string {
t.Helper()
b := make([]byte, n)