oficina / equipo Public

hosted: log the delays and reaper events the live check records

For the Task 17 evidence (code review round 1). The contract logs how
long Get took to show each new VM and List to show a running one, via
Harness.Logf (t.Logf when nil). The controller takes an optional slog
logger (Deps.Log; main sends it to stderr at info) and records each
orphan stopped or deferred (VM ref, first seen, grace), each failed
network audit (fixed kinds, no error text) and each restart re-base or
elapsed_unknown stop. TestControllerLogs checks they appear.

The hostedctl budget record moves to 5288/8388 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 3103334e2a3c8d4b20fc113c0310569f17087674 parent 41178b0
12 files changed, +329 −14
  • .rastrillo/budgets.txt +1 −1
  • cmd/equipo-hosted-controller/main.go +5 −1
  • docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md +44 −0
  • internal/hostedctl/audit.go +7 −2
  • internal/hostedctl/controller.go +12 −2
  • internal/hostedctl/launch_test.go +7 −1
  • internal/hostedctl/logs.go +81 −0
  • internal/hostedctl/logs_test.go +116 −0
  • internal/hostedctl/reaper.go +3 −0
  • internal/hostedctl/refresh.go +11 −2
  • internal/isolatedjob/fake_test.go +20 −1
  • internal/isolatedjob/isolatedjobtest/contract.go +22 −4

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-1a: 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.6s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.2s
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 9.7s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 3.9s
ci-box: file times set from content: 2907 files, 194 directories
ci-box: ready in 17.5s
=== 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  ./...
  1.4s
+ 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.616s 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.054s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m20.05s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 32.04, cpu waiting 22.04%, memory waiting 0.00%, io waiting 1.38%
--- 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 1m23.542s 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.926s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.93s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 32.04, cpu waiting 21.58%, memory waiting 0.00%, io waiting 1.34%
--- 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.07s 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 1m22.961s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.43s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.81s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.72s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 30.92, cpu waiting 21.04%, memory waiting 0.00%, io waiting 1.29%
--- 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.621s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.993s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.55s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.46s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.46s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 32.04, cpu waiting 22.21%, memory waiting 0.00%, io waiting 1.43%
--- 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.95s 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.219s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.95s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.31s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.12s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.9s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.94s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 27.68, cpu waiting 17.59%, memory waiting 0.00%, io waiting 1.06%
--- 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 3m10.324s 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 3m8.255s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.85s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.16s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.55s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.12s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.36s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 8.46, cpu waiting 3.82%, memory waiting 0.00%, io waiting 0.22%
--- 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.121s 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 1.30, cpu waiting 0.75%, memory waiting 0.00%, io waiting 5.26%
--- 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.155s 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 1.30, cpu waiting 0.75%, memory waiting 0.00%, io waiting 5.26%
--- 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 4m29.248s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m42.145s 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 4m29.248s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.93s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.93s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.77s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.47s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.83s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.48, cpu waiting 0.82%, memory waiting 0.00%, io waiting 0.04%
--- 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.631s 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.544s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.51s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 32.86, cpu waiting 22.19%, memory waiting 0.00%, io waiting 2.44%
--- 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 48.383s 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.544s amadan.net/oficina/equipo/internal/runner
receipt: slow test 36.49s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 33.06s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 32.86, cpu waiting 22.19%, memory waiting 0.00%, io waiting 2.44%
--- 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 35.379s 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 34.549s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.54s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 24.61, cpu waiting 15.73%, memory waiting 0.00%, io waiting 2.98%
--- 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 27.8%, load 17.35
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m4.35s 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.564s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.67s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.63s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.68s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.12s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.02s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelDuplicates
machine: 32 CPUs, load 27.68, cpu waiting 18.70%, memory waiting 0.00%, io waiting 1.13%
--- 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 27.8%, load 17.35
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.353s 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 17.35, cpu waiting 12.37%, memory waiting 0.00%, io waiting 3.19%
--- 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 27.8%, load 17.35
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.928s 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.822s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.41s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.06s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.04s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.95s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 23.89, cpu waiting 15.43%, memory waiting 0.00%, io waiting 0.92%
--- 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 27.8%, load 17.35
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 470ms 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 1m4.903s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.66s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.64s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.02s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 21.99s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 17.35, cpu waiting 11.20%, memory waiting 0.00%, io waiting 3.30%
--- 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 27.8%, load 17.35
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 478ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 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 17.35, cpu waiting 11.20%, memory waiting 0.00%, io waiting 3.30%
--- 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 27.8%, load 17.35
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./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/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./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-hosted-controller ./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/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./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/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: 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: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: 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/hostedctl took 15.082s, over the 10s the default allows; 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.202s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.433s against a 60s target (the gate's other steps are not in this figure)
receipt: 16 packages ran, 51 cached, 20 without tests, 0 failed
receipt: slow package 53.019s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.597s 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.202s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 32.06s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.1s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 14.64s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 13.56s amadan.net/oficina/equipo/internal/hostedctl TestLifecycleSimulation
receipt: slow test 10.89s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
machine: 32 CPUs, load 12.12, cpu waiting 5.70%, memory waiting 0.00%, io waiting 0.33%
--- 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.536s 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.122s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.41s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.21s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.68s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.89s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 30.92, cpu waiting 21.58%, memory waiting 0.00%, io waiting 1.34%
--- 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 1m33.086s 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 1m31.341s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.41s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.71s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.26s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.21s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.96s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 27.68, cpu waiting 18.70%, memory waiting 0.00%, io waiting 1.13%
--- 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.404s 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.729s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.19s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.17s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.98s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.24s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 25.70, cpu waiting 16.46%, memory waiting 0.00%, io waiting 0.99%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-23T10:27:44.386Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T10:27:44.386Z level=INFO msg="startup phase done" phase=state_lock took=163µs
time=2026-11-23T10:27:44.386Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T10:27:44.387Z level=INFO msg="startup phase done" phase=claim_roots took=125µs
time=2026-11-23T10:27:44.387Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T10:27:44.420Z level=INFO msg="startup phase done" phase=sweep took=33.347ms
time=2026-11-23T10:27:44.420Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T10:27:44.420Z level=INFO msg="startup phase done" phase=credentials took=202µs
time=2026-11-23T10:27:44.420Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T10:27:44.463Z level=INFO msg="startup phase done" phase=open_state took=42.35ms
time=2026-11-23T10:27:44.463Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T10:27:44.464Z level=INFO msg=connecting host=127.0.0.1:46369 protocol=28
time=2026-11-23T10:27:44.466Z level=INFO msg=connected host=127.0.0.1:46369 took=2.289ms
time=2026-11-23T10:27:44.466Z level=INFO msg="capabilities gathering"
time=2026-11-23T10:27:44.467Z level=INFO msg="capabilities gathered" took=423µs tags=linux,claude,go
time=2026-11-23T10:27:44.467Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T10:27:44.474Z 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.83s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-23T10:28:15.351Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T10:28:15.351Z level=INFO msg="startup phase done" phase=state_lock took=88µs
time=2026-11-23T10:28:15.351Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T10:28:15.351Z level=INFO msg="startup phase done" phase=claim_roots took=96µs
time=2026-11-23T10:28:15.351Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T10:28:15.382Z level=INFO msg="startup phase done" phase=sweep took=31.126ms
time=2026-11-23T10:28:15.382Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T10:28:15.382Z level=INFO msg="startup phase done" phase=credentials took=104µs
time=2026-11-23T10:28:15.382Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T10:28:15.422Z level=INFO msg="startup phase done" phase=open_state took=39.529ms
time=2026-11-23T10:28:15.422Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T10:28:15.423Z level=INFO msg=connecting host=127.0.0.1:43633 protocol=28
time=2026-11-23T10:28:15.424Z level=INFO msg=connected host=127.0.0.1:43633 took=970µs
time=2026-11-23T10:28:15.424Z level=INFO msg="capabilities gathering"
time=2026-11-23T10:28:15.424Z level=INFO msg="capabilities gathered" took=390µs tags=linux,claude,go
time=2026-11-23T10:28:15.425Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T10:28:15.429Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-23T10:28:16.408Z 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: <nil>)
--- FAIL: TestBrowserEmptyExplore (5.81s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m27.695s
FAIL	amadan.net/oficina/equipo/internal/headless	88.020s

rastrillo: budget test: go test failed

receipt: test step 1m29.059s 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 1m27.695s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.24s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.92s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.46s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.38s 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 3103334e2a3c8d4b20fc113c0310569f17087674 1.83s 29.48
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 3103334e2a3c8d4b20fc113c0310569f17087674 5.81s 29.48
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 25.70, cpu waiting 16.46%, memory waiting 0.00%, io waiting 0.99%
--- 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 1.021s 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 866ms 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 204ms 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.078s 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 4.32, cpu waiting 1.51%, memory waiting 0.00%, io waiting 5.09%
--- 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.26s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.30s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.82s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.41s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.99s
+ 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   (56s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.55s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.96s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.55s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.62s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 20.98s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 34.31, cpu waiting 22.82%, memory waiting 0.00%, io waiting 2.14%
--- 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.328s 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.121s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 169ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 72ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 70ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
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.109s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.778s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms 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 TestNamespaceExitStatus
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 5.98, cpu waiting 4.42%, memory waiting 0.00%, io waiting 4.45%
--- 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 27.8%, load 17.35
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2620 text files, 2854 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 96 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.526s
machine: 32 CPUs, load 32.86, cpu waiting 20.62%, memory waiting 0.00%, io waiting 2.61%
--- 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 27.8%, load 17.35
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 17.35, cpu waiting 14.02%, memory waiting 0.00%, io waiting 3.09%
--- 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 27.8%, load 17.35
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 24.61, cpu waiting 17.08%, memory waiting 0.00%, io waiting 2.89%
--- 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 27.8%, load 17.35
shard 28: make gitleaks
10:27AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:27AM INF 1150 commits scanned.
10:27AM INF scanned ~62358652 bytes (62.36 MB) in 14.6s
10:27AM INF no leaks found
machine: 32 CPUs, load 32.86, cpu waiting 20.62%, memory waiting 0.00%, io waiting 2.61%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.048ms, worst 1.1ms, budget 150ms
perf: GET /api/runner/protocol: median 82µs, worst 89µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 604µs, worst 653µs, budget 150ms
perf: GET /api/v1/accounts: median 431µs, worst 459µs, budget 150ms
perf: GET /api/v1/auth/devices: median 445µs, worst 504µs, budget 150ms
perf: GET /api/v1/budgets: median 517µs, worst 544µs, budget 150ms
perf: GET /api/v1/capabilities: median 249µs, worst 280µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.236ms, worst 1.294ms, budget 150ms
perf: GET /api/v1/connections: median 670µs, worst 2.202ms, budget 150ms
perf: GET /api/v1/connections/{id}: median 594µs, worst 722µs, budget 150ms
perf: GET /api/v1/conversation: median 996µs, worst 1.054ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.668ms, worst 1.749ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.891ms, worst 1.993ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 449µs, worst 470µs, budget 150ms
perf: GET /api/v1/journey: median 7.299ms, worst 7.498ms, budget 150ms
perf: GET /api/v1/me: median 420µs, worst 448µs, budget 150ms
perf: GET /api/v1/me/settings: median 497µs, worst 513µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.142ms, worst 7.448ms, budget 150ms
perf: GET /api/v1/notifications: median 1.627ms, worst 1.728ms, budget 150ms
perf: GET /api/v1/onboarding: median 411µs, worst 439µs, budget 150ms
perf: GET /api/v1/people: median 442µs, worst 485µs, budget 150ms
perf: GET /api/v1/playbooks: median 601µs, worst 637µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 529µs, worst 585µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 850µs, worst 897µs, budget 150ms
perf: GET /api/v1/preferences: median 767µs, worst 821µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 449µs, worst 466µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 591µs, worst 611µs, budget 150ms
perf: GET /api/v1/roster: median 450µs, worst 506µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 433µs, worst 456µs, budget 150ms
perf: GET /api/v1/specialists: median 8.069ms, worst 8.17ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.897ms, worst 7.949ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 819µs, worst 871µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.106ms, worst 1.165ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 720µs, worst 822µs, budget 150ms
perf: GET /api/v1/teams: median 436µs, worst 464µs, budget 150ms
perf: GET /api/v1/templates: median 600µs, worst 631µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 456µs, worst 487µs, budget 150ms
perf: GET /auth/callback: median 76µs, worst 93µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.305ms, worst 3.404ms, budget 150ms
perf: GET /auth/verify: median 84µs, worst 112µs, budget 150ms
perf: GET /connections: median 3.624ms, worst 3.848ms, budget 150ms
perf: GET /conversation: median 7.635ms, worst 10.125ms, budget 150ms
perf: GET /conversation/connections: median 264µs, worst 276µs, budget 150ms
perf: GET /conversation/notebook: median 249µs, worst 295µs, budget 150ms
perf: GET /conversation/settings: median 3.924ms, worst 4.011ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.528ms, worst 3.645ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.199ms, worst 6.313ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.322ms, worst 6.453ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.512ms, worst 3.63ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.006ms, worst 4.069ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.373ms, worst 4.597ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.489ms, worst 4.674ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.414ms, worst 3.588ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.871ms, worst 3.994ms, budget 150ms
perf: GET /housekeeping: median 3.702ms, worst 3.748ms, budget 150ms
perf: GET /invites/new: median 591µs, worst 621µs, budget 150ms
perf: GET /invites/{id}: median 630µs, worst 684µs, budget 150ms
perf: GET /jobs: median 3.241ms, worst 3.322ms, budget 150ms
perf: GET /jobs/{id}: median 4.436ms, worst 4.511ms, budget 150ms
perf: GET /journey: median 11.914ms, worst 12.024ms, budget 150ms
perf: GET /nav/rail: median 3.122ms, worst 3.174ms, budget 150ms
perf: GET /needs-you: median 11.958ms, worst 14.184ms, budget 150ms
perf: GET /onboarding: median 4.18ms, worst 4.282ms, budget 150ms
perf: GET /people: median 3.482ms, worst 3.712ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.027ms, worst 5.177ms, budget 150ms
perf: GET /playbooks: median 4.642ms, worst 4.687ms, budget 150ms
perf: GET /playbooks/new: median 4.658ms, worst 4.845ms, budget 150ms
perf: GET /playbooks/{id}: median 4.409ms, worst 4.471ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.415ms, worst 4.458ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.596ms, worst 3.696ms, budget 150ms
perf: GET /preferences: median 4.007ms, worst 4.163ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.131ms, worst 6.622ms, budget 150ms
perf: GET /projects: median 5.294ms, worst 5.356ms, budget 150ms
perf: GET /projects/accounts: median 3.475ms, worst 3.593ms, budget 150ms
perf: GET /projects/new: median 3.468ms, worst 3.593ms, budget 150ms
perf: GET /projects/{id}: median 10.228ms, worst 10.442ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.621ms, worst 3.742ms, budget 150ms
perf: GET /runners/enrol: median 4.237ms, worst 4.289ms, budget 150ms
perf: GET /settings: median 3.312ms, worst 3.475ms, budget 150ms
perf: GET /settings/coordinator: median 5.331ms, worst 5.48ms, budget 150ms
perf: GET /settings/devices: median 3.156ms, worst 3.27ms, budget 150ms
perf: GET /settings/recovery: median 3.462ms, worst 5.696ms, budget 150ms
perf: GET /settings/recovery/release: median 3.483ms, worst 3.703ms, budget 150ms
perf: GET /settings/thinking: median 242µs, worst 276µs, budget 150ms
perf: GET /signin: median 313µs, worst 364µs, budget 150ms
perf: GET /specialists/new: median 3.267ms, worst 3.336ms, budget 150ms
perf: GET /specialists/{key}: median 10.521ms, worst 10.624ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.478ms, worst 3.512ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.532ms, worst 3.656ms, budget 150ms
perf: GET /tasks: median 4.942ms, worst 5.066ms, budget 150ms
perf: GET /tasks/new: median 3.089ms, worst 3.185ms, budget 150ms
perf: GET /tasks/{id}: median 5.249ms, worst 5.412ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.782ms, worst 6.76ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.641ms, worst 4.807ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.521ms, worst 5.621ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.508ms, worst 1.56ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.014ms, worst 5.2ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.471ms, worst 4.588ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.111ms, worst 4.157ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.571ms, worst 7.9ms, budget 150ms
perf: GET /team/{specialist}: median 4.174ms, worst 4.339ms, budget 150ms
perf: GET /teams: median 9.825ms, worst 12.418ms, budget 150ms
perf: GET /templates: median 3.432ms, worst 3.542ms, budget 150ms
perf: GET /usage: median 4.044ms, worst 4.184ms, budget 150ms
perf: GET /work: median 2.978ms, worst 3.01ms, budget 150ms
perf: cold boot: median 263ms of [260.961902ms 263.026926ms 263.988573ms], budget 500ms

receipt: test step 31.51s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 92 without tests, 0 failed
receipt: slow package 8.841s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-hosted-controller
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 8s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 840ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.82 GiB in 25815 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.91 GiB in 33199 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index ef1ee52d..63f79737 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -76,4 +76,4 @@ size internal/thintest - 33399 Fable follow-up gates, preview isolation and prov
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
perf GET /api/v1/advice skip Thin v1 person API: bearer-only JSON for devices; the browser reads advice through /usage and /conversation.
-size internal/hostedctl 5180 8266 Hosted controller core plus its lifecycle simulation; split planned for slice 1b; measured 5180/8266 source/test lines after the final fix wave.
+size internal/hostedctl 5288 8388 Hosted controller core plus its lifecycle simulation; split planned for slice 1b; measured 5288/8388 source/test lines after the Task 17 pre-flight operator logs.
diff --git a/cmd/equipo-hosted-controller/main.go b/cmd/equipo-hosted-controller/main.go
index daac4320..cb58dc31 100644
--- a/cmd/equipo-hosted-controller/main.go
+++ b/cmd/equipo-hosted-controller/main.go
@@ -16,6 +16,7 @@ import (
"flag"
"fmt"
"log"
+ "log/slog"
"net"
"net/http"
"os"
@@ -105,7 +106,10 @@ func run(path string) error {
if runnerHook != nil {
jobs = runnerHook(jobs)
}
- c, err := hostedctl.New(cfg.ctl, hostedctl.Deps{Store: store, Runner: jobs, Auditor: runner, Alerter: alerter})
+ // Operator records (orphans, audits, restart settling) go to stderr
+ // at info, beside the log package's lines.
+ opLog := slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelInfo}))
+ c, err := hostedctl.New(cfg.ctl, hostedctl.Deps{Store: store, Runner: jobs, Auditor: runner, Alerter: alerter, Log: opLog})
if err != nil {
return err
}
diff --git a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
index 8f9885fc..7f5ceaf9 100644
--- a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
@@ -1094,3 +1094,47 @@ Offline preparation for the live check; no AWS call was made. The live pieces co
| --- | --- | --- | --- |
| Unfiltered List again (no `ImageIdentifier`, no `imageArn` check) | `go test ./internal/isolatedjob/awsjob -run 'TestListOnlyConfiguredImages' -count=1` | `runner_test.go:1074: List refs = [vm-a1 vm-a1 ... vm-x1 vm-x1 vm-x2 vm-x2], want [vm-a1 vm-a2 vm-b1 vm-b2]: only VMs from the configured images` (and `:1078` calls without the image) | yes, passes |
| Filter sent, `imageArn` check dropped | same | `runner_test.go:1074: List refs = [... vm-x1 vm-x1 vm-x2 vm-x2], want [vm-a1 vm-a2 vm-b1 vm-b2]` (the provider-ignores-the-filter row) | yes, passes |
+
+### Code review round 1 (t17-code-review.md)
+
+- The driver logic moved from `live_test.go` to an untagged `liveDriver`
+ (`internal/hostedclient/driver_test.go`). Its steps return errors and register their cleanups
+ through a hook. `live_test.go` now only reads the environment and calls it, and
+ `driver_offline_test.go` runs every path against the test controller, with a goroutine standing
+ in for the reaper's refresh.
+- Finding 1: `crashLaunch` and `crashRecover` register the VM guard first (before the Launch, and
+ before the operator key is read). Only the intended crash handover (Launch failing in transport)
+ releases it, and so does stop proof. Every other ending stops the VM.
+- Finding 2: `stopUntilProof`, and so the cleanup, sends Stop again on transport failure, on an
+ unverified answer and on any signed 503, as well as on pending and throttled answers. It reports
+ the last error once its bound passes.
+- Minor 3: the sequence fails unless Resume's epoch is the running job's epoch plus one.
+- Evidence (a): the contract logs `visibility: Get showed new VM <ref> <d> after Launch returned
+ (<n> reads)` and `list lag: List showed running VM <ref> <d> after Get did (<n> lists)` through
+ `Harness.Logf` (nil means t.Logf).
+- Evidence (b): `hostedctl.Deps.Log` (slog; nil discards; `main` sends it to stderr at info) gets
+ fixed-message records:
+ - orphan stopped: `vm_ref`, `first_seen_ns`, `unclaimed_for`, `grace`, `seen_before_restart`;
+ - orphan stop call failed;
+ - orphan deferred: also `dispatched_intents`;
+ - network audit failed: fixed `kinds` such as `resolver_enabled`, `provider_read_failed`, with no
+ error text;
+ - restart re-base: `attempt`, `provider_age`, and how far the launch and stop times moved back;
+ - restart elapsed_unknown stop.
+- Budget: `internal/hostedctl` record moved to 5288/8388.
+- Tests:
+ - `TestDriverSequenceOffline`, `TestDriverCrashLaunchAnsweredStopsVM`,
+ `TestDriverCrashLaunchTransportHandsOver`, `TestDriverRecoverBadOperatorKeyStopsVM`,
+ `TestDriverStopRetriesTransport` and `TestRetryableStop`, all `-count=10` clean;
+ - `TestControllerLogs` (five scenarios, and no provider text or instance code in the log);
+ - `TestFakeContractLateVisibility` now also wants both delay lines.
+- Runs: `go test` for hostedclient, hostedctl (6.7 s), isolatedjob/... and the controller command
+ all ok; `go vet -tags hostedlive` on the four; `make build vet`; `make budget`; the Task 7 guard;
+ `scripts/ci-test.py check`.
+
+| Mutation | Command | Observed failure | Restored |
+| --- | --- | --- | --- |
+| `crashLaunch` registers its guard only after the answered-launch check | `go test ./internal/hostedclient -run 'TestDriverCrashLaunch' -count=1` | `driver_offline_test.go:113: Get(crash-1) = starting, <nil>; want stopped` | yes, passes |
+| `crashRecover` registers its guard after reading the operator key | `go test ./internal/hostedclient -run 'TestDriverRecover' -count=1` | `driver_offline_test.go:149: Get(rec-1) = starting, <nil>; want stopped` | yes, passes |
+| `retryableStop` no longer retries `ErrTransport` | `go test ./internal/hostedclient -run 'TestDriverStopRetriesTransport' -count=1` | `driver_offline_test.go:166: cleanup made 1 calls, want the two failures and a retry` | yes, passes |
+| Epoch check expects no rise (`running.Epoch+0`) | `go test ./internal/hostedclient -run 'TestDriverSequenceOffline' -count=1` | `driver_offline_test.go:95: sequence = Resume gave epoch 1, want 1: one resume raises the epoch by one` (the message prints the unmutated expectation) | yes, passes |
diff --git a/internal/hostedctl/audit.go b/internal/hostedctl/audit.go
index 56ccd831..0a04d3b8 100644
--- a/internal/hostedctl/audit.go
+++ b/internal/hostedctl/audit.go
@@ -35,12 +35,17 @@ type auditState struct {
func (c *Controller) RunAudit(ctx context.Context) error {
at := c.store.Clock().Now()
a, err := c.auditor.AuditNetwork(ctx)
+ var kinds []string
if err != nil {
+ kinds = auditCallKinds(err)
err = fmt.Errorf("hostedctl: network audit: %w", err)
- } else {
- err = a.OK(c.cfg.Egress)
+ } else if err = a.OK(c.cfg.Egress); err != nil {
+ kinds = auditKinds(a, c.cfg.Egress)
}
c.audit.record(at, err)
+ if err != nil {
+ c.logAuditFailed(at, kinds)
+ }
return err
}
diff --git a/internal/hostedctl/controller.go b/internal/hostedctl/controller.go
index 0afc1a50..90ba58a9 100644
--- a/internal/hostedctl/controller.go
+++ b/internal/hostedctl/controller.go
@@ -3,6 +3,7 @@ package hostedctl
import (
"context"
"errors"
+ "log/slog"
"maps"
"net/netip"
"reflect"
@@ -44,12 +45,16 @@ type Config struct {
// than the controller's config names.
var ErrProviderMismatch = errors.New("hostedctl: database belongs to another provider namespace")
-// Deps are the controller's collaborators. Every one is required.
+// Deps are the controller's collaborators. Every one but Log is required.
type Deps struct {
Store *Store
Runner isolatedjob.Runner
Auditor isolatedjob.NetworkAuditor
Alerter Alerter
+ // Log gets one info record for each orphan stopped or deferred, each
+ // failed network audit and each restart re-base or elapsed_unknown
+ // stop (logs.go). Nil discards them.
+ Log *slog.Logger
}
// Controller owns the job table and the VMs launched for it.
@@ -59,6 +64,7 @@ type Controller struct {
runner isolatedjob.Runner
auditor isolatedjob.NetworkAuditor
alerter Alerter
+ log *slog.Logger
audit auditState // the last network audit result (audit.go)
rebased rebasedSet // jobs re-based after a restart (refresh.go)
attempts attemptLocks // per-attempt locks (attemptlock.go)
@@ -101,8 +107,12 @@ func New(cfg Config, d Deps) (*Controller, error) {
}
cfg.Images = maps.Clone(cfg.Images)
cfg.Egress = slices.Clone(cfg.Egress)
+ log := d.Log
+ if log == nil {
+ log = slog.New(slog.DiscardHandler)
+ }
return &Controller{cfg: cfg, store: d.Store, runner: boundedRunner{d.Runner}, auditor: boundedAuditor{d.Auditor},
- alerter: d.Alerter}, nil
+ alerter: d.Alerter, log: log}, nil
}
// isNil reports whether v is nil or an interface holding a nil pointer, map,
diff --git a/internal/hostedctl/launch_test.go b/internal/hostedctl/launch_test.go
index 1a248f68..151e0e13 100644
--- a/internal/hostedctl/launch_test.go
+++ b/internal/hostedctl/launch_test.go
@@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
+ "log/slog"
"path/filepath"
"strings"
"sync"
@@ -46,6 +47,7 @@ type launchEnv struct {
cfg Config
store *Store
c *Controller
+ logs *syncBuffer // every controller's Deps.Log, as text (logs_test.go)
}
func newLaunchEnv(t *testing.T) *launchEnv {
@@ -95,7 +97,11 @@ func (g *gateClock) Mono() time.Duration {
// has no network audit until e.audit runs.
func (e *launchEnv) newController() {
e.t.Helper()
- c, err := New(e.cfg, Deps{Store: e.store, Runner: e.run, Auditor: e.fake, Alerter: &recordingAlerter{}})
+ if e.logs == nil {
+ e.logs = &syncBuffer{}
+ }
+ c, err := New(e.cfg, Deps{Store: e.store, Runner: e.run, Auditor: e.fake, Alerter: &recordingAlerter{},
+ Log: slog.New(slog.NewTextHandler(e.logs, nil))})
if err != nil {
e.t.Fatalf("New = %v", err)
}
diff --git a/internal/hostedctl/logs.go b/internal/hostedctl/logs.go
new file mode 100644
index 00000000..2cc2b25a
--- /dev/null
+++ b/internal/hostedctl/logs.go
@@ -0,0 +1,81 @@
+package hostedctl
+
+import (
+ "context"
+ "errors"
+ "net/netip"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/isolatedjob"
+)
+
+// Operator log records, at info, through Deps.Log. Each message is a fixed
+// string and each attribute a value the controller holds itself: a VM ref,
+// an attempt ID, controller times and durations, or a fixed kind word. No
+// record carries provider error text, request bodies or key material.
+
+func (c *Controller) logOrphanStopped(o orphan, now T) {
+ c.log.Info("hosted controller: orphan VM stopped",
+ "vm_ref", string(o.ref), "first_seen_ns", int64(o.firstSeen), "unclaimed_for", time.Duration(now-o.firstSeen),
+ "grace", OrphanGrace, "seen_before_restart", now-o.firstSeen < T(OrphanGrace))
+}
+
+func (c *Controller) logOrphanStopFailed(o orphan) {
+ c.log.Info("hosted controller: orphan VM stop call failed; sent again next pass",
+ "vm_ref", string(o.ref), "first_seen_ns", int64(o.firstSeen), "grace", OrphanGrace)
+}
+
+func (c *Controller) logOrphanDeferred(o orphan, now T, dispatched int) {
+ c.log.Info("hosted controller: orphan VM left running for a dispatched launch intent",
+ "vm_ref", string(o.ref), "first_seen_ns", int64(o.firstSeen), "unclaimed_for", time.Duration(now-o.firstSeen),
+ "grace", OrphanGrace, "dispatched_intents", dispatched)
+}
+
+func (c *Controller) logAuditFailed(at T, kinds []string) {
+ c.log.Info("hosted controller: network audit failed; launches refused", "began_ns", int64(at), "kinds", kinds)
+}
+
+func (c *Controller) logRebased(attempt string, age, launchedBy, stopBy time.Duration) {
+ c.log.Info("hosted controller: restart re-based a job from the provider's age",
+ "attempt", attempt, "provider_age", age, "launched_moved_back", launchedBy, "stop_moved_back", stopBy)
+}
+
+func (c *Controller) logElapsedUnknown(attempt string) {
+ c.log.Info("hosted controller: restart stop requested, elapsed time unknown",
+ "attempt", attempt, "reason", reasonElapsedUnknown)
+}
+
+// auditCallKinds names, in fixed words, why reading the network settings
+// failed.
+func auditCallKinds(err error) []string {
+ kinds := []string{"provider_read_failed"}
+ switch {
+ case errors.Is(err, context.Canceled), errors.Is(err, context.DeadlineExceeded):
+ kinds = append(kinds, "cancelled_or_timed_out")
+ case errors.Is(err, isolatedjob.ErrThrottled):
+ kinds = append(kinds, "throttled")
+ case errors.Is(err, isolatedjob.ErrNotFound):
+ kinds = append(kinds, "not_found")
+ }
+ return kinds
+}
+
+// auditKinds names, in fixed words, each property of a that fails the
+// audit against want (see isolatedjob.NetworkAudit.OK).
+func auditKinds(a isolatedjob.NetworkAudit, want []netip.AddrPort) []string {
+ var kinds []string
+ if !a.ResolverDisabled {
+ kinds = append(kinds, "resolver_enabled")
+ }
+ if !a.IngressClosed {
+ kinds = append(kinds, "ingress_open")
+ }
+ if !a.RouteOutAbsent {
+ kinds = append(kinds, "route_out_present")
+ }
+ a.ResolverDisabled, a.IngressClosed, a.RouteOutAbsent = true, true, true
+ if a.OK(want) != nil {
+ kinds = append(kinds, "egress_differs")
+ }
+ return kinds
+}
diff --git a/internal/hostedctl/logs_test.go b/internal/hostedctl/logs_test.go
new file mode 100644
index 00000000..85cde8cc
--- /dev/null
+++ b/internal/hostedctl/logs_test.go
@@ -0,0 +1,116 @@
+package hostedctl
+
+import (
+ "bytes"
+ "errors"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/isolatedjob"
+)
+
+// syncBuffer is a bytes.Buffer safe for the concurrent writes of slog.
+type syncBuffer struct {
+ mu sync.Mutex
+ b bytes.Buffer
+}
+
+func (s *syncBuffer) Write(p []byte) (int, error) {
+ s.mu.Lock()
+ defer s.mu.Unlock()
+ return s.b.Write(p)
+}
+
+func (s *syncBuffer) String() string {
+ s.mu.Lock()
+ defer s.mu.Unlock()
+ return s.b.String()
+}
+
+// wantLog fails unless one log line holds every part.
+func (e *launchEnv) wantLog(parts ...string) {
+ e.t.Helper()
+ all := e.logs.String()
+ for _, line := range strings.Split(all, "\n") {
+ ok := line != ""
+ for _, p := range parts {
+ ok = ok && strings.Contains(line, p)
+ }
+ if ok {
+ return
+ }
+ }
+ e.t.Fatalf("no log line holds %q; the log:\n%s", parts, all)
+}
+
+// TestControllerLogs: the records the Task 17 live check reads (round 1 of
+// its code review) appear, at info, with fixed messages and no provider text.
+func TestControllerLogs(t *testing.T) {
+ t.Parallel()
+ t.Run("orphan stopped", func(t *testing.T) {
+ t.Parallel()
+ e := newLaunchEnv(t)
+ stray := e.plant("stray-1")
+ e.reap()
+ e.clk.AdvanceMono(OrphanGrace)
+ e.reap()
+ e.wantLog("level=INFO", `msg="hosted controller: orphan VM stopped"`, "vm_ref="+string(stray), "first_seen_ns=", "grace=10m0s")
+ })
+ t.Run("orphan deferred", func(t *testing.T) {
+ t.Parallel()
+ e := newLaunchEnv(t)
+ e.lostLaunch("att-1")
+ stray := e.plant("stray-1")
+ for range 20 {
+ e.fake.Inject(isolatedjob.OpLaunch, isolatedjob.FaultThrottle)
+ }
+ _, _ = e.c.Reap(e.ctx)
+ e.clk.AdvanceMono(OrphanGrace)
+ _, _ = e.c.Reap(e.ctx)
+ e.wantLog(`msg="hosted controller: orphan VM left running for a dispatched launch intent"`, "vm_ref="+string(stray),
+ "grace=10m0s", "dispatched_intents=1")
+ })
+ t.Run("audit failed", func(t *testing.T) {
+ t.Parallel()
+ e := newLaunchEnv(t)
+ e.fake.SetAudit(isolatedjob.NetworkAudit{IngressClosed: true, RouteOutAbsent: true}, nil)
+ _ = e.c.RunAudit(e.ctx)
+ e.wantLog(`msg="hosted controller: network audit failed; launches refused"`, "resolver_enabled")
+ e.fake.SetAudit(isolatedjob.NetworkAudit{}, errors.New("provider says secret-detail-7"))
+ _ = e.c.RunAudit(e.ctx)
+ e.wantLog(`msg="hosted controller: network audit failed; launches refused"`, "provider_read_failed")
+ if strings.Contains(e.logs.String(), "secret-detail-7") {
+ t.Fatalf("the log quotes provider error text:\n%s", e.logs)
+ }
+ })
+ restart := func(t *testing.T, ageUnknown bool) *launchEnv {
+ e := newLaunchEnv(t)
+ e.launchWith("att-1", 2*time.Hour)
+ e.fake.Tick()
+ e.down()
+ e.clk.AdvanceMono(10 * time.Minute)
+ e.clk.SetWall(testWall.Add(10 * time.Minute))
+ e.up()
+ e.clk.AdvanceMono(time.Second)
+ if ageUnknown {
+ e.fake.Inject(isolatedjob.OpGet, isolatedjob.FaultAgeUnknown)
+ }
+ e.refresh()
+ return e
+ }
+ t.Run("restart rebase", func(t *testing.T) {
+ t.Parallel()
+ e := restart(t, false)
+ e.wantLog(`msg="hosted controller: restart re-based a job from the provider's age"`, "attempt=att-1", "provider_age=")
+ })
+ t.Run("restart elapsed unknown", func(t *testing.T) {
+ t.Parallel()
+ e := restart(t, true)
+ e.wantLog(`msg="hosted controller: restart stop requested, elapsed time unknown"`, "attempt=att-1", "reason=elapsed_unknown")
+ if strings.Contains(e.logs.String(), testCode) {
+ t.Fatalf("the log holds the instance code:\n%s", e.logs)
+ }
+ })
+}
diff --git a/internal/hostedctl/reaper.go b/internal/hostedctl/reaper.go
index acbebe56..43edd22f 100644
--- a/internal/hostedctl/reaper.go
+++ b/internal/hostedctl/reaper.go
@@ -685,6 +685,7 @@ func (c *Controller) finalOrphanCheck(ctx context.Context, expired []orphan, rep
// been dispatched (R22), and audits it once per run of deferrals.
func (c *Controller) deferOrphan(ctx context.Context, o orphan, n int, rep *ReapReport) error {
rep.OrphansDeferred++
+ c.logOrphanDeferred(o, c.store.Clock().Now(), n)
if c.reap.orphanDeferred[o.ref] {
return nil
}
@@ -710,11 +711,13 @@ func (c *Controller) stopOrphan(ctx context.Context, o orphan, rep *ReapReport)
perr := c.runner.Stop(ctx, o.ref, reasonOrphan)
rec := context.WithoutCancel(ctx)
if perr != nil && !errors.Is(perr, isolatedjob.ErrNotFound) {
+ c.logOrphanStopFailed(o)
aerr := c.auditReaper(rec, actionOrphanStopFailed,
fmt.Sprintf("VM %s %s; the provider stop call failed and is sent again next pass", o.ref, why))
return errors.Join(fmt.Errorf("hostedctl: reap: stop orphan VM %s: %w", o.ref, perr), aerr)
}
rep.OrphansStopped++
+ c.logOrphanStopped(o, now)
reason := fmt.Sprintf("VM %s %s and was still unclaimed after a replay and a fresh list; provider stop sent", o.ref, why)
if !c.reap.orphanAlerted[o.ref] {
if c.reap.orphanAlerted == nil {
diff --git a/internal/hostedctl/refresh.go b/internal/hostedctl/refresh.go
index b4233c4d..1c3875f3 100644
--- a/internal/hostedctl/refresh.go
+++ b/internal/hostedctl/refresh.go
@@ -255,6 +255,7 @@ func (c *Controller) stopElapsedUnknown(ctx context.Context, attempt string) err
if err != nil {
return err
}
+ c.logElapsedUnknown(attempt)
c.rebased.add(attempt)
if r.proof != nil {
return nil
@@ -271,7 +272,10 @@ func (c *Controller) stopElapsedUnknown(ctx context.Context, attempt string) err
// for it, each only when earlier than the stored one. It is audited even
// when nothing moves.
func (c *Controller) rebase(ctx context.Context, attempt string, cand T, age time.Duration) error {
- return c.store.Tx(ctx, func(tx *sql.Tx) error {
+ var launchedBy, stopBy time.Duration
+ moved := false
+ err := c.store.Tx(ctx, func(tx *sql.Tx) error {
+ moved = false
j, found, err := loadJob(ctx, tx, attempt)
if err != nil || !found || j.stopProof.Valid {
return err
@@ -288,11 +292,16 @@ func (c *Controller) rebase(ctx context.Context, attempt string, cand T, age tim
int64(launched), int64(deadline), int64(drain), int64(stop), attempt); err != nil {
return fmt.Errorf("hostedctl: re-base %s: %w", attempt, err)
}
+ launchedBy, stopBy, moved = time.Duration(T(j.launchedT)-launched), time.Duration(T(j.stopT)-stop), true
return appendAudit(tx, Audit{Account: j.account, Task: j.task, Attempt: attempt, Action: actionRestartRebased,
Reason: fmt.Sprintf("after a restart the provider reports age %v; launched moved back by %v, stop time by %v",
- age, time.Duration(T(j.launchedT)-launched), time.Duration(T(j.stopT)-stop)),
+ age, launchedBy, stopBy),
At: c.store.Clock().Now()})
})
+ if err == nil && moved {
+ c.logRebased(attempt, age, launchedBy, stopBy)
+ }
+ return err
}
// proveRefless issues proof for abandoned, stop-requested jobs with no VM
diff --git a/internal/isolatedjob/fake_test.go b/internal/isolatedjob/fake_test.go
index 47c45f39..d29ee974 100644
--- a/internal/isolatedjob/fake_test.go
+++ b/internal/isolatedjob/fake_test.go
@@ -125,8 +125,27 @@ func (l *lateVisible) Get(ctx context.Context, ref isolatedjob.Ref) (isolatedjob
func TestFakeContractLateVisibility(t *testing.T) {
f, _ := newFake(t)
lv := &lateVisible{Fake: f, seen: map[isolatedjob.Ref]bool{}, hidden: map[isolatedjob.Ref]bool{}}
+ var logMu sync.Mutex
+ var logged []string
isolatedjobtest.Contract(t, isolatedjobtest.Harness{Runner: lv, Image: fakeDigest, Settle: settleFake(f),
- Visibility: 200 * time.Millisecond})
+ Visibility: 200 * time.Millisecond, Logf: func(format string, args ...any) {
+ logMu.Lock()
+ defer logMu.Unlock()
+ logged = append(logged, fmt.Sprintf(format, args...))
+ }})
+ // The live run reads these delays from the log (Task 17 review, round 1).
+ var visible, listed int
+ for _, l := range logged {
+ switch {
+ case strings.HasPrefix(l, "visibility: Get showed new VM ") && strings.HasSuffix(l, "(2 reads)"):
+ visible++
+ case strings.HasPrefix(l, "list lag: List showed running VM "):
+ listed++
+ }
+ }
+ if visible == 0 || listed == 0 {
+ t.Errorf("measured delays logged: %d visibility after a miss, %d list lag; want both; log %q", visible, listed, logged)
+ }
lv.mu.Lock()
defer lv.mu.Unlock()
if lv.misses == 0 {
diff --git a/internal/isolatedjob/isolatedjobtest/contract.go b/internal/isolatedjob/isolatedjobtest/contract.go
index 949419b3..2ab99b15 100644
--- a/internal/isolatedjob/isolatedjobtest/contract.go
+++ b/internal/isolatedjob/isolatedjobtest/contract.go
@@ -35,6 +35,20 @@ type Harness struct {
// request fails the run instead of hanging it. Zero means
// DefaultCallTimeout.
CallTimeout time.Duration
+ // Logf, when set, gets the measured delays (how long Get took to show
+ // each new VM, and List to show a running one) in place of t.Logf. A
+ // live run leaves it nil, so they appear with go test -v.
+ Logf func(format string, args ...any)
+}
+
+// logf writes one measurement through h.Logf, or t.Logf when it is nil.
+func (h Harness) logf(t *testing.T, format string, args ...any) {
+ t.Helper()
+ if h.Logf != nil {
+ h.Logf(format, args...)
+ return
+ }
+ t.Logf(format, args...)
}
// DefaultCallTimeout bounds each Runner call when the Harness sets no
@@ -280,11 +294,13 @@ func Contract(t *testing.T, h Harness) {
// test costs little.
func appear(t *testing.T, h Harness, ref isolatedjob.Ref) {
t.Helper()
- deadline := time.Now().Add(h.Visibility)
+ start := time.Now()
+ deadline := start.Add(h.Visibility)
gap := min(time.Second, max(h.Visibility/20, time.Millisecond))
- for {
+ for reads := 1; ; reads++ {
_, err := h.get(ref)
if err == nil {
+ h.logf(t, "visibility: Get showed new VM %s %v after Launch returned (%d reads)", ref, time.Since(start), reads)
return
}
if !errors.Is(err, isolatedjob.ErrNotFound) && !errors.Is(err, isolatedjob.ErrThrottled) {
@@ -316,8 +332,9 @@ func listRefs(t *testing.T, h Harness) []isolatedjob.Ref {
// overruns ListLag by at most that; zero ListLag is one List.
func listUntil(t *testing.T, h Harness, ref isolatedjob.Ref) []isolatedjob.Ref {
t.Helper()
- deadline := time.Now().Add(h.ListLag)
- for {
+ start := time.Now()
+ deadline := start.Add(h.ListLag)
+ for lists := 1; ; lists++ {
jobs, err := h.list()
if err != nil {
t.Fatalf("List = %v", err)
@@ -329,6 +346,7 @@ func listUntil(t *testing.T, h Harness, ref isolatedjob.Ref) []isolatedjob.Ref {
found = found || (j.Ref == ref && j.State.Live())
}
if found {
+ h.logf(t, "list lag: List showed running VM %s %v after Get did (%d lists)", ref, time.Since(start), lists)
return refs
}
if !time.Now().Before(deadline) {