oficina / equipo Public

livectl: static credentials only, resolved once before the check

Ruling R41 (livectl review round 2). livectl resolves credentials once
at startup, before the account check, and takes only static keys from
the environment or the selected profile. Assume role, web identity,
SSO, credential_process, credential_source, login sessions, container
and instance-metadata credentials are refused with exit 4 naming the
kind; none of those providers is built.

main no longer loads the SDK's default config: the only config is the
region and a fixed, never-expiring provider, so no credential service
client exists, nothing refreshes, and every request is signed with the
keys the account check saw. Offline tests cover each refused kind with
a counting local server (no request reaches it), static keys accepted,
and no refresh after the environment changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev bdf85fb70f26094b99241de3f1285de92a76a759 parent f4a7b0f
5 files changed, +353 −12
  • docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md +32 −0
  • internal/isolatedjob/awsjob/livectl/clients_test.go +23 −4
  • internal/isolatedjob/awsjob/livectl/creds.go +114 −0
  • internal/isolatedjob/awsjob/livectl/creds_test.go +177 −0
  • internal/isolatedjob/awsjob/livectl/main.go +7 −8

CI cancelled — superseded by a newer push — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-1a: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.7s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.4s
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.6s
ci-box: clone deepened in 3.5s
ci-box: file times set from content: 2919 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.243s
=== 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.265s 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.744s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.74s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 34.51, cpu waiting 21.16%, memory waiting 0.00%, io waiting 0.67%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m22.715s 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.121s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.12s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 34.51, cpu waiting 20.90%, memory waiting 0.00%, io waiting 0.64%
--- 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 1m24.992s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.898s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.28s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.83s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.79s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 34.51, cpu waiting 20.34%, memory waiting 0.00%, io waiting 0.62%
--- 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.339s 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.687s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.56s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.19s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 34.91, cpu waiting 21.54%, memory waiting 0.00%, io waiting 0.69%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m37.119s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m35.455s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.55s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.18s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.01s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.81s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.89s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 28.81, cpu waiting 16.99%, memory waiting 0.00%, io waiting 0.51%
--- 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.205s 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.147s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.64s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.24s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.57s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.15s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.36s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.14, cpu waiting 3.70%, memory waiting 0.00%, io waiting 0.10%
--- 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.125s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m1.624s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.31s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
machine: 32 CPUs, load 0.85, cpu waiting 0.35%, memory waiting 0.00%, io waiting 2.55%
--- 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.022s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m26.784s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 0.85, cpu waiting 0.35%, memory waiting 0.00%, io waiting 2.55%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed

amadan: job cancelled — a newer push superseded it
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 46.86s 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.786s amadan.net/oficina/equipo/internal/runner
receipt: slow test 25.76s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 32.76, cpu waiting 21.40%, memory waiting 0.00%, io waiting 1.18%
--- 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.521s 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.7s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.83s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.31s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 32.76, cpu waiting 21.40%, memory waiting 0.00%, io waiting 1.18%
--- 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.887s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.052s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.39s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.2s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 24.80, cpu waiting 15.12%, memory waiting 0.00%, io waiting 1.44%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 28.1%, load 18.69
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m4.073s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m2.127s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.1s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.07s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.55s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
receipt: slow test 21.53s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 31.05, cpu waiting 18.06%, memory waiting 0.00%, io waiting 0.54%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 28.1%, load 18.69
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.271s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m12.399s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.2s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.12s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.08s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 18.69, cpu waiting 12.10%, memory waiting 0.00%, io waiting 1.54%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 28.1%, load 18.69
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m15.54s 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.564s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.63s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.72s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.65s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.64s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.56s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 26.82, cpu waiting 14.90%, memory waiting 0.00%, io waiting 0.44%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 28.1%, load 18.69
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 400ms 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 18.69, cpu waiting 12.10%, memory waiting 0.00%, io waiting 1.54%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 28.1%, load 18.69
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 550ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 48.756s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.21s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 18.69, cpu waiting 12.10%, memory waiting 0.00%, io waiting 1.54%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 28.1%, load 18.69
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/isolatedjob: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/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/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
--- 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:300 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.61s)

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

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 38.911s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.143s against a 60s target (the gate's other steps are not in this figure)
receipt: 12 packages ran, 54 cached, 20 without tests, 1 failed
receipt: slow package 51.906s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.312s 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 38.911s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 32.06s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.08s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 14.71s 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 bdf85fb70f26094b99241de3f1285de92a76a759 0.61s 11.74
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 10.80, cpu waiting 5.35%, memory waiting 0.00%, io waiting 0.15%
--- 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.514s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m21.125s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.32s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.29s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.49s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.78s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.79s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 34.51, cpu waiting 20.90%, memory waiting 0.00%, io waiting 0.64%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m32.789s 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.092s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.39s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.52s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.24s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.15s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 31.05, cpu waiting 18.06%, memory waiting 0.00%, io waiting 0.54%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m39.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 1m38.278s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.05s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.99s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.89s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.25s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.08s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 28.81, cpu waiting 15.90%, memory waiting 0.00%, io waiting 0.47%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-28T15:34:11.526Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T15:34:11.526Z level=INFO msg="startup phase done" phase=state_lock took=219µs
time=2026-11-28T15:34:11.526Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T15:34:11.526Z level=INFO msg="startup phase done" phase=claim_roots took=175µs
time=2026-11-28T15:34:11.527Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T15:34:11.559Z level=INFO msg="startup phase done" phase=sweep took=32.345ms
time=2026-11-28T15:34:11.559Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T15:34:11.559Z level=INFO msg="startup phase done" phase=credentials took=123µs
time=2026-11-28T15:34:11.559Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T15:34:11.603Z level=INFO msg="startup phase done" phase=open_state took=43.946ms
time=2026-11-28T15:34:11.604Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T15:34:11.607Z level=INFO msg=connecting host=127.0.0.1:39087 protocol=28
time=2026-11-28T15:34:11.607Z level=INFO msg=connected host=127.0.0.1:39087 took=916µs
time=2026-11-28T15:34:11.608Z level=INFO msg="capabilities gathering"
time=2026-11-28T15:34:11.608Z level=INFO msg="capabilities gathered" took=484µs tags=linux,claude,go
time=2026-11-28T15:34:11.608Z level=INFO msg="hello sent" protocol=28
time=2026-11-28T15:34:11.613Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.77s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-28T15:34:42.246Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T15:34:42.246Z level=INFO msg="startup phase done" phase=state_lock took=67µs
time=2026-11-28T15:34:42.246Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T15:34:42.247Z level=INFO msg="startup phase done" phase=claim_roots took=99µs
time=2026-11-28T15:34:42.247Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T15:34:42.274Z level=INFO msg="startup phase done" phase=sweep took=27.887ms
time=2026-11-28T15:34:42.275Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T15:34:42.275Z level=INFO msg="startup phase done" phase=credentials took=101µs
time=2026-11-28T15:34:42.275Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T15:34:42.314Z level=INFO msg="startup phase done" phase=open_state took=39.39ms
time=2026-11-28T15:34:42.314Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T15:34:42.315Z level=INFO msg=connecting host=127.0.0.1:34361 protocol=28
time=2026-11-28T15:34:42.316Z level=INFO msg=connected host=127.0.0.1:34361 took=876µs
time=2026-11-28T15:34:42.316Z level=INFO msg="capabilities gathering"
time=2026-11-28T15:34:42.317Z level=INFO msg="capabilities gathered" took=361µs tags=linux,claude,go
time=2026-11-28T15:34:42.317Z level=INFO msg="hello sent" protocol=28
time=2026-11-28T15:34:42.321Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-28T15:34:43.331Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserEmptyExplore (5.78s)

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


receipt: test step 1m28.682s 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.253s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.18s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.82s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.45s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.3s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 8.17s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest bdf85fb70f26094b99241de3f1285de92a76a759 1.77s 32.71
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest bdf85fb70f26094b99241de3f1285de92a76a759 5.78s 32.71
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 28.81, cpu waiting 15.90%, memory waiting 0.00%, io waiting 0.47%
--- 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 912ms 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 806ms 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 287ms 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.103s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m20.199s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 5.74, cpu waiting 1.90%, memory waiting 0.00%, io waiting 2.39%
--- 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.21s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.38s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.64s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.37s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.96s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (55s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.06s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.96s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.45s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.61s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 20.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 32.62, cpu waiting 22.29%, memory waiting 0.00%, io waiting 1.00%
--- 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.023s 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 6.972s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 151ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 65ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 5ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 70ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.191s 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.872s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
machine: 32 CPUs, load 13.00, cpu waiting 4.95%, memory waiting 0.00%, io waiting 2.09%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 28.1%, load 18.69
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2632 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.494s
machine: 32 CPUs, load 32.76, cpu waiting 21.40%, 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 28.1%, load 18.69
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 24.80, cpu waiting 13.47%, memory waiting 0.00%, io waiting 1.49%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 28.1%, load 18.69
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 28.58, cpu waiting 16.40%, memory waiting 0.00%, io waiting 1.40%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 28.1%, load 18.69
shard 28: make gitleaks
3:34PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
3:34PM INF 1168 commits scanned.
3:34PM INF scanned ~62729685 bytes (62.73 MB) in 14.3s
3:34PM INF no leaks found
machine: 32 CPUs, load 30.22, cpu waiting 20.88%, memory waiting 0.00%, io waiting 1.22%
diff --git a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
index 5803117e..171d11d1 100644
--- a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
@@ -1511,3 +1511,35 @@ VM ledger (`vms.tsv`): empty, no VM was launched.
| 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 |
+
+#### livectl review round 2 (livectl-r2.md): static credentials only (R41)
+
+- `resolveCredentials` (creds.go) runs once, in `main`, before the account check. It reads only the
+ environment and the selected profile of the shared config and credentials files, and takes
+ static keys: the environment's first, else the profile's.
+- Refused with exit 4 and a fixed message naming the kind: web identity (profile or environment),
+ SSO (session or legacy), `credential_process`, `credential_source` (container or instance
+ metadata), assume role, login session, container credentials from the environment, and no static
+ keys at all (named instance metadata, the SDK's last fallback).
+- None of those providers is built. `main` no longer calls `LoadDefaultConfig`: the only config is
+ the region plus a fixed provider that never expires (`fixedCredentials`). So no credential
+ service client exists, nothing refreshes, and the per-call deadlines cover every request.
+- Tests:
+ - `TestCredentialKindsRefused`: eleven cases from config files in `t.TempDir` and the
+ environment. Every credential service endpoint points at a counting 127.0.0.1 server, which
+ sees 0 requests, and the `credential_process` marker is never written.
+ - `TestStaticCredentialsAccepted`: profile keys, and environment keys winning over a role
+ profile.
+ - `TestCredentialsNeverRefresh`: two requests are signed with the first keys after the
+ environment changes.
+ - `TestClientsIgnoreEndpointOverrides` also runs the production path, resolved keys plus
+ `staticConfig`.
+- Runs: the package's offline tests ok; tagged vets; `make build vet`; `make budget`; the Task 7
+ guard; `go mod tidy -diff` clean.
+
+| Mutation (each alone) | Command (`go test -tags hostedlive ./internal/isolatedjob/awsjob/livectl -count=1 -run ...`) | Observed failure | Restored |
+| --- | --- | --- | --- |
+| `credential_process` allowed | `TestCredentialKindsRefused/credential_process` | `creds_test.go:99: resolveCredentials = <nil>, want a guard refusal naming "credential_process"` | yes, passes |
+| Assume role allowed | `TestCredentialKindsRefused/assume_role` | `creds_test.go:99: resolveCredentials = guard: credentials from instance metadata are refused ..., want a guard refusal naming "assume role"` | yes, passes |
+| Web identity from the environment allowed | `TestCredentialKindsRefused/web_identity_in_the_environment` | `creds_test.go:99: ... credentials from instance metadata are refused ..., want a guard refusal naming "web identity"` | yes, passes |
+| Refresh re-enabled (keys re-read on every Retrieve) | `TestCredentialsNeverRefresh$` | `creds_test.go:168: requests signed with [AKIDFIRST AKIDSECOND], want the first keys twice` | yes, passes |
diff --git a/internal/isolatedjob/awsjob/livectl/clients_test.go b/internal/isolatedjob/awsjob/livectl/clients_test.go
index 0a745ad0..1223ff94 100644
--- a/internal/isolatedjob/awsjob/livectl/clients_test.go
+++ b/internal/isolatedjob/awsjob/livectl/clients_test.go
@@ -17,12 +17,13 @@ import (
"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"
)
+var offlineKeys = fixedCredentials{aws.Credentials{AccessKeyID: "AKIDOFFLINE", SecretAccessKey: "offline"}}
+
// 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 {
@@ -125,7 +126,7 @@ func callAll(core *lambdacore.Client, vm *vms.Client, st *sts.Client) []error {
func TestClientsIgnoreEndpointOverrides(t *testing.T) {
clean := &recorder{answer: normal}
cleanCfg := aws.Config{Region: wantRegion, HTTPClient: clean,
- Credentials: credentials.NewStaticCredentialsProvider("AKIDOFFLINE", "offline", "")}
+ Credentials: offlineKeys}
for i, err := range callAll(newClients(cleanCfg)) {
if err != nil {
t.Fatalf("clean call %d: %v", i, err)
@@ -157,6 +158,24 @@ func TestClientsIgnoreEndpointOverrides(t *testing.T) {
if strings.Join(got, " ") != strings.Join(want, " ") {
t.Fatalf("hosts under overrides = %v, want the standard %v", got, want)
}
+
+ // The production path (R41): the config main builds from the resolved
+ // static keys, under the same environment.
+ region, creds, f := resolveCredentials(context.Background())
+ if f != nil {
+ t.Fatalf("resolveCredentials under the hostile environment = %v", f)
+ }
+ prod := staticConfig(region, creds)
+ prodRec := &recorder{answer: normal}
+ prod.HTTPClient = prodRec
+ for i, err := range callAll(newClients(prod)) {
+ if err != nil {
+ t.Fatalf("production call %d: %v", i, err)
+ }
+ }
+ if got := prodRec.seen(); strings.Join(got, " ") != strings.Join(want, " ") {
+ t.Fatalf("production hosts = %v, want the standard %v", got, want)
+ }
}
// TestClientsOneAttempt (review round 1, Important 3): a retryable error is
@@ -203,7 +222,7 @@ func TestClientsBoundEachCall(t *testing.T) {
}
}}
core, vm, st := newClients(aws.Config{Region: wantRegion, HTTPClient: rec,
- Credentials: credentials.NewStaticCredentialsProvider("AKIDOFFLINE", "offline", "")})
+ Credentials: offlineKeys})
start := time.Now()
for i, err := range callAll(core, vm, st) {
if !errors.Is(err, context.DeadlineExceeded) {
@@ -220,7 +239,7 @@ func TestClientsBoundEachCall(t *testing.T) {
func TestServerTimePrinted(t *testing.T) {
rec := &recorder{answer: normal}
_, vm, _ := newClients(aws.Config{Region: wantRegion, HTTPClient: rec,
- Credentials: credentials.NewStaticCredentialsProvider("AKIDOFFLINE", "offline", "")})
+ Credentials: offlineKeys})
out, err := vm.GetMicrovm(context.Background(), &vms.GetMicrovmInput{MicrovmIdentifier: aws.String("vm-1")})
if err != nil {
t.Fatal(err)
diff --git a/internal/isolatedjob/awsjob/livectl/creds.go b/internal/isolatedjob/awsjob/livectl/creds.go
new file mode 100644
index 00000000..f9005a6c
--- /dev/null
+++ b/internal/isolatedjob/awsjob/livectl/creds.go
@@ -0,0 +1,114 @@
+//go:build hostedlive
+
+package main
+
+import (
+ "context"
+ "errors"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/config"
+)
+
+// Controller ruling R41: livectl resolves credentials once, at startup,
+// before the account check, and takes only static keys (an access key, a
+// secret and an optional session token) from the environment or from the
+// selected profile in the shared config and credentials files. Every other
+// provider is refused with exit 4 and a fixed message naming its kind:
+// none of them is ever built, so no credential service is called, nothing
+// refreshes, and every later call signs with exactly the keys the account
+// check saw. Resolution reads only the environment and the two files.
+
+// fixedCredentials hands out the same keys for the life of the process.
+type fixedCredentials struct{ c aws.Credentials }
+
+func (f fixedCredentials) Retrieve(context.Context) (aws.Credentials, error) {
+ c := f.c
+ c.CanExpire, c.Source = false, "livectl static keys"
+ return c, nil
+}
+
+// refusedKind is the guard failure for a credential provider livectl will
+// not use.
+func refusedKind(kind string) *failure {
+ return guard("credentials from %s are refused; livectl takes only static keys (R41)", kind)
+}
+
+// profileKind names the non-static provider a profile asks for, or "".
+func profileKind(sc config.SharedConfig) string {
+ switch {
+ case sc.WebIdentityTokenFile != "":
+ return "web identity"
+ case sc.SSOSessionName != "" || sc.SSOSession != nil || sc.SSOStartURL != "" || sc.SSOAccountID != "" || sc.SSORoleName != "":
+ return "SSO"
+ case sc.CredentialProcess != "":
+ return "credential_process"
+ case sc.CredentialSource == "EcsContainer":
+ return "container credentials"
+ case sc.CredentialSource == "Ec2InstanceMetadata":
+ return "instance metadata"
+ case sc.CredentialSource != "":
+ return "credential_source"
+ case sc.RoleARN != "" || sc.SourceProfileName != "" || sc.Source != nil:
+ return "assume role"
+ case sc.LoginSession != "":
+ return "login session"
+ }
+ return ""
+}
+
+// resolveCredentials returns the region and the static keys to use, in the
+// SDK's own order: keys in the environment; else the selected profile,
+// refused if it names any other provider; else a refusal naming what the
+// SDK would have fallen back to (web identity, the container endpoint or
+// instance metadata).
+func resolveCredentials(ctx context.Context) (string, aws.Credentials, *failure) {
+ ec, err := config.NewEnvConfig()
+ if err != nil {
+ return "", aws.Credentials{}, &failure{exit: exitOther, Kind: "other", Message: "the AWS environment settings did not parse"}
+ }
+ profile := ec.SharedConfigProfile
+ if profile == "" {
+ profile = "default"
+ }
+ cfgFile, credFile := ec.SharedConfigFile, ec.SharedCredentialsFile
+ if cfgFile == "" {
+ cfgFile = config.DefaultSharedConfigFilename()
+ }
+ if credFile == "" {
+ credFile = config.DefaultSharedCredentialsFilename()
+ }
+ sc, err := config.LoadSharedConfigProfile(ctx, profile, func(o *config.LoadSharedConfigOptions) {
+ o.ConfigFiles, o.CredentialsFiles = []string{cfgFile}, []string{credFile}
+ })
+ var missing config.SharedConfigProfileNotExistError
+ if err != nil && !errors.As(err, &missing) {
+ return "", aws.Credentials{}, &failure{exit: exitOther, Kind: "other", Message: "the shared config or credentials file did not parse"}
+ }
+ region := ec.Region
+ if region == "" {
+ region = sc.Region
+ }
+ switch {
+ case ec.Credentials.HasKeys():
+ return region, ec.Credentials, nil
+ case profileKind(sc) != "":
+ return "", aws.Credentials{}, refusedKind(profileKind(sc))
+ case sc.Credentials.HasKeys():
+ return region, sc.Credentials, nil
+ case ec.WebIdentityTokenFilePath != "" || ec.RoleARN != "":
+ return "", aws.Credentials{}, refusedKind("web identity")
+ case ec.ContainerCredentialsEndpoint != "" || ec.ContainerCredentialsRelativePath != "":
+ return "", aws.Credentials{}, refusedKind("container credentials")
+ }
+ return "", aws.Credentials{}, refusedKind("instance metadata")
+}
+
+// staticConfig is the only aws.Config livectl builds: the region and the
+// resolved keys. No credential chain is ever created.
+func staticConfig(region string, c aws.Credentials) aws.Config {
+ if region == "" {
+ region = wantRegion
+ }
+ return aws.Config{Region: region, Credentials: fixedCredentials{c}}
+}
diff --git a/internal/isolatedjob/awsjob/livectl/creds_test.go b/internal/isolatedjob/awsjob/livectl/creds_test.go
new file mode 100644
index 00000000..0c34fad9
--- /dev/null
+++ b/internal/isolatedjob/awsjob/livectl/creds_test.go
@@ -0,0 +1,177 @@
+//go:build hostedlive
+
+package main
+
+import (
+ "context"
+ "net"
+ "net/http"
+ "net/http/httptest"
+ "os"
+ "path/filepath"
+ "regexp"
+ "strings"
+ "sync/atomic"
+ "testing"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/service/lambdacore"
+ "github.com/aws/aws-sdk-go-v2/service/sts"
+)
+
+// credEnv gives the test its own config and credentials files and profile
+// t17, clears every credential setting of the environment, and points
+// every credential service the SDK knows at a counting server, so a test
+// sees any attempt to reach one.
+func credEnv(t *testing.T, configBody, credsBody string) (dir string, hits *atomic.Int64) {
+ t.Helper()
+ dir = t.TempDir()
+ hits = &atomic.Int64{}
+ srv := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
+ hits.Add(1)
+ http.Error(w, "no", http.StatusTeapot)
+ }))
+ ln, err := netListen()
+ if err != nil {
+ t.Fatal(err)
+ }
+ srv.Listener = ln
+ srv.Start()
+ t.Cleanup(srv.Close)
+ cfgFile, credFile := filepath.Join(dir, "config"), filepath.Join(dir, "credentials")
+ for p, b := range map[string]string{cfgFile: configBody, credFile: credsBody} {
+ if err := os.WriteFile(p, []byte(b), 0o600); err != nil {
+ t.Fatal(err)
+ }
+ }
+ for k, v := range map[string]string{
+ "AWS_CONFIG_FILE": cfgFile, "AWS_SHARED_CREDENTIALS_FILE": credFile, "AWS_PROFILE": "t17", "AWS_DEFAULT_PROFILE": "",
+ "AWS_ACCESS_KEY_ID": "", "AWS_SECRET_ACCESS_KEY": "", "AWS_SESSION_TOKEN": "", "AWS_ACCESS_KEY": "", "AWS_SECRET_KEY": "",
+ "AWS_WEB_IDENTITY_TOKEN_FILE": "", "AWS_ROLE_ARN": "", "AWS_ROLE_SESSION_NAME": "",
+ "AWS_CONTAINER_CREDENTIALS_FULL_URI": "", "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI": "", "AWS_REGION": "", "AWS_DEFAULT_REGION": "",
+ "AWS_EC2_METADATA_SERVICE_ENDPOINT": srv.URL, "AWS_ENDPOINT_URL_STS": srv.URL, "AWS_ENDPOINT_URL_SSO": srv.URL,
+ "AWS_ENDPOINT_URL_SSO_OIDC": srv.URL, "AWS_ENDPOINT_URL": srv.URL,
+ } {
+ t.Setenv(k, v)
+ }
+ return dir, hits
+}
+
+const t17Keys = "[t17]\naws_access_key_id = AKIDPROFILE\naws_secret_access_key = profile-secret\n"
+
+// TestCredentialKindsRefused: every provider but static keys is refused
+// with exit 4 and its kind named, without reaching any credential service
+// or running any credential process (R41).
+func TestCredentialKindsRefused(t *testing.T) {
+ for _, c := range []struct {
+ name, config, creds string
+ env map[string]string
+ kind string
+ }{
+ {"assume role", "[profile t17]\nrole_arn = arn:aws:iam::640012953448:role/x\nsource_profile = base\n[profile base]\nregion = eu-west-1\n",
+ t17Keys + "[base]\naws_access_key_id = AKIDBASE\naws_secret_access_key = b\n", nil, "assume role"},
+ {"web identity in the profile", "[profile t17]\nrole_arn = arn:aws:iam::640012953448:role/x\nweb_identity_token_file = /nonexistent/token\n",
+ t17Keys, nil, "web identity"},
+ {"SSO session", "[profile t17]\nsso_session = s\nsso_account_id = 640012953448\nsso_role_name = r\n[sso-session s]\nsso_start_url = https://example.invalid/start\nsso_region = eu-west-1\n",
+ t17Keys, nil, "SSO"},
+ {"legacy SSO", "[profile t17]\nsso_start_url = https://example.invalid/start\nsso_region = eu-west-1\nsso_account_id = 640012953448\nsso_role_name = r\n",
+ t17Keys, nil, "SSO"},
+ {"credential_process", "[profile t17]\ncredential_process = /bin/sh -c 'touch MARKER'\n", t17Keys, nil, "credential_process"},
+ {"credential_source instance metadata", "[profile t17]\nrole_arn = arn:aws:iam::640012953448:role/x\ncredential_source = Ec2InstanceMetadata\n",
+ "", nil, "instance metadata"},
+ {"credential_source container", "[profile t17]\nrole_arn = arn:aws:iam::640012953448:role/x\ncredential_source = EcsContainer\n",
+ "", nil, "container credentials"},
+ {"web identity in the environment", "[profile t17]\nregion = eu-west-1\n", "",
+ map[string]string{"AWS_WEB_IDENTITY_TOKEN_FILE": "/nonexistent/token", "AWS_ROLE_ARN": "arn:aws:iam::640012953448:role/x"}, "web identity"},
+ {"container in the environment", "[profile t17]\nregion = eu-west-1\n", "",
+ map[string]string{"AWS_CONTAINER_CREDENTIALS_FULL_URI": "http://127.0.0.1:1/creds"}, "container credentials"},
+ {"nothing static (instance metadata)", "[profile t17]\nregion = eu-west-1\n", "", nil, "instance metadata"},
+ {"no such profile", "[profile other]\nregion = eu-west-1\n", "", nil, "instance metadata"},
+ } {
+ t.Run(c.name, func(t *testing.T) {
+ dir, hits := credEnv(t, c.config, c.creds)
+ t.Chdir(dir) // a credential_process would create MARKER here
+ for k, v := range c.env {
+ t.Setenv(k, v)
+ }
+ _, _, f := resolveCredentials(context.Background())
+ if f == nil || f.exit != exitGuard || f.Kind != "guard" || !strings.Contains(f.Message, "credentials from "+c.kind+" are refused") {
+ t.Fatalf("resolveCredentials = %+v, want a guard refusal naming %q", f, c.kind)
+ }
+ if n := hits.Load(); n != 0 {
+ t.Fatalf("%d requests reached a credential service during resolution", n)
+ }
+ if _, err := os.Stat(filepath.Join(dir, "MARKER")); err == nil {
+ t.Fatal("the credential process ran")
+ }
+ })
+ }
+}
+
+func TestStaticCredentialsAccepted(t *testing.T) {
+ t.Run("profile keys", func(t *testing.T) {
+ _, hits := credEnv(t, "[profile t17]\nregion = eu-west-1\n", t17Keys)
+ region, c, f := resolveCredentials(context.Background())
+ if f != nil || region != "eu-west-1" || c.AccessKeyID != "AKIDPROFILE" || c.SecretAccessKey != "profile-secret" {
+ t.Fatalf("resolveCredentials = %q, %+v, %v", region, c, f)
+ }
+ if hits.Load() != 0 {
+ t.Fatal("resolution reached a credential service")
+ }
+ })
+ t.Run("environment keys win over the profile", func(t *testing.T) {
+ credEnv(t, "[profile t17]\nrole_arn = arn:aws:iam::640012953448:role/x\nsource_profile = base\n[profile base]\nregion = eu-west-1\n",
+ "[base]\naws_access_key_id = AKIDBASE\naws_secret_access_key = b\n")
+ t.Setenv("AWS_ACCESS_KEY_ID", "AKIDENV")
+ t.Setenv("AWS_SECRET_ACCESS_KEY", "env-secret")
+ t.Setenv("AWS_SESSION_TOKEN", "env-token")
+ t.Setenv("AWS_REGION", "eu-west-1")
+ _, c, f := resolveCredentials(context.Background())
+ if f != nil || c.AccessKeyID != "AKIDENV" || c.SessionToken != "env-token" {
+ t.Fatalf("resolveCredentials = %+v, %v", c, f)
+ }
+ })
+}
+
+var credentialKey = regexp.MustCompile(`Credential=([A-Z0-9]+)/`)
+
+// TestCredentialsNeverRefresh: the keys are read once; changing the
+// environment afterwards changes nothing, and every request is signed with
+// the identity the account check used.
+func TestCredentialsNeverRefresh(t *testing.T) {
+ credEnv(t, "[profile t17]\nregion = eu-west-1\n", "")
+ t.Setenv("AWS_ACCESS_KEY_ID", "AKIDFIRST")
+ t.Setenv("AWS_SECRET_ACCESS_KEY", "first")
+ region, c, f := resolveCredentials(context.Background())
+ if f != nil {
+ t.Fatal(f)
+ }
+ cfg := staticConfig(region, c)
+ var keys []string
+ rec := &recorder{answer: func(req *http.Request) (*http.Response, error) {
+ if m := credentialKey.FindStringSubmatch(req.Header.Get("Authorization")); m != nil {
+ keys = append(keys, m[1])
+ }
+ return normal(req)
+ }}
+ cfg.HTTPClient = rec
+ core, _, st := newClients(cfg)
+ if _, err := st.GetCallerIdentity(context.Background(), &sts.GetCallerIdentityInput{}); err != nil {
+ t.Fatal(err)
+ }
+ t.Setenv("AWS_ACCESS_KEY_ID", "AKIDSECOND")
+ t.Setenv("AWS_SECRET_ACCESS_KEY", "second")
+ if _, err := core.GetNetworkConnector(context.Background(), &lambdacore.GetNetworkConnectorInput{Identifier: aws.String("nc-1")}); err != nil {
+ t.Fatal(err)
+ }
+ if strings.Join(keys, " ") != "AKIDFIRST AKIDFIRST" {
+ t.Fatalf("requests signed with %v, want the first keys twice", keys)
+ }
+ got, err := cfg.Credentials.Retrieve(context.Background())
+ if err != nil || got.CanExpire || got.AccessKeyID != "AKIDFIRST" {
+ t.Fatalf("Retrieve after the change = %+v, %v; want the first keys, never expiring", got, err)
+ }
+}
+
+// netListen binds the counting server to 127.0.0.1 only.
+func netListen() (net.Listener, error) { return net.Listen("tcp", "127.0.0.1:0") }
diff --git a/internal/isolatedjob/awsjob/livectl/main.go b/internal/isolatedjob/awsjob/livectl/main.go
index f047433d..1b0357ad 100644
--- a/internal/isolatedjob/awsjob/livectl/main.go
+++ b/internal/isolatedjob/awsjob/livectl/main.go
@@ -23,7 +23,9 @@
// 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
+// Credentials are static keys only, resolved once at startup (creds.go,
+// R41); any other provider is refused with exit 4. 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.
//
@@ -46,7 +48,6 @@ import (
"github.com/aws/aws-sdk-go-v2/aws"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
- "github.com/aws/aws-sdk-go-v2/config"
"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"
@@ -183,14 +184,12 @@ func isCode(err error, code string) bool {
func main() {
ctx := context.Background()
- cfg, err := config.LoadDefaultConfig(ctx)
e := &env{ctx: ctx, clock: realClock{}, out: os.Stdout, errw: os.Stderr}
- if err != nil {
- os.Exit(report(e, &failure{exit: exitOther, Kind: "other", Message: "AWS config did not load"}))
- }
- if cfg.Region == "" {
- cfg.Region = wantRegion
+ region, creds, f := resolveCredentials(ctx) // once, before the account check (R41)
+ if f != nil {
+ os.Exit(report(e, f))
}
+ cfg := staticConfig(region, creds)
e.region = cfg.Region
e.core, e.vms, e.sts = newClients(cfg)
os.Exit(run(e, os.Args[1:]))