oficina / equipo Public

livectl: pin endpoints, one attempt, bounded calls and waits

livectl review round 1. The STS, Lambda MicroVMs and Lambda core clients
now drop every configured endpoint override (environment, profile,
services section, FIPS and dual-stack) and use the standard eu-west-1
endpoints, so the account guard reads the same AWS the Lambda calls
reach. Each call is one attempt whatever AWS_MAX_ATTEMPTS or the
profile say, and carries a 60 s deadline, the STS check included.

Waits check their deadline before and after each read, never accept a
late success, and put the deadline on the reads' context. The guard
tests are split so each guard has its own case, the VM client-token
check included, and offline client tests record hosts, request counts,
stalled calls and a populated server time. Sixteen independent
mutation rows are in the progress file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev aa4d18221214f1edee12924507bfd0ce6d90984b parent a36861a
6 files changed, +514 −56
  • docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md +49 −0
  • internal/isolatedjob/awsjob/livectl/clients.go +69 −0
  • internal/isolatedjob/awsjob/livectl/clients_test.go +237 −0
  • internal/isolatedjob/awsjob/livectl/main.go +5 −1
  • internal/isolatedjob/awsjob/livectl/main_test.go +136 −51
  • internal/isolatedjob/awsjob/livectl/wait.go +18 −4

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-1a: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.3s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.1s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.9s
ci-box: clone deepened in 3.5s
ci-box: file times set from content: 2917 files, 195 directories
ci-box: ready in 17.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.249s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.2s
+ go list -export -test -tags testbuild -f  ./...
  0.6s
+ 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-24 15:56:00 +0000 UTC

go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.553s 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.862s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.86s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 37.43, cpu waiting 21.05%, 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.387s 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.695s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.69s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.03, cpu waiting 20.63%, 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.567s 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.298s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.69s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.76s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.85s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 36.03, cpu waiting 20.08%, memory waiting 0.00%, io waiting 0.58%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m19.45s 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.76s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.34s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.32s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.62s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 37.43, cpu waiting 21.43%, memory waiting 0.00%, io waiting 0.64%
--- 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.11s 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.357s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.94s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.39s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.16s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.96s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.91s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 30.84, cpu waiting 16.80%, memory waiting 0.00%, io waiting 0.47%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 3m10.328s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m8.245s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.81s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.33s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.66s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.18s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.39s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.21, cpu waiting 3.65%, memory waiting 0.00%, io waiting 0.09%
--- 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.099s 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 4.66, cpu waiting 0.62%, memory waiting 0.00%, io waiting 2.39%
--- 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.149s 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 4.66, cpu waiting 0.62%, memory waiting 0.00%, io waiting 2.39%
--- 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 4m31.025s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m44.064s 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 4m31.025s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.99s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.9s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.79s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.97s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.61, cpu waiting 0.75%, memory waiting 0.00%, io waiting 0.01%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 47.506s 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.467s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.44s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 41.77, cpu waiting 20.79%, memory waiting 0.00%, io waiting 1.10%
--- 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 47.806s 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.846s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.81s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.6s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 41.77, cpu waiting 21.09%, memory waiting 0.00%, io waiting 1.07%
--- 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.769s 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.89s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.38s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.12s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 28.98, cpu waiting 14.89%, 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 29.4%, load 22.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 1m5.271s 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.247s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.21s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.17s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.19s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.54s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.4s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfiguration
machine: 32 CPUs, load 32.83, cpu waiting 17.34%, 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 27.0%, load 22.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.324s 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 22.10, cpu waiting 11.89%, 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 27.0%, load 22.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.211s 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 1m4.067s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.99s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.75s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.72s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.68s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.62s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 26.49, cpu waiting 14.26%, 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 27.0%, load 22.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 501ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m4.903s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.66s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.64s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.02s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 21.99s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 22.10, cpu waiting 11.89%, 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 27.0%, load 22.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 632ms 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 22.10, cpu waiting 11.89%, 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 27.0%, load 22.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/isolatedjob: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/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
--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:301 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.61s)

--- FAIL amadan.net/oficina/equipo/internal/runner/webread (package output)
FAIL
rastrillo-budget/v1 ran 1.233s
FAIL	amadan.net/oficina/equipo/internal/runner/webread	1.241s

budget note: internal/equipo took 45.275s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 12.529s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/hostedctl took 15.452s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 39.84s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/release took 34.981s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 39.068s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m17.247s against a 60s target (the gate's other steps are not in this figure)
receipt: 11 packages ran, 55 cached, 20 without tests, 1 failed
receipt: slow package 53.153s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.964s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 45.275s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 39.84s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 39.068s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 32.06s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.09s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 14.86s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 13.95s amadan.net/oficina/equipo/internal/hostedctl TestLifecycleSimulation
receipt: slow test 10.89s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest aa4d18221214f1edee12924507bfd0ce6d90984b 0.61s 11.07
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 11.07, cpu waiting 5.27%, memory waiting 0.00%, io waiting 0.14%
--- 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.888s 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.272s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.56s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.13s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.73s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.88s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 36.03, cpu waiting 20.63%, memory waiting 0.00%, io waiting 0.60%
--- 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.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 1m31.627s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.5s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.72s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.09s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.3s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 8.01s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 32.83, cpu waiting 17.86%, memory waiting 0.00%, io waiting 0.51%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m40.52s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m38.783s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.07s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.1s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.98s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.16s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 30.84, cpu waiting 15.72%, memory waiting 0.00%, io waiting 0.44%
--- 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 TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-28T15:26:50.937Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T15:26:50.937Z level=INFO msg="startup phase done" phase=state_lock took=75µs
time=2026-11-28T15:26:50.937Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T15:26:50.937Z level=INFO msg="startup phase done" phase=claim_roots took=88µs
time=2026-11-28T15:26:50.937Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T15:26:50.967Z level=INFO msg="startup phase done" phase=sweep took=30.671ms
time=2026-11-28T15:26:50.968Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T15:26:50.968Z level=INFO msg="startup phase done" phase=credentials took=100µs
time=2026-11-28T15:26:50.968Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T15:26:51.008Z level=INFO msg="startup phase done" phase=open_state took=39.9ms
time=2026-11-28T15:26:51.008Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T15:26:51.009Z level=INFO msg=connecting host=127.0.0.1:34585 protocol=28
time=2026-11-28T15:26:51.010Z level=INFO msg=connected host=127.0.0.1:34585 took=881µs
time=2026-11-28T15:26:51.010Z level=INFO msg="capabilities gathering"
time=2026-11-28T15:26:51.010Z level=INFO msg="capabilities gathered" took=386µs tags=linux,claude,go
time=2026-11-28T15:26:51.011Z level=INFO msg="hello sent" protocol=28
time=2026-11-28T15:26:51.015Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-28T15:26:51.984Z 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.80s)

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


receipt: test step 1m29.065s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m27.691s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.39s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.73s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.5s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.4s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.01s 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 '^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest aa4d18221214f1edee12924507bfd0ce6d90984b 5.80s 33.95
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 30.84, cpu waiting 15.72%, memory waiting 0.00%, io waiting 0.44%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

receipt: test step 1.011s 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 827ms 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 279ms 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.089s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m20.199s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 4.66, cpu waiting 2.31%, memory waiting 0.00%, io waiting 2.23%
--- 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.30s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.35s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.70s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.17s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.14s
+ 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.23s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 13.09s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.40s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.85s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 20.48s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
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 38.62, cpu waiting 22.11%, 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.546s 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.392s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 199ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 119ms 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.2s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.79s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 120ms 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.172s 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.796s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 11.44, cpu waiting 4.51%, memory waiting 0.00%, io waiting 2.02%
--- 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.0%, load 22.10
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2630 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: 97 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.546s
machine: 32 CPUs, load 38.53, cpu waiting 19.64%, memory waiting 0.00%, io waiting 1.18%
--- 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.0%, load 22.10
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 28.98, cpu waiting 11.89%, memory waiting 0.00%, io waiting 1.44%
--- 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.0%, load 22.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 33.78, cpu waiting 16.13%, memory waiting 0.00%, io waiting 1.31%
--- 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.0%, load 22.10
shard 28: make gitleaks
3:26PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
3:26PM INF 1166 commits scanned.
3:26PM INF scanned ~62656496 bytes (62.66 MB) in 14.2s
3:26PM INF no leaks found
machine: 32 CPUs, load 38.53, cpu waiting 19.64%, memory waiting 0.00%, io waiting 1.18%
=== 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.045ms, worst 1.087ms, budget 150ms
perf: GET /api/runner/protocol: median 89µs, worst 132µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 602µs, worst 643µs, budget 150ms
perf: GET /api/v1/accounts: median 434µs, worst 458µs, budget 150ms
perf: GET /api/v1/auth/devices: median 454µs, worst 466µs, budget 150ms
perf: GET /api/v1/budgets: median 474µs, worst 508µs, budget 150ms
perf: GET /api/v1/capabilities: median 258µs, worst 289µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.289ms, worst 1.342ms, budget 150ms
perf: GET /api/v1/connections: median 651µs, worst 694µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 606µs, worst 635µs, budget 150ms
perf: GET /api/v1/conversation: median 1.015ms, worst 1.05ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.615ms, worst 1.67ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.946ms, worst 2.002ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 459µs, worst 480µs, budget 150ms
perf: GET /api/v1/journey: median 7.517ms, worst 7.761ms, budget 150ms
perf: GET /api/v1/me: median 421µs, worst 471µs, budget 150ms
perf: GET /api/v1/me/settings: median 509µs, worst 568µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.374ms, worst 7.549ms, budget 150ms
perf: GET /api/v1/notifications: median 1.67ms, worst 1.792ms, budget 150ms
perf: GET /api/v1/onboarding: median 383µs, worst 447µs, budget 150ms
perf: GET /api/v1/people: median 453µs, worst 491µs, budget 150ms
perf: GET /api/v1/playbooks: median 593µs, worst 697µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 547µs, worst 631µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 891µs, worst 919µs, budget 150ms
perf: GET /api/v1/preferences: median 816µs, worst 867µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 488µs, worst 504µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 719µs, worst 741µs, budget 150ms
perf: GET /api/v1/roster: median 547µs, worst 570µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 531µs, worst 550µs, budget 150ms
perf: GET /api/v1/specialists: median 8.307ms, worst 8.415ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.157ms, worst 8.348ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 910µs, worst 941µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.175ms, worst 1.24ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 795µs, worst 829µs, budget 150ms
perf: GET /api/v1/teams: median 459µs, worst 506µs, budget 150ms
perf: GET /api/v1/templates: median 641µs, worst 670µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 485µs, worst 512µs, budget 150ms
perf: GET /auth/callback: median 88µs, worst 97µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.421ms, worst 3.59ms, budget 150ms
perf: GET /auth/verify: median 81µs, worst 140µs, budget 150ms
perf: GET /connections: median 3.852ms, worst 4.002ms, budget 150ms
perf: GET /conversation: median 7.754ms, worst 8.013ms, budget 150ms
perf: GET /conversation/connections: median 254µs, worst 270µs, budget 150ms
perf: GET /conversation/notebook: median 247µs, worst 261µs, budget 150ms
perf: GET /conversation/settings: median 3.998ms, worst 4.051ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.676ms, worst 3.77ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.887ms, worst 7.037ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.113ms, worst 7.28ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.021ms, worst 6.524ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.698ms, worst 4.82ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.503ms, worst 4.802ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.477ms, worst 4.726ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.354ms, worst 3.524ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.955ms, worst 4.073ms, budget 150ms
perf: GET /housekeeping: median 3.725ms, worst 3.81ms, budget 150ms
perf: GET /invites/new: median 587µs, worst 644µs, budget 150ms
perf: GET /invites/{id}: median 605µs, worst 626µs, budget 150ms
perf: GET /jobs: median 3.359ms, worst 3.394ms, budget 150ms
perf: GET /jobs/{id}: median 4.584ms, worst 4.654ms, budget 150ms
perf: GET /journey: median 13.027ms, worst 15.75ms, budget 150ms
perf: GET /nav/rail: median 3.237ms, worst 3.36ms, budget 150ms
perf: GET /needs-you: median 12.025ms, worst 12.348ms, budget 150ms
perf: GET /onboarding: median 4.426ms, worst 4.538ms, budget 150ms
perf: GET /people: median 3.63ms, worst 3.668ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.302ms, worst 5.444ms, budget 150ms
perf: GET /playbooks: median 4.768ms, worst 4.919ms, budget 150ms
perf: GET /playbooks/new: median 4.948ms, worst 5.049ms, budget 150ms
perf: GET /playbooks/{id}: median 4.556ms, worst 4.597ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.681ms, worst 4.816ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.936ms, worst 4.09ms, budget 150ms
perf: GET /preferences: median 4.345ms, worst 4.546ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.114ms, worst 4.358ms, budget 150ms
perf: GET /projects: median 5.312ms, worst 5.409ms, budget 150ms
perf: GET /projects/accounts: median 3.565ms, worst 3.65ms, budget 150ms
perf: GET /projects/new: median 3.58ms, worst 3.621ms, budget 150ms
perf: GET /projects/{id}: median 10.576ms, worst 10.879ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.822ms, worst 3.993ms, budget 150ms
perf: GET /runners/enrol: median 4.524ms, worst 4.626ms, budget 150ms
perf: GET /settings: median 3.507ms, worst 5.24ms, budget 150ms
perf: GET /settings/coordinator: median 5.712ms, worst 5.864ms, budget 150ms
perf: GET /settings/devices: median 3.298ms, worst 3.385ms, budget 150ms
perf: GET /settings/recovery: median 3.503ms, worst 3.624ms, budget 150ms
perf: GET /settings/recovery/release: median 3.527ms, worst 3.614ms, budget 150ms
perf: GET /settings/thinking: median 253µs, worst 277µs, budget 150ms
perf: GET /signin: median 323µs, worst 374µs, budget 150ms
perf: GET /specialists/new: median 3.387ms, worst 3.518ms, budget 150ms
perf: GET /specialists/{key}: median 10.954ms, worst 11.195ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.664ms, worst 3.715ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.77ms, worst 3.927ms, budget 150ms
perf: GET /tasks: median 5.35ms, worst 5.46ms, budget 150ms
perf: GET /tasks/new: median 3.454ms, worst 5.957ms, budget 150ms
perf: GET /tasks/{id}: median 5.822ms, worst 6.191ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.12ms, worst 5.233ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.841ms, worst 4.948ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.848ms, worst 5.936ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.522ms, worst 1.621ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.349ms, worst 5.44ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.839ms, worst 5.071ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.426ms, worst 4.492ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.313ms, worst 8.521ms, budget 150ms
perf: GET /team/{specialist}: median 4.524ms, worst 7.187ms, budget 150ms
perf: GET /teams: median 10.428ms, worst 10.599ms, budget 150ms
perf: GET /templates: median 3.479ms, worst 3.539ms, budget 150ms
perf: GET /usage: median 4.359ms, worst 4.432ms, budget 150ms
perf: GET /work: median 3.102ms, worst 3.183ms, budget 150ms
perf: cold boot: median 267ms of [265.827052ms 266.540728ms 268.019927ms], budget 500ms

receipt: test step 32.962s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 92 without tests, 0 failed
receipt: slow package 9.056s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-hosted-controller
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 8.2s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 850ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.22 GiB in 25019 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.91 GiB in 33199 files
ci-box: build cache over 4.0 GiB: dropped 1.52 GiB this job did not read, kept 2.69 GiB
diff --git a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
index 5f8ac4be..5803117e 100644
--- a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
@@ -1462,3 +1462,52 @@ VM ledger (`vms.tsv`): empty, no VM was launched.
| --- | --- | --- | --- |
| Account and region guard skipped (`checkCaller` returns nil at once) | `go test -tags hostedlive ./internal/isolatedjob/awsjob/livectl -run TestAccountRegionGuard -count=1` | `main_test.go:469: livectl ["connector" "get" "-id" "nc-1"] = exit 0, want 4` | yes, passes |
| Run-prefix guard skipped (`inRun` returns nil at once) | `go test -tags hostedlive ./internal/isolatedjob/awsjob/livectl -run TestRunPrefixGuard -count=1` | `main_test.go:500: livectl ["connector" "create" "-name" "equipo-hosted-dev-t17-1128-abc123-conn" ...] = exit 0, want 4` | yes, passes |
+
+#### livectl review round 1 (livectl-r1.md)
+
+- **Endpoints (Critical).** `newClients` builds all three clients (STS, Lambda MicroVMs, Lambda core)
+ with:
+ - the configured endpoint dropped (`BaseEndpoint` nil), which covers `AWS_ENDPOINT_URL`,
+ `AWS_ENDPOINT_URL_<SERVICE>` and a profile's `endpoint_url` or `services` section;
+ - FIPS and dual-stack off, the region pinned to eu-west-1, and the SDK's default resolver.
+
+ `TestClientsIgnoreEndpointOverrides` sets every override in the environment and a profile, then
+ records each request's host offline. The hosts must equal the clean ones,
+ `sts.eu-west-1.amazonaws.com` and `lambda.eu-west-1.amazonaws.com`.
+- **Retries.** Every client uses `aws.NopRetryer` and `RetryMaxAttempts` 1, whatever
+ `AWS_MAX_ATTEMPTS` and the profile's `max_attempts` and `retry_mode` say.
+ `TestClientsOneAttempt` sends one request per call on a 500 and on a 429.
+- **Deadlines.**
+ - Every operation gets `callTimeout` (60 s) on its context through a stack middleware, the STS
+ check included (`TestClientsBoundEachCall`).
+ - Waits check their deadline before each read and again after it, so a late success is a
+ timeout (`TestWaitNeverSucceedsLate`). They also put the deadline on the reads' context
+ (`TestWaitEndsStalledRead`, a stalled read ending at a 1 s wait).
+ - A 1m wait every 15 s now reads 4 times, not 5.
+- **Evidence.**
+ - The account and region guards each have their own test.
+ - `TestRunPrefixGuard` has one subtest per guard, including the VM client token alone (an image
+ in the run with a token outside it).
+ - `TestServerTimePrinted` shows a populated `ResultMetadata.ServerTime` from a real client's
+ response.
+- Runs: the package's offline tests ok (1.6 s); tagged vets; `make build vet`; `make budget`; the
+ Task 7 guard.
+
+| Mutation (each alone) | Command (`go test -tags hostedlive ./internal/isolatedjob/awsjob/livectl -count=1 -run ...`) | Observed failure | Restored |
+| --- | --- | --- | --- |
+| Account check off | `TestAccountGuard$` | `main_test.go:469: livectl ["connector" "get" "-id" "nc-1"] = exit 0, want 4` | yes, passes |
+| Region check off | `TestRegionGuard$` | `main_test.go:482: livectl ["-run" "1128-abc123" "vm" "terminate" "-id" "vm-1"] = exit 0, want 4` | yes, passes |
+| connector create's prefix check off | `TestRunPrefixGuard/connector_create,_another_run` | `main_test.go:568: livectl [... "connector" "create" "-name" "equipo-hosted-dev-t17-other-conn" ...] = exit 0, want 4` | yes, passes |
+| image create's prefix check off | `TestRunPrefixGuard/image_create` | `main_test.go:568: livectl [... "image" "create" "-name" "someone-else" ...] = exit 0, want 4` | yes, passes |
+| vm run's image-name check off | `TestRunPrefixGuard/vm_run,_image_outside` | `main_test.go:568: livectl [... "vm" "run" "-image" "...:microvm-image:runner" ...] = exit 0, want 4` | yes, passes |
+| vm run's client-token check off | `TestRunPrefixGuard/vm_run,_token_outside` | `main_test.go:568: livectl [... "vm" "run" "-image" "...:microvm-image:equipo-hosted-dev-t17-1128-abc123-image" ...] = exit 0, want 4` | yes, passes |
+| connector delete's read-and-check off | `TestRunPrefixGuard/connector_delete` | `main_test.go:568: livectl ["-run" "1128-abc123" "connector" "delete" "-id" "nc-prod"] = exit 0, want 4` | yes, passes |
+| image delete's read-and-check off | `TestRunPrefixGuard/image_delete` | `main_test.go:568: livectl ["-run" "1128-abc123" "image" "delete" "-id" "arn:runner"] = exit 0, want 4` | yes, passes |
+| image update's read-and-check off | `TestRunPrefixGuard/image_update` | `main_test.go:568: livectl [... "image" "update" "-id" "arn:runner" ...] = exit 0, want 4` | yes, passes |
+| VM change read-and-check off (terminate, suspend, resume) | `TestRunPrefixGuard/vm_terminate` | `main_test.go:568: livectl ["-run" "1128-abc123" "vm" "terminate" "-id" "vm-x"] = exit 0, want 4` | yes, passes |
+| Wait: expiry check before each read off | `TestBoundedWaits$` | `main_test.go:601: reads in a 1m wait every 15s = 5, want 4` | yes, passes |
+| Wait: expiry check after each read off | `TestWaitNeverSucceedsLate$` | `main_test.go:647: livectl ["connector" "wait-active" "-id" "nc-1" "-timeout" "1m"] = exit 0, want 5` | yes, passes |
+| Wait: deadline not put on the reads' context | `TestWaitEndsStalledRead$` | `main_test.go:666: a 1s wait on a stalled read took 5.001910063s` | yes, passes |
+| STS endpoint override kept | `TestClientsIgnoreEndpointOverrides$` | `clients_test.go:158: hosts under overrides = [evil-sts.invalid lambda.eu-west-1.amazonaws.com ...], want the standard [sts.eu-west-1.amazonaws.com ...]` | yes, passes |
+| Lambda core retries kept | `TestClientsOneAttempt$` | `clients_test.go:186: status 500: 6 requests for two calls, want one each (no retries)` | yes, passes |
+| STS per-call deadline dropped | `TestClientsBoundEachCall$` | `clients_test.go:210: stalled call 0 = ... request send failed, the request had no deadline, want the per-call deadline` | yes, passes |
diff --git a/internal/isolatedjob/awsjob/livectl/clients.go b/internal/isolatedjob/awsjob/livectl/clients.go
new file mode 100644
index 00000000..35c9615f
--- /dev/null
+++ b/internal/isolatedjob/awsjob/livectl/clients.go
@@ -0,0 +1,69 @@
+//go:build hostedlive
+
+package main
+
+import (
+ "context"
+ "time"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/service/lambdacore"
+ vms "github.com/aws/aws-sdk-go-v2/service/lambdamicrovms"
+ "github.com/aws/aws-sdk-go-v2/service/sts"
+ "github.com/aws/smithy-go/middleware"
+)
+
+// callTimeout bounds each SDK request, the STS check included. A var so
+// the offline tests can shorten it.
+var callTimeout = 60 * time.Second
+
+// newClients builds the three clients from cfg, pinned so nothing in the
+// environment or the profile can steer them (livectl review round 1):
+//
+// - endpoints: every configured endpoint override is dropped
+// (AWS_ENDPOINT_URL, AWS_ENDPOINT_URL_<SERVICE>, a profile's
+// endpoint_url or services section), FIPS and dual-stack are off and
+// the region is wantRegion, so each call goes to the standard
+// wantRegion endpoint the SDK's own resolver gives; the STS answer the
+// account guard reads therefore comes from the same AWS the Lambda
+// calls reach;
+// - retries: exactly one attempt per call, whatever AWS_MAX_ATTEMPTS or
+// the profile's max_attempts and retry_mode say, so a failed mutation
+// is never resent behind the plan's back;
+// - deadlines: each call gets callTimeout on its context.
+func newClients(cfg aws.Config) (*lambdacore.Client, *vms.Client, *sts.Client) {
+ core := lambdacore.NewFromConfig(cfg, func(o *lambdacore.Options) {
+ o.Region, o.BaseEndpoint = wantRegion, nil
+ o.EndpointOptions = lambdacore.EndpointResolverOptions{}
+ o.EndpointResolverV2 = lambdacore.NewDefaultEndpointResolverV2()
+ o.Retryer, o.RetryMaxAttempts = aws.NopRetryer{}, 1
+ o.APIOptions = append(o.APIOptions, deadlineEach)
+ })
+ vm := vms.NewFromConfig(cfg, func(o *vms.Options) {
+ o.Region, o.BaseEndpoint = wantRegion, nil
+ o.EndpointOptions = vms.EndpointResolverOptions{}
+ o.EndpointResolverV2 = vms.NewDefaultEndpointResolverV2()
+ o.Retryer, o.RetryMaxAttempts = aws.NopRetryer{}, 1
+ o.APIOptions = append(o.APIOptions, deadlineEach)
+ })
+ st := sts.NewFromConfig(cfg, func(o *sts.Options) {
+ o.Region, o.BaseEndpoint = wantRegion, nil
+ o.EndpointOptions = sts.EndpointResolverOptions{}
+ o.EndpointResolverV2 = sts.NewDefaultEndpointResolverV2()
+ o.Retryer, o.RetryMaxAttempts = aws.NopRetryer{}, 1
+ o.APIOptions = append(o.APIOptions, deadlineEach)
+ })
+ return core, vm, st
+}
+
+// deadlineEach adds callTimeout to the context of every operation, first in
+// the stack, so the whole call (signing, sending, reading the answer) is
+// bounded even when the caller's context is not.
+func deadlineEach(s *middleware.Stack) error {
+ return s.Initialize.Add(middleware.InitializeMiddlewareFunc("LivectlCallDeadline",
+ func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (middleware.InitializeOutput, middleware.Metadata, error) {
+ ctx, cancel := context.WithTimeout(ctx, callTimeout)
+ defer cancel()
+ return next.HandleInitialize(ctx, in)
+ }), middleware.Before)
+}
diff --git a/internal/isolatedjob/awsjob/livectl/clients_test.go b/internal/isolatedjob/awsjob/livectl/clients_test.go
new file mode 100644
index 00000000..0a745ad0
--- /dev/null
+++ b/internal/isolatedjob/awsjob/livectl/clients_test.go
@@ -0,0 +1,237 @@
+//go:build hostedlive
+
+package main
+
+import (
+ "bytes"
+ "context"
+ "errors"
+ "io"
+ "net/http"
+ "os"
+ "path/filepath"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/config"
+ "github.com/aws/aws-sdk-go-v2/credentials"
+ "github.com/aws/aws-sdk-go-v2/service/lambdacore"
+ vms "github.com/aws/aws-sdk-go-v2/service/lambdamicrovms"
+ "github.com/aws/aws-sdk-go-v2/service/sts"
+)
+
+// recorder is an offline HTTP client: it records each request's host and
+// answers from answer, so no request leaves the process.
+type recorder struct {
+ mu sync.Mutex
+ hosts []string
+ answer func(*http.Request) (*http.Response, error)
+}
+
+func (r *recorder) Do(req *http.Request) (*http.Response, error) {
+ r.mu.Lock()
+ r.hosts = append(r.hosts, req.URL.Host)
+ r.mu.Unlock()
+ return r.answer(req)
+}
+
+func (r *recorder) seen() []string {
+ r.mu.Lock()
+ defer r.mu.Unlock()
+ return append([]string(nil), r.hosts...)
+}
+
+var serverDate = time.Date(2026, 11, 28, 15, 4, 5, 0, time.UTC)
+
+func reply(req *http.Request, status int, body string) *http.Response {
+ h := http.Header{"Date": {serverDate.Format(http.TimeFormat)}, "X-Amzn-Requestid": {"req-9"}}
+ if strings.Contains(req.URL.Host, "sts") {
+ h.Set("Content-Type", "text/xml")
+ } else {
+ h.Set("Content-Type", "application/json")
+ }
+ return &http.Response{StatusCode: status, Header: h, Body: io.NopCloser(strings.NewReader(body)), Request: req}
+}
+
+const stsOK = `<GetCallerIdentityResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/"><GetCallerIdentityResult>` +
+ `<Arn>arn:aws:iam::640012953448:user/agent</Arn><UserId>AID</UserId><Account>640012953448</Account>` +
+ `</GetCallerIdentityResult><ResponseMetadata><RequestId>req-9</RequestId></ResponseMetadata></GetCallerIdentityResponse>`
+
+// normal answers every call as a healthy service would.
+func normal(req *http.Request) (*http.Response, error) {
+ switch {
+ case strings.Contains(req.URL.Host, "sts"):
+ return reply(req, 200, stsOK), nil
+ case strings.Contains(req.URL.Path, "microvms/"):
+ return reply(req, 200, `{"microvmId":"vm-1","state":"RUNNING","startedAt":1795878000}`), nil
+ }
+ return reply(req, 200, `{}`), nil
+}
+
+// hostileEnv points every endpoint and retry setting the SDK reads from the
+// environment or a profile somewhere else.
+func hostileEnv(t *testing.T) {
+ dir := t.TempDir()
+ cfgFile := filepath.Join(dir, "config")
+ body := `[profile t17]
+region = eu-west-1
+endpoint_url = https://evil-profile.invalid
+max_attempts = 7
+retry_mode = adaptive
+use_fips_endpoint = true
+use_dualstack_endpoint = true
+services = evil
+
+[services evil]
+sts =
+ endpoint_url = https://evil-svc-sts.invalid
+lambda_microvms =
+ endpoint_url = https://evil-svc-microvms.invalid
+lambda_core =
+ endpoint_url = https://evil-svc-core.invalid
+`
+ if err := os.WriteFile(cfgFile, []byte(body), 0o600); err != nil {
+ t.Fatal(err)
+ }
+ for k, v := range map[string]string{
+ "AWS_CONFIG_FILE": cfgFile, "AWS_SHARED_CREDENTIALS_FILE": filepath.Join(dir, "none"), "AWS_PROFILE": "t17",
+ "AWS_ACCESS_KEY_ID": "AKIDOFFLINE", "AWS_SECRET_ACCESS_KEY": "offline", "AWS_SESSION_TOKEN": "",
+ "AWS_EC2_METADATA_DISABLED": "true", "AWS_REGION": "eu-west-1",
+ "AWS_ENDPOINT_URL": "https://evil-global.invalid", "AWS_ENDPOINT_URL_STS": "https://evil-sts.invalid",
+ "AWS_ENDPOINT_URL_LAMBDA_MICROVMS": "https://evil-microvms.invalid", "AWS_ENDPOINT_URL_LAMBDA_CORE": "https://evil-core.invalid",
+ "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS": "false", "AWS_MAX_ATTEMPTS": "5", "AWS_RETRY_MODE": "standard",
+ "AWS_USE_FIPS_ENDPOINT": "true", "AWS_USE_DUALSTACK_ENDPOINT": "true",
+ } {
+ t.Setenv(k, v)
+ }
+}
+
+// callAll makes one call on each client.
+func callAll(core *lambdacore.Client, vm *vms.Client, st *sts.Client) []error {
+ ctx := context.Background()
+ _, e1 := st.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{})
+ _, e2 := vm.GetMicrovm(ctx, &vms.GetMicrovmInput{MicrovmIdentifier: aws.String("vm-1")})
+ _, e3 := core.GetNetworkConnector(ctx, &lambdacore.GetNetworkConnectorInput{Identifier: aws.String("nc-1")})
+ return []error{e1, e2, e3}
+}
+
+// TestClientsIgnoreEndpointOverrides (review round 1, Critical): with every
+// endpoint override set in the environment and the profile, the three
+// clients still call the standard eu-west-1 endpoints, the same hosts a
+// clean config gives.
+func TestClientsIgnoreEndpointOverrides(t *testing.T) {
+ clean := &recorder{answer: normal}
+ cleanCfg := aws.Config{Region: wantRegion, HTTPClient: clean,
+ Credentials: credentials.NewStaticCredentialsProvider("AKIDOFFLINE", "offline", "")}
+ for i, err := range callAll(newClients(cleanCfg)) {
+ if err != nil {
+ t.Fatalf("clean call %d: %v", i, err)
+ }
+ }
+ want := clean.seen()
+ t.Logf("standard hosts %v", want)
+ for _, h := range want {
+ if !strings.HasSuffix(h, ".eu-west-1.amazonaws.com") || strings.Contains(h, "fips") || strings.Contains(h, "dualstack") {
+ t.Fatalf("standard host %q is not a plain eu-west-1 endpoint", h)
+ }
+ }
+
+ hostileEnv(t)
+ rec := &recorder{answer: normal}
+ cfg, err := config.LoadDefaultConfig(context.Background(), config.WithHTTPClient(rec))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if aws.ToString(cfg.BaseEndpoint) == "" {
+ t.Fatal("the hostile environment set no base endpoint; the test checks nothing")
+ }
+ for i, err := range callAll(newClients(cfg)) {
+ if err != nil {
+ t.Fatalf("call %d under overrides: %v", i, err)
+ }
+ }
+ got := rec.seen()
+ if strings.Join(got, " ") != strings.Join(want, " ") {
+ t.Fatalf("hosts under overrides = %v, want the standard %v", got, want)
+ }
+}
+
+// TestClientsOneAttempt (review round 1, Important 3): a retryable error is
+// one request, whatever AWS_MAX_ATTEMPTS and the profile say.
+func TestClientsOneAttempt(t *testing.T) {
+ hostileEnv(t)
+ for _, c := range []struct {
+ status int
+ body string
+ }{
+ {500, `{"__type":"InternalServerException","message":"boom"}`},
+ {429, `{"__type":"ThrottlingException","message":"slow"}`},
+ } {
+ rec := &recorder{answer: func(req *http.Request) (*http.Response, error) { return reply(req, c.status, c.body), nil }}
+ cfg, err := config.LoadDefaultConfig(context.Background(), config.WithHTTPClient(rec))
+ if err != nil {
+ t.Fatal(err)
+ }
+ core, vm, _ := newClients(cfg)
+ _, err = core.GetNetworkConnector(context.Background(), &lambdacore.GetNetworkConnectorInput{Identifier: aws.String("nc-1")})
+ f := apiFailure("GetNetworkConnector", err)
+ if err == nil || f.Status != c.status {
+ t.Fatalf("status %d: GetNetworkConnector = %v (failure %+v)", c.status, err, f)
+ }
+ _, _ = vm.RunMicrovm(context.Background(), &vms.RunMicrovmInput{ImageIdentifier: aws.String("i"), ClientToken: aws.String("t")})
+ if n := len(rec.seen()); n != 2 {
+ t.Fatalf("status %d: %d requests for two calls, want one each (no retries)", c.status, n)
+ }
+ }
+}
+
+// TestClientsBoundEachCall (review round 1, Important 2): a request that
+// never answers ends at callTimeout.
+func TestClientsBoundEachCall(t *testing.T) {
+ old := callTimeout
+ callTimeout = 200 * time.Millisecond
+ t.Cleanup(func() { callTimeout = old })
+ rec := &recorder{answer: func(req *http.Request) (*http.Response, error) {
+ select {
+ case <-req.Context().Done():
+ return nil, req.Context().Err()
+ case <-time.After(5 * time.Second):
+ return nil, errors.New("the request had no deadline")
+ }
+ }}
+ core, vm, st := newClients(aws.Config{Region: wantRegion, HTTPClient: rec,
+ Credentials: credentials.NewStaticCredentialsProvider("AKIDOFFLINE", "offline", "")})
+ start := time.Now()
+ for i, err := range callAll(core, vm, st) {
+ if !errors.Is(err, context.DeadlineExceeded) {
+ t.Errorf("stalled call %d = %v, want the per-call deadline", i, err)
+ }
+ }
+ if d := time.Since(start); d > 3*time.Second {
+ t.Fatalf("three stalled calls took %v, want about 3 x %v", d, callTimeout)
+ }
+}
+
+// TestServerTimePrinted: a real client's output shows the response's Date
+// as ResultMetadata.ServerTime.
+func TestServerTimePrinted(t *testing.T) {
+ rec := &recorder{answer: normal}
+ _, vm, _ := newClients(aws.Config{Region: wantRegion, HTTPClient: rec,
+ Credentials: credentials.NewStaticCredentialsProvider("AKIDOFFLINE", "offline", "")})
+ out, err := vm.GetMicrovm(context.Background(), &vms.GetMicrovmInput{MicrovmIdentifier: aws.String("vm-1")})
+ if err != nil {
+ t.Fatal(err)
+ }
+ var buf bytes.Buffer
+ if err := printJSON(&buf, out); err != nil {
+ t.Fatal(err)
+ }
+ for _, want := range []string{`"ServerTime":"2026-11-28T15:04:05Z"`, `"StartedAt":"2026-11-28T15:00:00Z"`, `"MicrovmId":"vm-1"`} {
+ if !strings.Contains(buf.String(), want) {
+ t.Errorf("GetMicrovm printed %s, want %s", buf.String(), want)
+ }
+ }
+}
diff --git a/internal/isolatedjob/awsjob/livectl/main.go b/internal/isolatedjob/awsjob/livectl/main.go
index 645d2f58..f047433d 100644
--- a/internal/isolatedjob/awsjob/livectl/main.go
+++ b/internal/isolatedjob/awsjob/livectl/main.go
@@ -23,6 +23,10 @@
// equipo-hosted-dev-t17-RUN; every delete, update and VM state change
// reads its target first and refuses one outside the run.
//
+// The clients (newClients) ignore every configured endpoint override, so
+// all calls reach the standard eu-west-1 endpoints; make one attempt per
+// call; and bound each call by callTimeout. Waits also bound their reads.
+//
// It is built only with -tags hostedlive and never runs in CI.
package main
@@ -188,7 +192,7 @@ func main() {
cfg.Region = wantRegion
}
e.region = cfg.Region
- e.core, e.vms, e.sts = lambdacore.NewFromConfig(cfg), vms.NewFromConfig(cfg), sts.NewFromConfig(cfg)
+ e.core, e.vms, e.sts = newClients(cfg)
os.Exit(run(e, os.Args[1:]))
}
diff --git a/internal/isolatedjob/awsjob/livectl/main_test.go b/internal/isolatedjob/awsjob/livectl/main_test.go
index 9c720b50..9174c969 100644
--- a/internal/isolatedjob/awsjob/livectl/main_test.go
+++ b/internal/isolatedjob/awsjob/livectl/main_test.go
@@ -461,74 +461,128 @@ func TestErrorShapeAndExitCodes(t *testing.T) {
}
}
-// TestAccountRegionGuard: another account or region is refused (exit 4)
-// before any Lambda call.
-func TestAccountRegionGuard(t *testing.T) {
+// TestAccountGuard: another account is refused (exit 4) before any
+// Lambda call.
+func TestAccountGuard(t *testing.T) {
h := newHarness()
h.s.account = "149757027610"
h.want(t, exitGuard, "connector", "get", "-id", "nc-1")
if l := h.errLine(t); l["error"] != "guard" || !strings.Contains(l["message"].(string), "149757027610") {
t.Fatalf("guard line = %v", l)
}
- h.s.account = wantAccount
- h.e.region = "us-east-1"
- h.want(t, exitGuard, "-run", runID, "vm", "terminate", "-id", "vm-1")
- for _, c := range h.s.calls {
- if c != "GetCallerIdentity" {
- t.Fatalf("call %s made by a refused command; calls %v", c, h.s.calls)
- }
+ if !reflect.DeepEqual(h.s.calls, []string{"GetCallerIdentity"}) {
+ t.Fatalf("calls by a refused command = %v, want only the caller check", h.s.calls)
}
}
-// TestRunPrefixGuard: creates need a name in the run, and deletes, updates
-// and VM changes read their target first and refuse one outside the run.
-func TestRunPrefixGuard(t *testing.T) {
+// TestRegionGuard: another region is refused (exit 4) before any call.
+func TestRegionGuard(t *testing.T) {
h := newHarness()
- create := func(run, name string) []string {
- args := []string{"connector", "create", "-name", name, "-role", "r", "-subnet", "s", "-sg", "g", "-client-token", name + "-1"}
- if run != "" {
- args = append([]string{"-run", run}, args...)
- }
- return args
- }
- for _, c := range []struct{ run, name string }{
- {"", prefix + "-conn"}, // no -run
- {runID, "equipo-hosted-dev-t17-other-conn"}, // another run
- {runID, prefix + "x-conn"}, // the prefix without its boundary
- {"other", prefix + "-conn"},
- } {
- h.want(t, exitGuard, create(c.run, c.name)...)
+ h.e.region = "us-east-1"
+ h.want(t, exitGuard, "-run", runID, "vm", "terminate", "-id", "vm-1")
+ if l := h.errLine(t); l["error"] != "guard" || !strings.Contains(l["message"].(string), "us-east-1") {
+ t.Fatalf("guard line = %v", l)
}
- h.want(t, exitGuard, append([]string{"-run", runID, "image", "create", "-name", "someone-else"}, imageArgs(t, "2048")...)...)
- if n := h.s.count("CreateNetworkConnector") + h.s.count("CreateMicrovmImage"); n != 0 {
- t.Fatalf("%d creates reached the SDK outside the run", n)
+ if len(h.s.calls) != 0 {
+ t.Fatalf("calls by a command refused for its region = %v, want none", h.s.calls)
}
- h.want(t, exitOK, create(runID, prefix+"-conn")...)
+}
- h.s.getConn = func(*lambdacore.GetNetworkConnectorInput) (*lambdacore.GetNetworkConnectorOutput, error) {
- return &lambdacore.GetNetworkConnectorOutput{Name: aws.String("production-egress")}, nil
+const outsideImage = "arn:aws:lambda:eu-west-1:640012953448:microvm-image:runner"
+
+func connectorCreateArgs(run, name string) []string {
+ args := []string{"connector", "create", "-name", name, "-role", "r", "-subnet", "s", "-sg", "g", "-client-token", name + "-1"}
+ if run != "" {
+ args = append([]string{"-run", run}, args...)
}
- h.want(t, exitGuard, "-run", runID, "connector", "delete", "-id", "nc-prod")
- h.s.getImg = func(*vms.GetMicrovmImageInput) (*vms.GetMicrovmImageOutput, error) {
- return &vms.GetMicrovmImageOutput{Name: aws.String("runner")}, nil
+ return args
+}
+
+func vmRunArgs(t *testing.T, image, token string) []string {
+ payload := filepath.Join(t.TempDir(), "payload")
+ if err := os.WriteFile(payload, []byte("p"), 0o600); err != nil {
+ t.Fatal(err)
}
- h.want(t, exitGuard, "-run", runID, "image", "delete", "-id", "arn:runner")
- h.want(t, exitGuard, append([]string{"-run", runID, "image", "update", "-id", "arn:runner"}, imageArgs(t, "4096")...)...)
- h.s.getVM = func(in *vms.GetMicrovmInput) (*vms.GetMicrovmOutput, error) {
- return &vms.GetMicrovmOutput{MicrovmId: in.MicrovmIdentifier, ImageArn: aws.String("arn:aws:lambda:eu-west-1:640012953448:microvm-image:runner")}, nil
+ return []string{"-run", runID, "vm", "run", "-image", image, "-version", "1", "-connector", "c", "-max-seconds", "60",
+ "-client-token", token, "-payload-file", payload}
+}
+
+// TestRunPrefixGuard: each create, delete, update and VM change is refused
+// (exit 4) for a resource outside the run, one case per guard, so each
+// guard is shown on its own; the refused call never reaches the SDK.
+func TestRunPrefixGuard(t *testing.T) {
+ outsideConn := func(h *harness) {
+ h.s.getConn = func(*lambdacore.GetNetworkConnectorInput) (*lambdacore.GetNetworkConnectorOutput, error) {
+ return &lambdacore.GetNetworkConnectorOutput{Name: aws.String("production-egress")}, nil
+ }
}
- for _, verb := range []string{"terminate", "suspend", "resume"} {
- h.want(t, exitGuard, "-run", runID, "vm", verb, "-id", "vm-other")
+ outsideImg := func(h *harness) {
+ h.s.getImg = func(*vms.GetMicrovmImageInput) (*vms.GetMicrovmImageOutput, error) {
+ return &vms.GetMicrovmImageOutput{Name: aws.String("runner")}, nil
+ }
}
- h.want(t, exitGuard, "-run", runID, "vm", "run", "-image", "arn:aws:lambda:eu-west-1:640012953448:microvm-image:runner",
- "-version", "1", "-connector", "c", "-max-seconds", "60", "-client-token", prefix+"-l", "-payload-file", "x")
- for _, op := range []string{"DeleteNetworkConnector", "DeleteMicrovmImage", "UpdateMicrovmImage", "TerminateMicrovm",
- "SuspendMicrovm", "ResumeMicrovm", "RunMicrovm"} {
- if n := h.s.count(op); n != 0 {
- t.Errorf("%s reached the SDK %d times for a resource outside the run", op, n)
+ outsideVM := func(h *harness) {
+ h.s.getVM = func(in *vms.GetMicrovmInput) (*vms.GetMicrovmOutput, error) {
+ return &vms.GetMicrovmOutput{MicrovmId: in.MicrovmIdentifier, ImageArn: aws.String(outsideImage)}, nil
}
}
- h.s.getVM = nil
+ inRunImage := "arn:aws:lambda:eu-west-1:640012953448:microvm-image:" + prefix + "-image"
+ for _, c := range []struct {
+ name string
+ setup func(*harness)
+ args func(*testing.T) []string
+ op string
+ }{
+ {"connector create, another run", nil, func(*testing.T) []string {
+ return connectorCreateArgs(runID, "equipo-hosted-dev-t17-other-conn")
+ }, "CreateNetworkConnector"},
+ {"connector create, prefix without boundary", nil, func(*testing.T) []string {
+ return connectorCreateArgs(runID, prefix+"x-conn")
+ }, "CreateNetworkConnector"},
+ {"connector create, no -run", nil, func(*testing.T) []string {
+ return connectorCreateArgs("", prefix+"-conn")
+ }, "CreateNetworkConnector"},
+ {"image create", nil, func(t *testing.T) []string {
+ return append([]string{"-run", runID, "image", "create", "-name", "someone-else"}, imageArgs(t, "2048")...)
+ }, "CreateMicrovmImage"},
+ {"vm run, image outside", nil, func(t *testing.T) []string { return vmRunArgs(t, outsideImage, prefix+"-launch-1") }, "RunMicrovm"},
+ {"vm run, token outside", nil, func(t *testing.T) []string { return vmRunArgs(t, inRunImage, "someone-launch-1") }, "RunMicrovm"},
+ {"connector delete", outsideConn, func(*testing.T) []string {
+ return []string{"-run", runID, "connector", "delete", "-id", "nc-prod"}
+ }, "DeleteNetworkConnector"},
+ {"image delete", outsideImg, func(*testing.T) []string {
+ return []string{"-run", runID, "image", "delete", "-id", "arn:runner"}
+ }, "DeleteMicrovmImage"},
+ {"image update", outsideImg, func(t *testing.T) []string {
+ return append([]string{"-run", runID, "image", "update", "-id", "arn:runner"}, imageArgs(t, "4096")...)
+ }, "UpdateMicrovmImage"},
+ {"vm terminate", outsideVM, func(*testing.T) []string { return []string{"-run", runID, "vm", "terminate", "-id", "vm-x"} }, "TerminateMicrovm"},
+ {"vm suspend", outsideVM, func(*testing.T) []string { return []string{"-run", runID, "vm", "suspend", "-id", "vm-x"} }, "SuspendMicrovm"},
+ {"vm resume", outsideVM, func(*testing.T) []string { return []string{"-run", runID, "vm", "resume", "-id", "vm-x"} }, "ResumeMicrovm"},
+ } {
+ t.Run(c.name, func(t *testing.T) {
+ h := newHarness()
+ if c.setup != nil {
+ c.setup(h)
+ }
+ h.want(t, exitGuard, c.args(t)...)
+ if l := h.errLine(t); l["error"] != "guard" {
+ t.Fatalf("refusal line = %v", l)
+ }
+ if n := h.s.count(c.op); n != 0 {
+ t.Fatalf("%s reached the SDK %d times outside the run", c.op, n)
+ }
+ })
+ }
+}
+
+// TestRunPrefixAllowsTheRun: the same commands go ahead inside the run.
+func TestRunPrefixAllowsTheRun(t *testing.T) {
+ h := newHarness()
+ h.want(t, exitOK, connectorCreateArgs(runID, prefix+"-conn")...)
+ h.want(t, exitOK, vmRunArgs(t, "arn:aws:lambda:eu-west-1:640012953448:microvm-image:"+prefix+"-image", prefix+"-launch-1")...)
+ h.want(t, exitOK, "-run", runID, "connector", "delete", "-id", "nc-1")
+ h.want(t, exitOK, "-run", runID, "image", "delete", "-id", "arn:img")
h.want(t, exitOK, "-run", runID, "vm", "terminate", "-id", "vm-1")
if !reflect.DeepEqual(h.s.terminated, []string{"vm-1"}) {
t.Fatalf("terminated %v, want the run's VM", h.s.terminated)
@@ -543,8 +597,8 @@ func TestBoundedWaits(t *testing.T) {
return &lambdacore.GetNetworkConnectorOutput{State: coretypes.NetworkConnectorStatePending}, nil
}
h.want(t, exitTimeout, "connector", "wait-active", "-id", "nc-1", "-timeout", "1m", "-interval", "15s")
- if n := h.s.count("GetNetworkConnector"); n != 5 {
- t.Fatalf("reads in a 1m wait every 15s = %d, want 5", n)
+ if n := h.s.count("GetNetworkConnector"); n != 4 {
+ t.Fatalf("reads in a 1m wait every 15s = %d, want 4 (0, 15, 30, 45 s; none at the deadline)", n)
}
if !strings.Contains(h.stdout.String(), `"State":"PENDING"`) || h.errLine(t)["error"] != "timeout" {
t.Fatalf("timed-out wait printed %s / %s", h.stdout, h.stderr)
@@ -582,6 +636,37 @@ func TestBoundedWaits(t *testing.T) {
h.want(t, exitOK, "vm", "wait-state", "-id", "vm-1", "-state", "TERMINATED")
}
+// TestWaitNeverSucceedsLate: an answer that comes back after the deadline
+// is a timeout (exit 5), not a success.
+func TestWaitNeverSucceedsLate(t *testing.T) {
+ h := newHarness()
+ h.s.getConn = func(*lambdacore.GetNetworkConnectorInput) (*lambdacore.GetNetworkConnectorOutput, error) {
+ h.clk.now = h.clk.now.Add(2 * time.Minute) // the read takes longer than the whole wait
+ return &lambdacore.GetNetworkConnectorOutput{State: coretypes.NetworkConnectorStateActive}, nil
+ }
+ h.want(t, exitTimeout, "connector", "wait-active", "-id", "nc-1", "-timeout", "1m")
+}
+
+// TestWaitEndsStalledRead: a read that never answers ends with the wait
+// (exit 5), through the deadline the wait puts on the read's context.
+func TestWaitEndsStalledRead(t *testing.T) {
+ h := newHarness()
+ h.e.clock = realClock{}
+ h.s.getConn = func(*lambdacore.GetNetworkConnectorInput) (*lambdacore.GetNetworkConnectorOutput, error) {
+ select {
+ case <-h.e.ctx.Done():
+ return nil, h.e.ctx.Err()
+ case <-time.After(5 * time.Second):
+ return nil, errors.New("the read's context had no deadline")
+ }
+ }
+ start := time.Now()
+ h.want(t, exitTimeout, "connector", "wait-active", "-id", "nc-1", "-timeout", "1s", "-interval", "1s")
+ if d := time.Since(start); d > 3*time.Second {
+ t.Fatalf("a 1s wait on a stalled read took %v", d)
+ }
+}
+
// TestWaitGoneReportsDeleteFailed: not found ends wait-gone well; a
// DELETE_FAILED connector ends it at once with exit 6, code DELETE_FAILED,
// and its last read on stdout.
diff --git a/internal/isolatedjob/awsjob/livectl/wait.go b/internal/isolatedjob/awsjob/livectl/wait.go
index 01daf8db..3b420316 100644
--- a/internal/isolatedjob/awsjob/livectl/wait.go
+++ b/internal/isolatedjob/awsjob/livectl/wait.go
@@ -3,6 +3,7 @@
package main
import (
+ "context"
"flag"
"reflect"
"time"
@@ -35,7 +36,11 @@ func waitFlags(fs *flag.FlagSet, def time.Duration) wait {
// poll calls check until it reports done, returns an error, or the
// timeout passes (exit 5). The first read is at once; reads are spaced
-// by the interval.
+// by the interval. The timeout is held two ways: on the wait's clock,
+// checked before each read and again after it, so an answer that comes
+// back after the deadline is never taken as success; and as a deadline on
+// e.ctx for the reads, so a call that stalls ends with the wait (each
+// call also has callTimeout of its own).
func (w wait) poll(e *env, what string, check func() (bool, error)) error {
timeout, interval := *w.timeout, *w.interval
if timeout <= 0 || timeout > maxWait {
@@ -44,15 +49,24 @@ func (w wait) poll(e *env, what string, check func() (bool, error)) error {
if interval < time.Second {
return usage("-interval must be at least 1s")
}
+ ranOut := &failure{exit: exitTimeout, Kind: "timeout", Message: "wait for " + what + " ran out after " + timeout.String()}
+ outer := e.ctx
+ ctx, cancel := context.WithTimeout(outer, timeout)
+ defer cancel()
+ e.ctx = ctx
+ defer func() { e.ctx = outer }()
deadline := e.clock.Now().Add(timeout)
for {
+ if !e.clock.Now().Before(deadline) || ctx.Err() != nil {
+ return ranOut
+ }
done, err := check()
+ if !e.clock.Now().Before(deadline) || ctx.Err() != nil {
+ return ranOut
+ }
if done || err != nil {
return err
}
- if !e.clock.Now().Before(deadline) {
- return &failure{exit: exitTimeout, Kind: "timeout", Message: "wait for " + what + " ran out after " + timeout.String()}
- }
e.clock.Sleep(min(interval, deadline.Sub(e.clock.Now())))
}
}