Apply Astra's round 3 fixes to the hosted runners slice 1a plan
Elapsed time across any restart is untrusted unless the provider establishes it; resume operations persist per (attempt, operation); replay re-checks every launch gate; incomplete Lists skip orphan processing only, with I3 and I4 matching; alerts publish through a wrapper in the controller command; the provider guard mutation goes through a dependency-free leaf fixture. Status: approved after round 3 fixes, awaiting Paul's go to build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+43
−31
docs/superpowers/plans/2026-11-19-hosted-runners-slice-1a.md+43 −31
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/design-hosted-runners: Type Size Avail | ext4 96G 86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type Size Avail | ext4 96G 86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.3s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.1s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.9s
ci-box: clone deepened in 2.9s
ci-box: file times set from content: 2679 files, 174 directories
ci-box: ready in 16.2s
=== 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.243s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
1.1s
+ go list -export -test -tags testbuild -f ./...
0.5s
+ go list -export -test -tags browser,testbuild -f ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
0.2s
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 1m18.51s 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.009s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.01s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 38.45, cpu waiting 20.28%, memory waiting 0.00%, io waiting 0.75%
--- 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 1m19.995s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m18.487s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.49s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 38.45, cpu waiting 20.28%, memory waiting 0.00%, io waiting 0.75%
--- 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 1m21.473s 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 1m19.453s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.26s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.59s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.6s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 39.37, cpu waiting 19.85%, memory waiting 0.00%, io waiting 0.73%
--- 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 1m16.286s 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 1m14.777s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.69s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.65s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 38.45, cpu waiting 20.50%, memory waiting 0.00%, io waiting 0.78%
--- 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 1m33.949s 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 1m32.368s amadan.net/oficina/equipo/internal/headless
receipt: slow test 57.97s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.54s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.64s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.49s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.73s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 35.30, cpu waiting 16.21%, memory waiting 0.00%, io waiting 0.57%
--- 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 3m4.375s 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 3m2.45s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m42.65s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.49s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.26s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.25s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 9.63, cpu waiting 3.77%, memory waiting 0.00%, io waiting 0.12%
--- 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 280ms 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 1m58.418s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.73s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.88s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.47s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.36s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 0.82, cpu waiting 0.00%, memory waiting 0.00%, io waiting 2.70%
--- 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 294ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m6.756s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.72s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.01s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.77s amadan.net/oficina/equipo/internal/thintest TestContractTokenConnection
machine: 32 CPUs, load 0.82, cpu waiting 0.00%, memory waiting 0.00%, io waiting 2.70%
--- 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 4m15.647s, over the 45s its record on line 44 allows; reported only, timing fails on CI
receipt: test step 4m28.036s 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 4m15.647s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.75s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.66s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.6s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.36s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.07, cpu waiting 0.92%, memory waiting 0.00%, io waiting 0.02%
--- 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.522s 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.462s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.43s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 37.91, cpu waiting 20.12%, memory waiting 0.00%, io waiting 1.29%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 46.989s 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 45.14s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.17s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.61s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.56s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 37.91, cpu waiting 20.12%, memory waiting 0.00%, io waiting 1.29%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 34.249s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 33.455s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.16s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.95s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 29.51, cpu waiting 13.25%, memory waiting 0.00%, io waiting 1.63%
--- 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.6%, load 25.99
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 1m3.514s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m1.673s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.07s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.06s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.66s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.45s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfiguration
machine: 32 CPUs, load 35.30, cpu waiting 16.73%, memory waiting 0.00%, io waiting 0.59%
--- 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.6%, load 25.99
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 249ms 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.593s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.02s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.01s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 18.98s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 18.96s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 18.87s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
machine: 32 CPUs, load 25.99, cpu waiting 10.99%, memory waiting 0.00%, io waiting 1.74%
--- 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.6%, load 25.99
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 1m14.355s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m3.147s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.94s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.92s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.88s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.85s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 30.42, cpu waiting 13.76%, memory waiting 0.00%, io waiting 0.48%
--- 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.6%, load 25.99
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 356ms 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.891s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.23s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.15s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.13s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 21.36s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 21.32s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 25.99, cpu waiting 11.81%, memory waiting 0.00%, io waiting 1.68%
--- 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 29.1%, load 25.99
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 614ms 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 50.134s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.53s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 3.48s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 1.54s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.44s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.23s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 29.51, cpu waiting 11.81%, memory waiting 0.00%, io waiting 1.68%
--- 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 29.1%, load 25.99
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 20.611s, 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 10.188s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 10.085s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 41.767s, 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 38.876s, over the 15s its record on line 40 allows; reported only, timing fails on CI
receipt: test step 2m14.029s against a 60s target (the gate's other steps are not in this figure)
receipt: 11 packages ran, 49 cached, 18 without tests, 0 failed
receipt: slow package 52.441s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 52.119s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 41.767s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 38.876s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 35.758s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 21.29s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.14s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 14.99s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 12.05s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 9.38s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
machine: 32 CPUs, load 12.84, cpu waiting 5.08%, memory waiting 0.00%, io waiting 0.17%
--- 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 1m21.313s 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 1m19.959s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.3s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.06s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.41s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 39.37, cpu waiting 19.39%, memory waiting 0.00%, io waiting 0.70%
--- 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 1m29.428s 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 1m27.884s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.07s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.84s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.9s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.88s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.56s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 37.42, cpu waiting 17.26%, memory waiting 0.00%, io waiting 0.61%
--- 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 1m39.288s 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 1m37.726s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.52s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.93s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.93s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 10.31s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.05s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 32.72, cpu waiting 15.17%, memory waiting 0.00%, io waiting 0.54%
--- 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-19T14:20:08.035Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T14:20:08.035Z level=INFO msg="startup phase done" phase=state_lock took=58µs
time=2026-11-19T14:20:08.035Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T14:20:08.035Z level=INFO msg="startup phase done" phase=claim_roots took=80µs
time=2026-11-19T14:20:08.035Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T14:20:08.070Z level=INFO msg="startup phase done" phase=sweep took=35.179ms
time=2026-11-19T14:20:08.070Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T14:20:08.070Z level=INFO msg="startup phase done" phase=credentials took=100µs
time=2026-11-19T14:20:08.070Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T14:20:08.149Z level=INFO msg="startup phase done" phase=open_state took=78.141ms
time=2026-11-19T14:20:08.149Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T14:20:08.151Z level=INFO msg=connecting host=127.0.0.1:37263 protocol=26
time=2026-11-19T14:20:08.153Z level=INFO msg=connected host=127.0.0.1:37263 took=2.256ms
time=2026-11-19T14:20:08.153Z level=INFO msg="capabilities gathering"
time=2026-11-19T14:20:08.154Z level=INFO msg="capabilities gathered" took=764µs tags=linux,claude,go
time=2026-11-19T14:20:08.155Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T14:20:08.160Z level=INFO msg=welcome protocol=26 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-19T14:20:38.444Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T14:20:38.444Z level=INFO msg="startup phase done" phase=state_lock took=274µs
time=2026-11-19T14:20:38.444Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T14:20:38.444Z level=INFO msg="startup phase done" phase=claim_roots took=222µs
time=2026-11-19T14:20:38.444Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T14:20:38.474Z level=INFO msg="startup phase done" phase=sweep took=29.418ms
time=2026-11-19T14:20:38.474Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T14:20:38.474Z level=INFO msg="startup phase done" phase=credentials took=201µs
time=2026-11-19T14:20:38.474Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T14:20:38.514Z level=INFO msg="startup phase done" phase=open_state took=39.982ms
time=2026-11-19T14:20:38.515Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T14:20:38.516Z level=INFO msg=connecting host=127.0.0.1:36091 protocol=26
time=2026-11-19T14:20:38.517Z level=INFO msg=connected host=127.0.0.1:36091 took=936µs
time=2026-11-19T14:20:38.517Z level=INFO msg="capabilities gathering"
time=2026-11-19T14:20:38.517Z level=INFO msg="capabilities gathered" took=454µs tags=linux,claude,go
time=2026-11-19T14:20:38.518Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T14:20:38.524Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T14:20:39.530Z 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.82s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m25.521s
FAIL amadan.net/oficina/equipo/internal/headless 85.801s
receipt: test step 1m26.862s 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 1m25.521s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.09s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.17s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.27s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.2s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.91s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
rastrillo: budget test: go test failed
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 36917917666aff859f2232b4b5ddb2db7f53d419 1.83s 37.42
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 36917917666aff859f2232b4b5ddb2db7f53d419 5.82s 37.42
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 32.72, cpu waiting 15.17%, memory waiting 0.00%, io waiting 0.54%
--- 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/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest
receipt: test step 285ms 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.647s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.65s 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 233ms 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.95s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.95s 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|TestBrowserCoordinatorQueue|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|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackStarCentre)$' ./internal/thintest
receipt: test step 272ms 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 3m2.437s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.69s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.83s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.6s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 6.20, cpu waiting 1.35%, memory waiting 0.00%, io waiting 2.69%
--- 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 (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.16s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.34s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.37s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.66s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.77s
+ 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 (53s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.94s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.48s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.03s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.17s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (21s)
ok ./internal/headless TestMixedVersions 19.96s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.79s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 40.16, cpu waiting 20.59%, memory waiting 0.00%, io waiting 1.16%
--- 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.08s 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.1s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 205ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 139ms 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.03s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.7s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment
receipt: test step 3.053s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.701s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceOpenCodeBinaryAfterAttestation
machine: 32 CPUs, load 14.38, cpu waiting 4.20%, memory waiting 0.00%, io waiting 2.35%
--- 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.6%, load 25.99
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2393 text files, 2747 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: 87 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok amadan.net/oficina/equipo/internal/equipo 2.438s
machine: 32 CPUs, load 36.68, cpu waiting 17.99%, memory waiting 0.00%, io waiting 1.42%
--- 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.6%, load 25.99
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 29.51, cpu waiting 11.81%, memory waiting 0.00%, io waiting 1.68%
--- 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.6%, load 25.99
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 29.51, cpu waiting 15.78%, memory waiting 0.00%, io waiting 1.52%
--- 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.6%, load 25.99
shard 28: make gitleaks
[90m2:19PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m2:20PM[0m [32mINF[0m [1m1007 commits scanned.[0m
[90m2:20PM[0m [32mINF[0m [1mscanned ~59728963 bytes (59.73 MB) in 12.4s[0m
[90m2:20PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 36.68, cpu waiting 17.99%, memory waiting 0.00%, io waiting 1.42%
=== 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.141ms, worst 1.153ms, budget 150ms
perf: GET /api/runner/protocol: median 74µs, worst 93µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 622µs, worst 714µs, budget 150ms
perf: GET /api/v1/accounts: median 438µs, worst 506µs, budget 150ms
perf: GET /api/v1/auth/devices: median 470µs, worst 529µs, budget 150ms
perf: GET /api/v1/budgets: median 485µs, worst 533µs, budget 150ms
perf: GET /api/v1/capabilities: median 256µs, worst 279µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.324ms, worst 1.406ms, budget 150ms
perf: GET /api/v1/connections: median 592µs, worst 643µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 547µs, worst 583µs, budget 150ms
perf: GET /api/v1/conversation: median 955µs, worst 1.062ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.561ms, worst 1.622ms, budget 150ms
perf: GET /api/v1/coordinator: median 2.012ms, worst 2.125ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 475µs, worst 519µs, budget 150ms
perf: GET /api/v1/journey: median 8.18ms, worst 8.444ms, budget 150ms
perf: GET /api/v1/me: median 434µs, worst 500µs, budget 150ms
perf: GET /api/v1/me/settings: median 508µs, worst 565µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.498ms, worst 7.754ms, budget 150ms
perf: GET /api/v1/notifications: median 1.69ms, worst 1.751ms, budget 150ms
perf: GET /api/v1/onboarding: median 380µs, worst 410µs, budget 150ms
perf: GET /api/v1/people: median 450µs, worst 506µs, budget 150ms
perf: GET /api/v1/playbooks: median 607µs, worst 646µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 537µs, worst 571µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 859µs, worst 881µs, budget 150ms
perf: GET /api/v1/preferences: median 816µs, worst 867µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 462µs, worst 490µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 584µs, worst 645µs, budget 150ms
perf: GET /api/v1/roster: median 468µs, worst 534µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 427µs, worst 443µs, budget 150ms
perf: GET /api/v1/specialists: median 8.113ms, worst 8.333ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.147ms, worst 8.225ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 874µs, worst 941µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.166ms, worst 1.211ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 727µs, worst 802µs, budget 150ms
perf: GET /api/v1/teams: median 465µs, worst 474µs, budget 150ms
perf: GET /api/v1/templates: median 606µs, worst 666µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 461µs, worst 470µs, budget 150ms
perf: GET /auth/callback: median 76µs, worst 106µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.192ms, worst 3.252ms, budget 150ms
perf: GET /auth/verify: median 66µs, worst 96µs, budget 150ms
perf: GET /connections: median 3.451ms, worst 3.574ms, budget 150ms
perf: GET /conversation: median 7.502ms, worst 10.346ms, budget 150ms
perf: GET /conversation/connections: median 236µs, worst 287µs, budget 150ms
perf: GET /conversation/notebook: median 259µs, worst 268µs, budget 150ms
perf: GET /conversation/settings: median 3.943ms, worst 4.027ms, budget 150ms
perf: GET /conversation/settings/connections: median 5.974ms, worst 6.122ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.198ms, worst 6.305ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.428ms, worst 3.534ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 3.957ms, worst 4.043ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.244ms, worst 4.367ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.183ms, worst 4.265ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.351ms, worst 4.988ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.979ms, worst 4.048ms, budget 150ms
perf: GET /housekeeping: median 3.714ms, worst 3.864ms, budget 150ms
perf: GET /invites/new: median 587µs, worst 649µs, budget 150ms
perf: GET /invites/{id}: median 642µs, worst 700µs, budget 150ms
perf: GET /jobs: median 3.244ms, worst 3.299ms, budget 150ms
perf: GET /jobs/{id}: median 4.509ms, worst 4.594ms, budget 150ms
perf: GET /journey: median 10.367ms, worst 10.657ms, budget 150ms
perf: GET /nav/rail: median 2.795ms, worst 2.942ms, budget 150ms
perf: GET /needs-you: median 10.118ms, worst 10.487ms, budget 150ms
perf: GET /onboarding: median 4.124ms, worst 4.353ms, budget 150ms
perf: GET /people: median 3.388ms, worst 3.543ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.582ms, worst 4.69ms, budget 150ms
perf: GET /playbooks: median 4.129ms, worst 4.228ms, budget 150ms
perf: GET /playbooks/new: median 4.226ms, worst 4.41ms, budget 150ms
perf: GET /playbooks/{id}: median 4.596ms, worst 4.721ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.578ms, worst 4.702ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.649ms, worst 3.919ms, budget 150ms
perf: GET /preferences: median 4.179ms, worst 4.263ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.968ms, worst 4.122ms, budget 150ms
perf: GET /projects: median 5.133ms, worst 5.419ms, budget 150ms
perf: GET /projects/accounts: median 3.628ms, worst 5.131ms, budget 150ms
perf: GET /projects/new: median 3.649ms, worst 3.747ms, budget 150ms
perf: GET /projects/{id}: median 11.677ms, worst 11.862ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.726ms, worst 3.821ms, budget 150ms
perf: GET /runners/enrol: median 4.299ms, worst 4.401ms, budget 150ms
perf: GET /settings: median 3.454ms, worst 3.623ms, budget 150ms
perf: GET /settings/coordinator: median 5.393ms, worst 5.59ms, budget 150ms
perf: GET /settings/devices: median 3.201ms, worst 3.33ms, budget 150ms
perf: GET /settings/recovery: median 3.37ms, worst 3.413ms, budget 150ms
perf: GET /settings/recovery/release: median 3.426ms, worst 3.54ms, budget 150ms
perf: GET /settings/thinking: median 254µs, worst 284µs, budget 150ms
perf: GET /signin: median 311µs, worst 329µs, budget 150ms
perf: GET /specialists/new: median 3.392ms, worst 5.261ms, budget 150ms
perf: GET /specialists/{key}: median 11.222ms, worst 11.448ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.652ms, worst 3.719ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.677ms, worst 3.86ms, budget 150ms
perf: GET /tasks: median 4.922ms, worst 5.262ms, budget 150ms
perf: GET /tasks/new: median 3.142ms, worst 3.373ms, budget 150ms
perf: GET /tasks/{id}: median 5.522ms, worst 5.64ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.844ms, worst 5.215ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.552ms, worst 4.662ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.27ms, worst 8.168ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.364ms, worst 5.561ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.791ms, worst 4.947ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.265ms, worst 4.349ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.105ms, worst 8.314ms, budget 150ms
perf: GET /team/{specialist}: median 4.087ms, worst 4.149ms, budget 150ms
perf: GET /teams: median 9.956ms, worst 10.056ms, budget 150ms
perf: GET /templates: median 3.259ms, worst 3.366ms, budget 150ms
perf: GET /usage: median 4.139ms, worst 6.202ms, budget 150ms
perf: GET /work: median 3.098ms, worst 3.259ms, budget 150ms
perf: cold boot: median 253ms of [252.851053ms 253.417054ms 254.860498ms], budget 500ms
receipt: test step 29.663s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 83 without tests, 0 failed
receipt: slow package 8.752s amadan.net/oficina/equipo/internal/equipotest
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 package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 7.94s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 810ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.20 GiB in 19349 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27329 files
diff --git a/docs/superpowers/plans/2026-11-19-hosted-runners-slice-1a.md b/docs/superpowers/plans/2026-11-19-hosted-runners-slice-1a.md| index 41e2e8bf..c1c87b96 100644 |
| --- a/docs/superpowers/plans/2026-11-19-hosted-runners-slice-1a.md |
| +++ b/docs/superpowers/plans/2026-11-19-hosted-runners-slice-1a.md |
| @@ -1,4 +1,6 @@ |
| -# Hosted runners, slice 1a: adapter and controller core (plan, 2026-11-19, revision 3) |
| +# Hosted runners, slice 1a: adapter and controller core (plan, 2026-11-19, revision 4) |
| + |
| +**Status:** Reviewed by Astra (3 rounds), approved after round-3 fixes 2026-11-19; awaiting Paul's go to build. |
| > **For agentic workers:** REQUIRED SUB-SKILL: use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task by task. Steps use checkbox (`- [ ]`) syntax. Steps marked **HUMAN** are not agent work: stop and ask Paul. |
| @@ -10,7 +12,7 @@ |
| **Spec:** `docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md` (approved 2026-11-19). §2, §3, §10 and §14 drive this plan; read them with it. |
| -**Baseline:** `design-hosted-runners` at `bb8e73b6`. Tasks 1 to 17, in order; each builds and tests only with earlier tasks' code. Revision 3 narrows revision 2 to slice 1a (controller decision after Astra round 2) and fixes the round 2 findings that stay here. |
| +**Baseline:** `design-hosted-runners` at `bb8e73b6`. Tasks 1 to 17, in order; each builds and tests only with earlier tasks' code. Revision 3 narrowed the plan to slice 1a after Astra round 2; revision 4 applies Astra's six round-3 fixes. |
| ## Global constraints |
| @@ -18,7 +20,8 @@ |
| - Launch request shape, sizes, region and the 28,800 s limit: spec §3 and §2, enforced by Task 7. |
| - Controller deadlines, grace periods and timeouts use controller time (Task 9), never the wall clock. |
| - A provider state the adapter does not recognise is `unknown`: neither live nor terminal, never stop proof. |
| -- Reaper rules (60 s pass, incomplete `List` skips, intents replayed first, orphans stopped after 10 min once ownership is rechecked): spec §10. |
| +- Reaper rules (60 s pass, intents replayed first, orphans stopped after 10 min once ownership is rechecked): spec §10. An incomplete `List` skips orphan processing only; deadlines for recorded jobs are enforced regardless (Task 13). |
| +- Elapsed time across a controller restart is untrusted unless the provider establishes it (Tasks 9, 11, 13). |
| - Pause barrier and resume epoch rules: spec §3. Resume prepares its new epoch durably before calling the provider (Task 12). |
| - The controller refuses launches unless `EQUIPO_HOSTED_ENABLED=1`; get, stop and reaping work regardless. The instance client refuses construction unless `EQUIPO_HOSTED_RUNNERS=1`, and nothing in the instance calls it in this slice. |
| - Slice 1a holds no egress stack, so a launched VM has no route anywhere and cannot enrol. Launches admit only image digests in the controller's configured allowlist; slice 1b replaces that with certificates. |
| @@ -30,7 +33,7 @@ |
| ## Review focus |
| 1. A VM ends while the controller is down: `TestRestartFindsVMGone`, `TestUnknownStateIsNeverProof` (Task 11). |
| -2. The wall clock goes backwards during a run or across a restart: `TestRollbackThenElapsedTime`, `TestRestartWithUnknownDowntime` (Task 9), `TestReaperUnderRollback` (Task 13). |
| +2. The wall clock goes backwards during a run or across a restart: `TestRollbackThenElapsedTime`, `TestRestartDowntimeExceedsWallDelta` (Tasks 9, 11), `TestReaperUnderRollback` (Task 13). |
| 3. A crash or lost reply during resume: `TestResumeCrashBeforeProvider`, `TestResumeCrashAfterProvider`, `TestResumeLostReply` (Task 12). |
| 4. Two retries of one launch race: `TestConcurrentLaunchSameAttempt` (Task 10). |
| 5. A plausible VM found by `List` that a pending intent will claim: `TestReapReplaysIntentFirst`, `TestReapRechecksOwnership` (Task 13). |
| @@ -139,13 +142,13 @@ func Contract(t *testing.T, h Harness) |
| ### Task 7: AWS adapter and the provider guard |
| -**Files:** Create `internal/isolatedjob/awsjob/{runner.go,network.go,errors.go,alerts.go,runner_test.go,network_test.go,live_test.go}`, `internal/isolatedjob/providerguard_test.go`. Modify `go.mod`, `go.sum`. |
| +**Files:** Create `internal/isolatedjob/awsjob/{runner.go,network.go,errors.go,publish.go,runner_test.go,network_test.go,live_test.go}`, `internal/isolatedjob/providerguard_test.go`, `internal/isolatedjob/guardfixture/doc.go` (an empty, dependency-free leaf package that exists only as the guard's mutation target). Modify `go.mod`, `go.sum`. |
| -**Interfaces:** `New(cfg Config, api API) (*Runner, error)` with `Config{Region, ConnectorID, VPCID, VMSubnetID, VMSecurityGroupID string; Images map[isolatedjob.ImageDigest]string; Egress []netip.AddrPort}`; `API` is a narrow interface in SDK types (or SigV4 calls, per Task 4); `SNSAlerter` implements Task 9's `Alerter` (it compiles against an interface declared here and satisfied structurally, so Task 9 need not exist yet). |
| +**Interfaces:** `New(cfg Config, api API) (*Runner, error)` with `Config{Region, ConnectorID, VPCID, VMSubnetID, VMSecurityGroupID string; Images map[isolatedjob.ImageDigest]string; Egress []netip.AddrPort}`; `API` is a narrow interface in SDK types (or SigV4 calls, per Task 4); `SNSPublisher{TopicARN string}` with `Publish(ctx context.Context, kind, detail string) error`. It knows nothing of `hostedctl`; Task 15's command wraps it as the controller's `Alerter`. |
| -- [ ] **Red:** `TestRunRequestShape` (every spec §3 field: `NO_INGRESS`, connector-only egress, no role, no idle policy, maximum duration, x86_64, `additionalOsCapabilities: ["ALL"]`, memory by size, client token = AttemptID, payload byte for byte, image version from the map; an unmapped digest gives `ErrInvalid`). `TestStateMapping` (an unfamiliar state gives `unknown`, raw value in `Reason`). `TestProviderAge` (age from the response's server time minus the VM's start time; either missing gives `AgeKnown false`). `TestErrorMapping`. `TestListAllPages` (a page-two error gives `ErrIncomplete`, no jobs). `TestAuditNetwork`. `TestProviderTypesStayInAdapter`: over `go list -deps ./...`, only `internal/isolatedjob/awsjob/...` and the composition points `cmd/equipo-hosted-controller` (slice 1b adds `cmd/equipo-vm-init` and `cmd/equipo-hosted-image`) may depend on `github.com/aws/` or `awsjob`; the allowed list itself may contain only `cmd/` paths. |
| +- [ ] **Red:** `TestRunRequestShape` (every spec §3 field: `NO_INGRESS`, connector-only egress, no role, no idle policy, maximum duration, x86_64, `additionalOsCapabilities: ["ALL"]`, memory by size, client token = AttemptID, payload byte for byte, image version from the map; an unmapped digest gives `ErrInvalid`). `TestStateMapping` (an unfamiliar state gives `unknown`, raw value in `Reason`). `TestProviderAge` (age from the response's server time minus the VM's start time; either missing gives `AgeKnown false`). `TestErrorMapping`. `TestListAllPages` (a page-two error gives `ErrIncomplete`, no jobs). `TestAuditNetwork`. `TestProviderTypesStayInAdapter`: over `go list -deps ./...`, only `internal/isolatedjob/awsjob/...` and the composition points `cmd/equipo-hosted-controller` (slice 1b adds `cmd/equipo-vm-init` and `cmd/equipo-hosted-image`) may depend on `github.com/aws/` or `awsjob`; the allowed list itself may contain only `cmd/` paths. Its failure message names each offending package. |
| - [ ] **Green:** `go test ./internal/isolatedjob/... -count=1`; `make build vet govulncheck`. |
| -- [ ] **Mutations:** set a role, an idle policy, or drop the capabilities field (`TestRunRequestShape`); map an unfamiliar state to `failed` (`TestStateMapping`); take age from the local clock (`TestProviderAge`); return partial pages (`TestListAllPages`); import `awsjob` from `internal/isolatedjob` (guard); add an `internal/` path to the allowed list (guard). |
| +- [ ] **Mutations:** set a role, an idle policy, or drop the capabilities field (`TestRunRequestShape`); map an unfamiliar state to `failed` (`TestStateMapping`); take age from the local clock (`TestProviderAge`); return partial pages (`TestListAllPages`). Guard: add `import _ "github.com/aws/aws-sdk-go-v2/aws"` to `guardfixture`; `go build ./internal/isolatedjob/guardfixture` succeeds, and `TestProviderTypesStayInAdapter` then fails with its assertion naming `guardfixture` (a compile error does not count). Separately, add `internal/isolatedjob/guardfixture` to the allowed list; the `cmd/`-only assertion fails. |
| - [ ] **Commit:** `isolatedjob: AWS MicroVM adapter and provider guard`. |
| ## Phase C: the controller (spec §2, §3, §10) |
| @@ -189,7 +192,7 @@ func (*CtlClock) Now() T |
| func Open(ctx context.Context, path string, c isolatedjob.Clock) (*Store, error) |
| func (*Store) Tx(ctx context.Context, fn func(*sql.Tx) error) error |
| func (*Store) Clock() *CtlClock |
| -func (*Store) DowntimeUnknown() bool // set by Open after a rollback across restart |
| +func (*Store) Restarted() bool // true after Open finds prior state: elapsed time across the restart is untrusted |
| func (*Store) Remember(...) // hostedwire.NonceStore |
| func appendAudit(tx *sql.Tx, a Audit) error // Audit{Actor hostedwire.KeyID; Account, Task, Attempt, Action, Reason string; At T} |
| type Alert struct{ Kind, Detail string; At T } |
| @@ -201,15 +204,14 @@ func New(cfg Config, d Deps) (*Controller, error) // refuses a nil dependency |
| Controller time: |
| - While running, `T` advances only with `Mono()`. Every reaper pass checkpoints `(T, wall)`. |
| -- On `Open`, if the wall clock is at or after the checkpoint, `T0 = T + (wall now − checkpoint wall)`. Downtime is credited, so deadlines and orphan grace can only arrive earlier. |
| -- If the wall clock is behind the checkpoint, downtime is unknown. `T0 = checkpoint T`, `DowntimeUnknown()` is true, and a `clock_rollback` alert is raised. Task 11 and Task 13 then assume the worst case (below), so unknown downtime never lengthens a deadline or a grace period. |
| +- On `Open`, `T0 = T + max(0, wall now − checkpoint wall)`, so `T` never decreases. A wall clock behind the checkpoint also raises a `clock_rollback` alert. The wall delta is never trusted as the real downtime, because the clock can move backwards during downtime and still be ahead of the checkpoint. After any restart, `Restarted()` is true. Task 11 then re-bases existing jobs only from trusted provider age, and stops jobs without it. Task 13 treats the grace of existing orphans as expired. |
| - Provider-reported age (Task 7) is trusted only when one provider response carries both the provider's server time and the VM's start time. It never uses this host's clock. |
| -Tables: `jobs` (attempt_id primary key; launch_id unique; vm_ref unique nullable; task_id, account_id, actor_key, purpose, replaces_attempt; spec_json and spec_sha256, immutable by trigger; state; launched_t, deadline_t, drain_t, stop_t; epoch, resume_op_id, resume_epoch_prepared, resume_prepared_t; pause_generation, pause_started_t, pause_quiescent, pause_cancelled; stop_requested_t, stop_reason, stop_proof_json; revision), `unmatched_vms` (vm_ref, first_seen_t), `nonces`, `audit`, `clock`. |
| +Tables: `jobs` (attempt_id primary key; launch_id unique; vm_ref unique nullable; task_id, account_id, actor_key, purpose, replaces_attempt; spec_json and spec_sha256, immutable by trigger; state; launched_t, deadline_t, drain_t, stop_t; epoch; pause_generation, pause_started_t, pause_quiescent, pause_cancelled; stop_requested_t, stop_reason, stop_proof_json; revision), `resume_ops` (primary key (attempt_id, operation_id); status `pending`, `done` or `failed`; prepared_epoch, result_epoch, prepared_t, completed_t; kept for the attempt's lifetime), `unmatched_vms` (vm_ref, first_seen_t), `nonces`, `audit`, `clock`. |
| -- [ ] **Red:** `TestStoreMigratesTwice`, `TestStoreRefusesNewerSchema`, `TestAuditRollsBackWithTx`, `TestSpecImmutable`. `TestRollbackThenElapsedTime`: the wall clock goes back 1 h mid-run, Mono advances 10 min, and `Now` advances exactly 10 min. `TestRestartCreditsDowntime`: the wall clock moves forward 30 min across a restart and `T` advances 30 min. `TestRestartWithUnknownDowntime`: the wall clock goes back across a restart; `T` does not decrease, `DowntimeUnknown` is true, and one alert is raised. |
| +- [ ] **Red:** `TestStoreMigratesTwice`, `TestStoreRefusesNewerSchema`, `TestAuditRollsBackWithTx`, `TestSpecImmutable`. `TestRollbackThenElapsedTime`: the wall clock goes back 1 h mid-run, Mono advances 10 min, and `Now` advances exactly 10 min. `TestRestartMarksElapsedUntrusted`: a restart with the wall clock 30 min ahead gives `T` +30 min and `Restarted()` true. `TestRestartWithRollback`: the wall clock behind the checkpoint gives `T` unchanged, `Restarted()` true and one alert. |
| - [ ] **Green:** `go test ./internal/hostedctl -run 'TestStore|TestAudit|TestSpecImmutable|TestRollback|TestRestart' -count=1`. |
| -- [ ] **Mutations:** derive `T` from the wall clock (`TestRollbackThenElapsedTime`); credit no downtime on a forward restart (`TestRestartCreditsDowntime`); drop the trigger (`TestSpecImmutable`). |
| +- [ ] **Mutations:** derive `T` from the wall clock (`TestRollbackThenElapsedTime`); leave `Restarted()` false when the wall clock moved forward (`TestRestartMarksElapsedUntrusted`); drop the trigger (`TestSpecImmutable`). |
| - [ ] **Commit:** `hostedctl: store, controller time and controller skeleton`. |
| ### Task 10: Launch with intents and replay |
| @@ -229,9 +231,11 @@ var ErrDisabled, ErrImageNotAllowed, ErrNetworkAudit, ErrReplacementLive error |
| `Launch` order: refuse when the flag is off; require `RoleInstance`; require the image in `Config.Images`; require a passing audit at most 5 min old; require stop proof for `Replaces`; transaction 1 saves the intent (exact spec, deadlines) or returns the matching one (a different request hash gives `ErrConflict`); `Runner.Launch`; transaction 2 saves the Ref and `starting`. `ErrThrottled` leaves state `waiting` for `Replay`. |
| -- [ ] **Red:** `TestLaunchSavesIntentBeforeProvider`, `TestLaunchIdempotentOnAttempt`, `TestLaunchConflictOnChangedRequest`, `TestConcurrentLaunchSameAttempt` (20 goroutines: one intent, one VM), `TestCrashBetweenLaunchAndSave` (lost reply, reopen, `Replay`: one VM, Ref saved), `TestLaunchRefusals` (table: flag off, operator role, image not allowed, stale audit, failing audit, live replaced attempt), `TestThrottleWaitsThenReplays`, `TestDeadlines` (8 h gives 7 h 15 and 7 h 50; 15 min gives 0 and 5 min). |
| +`Replay` re-checks the gates before every call that could create a VM (an intent with no Ref): the flag on, the image still allowed, a passing audit at most 5 min old, no stop or cancellation requested, and `stop_t` (from the intent's time) not passed. If a gate fails, `Replay` makes no provider call and keeps the intent for reconciliation. A transient failure (flag, image, audit) leaves it `waiting`. Cancellation or a passed `stop_t` marks it `abandoned`, never replayed again. Any VM that an earlier lost reply created for it then shows up as an orphan and is reaped (Task 13). |
| + |
| +- [ ] **Red:** `TestLaunchSavesIntentBeforeProvider`, `TestLaunchIdempotentOnAttempt`, `TestLaunchConflictOnChangedRequest`, `TestConcurrentLaunchSameAttempt` (20 goroutines: one intent, one VM), `TestCrashBetweenLaunchAndSave` (lost reply, reopen, `Replay`: one VM, Ref saved), `TestLaunchRefusals` (table: flag off, operator role, image not allowed, stale audit, failing audit, live replaced attempt), `TestThrottleWaitsThenReplays`, `TestThrottleThenRefusal` (table: after a throttle, flag off, image removed, stale audit, failing audit, stop requested, `stop_t` passed; each gives no provider call and the intent kept, `waiting` or `abandoned` as above), `TestDeadlines` (8 h gives 7 h 15 and 7 h 50; 15 min gives 0 and 5 min). |
| - [ ] **Green:** `go test ./internal/hostedctl -run 'TestLaunch|TestConcurrentLaunch|TestCrashBetween|TestThrottle|TestDeadlines' -count=1`. |
| -- [ ] **Mutations:** save the intent after the provider call (`TestLaunchSavesIntentBeforeProvider`); skip the image check or the Replaces check (`TestLaunchRefusals`). |
| +- [ ] **Mutations:** save the intent after the provider call (`TestLaunchSavesIntentBeforeProvider`); skip the image check or the Replaces check (`TestLaunchRefusals`); replay without re-checking the gates (`TestThrottleThenRefusal`). |
| - [ ] **Commit:** `hostedctl: launch intents and replay`. |
| ### Task 11: Get, stop, stop proof and restart reconciliation |
| @@ -242,13 +246,13 @@ var ErrDisabled, ErrImageNotAllowed, ErrNetworkAudit, ErrReplacementLive error |
| Stop records `stop_requested_t`, then calls `Runner.Stop`, then `Runner.Get`. Proof needs a terminal state, or `ErrNotFound` after the request. `unknown` gives `ErrStateUnknown` and no proof. |
| -`Refresh` reconciles every live job with `Get`. After a restart it re-bases each live job conservatively: |
| -- With a trusted provider age, `launched_t = min(launched_t, now − age)`. |
| -- If downtime is unknown and the age is untrusted, the elapsed time is unknown. The job is treated as past `stop_t` and stopped, with the reason `elapsed_unknown`. |
| +`Refresh` reconciles every live job with `Get`. After any restart (`Restarted()`), the elapsed time of each job that existed before the restart is untrusted: |
| +- With a trusted provider age, set `launched_t = min(launched_t, now − age)` and recompute `deadline_t`, `drain_t` and `stop_t` with `Deadlines`. |
| +- Without one, the job is stopped with the reason `elapsed_unknown`. |
| -- [ ] **Red:** `TestStopRecordsRequestBeforeProvider`, `TestStopProofNeedsTerminalState`, `TestUnknownStateIsNeverProof` (no proof; a replacement is refused), `TestLostStopReplyRetries`, `TestStopOfGoneVMSucceeds`, `TestRestartFindsVMGone`, `TestRestartUsesProviderAge` (deadlines move earlier, never later), `TestRestartStopsWhenElapsedUnknown`, `TestStopRoles` (another instance and an operator are refused). |
| +- [ ] **Red:** `TestStopRecordsRequestBeforeProvider`, `TestStopProofNeedsTerminalState`, `TestUnknownStateIsNeverProof` (no proof; a replacement is refused), `TestLostStopReplyRetries`, `TestStopOfGoneVMSucceeds`, `TestRestartFindsVMGone`, `TestRestartUsesProviderAge` (all three deadlines recomputed; earlier, never later), `TestRestartDowntimeExceedsWallDelta` (2 h real downtime but the wall clock only 10 min ahead: a job with trusted age gets deadlines from that age, a job without it is stopped, and an orphan's grace is expired), `TestRestartStopsWhenElapsedUnknown`, `TestStopRoles` (another instance and an operator are refused). |
| - [ ] **Green:** `go test ./internal/hostedctl -run 'TestStop|TestUnknownState|TestLostStop|TestRestart' -count=1`. |
| -- [ ] **Mutations:** accept `stopping` or `unknown` as proof; use `max` instead of `min` when re-basing (`TestRestartUsesProviderAge`); keep jobs whose elapsed time is unknown (`TestRestartStopsWhenElapsedUnknown`). |
| +- [ ] **Mutations:** accept `stopping` or `unknown` as proof; use `max` instead of `min` when re-basing, or skip recomputing `stop_t` (`TestRestartUsesProviderAge`); trust the wall delta for jobs without age (`TestRestartDowntimeExceedsWallDelta`); keep jobs whose elapsed time is unknown (`TestRestartStopsWhenElapsedUnknown`). |
| - [ ] **Commit:** `hostedctl: stop proof, unknown states and restart reconciliation`. |
| ### Task 12: Pause generations and prepared resume epochs |
| @@ -260,9 +264,9 @@ Stop records `stop_requested_t`, then calls `Runner.Stop`, then `Runner.Get`. Pr |
| Suspend records `suspending` before calling the provider; `Refresh` settles it from `Get`. |
| Resume runs in three steps: |
| -1. **Prepare.** One transaction records the operation ID, `resume_epoch_prepared = epoch + 1`, `resume_prepared_t` and state `resuming`. A second call with the same ID returns the committed epoch, or carries on with the pending one. A different ID while one is pending gives `ErrResumePending`. |
| +1. **Prepare.** One transaction inserts `resume_ops(attempt_id, operation_id)` as `pending` with `prepared_epoch = epoch + 1` and sets the job `resuming`. A call whose `(attempt_id, operation_id)` row is `done` returns that row's `result_epoch` with no provider call, however many later operations have completed. A `pending` row carries on with its prepared epoch. A new ID while another is pending gives `ErrResumePending`. |
| 2. **Provider.** Call `Runner.Resume`. |
| -3. **Commit.** Once `Get` reports `running`, set `epoch = resume_epoch_prepared` and clear the pending fields. |
| +3. **Commit.** Once `Get` reports `running`, one transaction sets the job's `epoch = prepared_epoch` and marks the row `done` with `result_epoch`. A terminal VM marks the row `failed`. |
| Slice 1b issues new-epoch credentials from the prepared epoch, so the VM's resume hook can complete synchronously before the commit. If the controller crashes or the provider reply is lost, `Refresh` finishes the operation from `Get`: |
| - `suspended`: call `Runner.Resume` again; |
| @@ -277,6 +281,7 @@ Slice 1b issues new-epoch credentials from the prepared epoch, so the VM's resum |
| - `TestResumePreparesEpochBeforeProvider`: the stub sees the pending epoch in the store. |
| - `TestResumeCrashBeforeProvider`, `TestResumeCrashAfterProvider` and `TestResumeLostReply`: each ends with one provider resume (or a no-op) and the epoch raised exactly once. |
| - `TestResumeRetrySameOperation`. |
| + - `TestResumeOperationsRemembered`: operation A completes, then B completes, then A is retried. There is no provider call, and A's original epoch is returned. |
| - `TestResumeOtherOperationWhilePending`. |
| - `TestResumePastDeadlineRefused`. |
| - [ ] **Green:** `go test ./internal/hostedctl -run 'TestSuspend|TestLateAck|TestResume' -count=1`. |
| @@ -285,6 +290,7 @@ Slice 1b issues new-epoch credentials from the prepared epoch, so the VM's resum |
| - Call the provider before preparing: `TestResumePreparesEpochBeforeProvider` fails. |
| - Raise the epoch on each call: `TestResumeRetrySameOperation` fails. |
| - Commit without `Get` showing `running`: `TestResumeLostReply` fails. |
| + - Look up only the latest operation: `TestResumeOperationsRemembered` fails. |
| - [ ] **Commit:** `hostedctl: pause generations and prepared resume epochs`. |
| ### Task 13: Reaper and the network audit loop |
| @@ -293,11 +299,17 @@ Slice 1b issues new-epoch credentials from the prepared epoch, so the VM's resum |
| **Interfaces:** `Reap(ctx) (ReapReport, error)`, `ReapReport{Skipped bool; Replayed, Drained, Stopped, OrphansSeen, OrphansStopped, Unknown int}`; `Loop(ctx, every time.Duration)`; `ReapInterval = 60 * time.Second`; `OrphanGrace = 10 * time.Minute`. |
| -Pass order: checkpoint the clock; `Replay`; `Refresh`; `List` (skip the rest on `ErrIncomplete`); orphans: record `first_seen_t`, and after `OrphanGrace` replay again, re-read the table and `List` again before `Stop` (after a restart with unknown downtime, existing orphans count their grace as already spent; the recheck still applies); mark jobs past `drain_t` as draining; stop jobs past `stop_t`; re-issue Stop for `unknown` and alert after three passes; run the audit, refusing launches and alerting (once per episode) while it fails. |
| +Each pass runs in this order: |
| +1. Checkpoint the clock. |
| +2. `Replay`, with Task 10's gates. |
| +3. `Refresh`. |
| +4. Recorded jobs, by their saved Ref, whatever `List` returns: mark jobs past `drain_t` as draining; stop jobs past `stop_t`; re-issue Stop for `unknown` and alert after three passes. |
| +5. Orphans, only when `List` is complete; an `ErrIncomplete` skips this step alone. Record `first_seen_t` for each. After `OrphanGrace`, replay again, re-read the table and `List` again before calling `Stop`. After a restart, orphans recorded before it treat their grace as expired; the recheck still applies. |
| +6. Run the audit. While it fails, refuse launches and alert once per episode. |
| -- [ ] **Red:** `TestReapSkipsIncompleteList`, `TestReapReplaysIntentFirst`, `TestReapStopsOrphanAfterTenMinutes` (9 min 59 s no, 10 min yes), `TestReapRechecksOwnership`, `TestReapDrainsThenStops`, `TestReaperUnderRollback` (the wall clock goes back 2 h mid-run; the orphan is still stopped at 10 min of Mono time), `TestOrphanGraceAfterUnknownDowntime`, `TestUnknownStateRetriedAndAlerted`, `TestFailingAuditBlocksLaunchAndAlertsOnce`. |
| +- [ ] **Red:** `TestIncompleteListSkipsOrphansOnly`, `TestDeadlineEnforcedDuringIncompleteLists` (consecutive incomplete Lists across `stop_t`; the provider Stop succeeds and the job gets proof), `TestReapReplaysIntentFirst`, `TestReapStopsOrphanAfterTenMinutes` (9 min 59 s no, 10 min yes), `TestReapRechecksOwnership`, `TestReapDrainsThenStops`, `TestReaperUnderRollback` (the wall clock goes back 2 h mid-run; the orphan is still stopped at 10 min of Mono time), `TestOrphanGraceExpiresAfterRestart`, `TestUnknownStateRetriedAndAlerted`, `TestFailingAuditBlocksLaunchAndAlertsOnce`. |
| - [ ] **Green:** `go test ./internal/hostedctl -run 'TestReap|TestOrphanGrace|TestUnknownStateRetried|TestFailingAudit' -count=1`. |
| -- [ ] **Mutations:** reap on an incomplete `List`; drop the recheck; use wall time for grace. Each fails its test. |
| +- [ ] **Mutations:** reap orphans on an incomplete `List` (`TestIncompleteListSkipsOrphansOnly`); skip deadline stops on an incomplete `List` (`TestDeadlineEnforcedDuringIncompleteLists`); drop the recheck (`TestReapRechecksOwnership`); use wall time for grace (`TestReaperUnderRollback`). |
| - [ ] **Commit:** `hostedctl: leaked-VM reaper and network audit loop`. |
| ### Task 14: Lifecycle simulation with invariants (spec §14) |
| @@ -321,8 +333,8 @@ A time advance moves Mono in steps of at most `ReapInterval` and runs the schedu |
| | --- | --- | --- | |
| | I1 | At most one live VM per attempt ID | Replay with a fresh client token | |
| | I2 | Every VM the fake holds is a saved Ref, matches a stored intent's attempt, or is a planted orphan | Save the intent after the provider call | |
| -| I3 | Orphan cleanup stops only VMs with no job or intent, and none before 10 min of controller time | Stop orphans on first sight; drop the recheck | |
| -| I4 | No VM is live past its job's `stop_t` plus one reaper interval | Reap at `deadline_t`; use wall time | |
| +| I3 | Orphan cleanup stops only VMs with no job or intent, and none before 10 min of controller time, except orphans recorded before a restart, whose grace may be expired early | Stop orphans on first sight; drop the recheck | |
| +| I4 | No recorded job's VM is live past its `stop_t` plus one reaper interval, even across consecutive incomplete Lists | Reap at `deadline_t`; use wall time; skip deadline stops on an incomplete List | |
| | I5 | A provider Suspend happens only with an acknowledgement for the current, uncancelled generation | Accept `>=` generations | |
| | I6 | A replacement launches only after stop proof, and proof never comes from `unknown` | Treat `unknown` as terminal | |
| | I7 | Each resume operation ID raises the epoch exactly once, prepared before the provider call and committed only after `running` | Raise the epoch before preparing; commit on a lost reply | |
| @@ -333,7 +345,7 @@ A time advance moves Mono in steps of at most `ReapInterval` and runs the schedu |
| ### Task 15: Controller HTTP API, command and metrics |
| -**Files:** Create `internal/hostedctl/{http.go,metrics.go,http_test.go}`, `cmd/equipo-hosted-controller/{main.go,config.go,config_test.go}`. |
| +**Files:** Create `internal/hostedctl/{http.go,metrics.go,http_test.go}`, `cmd/equipo-hosted-controller/{main.go,config.go,alerter.go,config_test.go,alerter_test.go}`. |
| **Interfaces:** strict JSON, `MaxBody`, every response signed; the creating instance only for job routes. |
| @@ -342,9 +354,9 @@ A time advance moves Mono in steps of at most `ReapInterval` and runs the schedu |
| | `POST /v1/jobs`; `GET /v1/jobs/{attempt}`; `POST /v1/jobs/{attempt}/stop`, `/drain`, `/quiescent`, `/suspend`, `/reopen`, `/resume` | instance | |
| | `GET /v1/vms` | operator | |
| -Metrics on a separate listener: jobs by state, launches and errors by kind, orphans stopped, audit status, alerts by kind. `main` is the composition point that wires `awsjob` and `SNSAlerter`. Config comes from the file `-config`: listen address (required, no default), TLS files, database path, signing key, verify keys with roles, image allowlist, region and network IDs; `Enabled` only from `EQUIPO_HOSTED_ENABLED=1`. |
| +Metrics on a separate listener: jobs by state, launches and errors by kind, orphans stopped, audit status, alerts by kind. `main` is the composition point that wires `awsjob`. Its `snsAlerter` (in `cmd/equipo-hosted-controller/alerter.go`) implements `hostedctl.Alerter` by calling `awsjob.SNSPublisher.Publish(ctx, a.Kind, a.Detail)`. Config comes from the file `-config`: listen address (required, no default), TLS files, database path, signing key, verify keys with roles, image allowlist, region and network IDs; `Enabled` only from `EQUIPO_HOSTED_ENABLED=1`. |
| -- [ ] **Red:** `TestRoutesEnforceRoles` (403 and audited), `TestInstanceKeySeesOnlyItsJobs`, `TestUnknownFieldsRefused`, `TestResponsesSigned`, `TestConfigRefusesMissingListenOrKeys`, `TestConfigRefusesWildcardListen` (`0.0.0.0`, `::`, bare `:port`), `TestDisabledRefusesLaunchButServesStop`, `TestMetricsCountJobsByState`. |
| +- [ ] **Red:** `TestRoutesEnforceRoles` (403 and audited), `TestInstanceKeySeesOnlyItsJobs`, `TestUnknownFieldsRefused`, `TestResponsesSigned`, `TestConfigRefusesMissingListenOrKeys`, `TestConfigRefusesWildcardListen` (`0.0.0.0`, `::`, bare `:port`), `TestDisabledRefusesLaunchButServesStop`, `TestMetricsCountJobsByState`, `TestAlerterWrapsPublisher` (in the command, with a recording publisher). |
| - [ ] **Green:** `go test ./internal/hostedctl ./cmd/equipo-hosted-controller -run 'TestRoutes|TestInstanceKey|TestUnknownFields|TestResponsesSigned|TestConfig|TestDisabled|TestMetrics' -count=1`; `make build vet`; the Task 7 guard still passes. |
| - [ ] **Mutation:** drop the creator check; `TestInstanceKeySeesOnlyItsJobs` fails. |
| - [ ] **Commit:** `hosted controller: signed HTTPS API, command and metrics`. |