plans: Task 17 live plan, revision 3 after attempt 1
Image lookups list and match by name (GetMicrovmImage takes an ARN); jw flattens multi-line text and 11.2 fails loudly on bad lines; every block runs sandbox-off; U18 sweep replaces guessed not-found codes with list-and-match; guarded 0.1a removes attempt 1's empty scratch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+138
−58
docs/superpowers/plans/2026-11-23-hosted-1a-task17-live-plan.md+138 −58
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.4s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
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.7s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 4.7s
ci-box: file times set from content: 2908 files, 194 directories
ci-box: ready in 18.1s
=== 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.247s
=== 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-11 02:51:11 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m21.013s 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.49s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.49s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 32.32, cpu waiting 20.97%, memory waiting 0.00%, io waiting 0.54%
--- 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.182s 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.512s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.51s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 32.32, cpu waiting 20.57%, memory waiting 0.00%, io waiting 0.52%
--- 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.177s 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.104s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.48s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.88s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.74s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 32.32, cpu waiting 20.57%, memory waiting 0.00%, io waiting 0.52%
--- 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.372s 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.736s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.32s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.46s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.49s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 32.32, cpu waiting 21.34%, memory waiting 0.00%, io waiting 0.56%
--- 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.209s 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.426s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.58s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.15s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.99s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.72s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.97s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 28.96, cpu waiting 16.67%, memory waiting 0.00%, io waiting 0.41%
--- 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 3m18.62s 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 3m16.631s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m44.82s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.4s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 20.64s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.15s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.35s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 7.68, cpu waiting 3.06%, memory waiting 0.00%, io waiting 0.07%
--- 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.081s 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 3.05, cpu waiting 0.32%, memory waiting 0.00%, io waiting 2.09%
--- 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.143s 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 3.05, cpu waiting 0.32%, memory waiting 0.00%, io waiting 2.09%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
amadan: job cancelled — a newer push superseded it
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 47.003s 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.835s amadan.net/oficina/equipo/internal/runner
receipt: slow test 25.79s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 32.51, cpu waiting 20.26%, memory waiting 0.00%, io waiting 0.96%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 46.114s 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 44.162s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.21s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.23s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.56s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 32.51, cpu waiting 20.26%, memory waiting 0.00%, io waiting 0.96%
--- 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.694s 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.842s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.1s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.27s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 23.33, cpu waiting 14.49%, memory waiting 0.00%, io waiting 1.18%
--- 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 26.6%, load 17.87
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.151s 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.328s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.38s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.34s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.89s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.76s amadan.net/oficina/equipo/internal/equipotest TestAuthProductionConfig
machine: 32 CPUs, load 29.91, cpu waiting 17.75%, memory waiting 0.00%, io waiting 0.44%
--- 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 26.6%, load 17.87
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.219s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m12.399s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.2s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.12s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.08s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 17.87, cpu waiting 11.42%, memory waiting 0.00%, io waiting 1.26%
--- 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 26.6%, load 17.87
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.74s 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.805s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.87s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.8s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.73s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.72s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.67s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 24.89, cpu waiting 14.60%, memory waiting 0.00%, io waiting 0.36%
--- 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 26.6%, load 17.87
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 459ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m4.903s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.66s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.64s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.02s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 21.99s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 17.87, cpu waiting 11.42%, memory waiting 0.00%, io waiting 1.26%
--- 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 26.6%, load 17.87
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 600ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 48.756s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.21s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 17.87, cpu waiting 11.42%, memory waiting 0.00%, io waiting 1.26%
--- 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 26.6%, load 17.87
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/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: 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:303 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.61s)
--- FAIL amadan.net/oficina/equipo/internal/runner/webread (package output)
FAIL
rastrillo-budget/v1 ran 1.116s
FAIL amadan.net/oficina/equipo/internal/runner/webread 1.123s
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.357s, over the 15s its record on line 40 allows; reported only, timing fails on CI
receipt: test step 2m16.616s 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 52.616s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.487s 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.357s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 32.06s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.75s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.38s 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 6428274ab1eaf52e886786e5c9b66d9a7f519f0a 0.61s 11.66
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 11.66, cpu waiting 5.05%, memory waiting 0.00%, io waiting 0.12%
--- 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.5s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.905s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.34s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.18s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.36s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.81s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.92s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 32.32, cpu waiting 20.57%, memory waiting 0.00%, io waiting 0.52%
--- 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.439s 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 1m30.861s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.94s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.69s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.21s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.18s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.99s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 29.91, cpu waiting 17.75%, memory waiting 0.00%, io waiting 0.44%
--- 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.316s 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.71s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.25s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.08s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.95s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.2s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 26.88, cpu waiting 15.60%, memory waiting 0.00%, io waiting 0.39%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN TestBrowserCopyContinue
time=2026-11-23T15:25:48.365Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T15:25:48.365Z level=INFO msg="startup phase done" phase=state_lock took=223µs
time=2026-11-23T15:25:48.365Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T15:25:48.365Z level=INFO msg="startup phase done" phase=claim_roots took=174µs
time=2026-11-23T15:25:48.365Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T15:25:48.399Z level=INFO msg="startup phase done" phase=sweep took=33.744ms
time=2026-11-23T15:25:48.399Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T15:25:48.399Z level=INFO msg="startup phase done" phase=credentials took=182µs
time=2026-11-23T15:25:48.399Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T15:25:48.449Z level=INFO msg="startup phase done" phase=open_state took=50.074ms
time=2026-11-23T15:25:48.450Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T15:25:48.451Z level=INFO msg=connecting host=127.0.0.1:46083 protocol=28
time=2026-11-23T15:25:48.456Z level=INFO msg=connected host=127.0.0.1:46083 took=4.428ms
time=2026-11-23T15:25:48.456Z level=INFO msg="capabilities gathering"
time=2026-11-23T15:25:48.456Z level=INFO msg="capabilities gathered" took=690µs tags=linux,claude,go
time=2026-11-23T15:25:48.458Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T15:25:48.466Z 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.81s)
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN TestBrowserEmptyExplore
rastrillo: budget test: go test failed
time=2026-11-23T15:26:19.406Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T15:26:19.407Z level=INFO msg="startup phase done" phase=state_lock took=151µs
time=2026-11-23T15:26:19.407Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T15:26:19.407Z level=INFO msg="startup phase done" phase=claim_roots took=186µs
time=2026-11-23T15:26:19.407Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T15:26:19.438Z level=INFO msg="startup phase done" phase=sweep took=30.878ms
time=2026-11-23T15:26:19.438Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T15:26:19.438Z level=INFO msg="startup phase done" phase=credentials took=149µs
time=2026-11-23T15:26:19.438Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T15:26:19.479Z level=INFO msg="startup phase done" phase=open_state took=40.601ms
time=2026-11-23T15:26:19.479Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T15:26:19.481Z level=INFO msg=connecting host=127.0.0.1:45807 protocol=28
time=2026-11-23T15:26:19.484Z level=INFO msg=connected host=127.0.0.1:45807 took=1.599ms
time=2026-11-23T15:26:19.484Z level=INFO msg="capabilities gathering"
time=2026-11-23T15:26:19.485Z level=INFO msg="capabilities gathered" took=548µs tags=linux,claude,go
time=2026-11-23T15:26:19.485Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T15:26:19.490Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-23T15:26:20.517Z 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.81s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m27.205s
FAIL amadan.net/oficina/equipo/internal/headless 87.511s
receipt: test step 1m28.665s 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.205s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.21s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.23s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.6s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.32s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 8.03s 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 6428274ab1eaf52e886786e5c9b66d9a7f519f0a 1.81s 30.77
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 6428274ab1eaf52e886786e5c9b66d9a7f519f0a 5.81s 30.77
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 26.88, cpu waiting 15.60%, memory waiting 0.00%, io waiting 0.39%
--- 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 971ms 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 792ms 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 348ms 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.13s 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.93, cpu waiting 1.97%, memory waiting 0.00%, io waiting 1.95%
--- 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.35s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.34s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.46s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.92s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.87s
+ 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 (63s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.67s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 14.57s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 20.59s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.30s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (22s)
ok ./internal/headless TestMixedVersions 20.12s
+ 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 (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 35.79, cpu waiting 21.61%, memory waiting 0.00%, io waiting 0.71%
--- 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.231s 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.021s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 158ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 62ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 160ms 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.197s 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.855s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms 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 TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
machine: 32 CPUs, load 7.30, cpu waiting 4.91%, memory waiting 0.00%, io waiting 1.71%
--- 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 17.87
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2621 text files, 2854 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 96 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok amadan.net/oficina/equipo/internal/equipo 2.562s
machine: 32 CPUs, load 28.99, cpu waiting 19.93%, memory waiting 0.00%, io waiting 1.00%
--- 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 17.87
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 17.87, cpu waiting 12.81%, memory waiting 0.00%, io waiting 1.22%
--- 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 26.6%, load 17.87
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 23.33, cpu waiting 15.84%, memory waiting 0.00%, io waiting 1.14%
--- 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 26.6%, load 17.87
shard 28: make gitleaks
[90m3:25PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m3:25PM[0m [32mINF[0m [1m1157 commits scanned.[0m
[90m3:25PM[0m [32mINF[0m [1mscanned ~62513962 bytes (62.51 MB) in 13.7s[0m
[90m3:25PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 28.99, cpu waiting 19.18%, memory waiting 0.00%, io waiting 1.03%
diff --git a/docs/superpowers/plans/2026-11-23-hosted-1a-task17-live-plan.md b/docs/superpowers/plans/2026-11-23-hosted-1a-task17-live-plan.md| index 30788605..c64579f1 100644 |
| --- a/docs/superpowers/plans/2026-11-23-hosted-1a-task17-live-plan.md |
| +++ b/docs/superpowers/plans/2026-11-23-hosted-1a-task17-live-plan.md |
| @@ -1,8 +1,27 @@ |
| # Hosted runners 1a, Task 17: live check plan (for Paul's approval) |
| -**Revision:** 2 (2026-11-23), after Astra's plan review round 1 (2 Critical, 11 Important) and |
| -rulings R32 to R35. **Status:** draft for approval. Nothing in this file has been run; no AWS |
| -command or SDK call of any kind was made while writing it. |
| +**Revision:** 3 (2026-11-23), after attempt 1 stopped safely at 0.4 (nothing created, $0). |
| +Revision 2 (`a11cf43b`) was the approved one. **Status:** draft for re-approval of the changes |
| +below; no AWS command or SDK call of any kind was made while writing it. |
| + |
| +## Changes since the approved revision |
| + |
| +1. **Image lookups by name.** `get-microvm-image` takes an ARN or ID, not a name (attempt 1: |
| + `ValidationException`, "Invalid ARN format"). 0.4 and S.2 now find the image by listing |
| + (`list-microvm-images`, every page) and matching the exact name, so no error code is guessed. |
| + The plan's other `lambda-microvms` calls already pass ARNs or VM IDs. |
| +2. **Journal lines are single lines.** `jw` replaces newlines and tabs in recorded text, and 11.2 |
| + aborts with a clear message on a malformed journal or VM ledger line instead of a traceback. |
| +3. **Every block runs with the agent sandbox off** (attempt 1: the sandbox proxy blocks AWS, |
| + `allowed_domains` is ignored, and `$TMPDIR` differs inside and outside the sandbox). The |
| + "Sandbox network" rule is removed. |
| +4. **Error-code sweep (U18).** Branches that relied on a model-derived not-found code now list and |
| + match instead: the S3 bucket (`list-buckets`) and object (`list-objects-v2`), the SNS topic |
| + (`list-topics`), the image during teardown (`list-microvm-images`), and the EC2 deletion checks |
| + (`describe-*` with an ID filter must list nothing). The two codes attempt 1 observed are |
| + settled; the rest are recorded in section 12. |
| +5. **New step 0.1a** removes attempt 1's scratch, only if its journal records no creation and its |
| + ledgers are empty, keeping the journal under `~/.cache/tmp/equipo-t17-attempt1/`. |
| ## What Paul approves with one GO |
| @@ -64,6 +83,10 @@ and Elastic IP setting, which the installed CLI cannot show, are checked before |
| ## Rules for every block |
| +- **Every block runs with the agent sandbox off.** Attempt 1 showed the sandbox proxy blocks AWS |
| + (its allowlist has no `*.amazonaws.com`, and `allowed_domains` is ignored in this session), and |
| + `$TMPDIR` is a different path inside and outside the sandbox. Running every block the same way |
| + keeps `$TMPDIR/equipo-t17` one directory and lets AWS calls through. |
| - **One block, one Bash tool call, run by bash.** Every block begins with |
| `set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"` and, if it calls AWS, `guard`. The |
| environment file (0.2) defines every helper the blocks use; nothing is pasted by hand. |
| @@ -130,9 +153,6 @@ and Elastic IP setting, which the installed CLI cannot show, are checked before |
| only, checked after every start. The hook server in the image listens on port 9000 inside the |
| MicroVM, not on docs-t1. Scratch is `$TMPDIR/equipo-t17`, removed in 10.9. Go caches stay at |
| their defaults; every Go command runs with `CGO_ENABLED=0`. No sudo. |
| -- **Sandbox network.** AWS blocks need `*.amazonaws.com` in the Bash tool's `allowed_domains` |
| - (STS, EC2, IAM, Lambda, S3, SNS, CloudWatch Logs and Resource Groups Tagging, all in |
| - `eu-west-1` except IAM), plus any host the `kass` credential process contacts. |
| - **Records.** After each section, append its results to |
| `docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md` under `## Task 17 live run`, and commit that |
| file locally at the end (subject under 80 characters). Never push. |
| @@ -168,6 +188,31 @@ echo "code pin ok: $PIN_SHA" |
| - Expected: `code pin ok`; `aws-cli/2.36.x`; `go1.26.x`. |
| - Abort if: any check fails. |
| +### 0.1a Remove attempt 1's scratch, only if it created nothing (no AWS call) |
| + |
| +Attempt 1 left `$TMPDIR/equipo-t17` with an empty ledger and no creation records. This step removes |
| +it only in exactly that state, keeping its journal as evidence; anything else stops. |
| + |
| +```sh |
| +set -euo pipefail |
| +: "${TMPDIR:?TMPDIR is unset}" |
| +S="$TMPDIR/equipo-t17"; K="$HOME/.cache/tmp/equipo-t17-attempt1" |
| +if [ ! -e "$S" ]; then echo "no earlier scratch at $S; nothing to remove"; exit 0; fi |
| +[ -f "$S/journal.tsv" ] || { echo "ABORT: $S has no journal.tsv"; exit 1; } |
| +! grep -qE $'\t(INTENT |CONFIRMED |VM |CONTROLLER start )' "$S/journal.tsv" || { echo "ABORT: the earlier journal records a creation, a VM or a controller start"; exit 1; } |
| +for f in ledger.env vms.tsv; do [ -f "$S/$f" ] && [ ! -s "$S/$f" ] || { echo "ABORT: $S/$f is missing or not empty"; exit 1; }; done |
| +[ ! -e "$S/controller.pid" ] || { echo "ABORT: $S/controller.pid exists"; exit 1; } |
| +[ ! -e "$K" ] || { echo "ABORT: $K already exists"; exit 1; } |
| +mkdir -p -m 700 "$K" |
| +cp -p "$S/journal.tsv" "$K/journal.tsv"; cmp -s "$S/journal.tsv" "$K/journal.tsv" || { echo "ABORT: journal copy differs"; exit 1; } |
| +[ -f "$S/run.env" ] && cp -p "$S/run.env" "$K/run.env" |
| +rm -rf "$S"; [ ! -e "$S" ] || { echo "ABORT: $S still exists"; exit 1; } |
| +echo "attempt 1 scratch removed; journal kept at $K/journal.tsv" |
| +``` |
| + |
| +- Expected: "attempt 1 scratch removed", or "nothing to remove". The executor's own helper files |
| + outside `$S` are not touched. |
| + |
| ### 0.2 Scratch, the environment file and the run names (no AWS call) |
| ```sh |
| @@ -209,7 +254,10 @@ arn_ok() { |
| esac |
| } |
| # jw TEXT: one journal line; a failed write is an abort. |
| -jw() { printf '%s\t%s\n' "$(date -u +%FT%T.%3NZ)" "$*" >> "$JOURNAL" || { echo "ABORT: journal write failed" >&2; exit 1; }; } |
| +jw() { local t="$*"; t=${t//$'\r'/}; t=${t//$'\n'/ | }; t=${t//$'\t'/ } |
| + printf '%s\t%s\n' "$(date -u +%FT%T.%3NZ)" "$t" >> "$JOURNAL" || { echo "ABORT: journal write failed" >&2; exit 1; }; } |
| +# gone0 WHAT CMD...: a list read that must succeed and count 0 (no error code is guessed). |
| +gone0() { local w=$1; shift; get _g "$@"; [ "$_g" = 0 ] || die "$w is still listed ($_g)"; } |
| # intent KIND KEY DETAIL...: written BEFORE a create call. |
| intent() { jw "INTENT $*"; } |
| # rec VAR VALUE: written AFTER a create call returned the ID; checked; exported. |
| @@ -480,16 +528,18 @@ echo "observation: resources already tagged purpose=$TAGV (not ours, never touch |
| try aws ec2 describe-vpcs --filters Name=tag:run,Values=$RUN --query 'Vpcs[].VpcId' --output text; must; [ -z "$OUT" ] || die "a VPC already has run=$RUN" |
| for r in "$OPERATOR_ROLE" "$BUILD_ROLE"; do try aws iam get-role --role-name "$r"; expect_err NoSuchEntity; done |
| try aws lambda-core get-network-connector --identifier "$CONN_NAME"; expect_err ResourceNotFoundException |
| -try aws lambda-microvms get-microvm-image --image-identifier "$IMAGE_NAME"; expect_err ResourceNotFoundException |
| -try aws s3api head-bucket --bucket "$BUCKET"; expect_err 404 |
| +get _v aws lambda-microvms list-microvm-images --query "length(items[?name=='$IMAGE_NAME'])" --output text; [ "$_v" = 0 ] || die "image name $IMAGE_NAME exists" |
| +get _v aws s3api list-buckets --prefix "$BUCKET" --query "length(Buckets[?Name=='$BUCKET'])" --output text; [ "$_v" = 0 ] || die "bucket $BUCKET exists in this account" |
| try aws logs describe-log-groups --log-group-name-prefix "$LOG_GROUP" --query 'logGroups[].logGroupName' --output text; must; [ -z "$OUT" ] || die "log group exists: $OUT" |
| -try aws sns get-topic-attributes --topic-arn "arn:aws:sns:eu-west-1:$ACCOUNT:$TOPIC_NAME"; expect_err NotFound NotFoundException |
| +get _v aws sns list-topics --query "length(Topics[?TopicArn=='arn:aws:sns:eu-west-1:$ACCOUNT:$TOPIC_NAME'])" --output text; [ "$_v" = 0 ] || die "topic $TOPIC_NAME exists" |
| jw "COLLISION-CHECKS clean"; echo "collision checks clean" |
| ``` |
| - Expected: two observation lines; `collision checks clean`. |
| -- Abort if: any name exists, or a lookup fails in any other way (for the bucket, `403` means another |
| - account owns the name). |
| +- Abort if: any name exists, or a lookup fails. The image, bucket and topic checks list and match |
| + the exact name (the CLI reads every page), so they need no error code. A bucket name held by |
| + another account is not listed here; `create-bucket` in 3.1 then fails before anything is created, |
| + which is an abort. |
| --- |
| @@ -1496,9 +1546,9 @@ stop_ctl |
| settle_all |
| try aws lambda-microvms delete-microvm-image --image-identifier "$IMAGE_ARN" --output json |
| [ "$RC" = 0 ] || die "delete image: ${ECODE:-rc$RC} $ERR (a ConflictException is a stop: U8)" |
| -_img() { try aws lambda-microvms get-microvm-image --image-identifier "$IMAGE_ARN" --query state --output text |
| - if [ "$RC" = 0 ]; then echo "$(date -u +%T) $OUT"; case "$OUT" in DELETED) return 0;; DELETING) return 1;; esac; return 2; fi |
| - [ "$ECODE" = ResourceNotFoundException ] && return 0; return 3; } |
| +_img() { try aws lambda-microvms list-microvm-images --query "items[?imageArn=='$IMAGE_ARN'].state" --output text |
| + [ "$RC" = 0 ] || return 3; echo "$(date -u +%T) listed state: [${OUT}]" |
| + case "$OUT" in ""|DELETED) return 0;; DELETING) return 1;; esac; return 2; } |
| poll 900 15 "image deleted" _img |
| for v in "$VER_SMALL" "$VER_LARGE"; do |
| try aws lambda-microvms get-microvm-image-version --image-identifier "$IMAGE_ARN" --image-version "$v" --query state --output text |
| @@ -1525,7 +1575,7 @@ _enis() { try aws ec2 describe-network-interfaces --filters Name=vpc-id,Values=" |
| [ "$RC" = 0 ] || return 3; echo "$(date -u +%T) interfaces in VPC: $OUT"; [ "$OUT" = 0 ] && return 0; return 1; } |
| poll 2400 30 "connector interfaces gone" _enis |
| for e in $(awk -F'\t' '$2 ~ /^SERVICE-ENI / {split($2, a, " "); print a[2]}' "$JOURNAL"); do |
| - try aws ec2 describe-network-interfaces --network-interface-ids "$e"; expect_err InvalidNetworkInterfaceID.NotFound |
| + gone0 "interface $e" aws ec2 describe-network-interfaces --filters Name=network-interface-id,Values="$e" --query 'length(NetworkInterfaces)' --output text |
| deleted service-eni "$e" |
| done |
| ``` |
| @@ -1539,20 +1589,21 @@ done |
| set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; guard |
| need SG RTB RTB_ASSOC SUBNET VPC DEF_SG MAIN_RTB DEF_ACL |
| get _v aws ec2 delete-security-group --group-id "$SG" --query Return --output text; [ "$_v" = True ] || die "delete group" |
| -try aws ec2 describe-security-groups --group-ids "$SG"; expect_err InvalidGroup.NotFound; deleted security-group "$SG" |
| +gone0 "group $SG" aws ec2 describe-security-groups --filters Name=group-id,Values="$SG" --query 'length(SecurityGroups)' --output text; deleted security-group "$SG" |
| aws ec2 disassociate-route-table --association-id "$RTB_ASSOC"; deleted route-table-association "$RTB_ASSOC" |
| aws ec2 delete-route-table --route-table-id "$RTB" |
| -try aws ec2 describe-route-tables --route-table-ids "$RTB"; expect_err InvalidRouteTableID.NotFound; deleted route-table "$RTB" |
| +gone0 "route table $RTB" aws ec2 describe-route-tables --filters Name=route-table-id,Values="$RTB" --query 'length(RouteTables)' --output text; deleted route-table "$RTB" |
| aws ec2 delete-subnet --subnet-id "$SUBNET" |
| -try aws ec2 describe-subnets --subnet-ids "$SUBNET"; expect_err InvalidSubnetID.NotFound; deleted subnet "$SUBNET" |
| +gone0 "subnet $SUBNET" aws ec2 describe-subnets --filters Name=subnet-id,Values="$SUBNET" --query 'length(Subnets)' --output text; deleted subnet "$SUBNET" |
| aws ec2 delete-vpc --vpc-id "$VPC" |
| -try aws ec2 describe-vpcs --vpc-ids "$VPC"; expect_err InvalidVpcID.NotFound; deleted vpc "$VPC" |
| -try aws ec2 describe-security-groups --group-ids "$DEF_SG"; expect_err InvalidGroup.NotFound; deleted vpc-default-security-group "$DEF_SG" |
| -try aws ec2 describe-route-tables --route-table-ids "$MAIN_RTB"; expect_err InvalidRouteTableID.NotFound; deleted vpc-main-route-table "$MAIN_RTB" |
| -try aws ec2 describe-network-acls --network-acl-ids "$DEF_ACL"; expect_err InvalidNetworkAclID.NotFound; deleted vpc-default-network-acl "$DEF_ACL" |
| +gone0 "VPC $VPC" aws ec2 describe-vpcs --filters Name=vpc-id,Values="$VPC" --query 'length(Vpcs)' --output text; deleted vpc "$VPC" |
| +gone0 "default group $DEF_SG" aws ec2 describe-security-groups --filters Name=group-id,Values="$DEF_SG" --query 'length(SecurityGroups)' --output text; deleted vpc-default-security-group "$DEF_SG" |
| +gone0 "main route table $MAIN_RTB" aws ec2 describe-route-tables --filters Name=route-table-id,Values="$MAIN_RTB" --query 'length(RouteTables)' --output text; deleted vpc-main-route-table "$MAIN_RTB" |
| +gone0 "default network ACL $DEF_ACL" aws ec2 describe-network-acls --filters Name=network-acl-id,Values="$DEF_ACL" --query 'length(NetworkAcls)' --output text; deleted vpc-default-network-acl "$DEF_ACL" |
| ``` |
| -- Abort if: a `DependencyViolation` or any read that is not the not-found answer. |
| +- Abort if: a `DependencyViolation`, a failed read, or a filtered `describe` that still lists the |
| + resource. |
| ### 10.4 IAM roles |
| @@ -1573,11 +1624,12 @@ try aws iam get-role --role-name "$BUILD_ROLE"; expect_err NoSuchEntity; deleted |
| set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; guard |
| need BUCKET |
| aws s3api delete-object --bucket "$BUCKET" --key t17/app.zip |
| -try aws s3api head-object --bucket "$BUCKET" --key t17/app.zip; expect_err 404; deleted s3-object "s3://$BUCKET/t17/app.zip" |
| +gone0 "object t17/app.zip" aws s3api list-objects-v2 --bucket "$BUCKET" --prefix t17/app.zip --query 'length((Contents || `[]`)[?Key==`t17/app.zip`])' --output text; deleted s3-object "s3://$BUCKET/t17/app.zip" |
| get _v aws s3api list-object-versions --bucket "$BUCKET" --output json |
| [ "$(jq '((.Versions // []) + (.DeleteMarkers // [])) | length' <<<"$_v")" = 0 ] || die "objects left in the bucket" |
| aws s3api delete-bucket --bucket "$BUCKET" |
| -try aws s3api head-bucket --bucket "$BUCKET"; expect_err 404; deleted s3-bucket "$BUCKET" |
| +_bucket() { try aws s3api list-buckets --prefix "$BUCKET" --query "length(Buckets[?Name=='$BUCKET'])" --output text; [ "$RC" = 0 ] || return 3; echo "$(date -u +%T) listed: $OUT"; [ "$OUT" = 0 ] && return 0; return 1; } |
| +poll 300 10 "bucket gone from the list" _bucket; deleted s3-bucket "$BUCKET" |
| ``` |
| ### 10.6 Log group |
| @@ -1599,7 +1651,8 @@ deleted log-group "$LOG_GROUP" |
| set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; guard |
| need TOPIC_ARN |
| aws sns delete-topic --topic-arn "$TOPIC_ARN" |
| -try aws sns get-topic-attributes --topic-arn "$TOPIC_ARN"; expect_err NotFound NotFoundException; deleted sns-topic "$TOPIC_ARN" |
| +_topic() { try aws sns list-topics --query "length(Topics[?TopicArn=='$TOPIC_ARN'])" --output text; [ "$RC" = 0 ] || return 3; echo "$(date -u +%T) listed: $OUT"; [ "$OUT" = 0 ] && return 0; return 1; } |
| +poll 300 10 "topic gone from the list" _topic; deleted sns-topic "$TOPIC_ARN" |
| ``` |
| ### 10.8 Verify: every record classified, then the tag index as a cross-check |
| @@ -1666,7 +1719,7 @@ proved absent by 0.4) and found by that exact name is ours: it is recorded, tagg |
| tagging call never ran, and torn down. The unnamed EC2 resources carried their tags in the create |
| call (`TagSpecifications`) and are found by a direct `describe` filtered on the `run` tag and their |
| `Name` tag, never through the tag index. Each read has exactly three outcomes: success (record), |
| -an approved not-found code (`NOTCREATED`), or anything else (`UNRESOLVED`: that resource's |
| +an empty list or an approved not-found code (`NOTCREATED`), or anything else (`UNRESOLVED`: that resource's |
| reconciliation stops and it goes to Paul with its cost in S.4). The MicroVM intents are reconciled |
| by S.3. |
| @@ -1720,8 +1773,9 @@ if pending connector "$CONN_NAME" CONN_ARN; then |
| else unresolved "connector $CONN_NAME: ${ECODE:-rc$RC}"; fi |
| fi |
| if pending s3-bucket "$BUCKET" BUCKET_CREATED; then |
| - try aws s3api head-bucket --bucket "$BUCKET" |
| - if [ "$RC" = 0 ]; then rec BUCKET_CREATED "$BUCKET" |
| + try aws s3api list-buckets --prefix "$BUCKET" --query "length(Buckets[?Name=='$BUCKET'])" --output text |
| + if [ "$RC" != 0 ]; then unresolved "s3-bucket $BUCKET: list failed: ${ECODE:-rc$RC}" |
| + elif [ "$OUT" = 1 ]; then rec BUCKET_CREATED "$BUCKET" |
| try aws s3api get-bucket-tagging --bucket "$BUCKET" --query "TagSet[?Key=='run'].Value" --output text |
| if [ "$RC" = 0 ] && [ "$OUT" = "$RUN" ]; then : |
| elif [ "$RC" = 0 ] || code_in NoSuchTagSet; then |
| @@ -1730,8 +1784,8 @@ if pending s3-bucket "$BUCKET" BUCKET_CREATED; then |
| try aws s3api put-bucket-tagging --bucket "$BUCKET" --tagging "TagSet=[{Key=purpose,Value=$TAGV},{Key=run,Value=$RUN}]" |
| [ "$RC" = 0 ] || unresolved "s3-bucket $BUCKET: tagging failed: ${ECODE:-rc$RC}" |
| else unresolved "s3-bucket $BUCKET: tags unreadable: ${ECODE:-rc$RC}"; fi |
| - elif code_in 404; then absent "s3-bucket $BUCKET" |
| - else unresolved "s3-bucket $BUCKET: ${ECODE:-rc$RC}"; fi |
| + elif [ "$OUT" = 0 ]; then absent "s3-bucket $BUCKET" |
| + else unresolved "s3-bucket $BUCKET: listed $OUT times"; fi |
| fi |
| if pending log-group "$LOG_GROUP" LOG_GROUP_CREATED; then |
| try aws logs describe-log-groups --log-group-name-prefix "$LOG_GROUP" --query 'logGroups[].logGroupName' --output text |
| @@ -1742,28 +1796,35 @@ if pending log-group "$LOG_GROUP" LOG_GROUP_CREATED; then |
| fi |
| if pending s3-object "s3://$BUCKET/t17/app.zip" ARTIFACT; then |
| need ARTIFACT_B64 |
| - try aws s3api head-object --bucket "$BUCKET" --key t17/app.zip --checksum-mode ENABLED --query ChecksumSHA256 --output text |
| - if [ "$RC" = 0 ] && [ "$OUT" = "$ARTIFACT_B64" ]; then rec ARTIFACT "s3://$BUCKET/t17/app.zip" |
| + if [ -z "${BUCKET_CREATED:-}" ]; then absent "s3-object (no bucket)"; OBJ=absent; RC=0; OUT="" |
| + else try aws s3api list-objects-v2 --bucket "$BUCKET" --prefix t17/app.zip --query 'length((Contents || `[]`)[?Key==`t17/app.zip`])' --output text |
| + if [ "$RC" != 0 ]; then unresolved "s3-object: list failed: ${ECODE:-rc$RC}"; OBJ=unknown |
| + elif [ "$OUT" = 0 ]; then absent "s3-object"; OBJ=absent |
| + else OBJ=listed; try aws s3api head-object --bucket "$BUCKET" --key t17/app.zip --checksum-mode ENABLED --query ChecksumSHA256 --output text; fi |
| + fi |
| + if [ "$OBJ" != listed ]; then : |
| + elif [ "$RC" = 0 ] && [ "$OUT" = "$ARTIFACT_B64" ]; then rec ARTIFACT "s3://$BUCKET/t17/app.zip" |
| try aws s3api get-object-tagging --bucket "$BUCKET" --key t17/app.zip --query "TagSet[?Key=='run'].Value" --output text |
| if [ "$RC" = 0 ] && [ "$OUT" != "$RUN" ]; then |
| try aws s3api put-object-tagging --bucket "$BUCKET" --key t17/app.zip --tagging "TagSet=[{Key=purpose,Value=$TAGV},{Key=run,Value=$RUN}]" |
| [ "$RC" = 0 ] || unresolved "s3-object: tagging failed: ${ECODE:-rc$RC}" |
| elif [ "$RC" != 0 ]; then unresolved "s3-object: tags unreadable: ${ECODE:-rc$RC}"; fi |
| elif [ "$RC" = 0 ]; then unresolved "s3-object: checksum $OUT is not $ARTIFACT_B64" |
| - elif code_in 404; then absent "s3-object" |
| - else unresolved "s3-object: ${ECODE:-rc$RC}"; fi |
| + else unresolved "s3-object: head failed: ${ECODE:-rc$RC}"; fi |
| fi |
| if pending microvm-image "$IMAGE_NAME" IMAGE_ARN; then |
| - try aws lambda-microvms get-microvm-image --image-identifier "$IMAGE_NAME" --output json |
| - if [ "$RC" = 0 ]; then arn=$(jq -r .imageArn <<<"$OUT") |
| + try aws lambda-microvms list-microvm-images --query "items[?name=='$IMAGE_NAME'].imageArn" --output text |
| + if [ "$RC" != 0 ]; then unresolved "microvm-image $IMAGE_NAME: list failed: ${ECODE:-rc$RC}" |
| + elif [ -z "$OUT" ]; then absent "microvm-image $IMAGE_NAME" |
| + elif [ "$(wc -w <<<"$OUT")" != 1 ]; then unresolved "microvm-image $IMAGE_NAME: listed several: $OUT" |
| + else arn=$OUT |
| [ "$arn" = "arn:aws:lambda:eu-west-1:$ACCOUNT:microvm-image:$IMAGE_NAME" ] || die "image ARN [$arn]" |
| rec IMAGE_ARN "$arn" |
| try aws lambda-microvms list-tags --resource "$IMAGE_ARN" --query 'Tags.run' --output text |
| if [ "$RC" = 0 ] && [ "$OUT" != "$RUN" ]; then |
| try aws lambda-microvms tag-resource --resource "$IMAGE_ARN" --tags purpose=$TAGV,run=$RUN; [ "$RC" = 0 ] || unresolved "microvm-image: tagging failed: ${ECODE:-rc$RC}" |
| elif [ "$RC" != 0 ]; then unresolved "microvm-image: tags unreadable: ${ECODE:-rc$RC}"; fi |
| - elif code_in ResourceNotFoundException; then absent "microvm-image $IMAGE_NAME" |
| - else unresolved "microvm-image $IMAGE_NAME: ${ECODE:-rc$RC}"; fi |
| + fi |
| fi |
| for pair in "2048:VER_SMALL" "4096:VER_LARGE"; do |
| mem=${pair%%:*}; v=${pair#*:} |
| @@ -1775,14 +1836,15 @@ for pair in "2048:VER_SMALL" "4096:VER_LARGE"; do |
| done |
| if pending sns-topic "$TOPIC_NAME" TOPIC_ARN; then |
| t="arn:aws:sns:eu-west-1:$ACCOUNT:$TOPIC_NAME" |
| - try aws sns get-topic-attributes --topic-arn "$t" --query 'Attributes.TopicArn' --output text |
| - if [ "$RC" = 0 ] && [ "$OUT" = "$t" ]; then rec TOPIC_ARN "$t" |
| + try aws sns list-topics --query "length(Topics[?TopicArn=='$t'])" --output text |
| + if [ "$RC" != 0 ]; then unresolved "sns-topic: list failed: ${ECODE:-rc$RC}" |
| + elif [ "$OUT" = 1 ]; then rec TOPIC_ARN "$t" |
| try aws sns list-tags-for-resource --resource-arn "$t" --query "Tags[?Key=='run'].Value" --output text |
| if [ "$RC" = 0 ] && [ "$OUT" != "$RUN" ]; then |
| try aws sns tag-resource --resource-arn "$t" --tags Key=purpose,Value=$TAGV Key=run,Value=$RUN; [ "$RC" = 0 ] || unresolved "sns-topic: tagging failed: ${ECODE:-rc$RC}" |
| elif [ "$RC" != 0 ]; then unresolved "sns-topic: tags unreadable: ${ECODE:-rc$RC}"; fi |
| - elif code_in NotFound NotFoundException; then absent "sns-topic $TOPIC_NAME" |
| - else unresolved "sns-topic: ${ECODE:-rc$RC}"; fi |
| + elif [ "$OUT" = 0 ]; then absent "sns-topic $TOPIC_NAME" |
| + else unresolved "sns-topic: listed $OUT times"; fi |
| fi |
| [ -z "$UNRES" ] && echo "reconciliation complete: nothing unresolved" || { echo "unresolved, for Paul (S.4):"; tr '|' '\n' <<<"$UNRES"; } |
| ``` |
| @@ -1870,16 +1932,26 @@ import sys, datetime as dt |
| p = lambda x: dt.datetime.fromisoformat(x.replace("Z", "+00:00")) |
| now = dt.datetime.now(dt.timezone.utc) |
| prov, phase, end = {}, {}, {} |
| -for line in open(sys.argv[1]): |
| - vid, src, start, _ = line.rstrip("\n").split("\t") |
| - if start.startswith("phase:"): |
| - t = p(start[6:]); phase[vid] = min(t, phase.get(vid, t)) |
| - else: |
| - t = p(start); prov[vid] = min(t, prov.get(vid, t)) |
| -for line in open(sys.argv[2]): |
| +def bad(kind, n, line, why): |
| + sys.exit(f"ABORT: {kind} line {n} cannot be read ({why}): {line[:160]!r}") |
| +for n, line in enumerate(open(sys.argv[1]), 1): |
| + f = line.rstrip("\n").split("\t") |
| + if len(f) != 4: bad("VM ledger", n, line, f"{len(f)} fields, want 4") |
| + vid, src, start, _ = f |
| + try: |
| + if start.startswith("phase:"): |
| + t = p(start[6:]); phase[vid] = min(t, phase.get(vid, t)) |
| + else: |
| + t = p(start); prov[vid] = min(t, prov.get(vid, t)) |
| + except ValueError as e: bad("VM ledger", n, line, e) |
| +for n, line in enumerate(open(sys.argv[2]), 1): |
| + if "\t" not in line: bad("journal", n, line, "no tab") |
| ts, msg = line.rstrip("\n").split("\t", 1) |
| w = msg.split(" ") |
| - if w[0] == "VMGONE": end[w[1]] = p(ts) |
| + if w[0] == "VMGONE": |
| + if len(w) < 2: bad("journal", n, line, "VMGONE without an ID") |
| + try: end[w[1]] = p(ts) |
| + except ValueError as e: bad("journal", n, line, e) |
| hours, phase_only = 0.0, [] |
| for vid in set(prov) | set(phase): |
| start = prov.get(vid) or phase[vid] |
| @@ -1895,7 +1967,8 @@ EOF |
| ``` |
| - Stop rule: exit status 3 (estimate $5 or more), or a VM live outside its step, means the safe |
| - stop. Paul reads the real bill himself (R33). |
| + stop. A journal or VM ledger line that cannot be read ends the block with an `ABORT:` line naming |
| + it (exit status 1); the estimate is then made by hand from the ledger and reported as such. Paul reads the real bill himself (R33). |
| **Wall-clock:** about 4.5 to 5 hours from 0.1 to 10.9. |
| @@ -1915,6 +1988,14 @@ EOF |
| - **U9, connector interfaces:** the pinned SDK documents asynchronous interface cleanup on delete, |
| then not found. The 15 and 40 minute bounds are ours; exhausting them is a stop. |
| - **U15, billing service name:** removed with the Cost Explorer call (R33). |
| +- **U18, error codes, part settled (revision 3):** attempt 1 observed `ResourceNotFoundException` |
| + from `lambda-core get-network-connector` given an unknown name, `NoSuchEntity` from IAM |
| + `get-role` on a missing role, and the `An error occurred (<code>)` text the `try` helper parses. |
| + IAM `delete-role-policy` uses the same `NoSuchEntity` code (its model error is |
| + `NoSuchEntityException`). `NoSuchTagSet` for an untagged bucket is in the S3 API reference for |
| + `GetBucketTagging`. The S3 `404`, SNS `NotFound` and EC2 `Invalid*.NotFound` branches are gone: |
| + those checks now list and match. `get-microvm-image` takes an ARN or ID, not a name (observed); |
| + the plan no longer calls it by name. |
| - **U20, process survival:** settled by R37: sandboxed calls kill their children on return, so the |
| controller blocks run with the sandbox off, with PID files and identity checks; a missing |
| controller is an abort. |
| @@ -1945,11 +2026,10 @@ EOF |
| 13. **U17. MicroVM ID format** (`mvm-` and the guide's pattern) for harvesting IDs from logs; the |
| image-scoped scans are the authoritative inventory either way. 9.A records the first real ID; |
| one outside R36's form is a stop. |
| -14. **U18. Error codes** used in expected-failure branches that are taken from models or |
| - convention, not observed: `404` for `head-bucket` and `head-object`, `NotFound` (or |
| - `NotFoundException`) for SNS, `NoSuchTagSet` for an untagged bucket and `NoSuchEntity` for IAM in S.2, |
| - `ResourceNotFoundException` for Lambda reads, and the |
| - `An error occurred (<code>)` text the `try` helper parses. A different code aborts. |
| +14. **U18. Lambda MicroVMs not-found code**, still a stop point: `ResourceNotFoundException` for |
| + `get-microvm` and `terminate-microvm` on a VM that is gone, and for `get-microvm-image-version` |
| + after the image is deleted. It is the documented 404 in the model and the API reference for |
| + each operation, but not yet observed. A different code aborts (fail closed). |
| 15. **U19. Image version tags:** whether versions carry the image's tags; recorded as read in 3.8, |
| not required. |