hostedctl: exact deadline credits in the simulation
I4's throttle credit now lasts only through consecutive reaper passes that each throttle a Stop (R24 b), and the bound after R22 deferral runs from the first check at which deferral no longer applies, plus failed Lists after it (R24a c, d). TestSimDeadlineCredits checks both on the review's examples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+175
−20
docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md+27 −0internal/hostedctl/sim_model_test.go+146 −18internal/hostedctl/sim_test.go+2 −2
CI cancelled — superseded by a newer push — run details
CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-1a: Type Size Avail | ext4 96G 85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type Size Avail | ext4 96G 85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.4s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 3.6s
ci-box: file times set from content: 2896 files, 194 directories
ci-box: ready in 16.9s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok amadan.net/oficina/equipo/internal/equipotest 0.244s
=== compile ===
go build ./...
go: downloading github.com/aws/aws-sdk-go-v2/config v1.33.21
go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.21.3
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.53.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5
go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.39.5
go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9
go: downloading github.com/aws/aws-sdk-go-v2/service/signin v1.14.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
1.2s
+ go list -export -test -tags testbuild -f ./...
1.3s
+ go list -export -test -tags browser,testbuild -f ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
0.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m21.232s 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.553s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.55s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.23, cpu waiting 22.35%, memory waiting 0.00%, io waiting 0.62%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m23.754s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.072s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m22.07s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.23, cpu waiting 22.04%, memory waiting 0.00%, io waiting 0.60%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m25.454s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.338s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.79s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.79s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.75s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 34.61, cpu waiting 21.01%, memory waiting 0.00%, io waiting 0.56%
--- 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 1m20.651s 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.981s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.43s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.4s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.67s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 36.23, cpu waiting 22.35%, memory waiting 0.00%, io waiting 0.62%
--- 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 1m38.756s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m36.981s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m0.38s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.54s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.1s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.93s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 6.02s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 30.76, cpu waiting 17.41%, memory waiting 0.00%, io waiting 0.46%
--- 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
amadan: job cancelled — a newer push superseded it
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest
receipt: test step 1.206s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m1.624s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.31s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
machine: 32 CPUs, load 1.60, cpu waiting 0.13%, memory waiting 0.00%, io waiting 2.34%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest
receipt: test step 1.133s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m26.784s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 1.60, cpu waiting 0.13%, memory waiting 0.00%, io waiting 2.34%
--- 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
amadan: job cancelled — a newer push superseded it
--- 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.672s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.519s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.49s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 30.86, cpu waiting 22.70%, memory waiting 0.00%, io waiting 1.06%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 48.529s 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.634s amadan.net/oficina/equipo/internal/runner
receipt: slow test 36.58s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 32.64s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 31.11, cpu waiting 22.70%, memory waiting 0.00%, io waiting 1.06%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 35.411s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.623s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.53s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 21.58, cpu waiting 15.14%, memory waiting 0.00%, io waiting 1.35%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 28.3%, load 15.10
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed
receipt: test step 1m4.027s 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.979s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.92s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 25.83s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 23.93s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.59s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.33s amadan.net/oficina/equipo/internal/equipotest TestAuthorityReadsOneSnapshot
machine: 32 CPUs, load 30.76, cpu waiting 18.57%, memory waiting 0.00%, io waiting 0.49%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 28.3%, load 15.10
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest
receipt: test step 1.338s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m12.399s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.2s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.12s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.08s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 15.10, cpu waiting 11.70%, memory waiting 0.00%, io waiting 1.44%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 28.3%, load 15.10
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 1m16.078s 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.83s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.74s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.7s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.7s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.66s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.59s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 26.66, cpu waiting 15.27%, memory waiting 0.00%, io waiting 0.40%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 28.3%, load 15.10
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 603ms 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.231s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.45s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.28s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.2s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 21.61s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 21.57s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 15.10, cpu waiting 11.70%, memory waiting 0.00%, io waiting 1.44%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 28.3%, load 15.10
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 669ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 48.756s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.21s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 15.10, cpu waiting 11.70%, memory waiting 0.00%, io waiting 1.44%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 28.3%, load 15.10
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/isolatedjob: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: 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
amadan: job cancelled — a newer push superseded it
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m22.899s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m21.43s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.43s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.21s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.59s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.7s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.08s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 34.61, cpu waiting 21.52%, memory waiting 0.00%, io waiting 0.58%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m33.981s 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.446s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.99s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.74s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.43s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.29s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.91s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 30.76, cpu waiting 18.57%, memory waiting 0.00%, io waiting 0.49%
--- 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 1m41.643s 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 1m40.091s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.86s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.07s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.29s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 28.45, cpu waiting 16.32%, memory waiting 0.00%, io waiting 0.43%
--- 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 TestBrowserThinkingAndCards
=== RUN TestBrowserThinkingAndCards
time=2026-11-22T19:59:39.892Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-22T19:59:39.892Z level=INFO msg="startup phase done" phase=state_lock took=72µs
time=2026-11-22T19:59:39.892Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-22T19:59:39.892Z level=INFO msg="startup phase done" phase=claim_roots took=98µs
time=2026-11-22T19:59:39.892Z level=INFO msg="startup phase" phase=sweep
time=2026-11-22T19:59:39.924Z level=INFO msg="startup phase done" phase=sweep took=32.35ms
time=2026-11-22T19:59:39.924Z level=INFO msg="startup phase" phase=credentials
time=2026-11-22T19:59:39.925Z level=INFO msg="startup phase done" phase=credentials took=123µs
time=2026-11-22T19:59:39.925Z level=INFO msg="startup phase" phase=open_state
time=2026-11-22T19:59:39.969Z level=INFO msg="startup phase done" phase=open_state took=44.579ms
time=2026-11-22T19:59:39.970Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-22T19:59:39.972Z level=INFO msg=connecting host=127.0.0.1:43529 protocol=28
time=2026-11-22T19:59:39.974Z level=INFO msg=connected host=127.0.0.1:43529 took=1.18ms
time=2026-11-22T19:59:39.974Z level=INFO msg="capabilities gathering"
time=2026-11-22T19:59:39.974Z level=INFO msg="capabilities gathered" took=364µs tags=linux,claude,go
time=2026-11-22T19:59:39.975Z level=INFO msg="hello sent" protocol=28
time=2026-11-22T19:59:39.981Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-22T19:59:41.253Z level=INFO msg="connection checked" connection=claude-1 state=healthy
browser_cards_test.go:66: waiting for (()=>{const l=document.querySelector('[equipo-thinking] [equipo-activity]');return !!l && l.textContent==='Adding oficina/sample…'})(): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserThinkingAndCards (6.92s)
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN TestBrowserCopyContinue
time=2026-11-22T20:00:05.667Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-22T20:00:05.667Z level=INFO msg="startup phase done" phase=state_lock took=59µs
time=2026-11-22T20:00:05.667Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-22T20:00:05.667Z level=INFO msg="startup phase done" phase=claim_roots took=83µs
time=2026-11-22T20:00:05.667Z level=INFO msg="startup phase" phase=sweep
time=2026-11-22T20:00:05.699Z level=INFO msg="startup phase done" phase=sweep took=31.985ms
time=2026-11-22T20:00:05.699Z level=INFO msg="startup phase" phase=credentials
time=2026-11-22T20:00:05.700Z level=INFO msg="startup phase done" phase=credentials took=126µs
time=2026-11-22T20:00:05.700Z level=INFO msg="startup phase" phase=open_state
time=2026-11-22T20:00:05.743Z level=INFO msg="startup phase done" phase=open_state took=43.101ms
time=2026-11-22T20:00:05.743Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-22T20:00:05.744Z level=INFO msg=connecting host=127.0.0.1:44429 protocol=28
time=2026-11-22T20:00:05.745Z level=INFO msg=connected host=127.0.0.1:44429 took=942µs
time=2026-11-22T20:00:05.745Z level=INFO msg="capabilities gathering"
time=2026-11-22T20:00:05.746Z level=INFO msg="capabilities gathered" took=441µs tags=linux,claude,go
time=2026-11-22T20:00:05.746Z level=INFO msg="hello sent" protocol=28
time=2026-11-22T20:00:05.751Z level=INFO msg=welcome protocol=28 role=primary generation=1
browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.91s)
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN TestBrowserEmptyExplore
time=2026-11-22T20:00:39.315Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-22T20:00:39.315Z level=INFO msg="startup phase done" phase=state_lock took=203µs
time=2026-11-22T20:00:39.315Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-22T20:00:39.316Z level=INFO msg="startup phase done" phase=claim_roots took=479µs
time=2026-11-22T20:00:39.316Z level=INFO msg="startup phase" phase=sweep
time=2026-11-22T20:00:39.345Z level=INFO msg="startup phase done" phase=sweep took=28.822ms
time=2026-11-22T20:00:39.345Z level=INFO msg="startup phase" phase=credentials
time=2026-11-22T20:00:39.345Z level=INFO msg="startup phase done" phase=credentials took=112µs
time=2026-11-22T20:00:39.345Z level=INFO msg="startup phase" phase=open_state
time=2026-11-22T20:00:39.385Z level=INFO msg="startup phase done" phase=open_state took=39.839ms
time=2026-11-22T20:00:39.386Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-22T20:00:39.386Z level=INFO msg=connecting host=127.0.0.1:45979 protocol=28
time=2026-11-22T20:00:39.387Z level=INFO msg=connected host=127.0.0.1:45979 took=968µs
time=2026-11-22T20:00:39.387Z level=INFO msg="capabilities gathering"
time=2026-11-22T20:00:39.388Z level=INFO msg="capabilities gathered" took=816µs tags=linux,claude,go
time=2026-11-22T20:00:39.389Z level=INFO msg="hello sent" protocol=28
time=2026-11-22T20:00:39.395Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-22T20:00:40.475Z level=INFO msg="connection checked" connection=claude-1 state=healthy
browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (5.87s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m19.875s
FAIL amadan.net/oficina/equipo/internal/headless 80.179s
receipt: test step 1m21.365s 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 1m19.875s amadan.net/oficina/equipo/internal/headless
receipt: slow test 11.63s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.72s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.2s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
receipt: slow test 6.99s amadan.net/oficina/equipo/internal/headless TestBrowserNotebookLook
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$|^TestBrowserThinkingAndCards$' -count=1 ./internal/headless (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest b10079655bd9bf3a20b4c5d91d428533baad9ec1 1.91s 36.23
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest b10079655bd9bf3a20b4c5d91d428533baad9ec1 5.87s 36.23
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserThinkingAndCards browser-headless-rest b10079655bd9bf3a20b4c5d91d428533baad9ec1 6.92s 36.23
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 26.66, cpu waiting 15.27%, memory waiting 0.00%, io waiting 0.40%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo
receipt: test step 960ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 573ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 570ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest
receipt: test step 844ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.673s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.67s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test
receipt: test step 232ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.856s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.86s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest
receipt: test step 1.119s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m20.199s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 5.31, cpu waiting 1.84%, memory waiting 0.00%, io waiting 2.22%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.28s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.37s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.76s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.20s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.98s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless (56s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.38s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.94s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.44s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.71s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (22s)
ok ./internal/headless TestMixedVersions 20.63s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 31.02, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.93%
--- 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.429s 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.281s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 156ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 79ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.23s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment
receipt: test step 3.251s 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.878s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 6.73, cpu waiting 5.12%, memory waiting 0.00%, io waiting 1.95%
--- 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 29.1%, load 15.10
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2609 text files, 2854 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 96 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok amadan.net/oficina/equipo/internal/equipo 2.581s
machine: 32 CPUs, load 30.86, cpu waiting 21.40%, memory waiting 0.00%, io waiting 1.14%
--- 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 29.1%, load 15.10
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 15.10, cpu waiting 13.28%, memory waiting 0.00%, io waiting 1.39%
--- 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 29.1%, load 15.10
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 21.58, cpu waiting 16.57%, memory waiting 0.00%, io waiting 1.30%
--- 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 29.1%, load 15.10
shard 28: make gitleaks
[90m8:00PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m8:00PM[0m [32mINF[0m [1m1133 commits scanned.[0m
[90m8:00PM[0m [32mINF[0m [1mscanned ~62125823 bytes (62.13 MB) in 14.4s[0m
[90m8:00PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 30.86, cpu waiting 21.40%, memory waiting 0.00%, io waiting 1.14%
diff --git a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md| index 74176a35..749780cf 100644 |
| --- a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md |
| +++ b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md |
| @@ -728,6 +728,33 @@ failing of 200 in brackets. |
| | I7b | `scenario lost resume reply, crash, reconcile failed at step 7: I7: a1 operation op-1 committed with no running read of vm-0001 after a provider resume for it` | 6 | lost resume | yes, passes | |
| | I7c commit while preparing (Resume calls `finishResume` as running, no provider call) | `scenario throttled resume while the VM stays suspended failed at step 7: I7: a1 operation op-1 committed with no running read of vm-0001 after a provider resume for it` | 13 | lost resume; throttled resume | yes, passes | |
| +### Task 14 fix round 2 (review r2, ruling R24a) |
| + |
| +1. R24 (b) exact: only throttled Stops inside a reaper pass count, and the run is current only |
| + through consecutive passes that each throttle a Stop for the VM (`creditLocked`); a pass with |
| + none ends the run and its credit. A stop that takes effect records the credit current then. |
| +2. R24a (c) exact: `simDeferral` records the first check at which R22 deferral no longer applies; |
| + the bound runs from one ReapInterval after that, plus one per later pass whose List failed (d). |
| +3. New `TestSimDeadlineCredits` checks both on the review's examples: throttled at 10m, no Stop at |
| + 11m, stopped at 12m is rejected (and accepted with throttles at 10m and 11m); deferred at 30m, |
| + ended at 31m with an incomplete List, stopped at 32m is accepted, still live at 33m with complete |
| + Lists is rejected. |
| + |
| +- GREEN: `go test ./internal/hostedctl -run 'TestLifecycleSimulation|TestSimDeadlineCredits' -count=1` |
| + ok 2.63 to 2.68 s over four runs at load average 6; `EQUIPO_SIM_SEEDS=5000` ok 68.5 s; whole |
| + package ok 6.12, 6.26 s; vet, gofmt, staticcheck v0.7.0, `make budget`, dead-reference scan clean. |
| +- Mutations in scratch copies (removed): I4a 138 seeds and the lost-launch scenario, first |
| + `seed 1 failed at step 18: I4: VM vm-0003 of a2 is running at 8m19s, its stop time 6m47s (bound 7m47s, ...)`; |
| + I4b 25 seeds, same first line; I4c 24 seeds, first |
| + `seed 3 failed at step 14: I4: VM vm-0003 of a3 is running at 5m34s, its stop time 3m34s (bound 4m34s, ...)`. |
| + Checker mutations: credit kept across a broken run gives |
| + `sim_model_test.go:893: throttled at 10m, no Stop at 11m, stopped at 12m: stop at 12m0s with credit 1 accepted true, want false`; |
| + the round-1 deferral rule gives |
| + `sim_model_test.go:908: incomplete List at 31m, stopped by the 32m pass: live at 32m0s within bound 31m0s is false, want true`; |
| + no List credit after the end gives |
| + `sim_model_test.go:908: incomplete Lists at 31m and 32m, live at 33m: live at 33m0s within bound 32m0s is false, want true`. |
| + All restored; the restored runs pass. |
| + |
| ## Task 15 |
| Controller HTTP API (`internal/hostedctl/http.go`), metrics (`metrics.go`) and the |
diff --git a/internal/hostedctl/sim_model_test.go b/internal/hostedctl/sim_model_test.go| index 66941687..9fb22d12 100644 |
| --- a/internal/hostedctl/sim_model_test.go |
| +++ b/internal/hostedctl/sim_model_test.go |
| @@ -10,9 +10,12 @@ import ( |
| "slices" |
| "strings" |
| "sync" |
| + "testing" |
| + "time" |
| "amadan.net/oficina/equipo/internal/hostedwire" |
| "amadan.net/oficina/equipo/internal/isolatedjob" |
| + "amadan.net/oficina/equipo/internal/isolatedjob/isolatedjobtest" |
| ) |
| // This file holds what the lifecycle simulation (sim_test.go) checks: the |
| @@ -51,6 +54,7 @@ type simRunner struct { |
| pending map[isolatedjob.Op][]isolatedjob.Fault |
| incomplete int // reaper passes left whose List calls all come back incomplete |
| listBad bool // the pass running now is one of them |
| + inPass bool // a reaper pass is running |
| vms map[isolatedjob.Ref]*simVM |
| suspendOp *simGen |
| bad []string // call-time violations, reported by the next check |
| @@ -198,12 +202,7 @@ func (r *simRunner) Stop(ctx context.Context, ref isolatedjob.Ref, reason string |
| f := r.inject(isolatedjob.OpStop) |
| err := r.fake.Stop(ctx, ref, reason) |
| r.phaseLocked(ref, err) |
| - if !errors.Is(err, isolatedjob.ErrThrottled) { |
| - r.stoppedLocked(ref) |
| - } else if r.runPass[ref] != r.passNo || r.stopRun[ref] == 0 { |
| - r.stopRun[ref]++ |
| - r.runPass[ref] = r.passNo |
| - } |
| + r.noteStopLocked(ref, errors.Is(err, isolatedjob.ErrThrottled)) |
| r.w.logf(" provider stop %s (%s)%s -> %s", ref, reason, faultNote(f), errText(err)) |
| return err |
| } |
| @@ -232,16 +231,81 @@ func (r *simRunner) phaseLocked(ref isolatedjob.Ref, err error) { |
| } |
| } |
| +// creditLocked is ref's throttle credit (R24 b): the length of its current |
| +// run of consecutive reaper passes that each sent it a throttled Stop. A |
| +// pass with none ends the run, so between passes the run is current only |
| +// if the last pass threw one, and during a pass also if the one before did. |
| +func (r *simRunner) creditLocked(ref isolatedjob.Ref) int { |
| + last := r.passNo |
| + if r.inPass { |
| + last-- |
| + } |
| + if r.runPass[ref] < last { |
| + return 0 |
| + } |
| + return r.stopRun[ref] |
| +} |
| + |
| +// noteStopLocked records a Stop of ref. A throttled one in a pass extends |
| +// the current run, or starts a new one; a Stop that took effect is |
| +// recorded once (stoppedLocked). |
| +func (r *simRunner) noteStopLocked(ref isolatedjob.Ref, throttled bool) { |
| + switch { |
| + case !throttled: |
| + r.stoppedLocked(ref) |
| + case r.inPass: |
| + if r.creditLocked(ref) == 0 { |
| + r.stopRun[ref] = 0 // an interrupted run ends with its credit |
| + } |
| + if r.stopRun[ref] == 0 || r.runPass[ref] != r.passNo { |
| + r.stopRun[ref]++ |
| + } |
| + r.runPass[ref] = r.passNo |
| + } |
| +} |
| + |
| // stoppedLocked records the first Stop of ref that took effect (or the |
| // provider's own end) with the throttle credit in force, and ends the run |
| // of throttled Stops. |
| func (r *simRunner) stoppedLocked(ref isolatedjob.Ref) { |
| if _, ok := r.stoppedB[ref]; !ok { |
| - r.stoppedB[ref] = simStopAt{at: r.w.now(), credit: r.stopRun[ref]} |
| + r.stoppedB[ref] = simStopAt{at: r.w.now(), credit: r.creditLocked(ref)} |
| } |
| r.stopRun[ref] = 0 |
| } |
| +// simDeferral follows R22 deferral for one VM with no saved Ref (R24a c): |
| +// I4 does not apply while it does; once it ends, the bound runs from one |
| +// interval after the first check that found it ended, plus one interval |
| +// per later pass whose List failed (R24a d). |
| +type simDeferral struct { |
| + on, ended bool |
| + at T |
| + pass int |
| +} |
| + |
| +func (d *simDeferral) observe(applies bool, now T, pass int) { |
| + switch { |
| + case applies: |
| + d.on, d.ended = true, false |
| + case d.on: |
| + d.on, d.ended, d.at, d.pass = false, true, now, pass |
| + } |
| +} |
| + |
| +func (d *simDeferral) bound(listFail []int) (T, bool) { |
| + if !d.ended { |
| + return 0, false |
| + } |
| + b := d.at + T(ReapInterval) |
| + for _, p := range listFail { |
| + if p > d.pass { |
| + b += T(ReapInterval) |
| + } |
| + } |
| + return b, true |
| +} |
| + |
| // end is the provider stopping a VM on its own, with no controller call. |
| func (r *simRunner) end(ref isolatedjob.Ref) { |
| r.mu.Lock() |
| @@ -266,6 +330,7 @@ func (r *simRunner) beginPass() { |
| r.mu.Lock() |
| defer r.mu.Unlock() |
| r.passNo++ |
| + r.inPass = true |
| r.listBad = r.incomplete > 0 |
| if r.listBad { |
| r.incomplete-- |
| @@ -275,7 +340,7 @@ func (r *simRunner) beginPass() { |
| func (r *simRunner) endPass() { |
| r.mu.Lock() |
| defer r.mu.Unlock() |
| - r.listBad = false |
| + r.listBad, r.inPass = false, false |
| } |
| // ownerLocked is the attempt a VM belongs to: the job whose launch ID its |
| @@ -621,11 +686,12 @@ func (w *simWorld) check(s *simSnap) []string { |
| // I4, as ruling R24 words it: every live VM (stopping included) tied |
| // to a recorded attempt, by a saved Ref or by the fake's spec attempt |
| // ID, is live no later than max(stop_t, OpenedAt) + ReapInterval, plus |
| - // one interval per pass of its current run of throttled Stops; a |
| + // one interval per pass of its current run of throttled Stops |
| + // (creditLocked); a |
| // stopping VM also passes when its first effective Stop came within |
| // the bound in force then; a VM with no saved Ref gets OrphanGrace + |
| - // ReapInterval more, and is exempt while R22 deferral applies (and for |
| - // one interval after, the reaper's next pass). Beyond R24, (d): a VM |
| + // ReapInterval more, and is exempt while R22 deferral applies, then |
| + // bounded from one interval after it ends (simDeferral). R24a (d): a VM |
| // with no saved Ref also gets one interval for each pass since it |
| // appeared in which a List failed, as the reaper handles orphans only on |
| // complete Lists. And (e), after R20: after a restart, a job launched |
| @@ -648,9 +714,15 @@ func (w *simWorld) check(s *simSnap) []string { |
| if j == nil || !vm.State.Live() { |
| continue |
| } |
| - if noRef && deferral { |
| - w.m.deferredAt[vm.Ref] = now |
| - continue |
| + d := w.m.deferral[vm.Ref] |
| + if noRef { |
| + if d == nil { |
| + d = &simDeferral{} |
| + w.m.deferral[vm.Ref] = d |
| + } |
| + if d.observe(deferral, now, r.passNo); d.on { |
| + continue |
| + } |
| } |
| base := max(min(j.stopT, w.m.stopAt[j.attempt]), w.store.OpenedAt()) + T(ReapInterval) |
| if noRef { |
| @@ -673,17 +745,20 @@ func (w *simWorld) check(s *simSnap) []string { |
| if v != nil && v.claimed > 0 { |
| base = max(base, v.claimed+T(ReapInterval)) |
| } |
| - if at, ok := w.m.deferredAt[vm.Ref]; ok { |
| - base = max(base, at+T(ReapInterval)) |
| + if d != nil { |
| + if b, ok := d.bound(r.listFail); ok { |
| + base = max(base, b) |
| + } |
| } |
| - if now <= base+T(ReapInterval)*T(r.stopRun[vm.Ref]) { |
| + credit := r.creditLocked(vm.Ref) |
| + if now <= base+T(ReapInterval)*T(credit) { |
| continue |
| } |
| if st, ok := r.stoppedB[vm.Ref]; ok && vm.State == isolatedjob.StateStopping && st.at <= base+T(ReapInterval)*T(st.credit) { |
| continue |
| } |
| add("I4: VM %s of %s is %s at %v, its stop time %v (bound %v, throttle run %d, saved Ref %v)", vm.Ref, j.attempt, |
| - vm.State, simDur(now), simDur(j.stopT), simDur(base), r.stopRun[vm.Ref], !noRef) |
| + vm.State, simDur(now), simDur(j.stopT), simDur(base), credit, !noRef) |
| } |
| // I5, the store against the simulation's history: a job's stored |
| @@ -786,3 +861,56 @@ func sortedKeys[K comparable, V any](m map[K]V) []K { |
| slices.SortFunc(out, func(a, b K) int { return strings.Compare(fmt.Sprint(a), fmt.Sprint(b)) }) |
| return out |
| } |
| + |
| +// TestSimDeadlineCredits checks I4's two time credits directly, on the |
| +// review's examples: a throttle run broken by a pass with no Stop gives no |
| +// credit, and the bound after R22 deferral runs from the deferral's end. |
| +func TestSimDeadlineCredits(t *testing.T) { |
| + min := func(m int) T { return T(time.Duration(m) * time.Minute) } |
| + // stop_t 10m, so the unextended bound is 11m. |
| + for _, c := range []struct { |
| + name string |
| + throttled []int // minutes whose pass throttles the Stop |
| + stopAt int // minute whose pass stops the VM |
| + accepted bool |
| + }{ |
| + {"throttled at 10m, no Stop at 11m, stopped at 12m", []int{10}, 12, false}, |
| + {"throttled at 10m and 11m, stopped at 12m", []int{10, 11}, 12, true}, |
| + {"throttled at 10m, stopped at 11m", []int{10}, 11, true}, |
| + } { |
| + clk := isolatedjobtest.NewFakeClock(testWall) |
| + r := newSimRunner(nil, &simWorld{clk: clk}) |
| + for m := 10; m <= c.stopAt; m++ { |
| + clk.AdvanceMono(time.Duration(min(m)) - clk.Mono()) |
| + r.beginPass() |
| + if slices.Contains(c.throttled, m) || m == c.stopAt { |
| + r.noteStopLocked("vm-1", m != c.stopAt) |
| + } |
| + r.endPass() |
| + } |
| + st := r.stoppedB["vm-1"] |
| + if got := st.at <= min(11)+T(ReapInterval)*T(st.credit); got != c.accepted { |
| + t.Errorf("%s: stop at %v with credit %d accepted %v, want %v", c.name, simDur(st.at), st.credit, got, c.accepted) |
| + } |
| + } |
| + |
| + // Deferred at 30m; the last waiting intent resolves in the 31m pass. |
| + for _, c := range []struct { |
| + name string |
| + listFail []int // passes (numbered by minute) whose List failed |
| + liveAt int |
| + ok bool |
| + }{ |
| + {"incomplete List at 31m, stopped by the 32m pass", []int{31}, 32, true}, |
| + {"complete Lists, still live at 33m", nil, 33, false}, |
| + {"incomplete Lists at 31m and 32m, live at 33m", []int{31, 32}, 33, true}, |
| + } { |
| + d := &simDeferral{} |
| + d.observe(true, min(30), 30) |
| + d.observe(false, min(31), 31) |
| + b, _ := d.bound(c.listFail) |
| + if got := min(c.liveAt) <= b; got != c.ok { |
| + t.Errorf("%s: live at %v within bound %v is %v, want %v", c.name, simDur(min(c.liveAt)), simDur(b), got, c.ok) |
| + } |
| + } |
| +} |
diff --git a/internal/hostedctl/sim_test.go b/internal/hostedctl/sim_test.go| index 6e95e033..819cb5bc 100644 |
| --- a/internal/hostedctl/sim_test.go |
| +++ b/internal/hostedctl/sim_test.go |
| @@ -178,7 +178,7 @@ type simModel struct { |
| ops map[string][]string // resume operation IDs used, per attempt |
| done map[[2]string]int64 // (attempt, operation) -> epoch, once seen done |
| returned []simReturned |
| - deferredAt map[isolatedjob.Ref]T // last check at which R22 deferral covered the VM |
| + deferral map[isolatedjob.Ref]*simDeferral // R22 deferral of VMs with no saved Ref |
| } |
| // simWorld is one seed's controller, store, fake and model clock. |
| @@ -224,7 +224,7 @@ func newSimWorld(dir string, seed int64) *simWorld { |
| path: filepath.Join(dir, fmt.Sprintf("sim-%d.db", seed)), clk: clk, fake: fake, |
| cfg: Config{Enabled: true, Images: map[isolatedjob.ImageDigest]bool{imgA: true}}, |
| m: simModel{req: map[string]LaunchRequest{}, stopAt: map[string]T{}, pause: map[string]*simPause{}, |
| - ops: map[string][]string{}, done: map[[2]string]int64{}, deferredAt: map[isolatedjob.Ref]T{}}, |
| + ops: map[string][]string{}, done: map[[2]string]int64{}, deferral: map[isolatedjob.Ref]*simDeferral{}}, |
| } |
| w.run = newSimRunner(fake, w) |
| // Swarm testing: each seed leaves out some kinds of step, so some |