plans: Task 17 live plan, revision 5 round 1
Astra round 1 on revision 5: hard stops propagate through subshells (FATAL marker) and blocks run as scripts; uncertain launches replayed by client token then settled; Items:null is empty; interfaces recorded by ID and out-of-subnet ones stop; lv_wait has one outer deadline; 10.2 shares a 120-minute budget; fact VMs capped at 600 s (R43, worst ~$9.70); the read-only envelope stated; stale prose aligned.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+211
−89
docs/superpowers/plans/2026-11-23-hosted-1a-task17-live-plan.md+211 −89
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.3s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.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.3s
ci-box: file times set from content: 2919 files, 195 directories
ci-box: ready in 16.8s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok amadan.net/oficina/equipo/internal/equipotest 0.249s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
1.2s
+ go list -export -test -tags testbuild -f ./...
0.6s
+ go list -export -test -tags browser,testbuild -f ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
0.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m21.408s 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.816s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.82s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.44, cpu waiting 21.08%, memory waiting 0.00%, io waiting 0.57%
--- 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.333s 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.664s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.66s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.44, cpu waiting 20.65%, memory waiting 0.00%, io waiting 0.55%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m25.027s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.895s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.34s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.76s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.8s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 36.44, cpu waiting 20.11%, memory waiting 0.00%, io waiting 0.54%
--- 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.526s 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.841s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.33s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.48s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.57s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.45s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 37.00, cpu waiting 21.53%, memory waiting 0.00%, io waiting 0.59%
--- 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 1m36.971s 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.225s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.83s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.99s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.87s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.68s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.85s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 30.51, cpu waiting 16.82%, memory waiting 0.00%, io waiting 0.44%
--- 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 3m9.005s 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 3m6.891s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.01s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.27s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.54s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.14s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.36s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 10.71, cpu waiting 3.65%, memory waiting 0.00%, io waiting 0.13%
--- 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.128s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m1.624s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.31s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
machine: 32 CPUs, load 1.22, cpu waiting 0.94%, memory waiting 0.00%, io waiting 2.20%
--- 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.101s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m26.784s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 1.22, cpu waiting 0.94%, memory waiting 0.00%, io waiting 2.20%
--- 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.762s 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.638s amadan.net/oficina/equipo/internal/runner
receipt: slow test 25.61s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 34.10, cpu waiting 20.50%, memory waiting 0.00%, io waiting 1.02%
--- 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.289s 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.293s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.33s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.84s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.56s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 34.10, cpu waiting 20.50%, memory waiting 0.00%, io waiting 1.02%
--- 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.987s 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.059s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.3s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 24.98, cpu waiting 15.05%, memory waiting 0.00%, io waiting 1.25%
--- 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.3%, load 18.62
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed
receipt: test step 1m5.169s 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.28s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.27s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.18s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.17s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.7s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.49s amadan.net/oficina/equipo/internal/equipotest TestAuthProductionConfig
machine: 32 CPUs, load 32.91, cpu waiting 17.36%, memory waiting 0.00%, io waiting 0.45%
--- 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.3%, load 18.62
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.333s 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.62, cpu waiting 11.93%, memory waiting 0.00%, io waiting 1.33%
--- 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.3%, load 18.62
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.934s 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.839s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.93s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.72s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.66s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.62s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.59s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 28.31, cpu waiting 14.73%, memory waiting 0.00%, io waiting 0.38%
--- 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.3%, load 18.62
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 434ms 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.62, cpu waiting 11.93%, memory waiting 0.00%, io waiting 1.33%
--- 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.3%, load 18.62
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 677ms 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.62, cpu waiting 11.93%, memory waiting 0.00%, io waiting 1.33%
--- 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.3%, load 18.62
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/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/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 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.834s, over the 15s its record on line 40 allows; reported only, timing fails on CI
receipt: test step 2m16.371s against a 60s target (the gate's other steps are not in this figure)
receipt: 12 packages ran, 55 cached, 20 without tests, 0 failed
receipt: slow package 53.07s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.424s 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.834s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 32.06s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.54s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.21s 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
machine: 32 CPUs, load 12.06, cpu waiting 5.44%, memory waiting 0.00%, io waiting 0.13%
--- 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.635s 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.126s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.53s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.09s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.44s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.79s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.86s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 36.44, cpu waiting 20.65%, memory waiting 0.00%, io waiting 0.55%
--- 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.421s 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.811s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.01s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.64s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.05s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.16s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 8.1s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 32.91, cpu waiting 17.91%, memory waiting 0.00%, io waiting 0.47%
--- 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.277s 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.655s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.95s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.09s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.94s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.3s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.15s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 30.51, cpu waiting 15.74%, memory waiting 0.00%, io waiting 0.41%
--- 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-28T15:52:34.591Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T15:52:34.591Z level=INFO msg="startup phase done" phase=state_lock took=97µs
time=2026-11-28T15:52:34.591Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T15:52:34.591Z level=INFO msg="startup phase done" phase=claim_roots took=171µs
time=2026-11-28T15:52:34.591Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T15:52:34.621Z level=INFO msg="startup phase done" phase=sweep took=29.913ms
time=2026-11-28T15:52:34.621Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T15:52:34.621Z level=INFO msg="startup phase done" phase=credentials took=144µs
time=2026-11-28T15:52:34.621Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T15:52:34.663Z level=INFO msg="startup phase done" phase=open_state took=41.461ms
time=2026-11-28T15:52:34.663Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T15:52:34.664Z level=INFO msg=connecting host=127.0.0.1:35273 protocol=28
time=2026-11-28T15:52:34.667Z level=INFO msg=connected host=127.0.0.1:35273 took=2.427ms
time=2026-11-28T15:52:34.667Z level=INFO msg="capabilities gathering"
time=2026-11-28T15:52:34.669Z level=INFO msg="capabilities gathered" took=1.845ms tags=linux,claude,go
time=2026-11-28T15:52:34.672Z level=INFO msg="hello sent" protocol=28
time=2026-11-28T15:52:34.681Z 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.82s)
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN TestBrowserEmptyExplore
time=2026-11-28T15:53:05.664Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T15:53:05.664Z level=INFO msg="startup phase done" phase=state_lock took=102µs
time=2026-11-28T15:53:05.664Z level=INFO msg="startup phase" phase=claim_roots
rastrillo: budget test: go test failed
time=2026-11-28T15:53:05.665Z level=INFO msg="startup phase done" phase=claim_roots took=94µs
time=2026-11-28T15:53:05.665Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T15:53:05.696Z level=INFO msg="startup phase done" phase=sweep took=31.513ms
time=2026-11-28T15:53:05.696Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T15:53:05.696Z level=INFO msg="startup phase done" phase=credentials took=103µs
time=2026-11-28T15:53:05.696Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T15:53:05.735Z level=INFO msg="startup phase done" phase=open_state took=38.998ms
time=2026-11-28T15:53:05.736Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T15:53:05.736Z level=INFO msg=connecting host=127.0.0.1:35779 protocol=28
time=2026-11-28T15:53:05.737Z level=INFO msg=connected host=127.0.0.1:35779 took=943µs
time=2026-11-28T15:53:05.738Z level=INFO msg="capabilities gathering"
time=2026-11-28T15:53:05.738Z level=INFO msg="capabilities gathered" took=669µs tags=linux,claude,go
time=2026-11-28T15:53:05.739Z level=INFO msg="hello sent" protocol=28
time=2026-11-28T15:53:05.743Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-28T15:53:06.715Z 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.79s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m26.828s
FAIL amadan.net/oficina/equipo/internal/headless 87.129s
receipt: test step 1m28.093s 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 1m26.828s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.3s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.12s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.49s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.41s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 8.04s 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 617a4bda8c1aebd900fd10a20f44b14f3986721d 1.82s 34.64
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 617a4bda8c1aebd900fd10a20f44b14f3986721d 5.79s 34.64
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 30.51, cpu waiting 15.74%, memory waiting 0.00%, io waiting 0.41%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo
receipt: test step 1.054s 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 191ms 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.085s 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 3.60, cpu waiting 1.60%, memory waiting 0.00%, io waiting 2.13%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.39s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.30s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.13s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.94s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.94s
+ 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 13.06s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 14.16s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 20.43s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.15s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (22s)
ok ./internal/headless TestMixedVersions 20.04s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 40.21, cpu waiting 21.87%, memory waiting 0.00%, io waiting 0.78%
--- 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.382s 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.302s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 176ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 65ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.16s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms 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.023s 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.678s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 250ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
machine: 32 CPUs, load 9.48, cpu waiting 4.59%, memory waiting 0.00%, io waiting 1.86%
--- 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 26.3%, load 18.62
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.540s
machine: 32 CPUs, load 32.63, cpu waiting 19.47%, memory waiting 0.00%, io waiting 1.09%
--- 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 26.3%, load 18.62
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 18.62, cpu waiting 11.93%, memory waiting 0.00%, io waiting 1.33%
--- 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.3%, load 18.62
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 30.43, cpu waiting 16.10%, memory waiting 0.00%, io waiting 1.20%
--- 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.3%, load 18.62
shard 28: make gitleaks
[90m3:52PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m3:52PM[0m [32mINF[0m [1m1171 commits scanned.[0m
[90m3:52PM[0m [32mINF[0m [1mscanned ~62757636 bytes (62.76 MB) in 13.9s[0m
[90m3:52PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 32.63, cpu waiting 19.47%, memory waiting 0.00%, io waiting 1.09%
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 9bddb374..6f09e152 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 |
| @@ -24,8 +24,11 @@ these fallbacks: the operator role uses the AWS-managed connector policy plus a |
| delete from the start; 3.6 to 3.8 step down one base image version once; the contract runs to |
| completion; 9.B records echoes instead of asserting them; and 10.2 drops the delete policy's |
| managed-operator condition once if the connector cannot be deleted. Expected spend is about $0.55, |
| -worst case about $9.90, retained image storage after an early stop about $0.50 to $5.40 a month. |
| -Any other change to a command, or any AWS call not written here, comes back to Paul first. |
| +worst case about $9.70, retained image storage after an early stop about $0.50 to $8.20 a month. |
| +Guarded, run-scoped, read-only calls on this run's own resources are pre-approved even where this |
| +plan does not print them; a failed observation read is a FINDING. Reads needed for identity, |
| +ownership, settlement, deletion or a named later step stay fatal. Any other change to a command, |
| +or any other AWS call, comes back to Paul first. |
| ## Changes since revision 4 (`c5f9bc36`) |
| @@ -64,6 +67,25 @@ Any other change to a command, or any AWS call not written here, comes back to P |
| delete policy's `ec2:ManagedResourceOperator` condition (keeping the subnet condition) and |
| retries once; a second failure is a hard stop. Image versions are no longer separate teardown |
| objects. |
| +13. **Astra's round 1 on revision 5.** |
| + - A hard stop inside a subshell or a poll now reaches the parent (`die` writes a FATAL marker, |
| + `finding` re-raises it), so it can never become a FINDING. `ctl_ready`'s listener check stays |
| + a hard stop. Every block is run as its own script (`bash <file>`), so `set -e` is always in |
| + force. |
| + - A launch with an uncertain outcome (no answer, a 5xx) is replayed under the same client token |
| + and then settled by image-scoped scans before anything else runs; only a 4xx counts as a |
| + confirmed refusal. |
| + - `"Items":null` is read as an empty list. |
| + - Interfaces outside the run's subnet are a hard stop. Interfaces are recorded by ID during the |
| + VM phases and before the connector delete, and 10.2 proves each one gone. |
| + - `lv_wait` has one outer deadline covering credentials, start-up and waiting. A late success |
| + is a timeout. |
| + - 10.2 shares one 120-minute budget across the attempt and its fallback, inside a 130-minute |
| + block limit. |
| + - Spend (R43): the fact VMs' maximum is now 600 s and the third build is counted; the worst case |
| + is about $9.70. |
| + - The read-only envelope is stated; observation reads in 1.1 to 1.3 are FINDINGs. |
| + - Stale prose in 1.1, 1.2 and 7.3 is aligned. |
| 12. **Section 12 re-run.** Settled: U3, U10, U12, U13 and the create half of U2. U11, U14, U17 and |
| U19 are now FINDINGs. New: U21 (a qualified egress ARN on RunMicrovm) and U22 (livectl's |
| interface after Astra). |
| @@ -94,6 +116,15 @@ and Elastic IP setting are checked by the controller's own code before the first |
| (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. |
| +- **Every block runs as its own script, `bash <file>`.** The agent writes each block's text, |
| + exactly as printed (only the `<T17 printed by 0.2>` path filled in), to `$T17/blocks/<block>.sh` |
| + and runs `bash "$T17/blocks/<block>.sh"` in the foreground, or detached for the long blocks below. |
| + 0.1, 0.1a and 0.2 run before the scratch exists, so they go to `$TMPDIR/equipo-t17-pre/` instead, |
| + which 10.9 removes. |
| + It never pastes a block into the tool's shell: the plan writer found on 2026-11-28 that a tool's |
| + wrapper can run commands in a context where `set -e` is ignored, which would let a failed command |
| + pass silently. Run as a script, `set -e` is in force, and every hard stop also reaches the parent |
| + through `die`'s FATAL marker. |
| - **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. |
| @@ -104,9 +135,13 @@ and Elastic IP setting are checked by the controller's own code before the first |
| that cannot complete (a create or delete that fails, the connector's qualified ARN, the image). |
| Everything else that differs from expectation is a `finding`: a `FINDING` line in the journal, |
| printed with `FINDING:`, and the block goes on. The report lists every FINDING. |
| -- **Reads never stop the run.** A read of the run's own resources that errors or answers |
| - differently is a FINDING (`fact_eq`, `fact_json`, `fact_lv`), except a read that a hard stop |
| - depends on (the VM scans that prove VMs ended, and deletion checks). |
| +- **The read-only envelope.** Guarded (`guard`, livectl's own guard), run-scoped, read-only calls |
| + on this run's own resources are pre-approved, including ones this plan does not print. A read |
| + that only observes, and errors or answers differently, is a FINDING (`fact_eq`, `fact_json`, |
| + `fact_lv`, `eni_snapshot soft`). A read needed for identity, ownership, settlement, deletion or a |
| + named later step stays fatal: the VM scans and `vm_end`, the collision checks, the connector's |
| + qualified ARN, the base image list, the default-resource lookups, the interface list before the |
| + connector delete, and every deletion check. |
| - **Failure is loud.** A failed command that is not handled ends the block. Calls that are expected |
| to fail run under `try` or `lv` and pass only through an explicit branch that names the accepted |
| error codes. Every poll fails when its bound runs out. |
| @@ -152,7 +187,7 @@ and Elastic IP setting are checked by the controller's own code before the first |
| from a status file. Every one of them starts with the sandbox-off header, so it runs the same way |
| detached. The agent never uses another background mechanism. |
| 1. Write the block's text, exactly as printed here with only the `<T17 printed by 0.2>` path filled |
| - in, to `$T17/blocks/<block>.sh` (for example `$T17/blocks/6.1.sh`). |
| + in, to `$T17/blocks/<block>.sh` (for example `$T17/blocks/6.1.sh`), as for every block. |
| 2. Start it (one sandbox-off call): |
| ```sh |
| @@ -184,7 +219,7 @@ and Elastic IP setting are checked by the controller's own code before the first |
| An exit status other than 0, or the bound passing, is an abort (safe stop). Bounds in minutes: |
| 2.1: 10; 2.3: 20; 3.8: 50; 3.9: 25; 6.1: 75; 7.2: 40; 7.3: 15; 7.4: 25; 8.2: 25; 9.A: 15; 9.C: 15; |
| - 10.1: 30; 10.2: 100. |
| + 10.1: 30; 10.2: 130 (its shared budget is 120). |
| - **The controller, with the sandbox off (R37).** A sandboxed Bash call kills its child processes |
| when it returns, so every block that starts, checks or stops the controller runs with the agent's |
| sandbox OFF: 5.6, 6.1, 7.1, 7.2, 7.3, 7.4, 8.1, 8.2, 9.A, 9.G, 10.1, 10.9, S.1 and S.3, plus |
| @@ -298,7 +333,17 @@ export API=127.0.0.1:18443 METRICS=127.0.0.1:18444 |
| [ -f "$T17/run.env" ] && . "$T17/run.env" |
| [ -f "$LEDGER" ] && . "$LEDGER" |
| -die() { echo "ABORT: $*" >&2; jw "ABORT $*" 2>/dev/null || true; exit 1; } |
| +# die: a hard stop. It also appends to $T17/FATAL, so a hard stop inside a subshell, a poll or a |
| +# command substitution reaches the parent: finding and fatal_check re-raise it, so it can never |
| +# become a FINDING. Exit status 99. |
| +die() { echo "ABORT: $*" >&2; jw "ABORT $*" 2>/dev/null || true; printf '%s\n' "$*" >> "$T17/FATAL" 2>/dev/null || true; exit 99; } |
| +# soft_fail: an ordinary failure (a poll's bound or an unexpected state) that ends the current |
| +# (sub)shell with status 1 without a hard stop; at a block's top level it still ends the block. |
| +soft_fail() { echo "FAILED: $*" >&2; jw "FAILED $*" 2>/dev/null || true; exit 1; } |
| +_fatal_count() { if [ -f "$T17/FATAL" ]; then wc -l < "$T17/FATAL"; else echo 0; fi; } |
| +_FATAL0=$(_fatal_count) |
| +# fatal_check: re-raise any hard stop that happened in a subshell since this block began. |
| +fatal_check() { [ "$(_fatal_count)" -le "$_FATAL0" ] || die "a hard stop happened inside a subshell: $(tail -n 1 "$T17/FATAL")"; } |
| # need VAR...: each must be set, non-empty, and not None or null. |
| need() { local v; for v; do [ -n "${!v:-}" ] && [ "${!v}" != None ] && [ "${!v}" != null ] || die "$v is unset"; done; } |
| # arn_ok ARN: in this account and eu-west-1 (IAM and S3 ARNs have no region). |
| @@ -385,7 +430,7 @@ get() { local __v=$1; shift; try "$@"; must; printf -v "$__v" '%s' "$OUT"; } |
| # SessionToken, if present, needs an Expiration. Static IAM user keys have neither. |
| _creds() { |
| local j rc had=0; case $- in *e*) had=1;; esac |
| - set +e; j=$(aws configure export-credentials --profile kass --format process 2>/dev/null); rc=$?; [ "$had" = 1 ] && set -e |
| + set +e; j=$(timeout 30 aws configure export-credentials --profile kass --format process 2>/dev/null); rc=$?; [ "$had" = 1 ] && set -e |
| [ "$rc" = 0 ] || return 1 |
| _AK=$(jq -r '.AccessKeyId // empty' <<<"$j" 2>/dev/null || true) |
| _SK=$(jq -r '.SecretAccessKey // empty' <<<"$j" 2>/dev/null || true) |
| @@ -417,12 +462,13 @@ lv() { |
| [ -x "$LIVECTL" ] || die "livectl is not built at $LIVECTL" |
| need RUN |
| try _lvx "$@" |
| - ECODE=""; LV_KIND=""; LV_MSG="" |
| + ECODE=""; LV_KIND=""; LV_MSG=""; LV_HTTP="" |
| if [ "$RC" != 0 ]; then |
| local e; e=$(tail -n 1 <<<"$ERR") |
| ECODE=$(jq -r '.code // empty' <<<"$e" 2>/dev/null || true) |
| LV_KIND=$(jq -r '.error // empty' <<<"$e" 2>/dev/null || true) |
| LV_MSG=$(jq -r '.aws_message // empty' <<<"$e" 2>/dev/null || true) |
| + LV_HTTP=$(jq -r '.http_status // empty' <<<"$e" 2>/dev/null || true) |
| fi |
| [ "$RC" != 4 ] || die "livectl guard refusal (account, region, run prefix or -run): $ERR" |
| [ "$RC" != 3 ] || die "livectl usage error (a plan defect): $ERR" |
| @@ -435,24 +481,30 @@ _transient() { [ "$RC" = 2 ] || return 1; [ "$LV_KIND" = transport ] && return 0 |
| # lvr ARGS...: lv with up to 3 tries, 5 s apart, on a transient failure. For reads and idempotent |
| # deletes and terminates only; creates and other changes use lv once. |
| lvr() { local i; for i in 1 2 3; do lv "$@"; _transient || return 0; [ "$i" = 3 ] || { echo "transient (${ECODE:-$LV_KIND}); trying again"; sleep 5; }; done; return 0; } |
| -# lv_wait SECONDS ARGS...: a livectl wait bounded by SECONDS in all. A transient failure inside the |
| -# wait (exit 2) is a FINDING and the wait goes on with the time left. When the exported credentials |
| -# expire before the bound (less a 120 s margin), the wait is split into shorter livectl calls, each |
| -# with freshly exported credentials. Leaves RC 0 (done), 5 (the |
| -# bound passed, also for an answer after it), 6 (a failed state) or 2 (any other error). |
| +# lv_wait SECONDS ARGS...: a livectl wait with one outer deadline, SECONDS from now, covering the |
| +# credential export (bounded at 30 s), livectl's start and account check (its 60 s cutoff) and the |
| +# waiting itself: 90 s of each call is kept for the first two. A chunk is never longer than what is |
| +# left; when the exported credentials expire sooner (less a 120 s margin) the wait is split into |
| +# shorter calls, each with fresh credentials. A transient exit 2 is a FINDING and the wait goes on. |
| +# A success that comes back after the deadline counts as a timeout. Leaves RC 0, 5 (the deadline |
| +# passed), 6 (a failed state) or 2 (any other error). A guard failure stays a hard stop. |
| lv_wait() { local end=$(( $(date +%s) + $1 )) left cl chunk; shift |
| while :; do |
| - left=$(( end - $(date +%s) )); if [ "$left" -le 0 ]; then RC=5; return 0; fi |
| + left=$(( end - $(date +%s) - 90 )); if [ "$left" -le 0 ]; then RC=5; return 0; fi |
| cl=$(cred_left) || die "kass credentials could not be exported (R42)" |
| + left=$(( end - $(date +%s) - 90 )); if [ "$left" -le 0 ]; then RC=5; return 0; fi |
| chunk=$left |
| - if [ "$cl" != none ] && [ $(( cl - 120 )) -lt "$chunk" ]; then chunk=$(( cl - 120 )); [ "$chunk" -ge 60 ] || chunk=60; fi |
| + if [ "$cl" != none ] && [ $(( cl - 120 )) -lt "$chunk" ]; then |
| + chunk=$(( cl - 120 )); if [ "$chunk" -lt 15 ]; then chunk=$(( left < 15 ? left : 15 )); fi |
| + fi |
| lv "$@" -timeout "${chunk}s" |
| + if [ "$RC" = 0 ] && [ "$(date +%s)" -gt "$end" ]; then finding "a wait answered after its deadline; counted as a timeout"; RC=5; return 0; fi |
| if _transient; then finding "transient error inside a wait (${ECODE:-$LV_KIND}); waiting on"; sleep 5; continue; fi |
| if [ "$RC" = 5 ] && [ "$chunk" -lt "$left" ]; then echo "wait split at the credentials' expiry; going on with fresh credentials"; continue; fi |
| return 0 |
| done; } |
| # finding TEXT: a FINDING line in the journal; the run goes on (Paul's rule 1). |
| -finding() { jw "FINDING $*"; echo "FINDING: $*"; } |
| +finding() { fatal_check; jw "FINDING $*"; echo "FINDING: $*"; } |
| # fact_eq WHAT WANT CMD...: a read of the run's own resource; a failed read or another value is a FINDING. |
| fact_eq() { local w=$1 want=$2; shift 2; try "$@" |
| if [ "$RC" != 0 ]; then finding "$w: read failed (${ECODE:-rc$RC})"; elif [ "$OUT" = "$want" ]; then echo "ok: $w"; else finding "$w: got [$OUT], want [$want]"; fi; } |
| @@ -476,15 +528,17 @@ guard() { |
| try aws sts get-caller-identity --query Account --output text; must |
| [ "$OUT" = "$ACCOUNT" ] || die "account is $OUT, not $ACCOUNT" |
| } |
| -# poll SECONDS INTERVAL WHAT FN ARGS...: FN returns 0 done, 1 not yet, anything else fatal. |
| +# poll SECONDS INTERVAL WHAT FN ARGS...: FN returns 0 done, 1 not yet, anything else an ordinary |
| +# failure (soft_fail). A hard stop inside FN (die) stays a hard stop. |
| poll() { |
| local secs=$1 iv=$2 what=$3 rc had=0 end; end=$(( $(date +%s) + secs )); shift 3 |
| case $- in *e*) had=1;; esac |
| while :; do |
| set +e; "$@"; rc=$?; [ "$had" = 1 ] && set -e |
| [ "$rc" = 0 ] && return 0 |
| - [ "$rc" = 1 ] || die "$what: fatal (rc $rc)" |
| - [ "$(date +%s)" -lt "$end" ] || die "$what: not done within $secs s" |
| + fatal_check |
| + [ "$rc" = 1 ] || soft_fail "$what: unexpected state (rc $rc)" |
| + [ "$(date +%s)" -lt "$end" ] || soft_fail "$what: not done within $secs s" |
| sleep "$iv" |
| done |
| } |
| @@ -506,9 +560,9 @@ vm_ids() { [ -f "$VMS" ] || die "no VM ledger"; VIDS=$(cut -f1 "$VMS" | sort -u) |
| scan() { |
| need IMAGE_ARN |
| lvr vm list -image "$IMAGE_ARN"; must |
| - printf '%s' "$OUT" | jq -e '.Items | type == "array"' >/dev/null || die "list reply has no Items array" |
| - printf '%s' "$OUT" | jq -e --arg a "$IMAGE_ARN" 'all(.Items[]; .ImageArn == $a)' >/dev/null || die "list returned a VM of another image" |
| - printf '%s' "$OUT" | jq -r '.Items[] | [.MicrovmId, .State, .StartedAt] | @tsv' > "$T17/last_scan.tsv" |
| + printf '%s' "$OUT" | jq -e '.Items == null or (.Items | type) == "array"' >/dev/null || die "list reply has no Items array" |
| + printf '%s' "$OUT" | jq -e --arg a "$IMAGE_ARN" 'all((.Items // [])[]; .ImageArn == $a)' >/dev/null || die "list returned a VM of another image" |
| + printf '%s' "$OUT" | jq -r '(.Items // [])[] | [.MicrovmId, .State, .StartedAt] | @tsv' > "$T17/last_scan.tsv" |
| local id st started |
| while IFS=$'\t' read -r id st started; do [ -n "$id" ] && vmrec "$id" scan "$started"; done < "$T17/last_scan.tsv" |
| LIVE=$(awk -F'\t' '$2 != "TERMINATED" {print $1}' "$T17/last_scan.tsv") || die "scan output unreadable" |
| @@ -560,11 +614,14 @@ settle_all() { |
| die "VMs still live after three settle rounds" |
| } |
| # launch LABEL TOKEN MAXSECONDS PAYLOADFILE: one livectl vm run (Small, NO_INGRESS, the connector); |
| -# records any VM it returns. TOKEN must start with the run prefix. |
| -launch() { |
| - need IMAGE_ARN VER_SMALL CONN_QARN; [ -f "$4" ] || die "no payload file $4" |
| - intent vm "$1" "token=$2" "max=$3" |
| - local t0; t0=$(date -u +%FT%T.%3NZ) |
| +# records any VM it returns. TOKEN must start with the run prefix. Sets L_OUTCOME: |
| +# created the reply names a VM (recorded); |
| +# rejected a confirmed refusal: an api error with a 4xx status, so AWS did not run it; |
| +# settled the outcome was uncertain (no answer, a 5xx, an unreadable error): the identical |
| +# request was replayed up to twice under the same client token; if no replay named a |
| +# VM, settle_all ended every live VM of this image (bounded image-scoped scans), which |
| +# proves nothing launched is left. If that cannot be proved, settle_all is a hard stop. |
| +_launch_once() { |
| lv vm run -image "$IMAGE_ARN" -version "$VER_SMALL" -connector "$CONN_QARN" -max-seconds "$3" \ |
| -client-token "$2" -payload-file "$4" |
| printf '%s\n' "$OUT" > "$T17/out/launch-$1.json"; printf '%s\n' "$ERR" > "$T17/out/launch-$1.err" |
| @@ -573,9 +630,46 @@ launch() { |
| L_ID=$(printf '%s' "$OUT" | jq -r '.MicrovmId // empty') |
| [ -n "$L_ID" ] || die "launch $1 succeeded with no MicrovmId" |
| local st; st=$(printf '%s' "$OUT" | jq -r '.StartedAt // empty') |
| - vmrec "$L_ID" "$1" "${st:-phase:$t0}" |
| + vmrec "$L_ID" "$1" "${st:-phase:$L_T0}"; L_OUTCOME=created |
| + elif [ "$LV_KIND" = api ] && [ -n "$LV_HTTP" ] && [ "$LV_HTTP" -ge 400 ] && [ "$LV_HTTP" -lt 500 ]; then L_OUTCOME=rejected |
| + else L_OUTCOME=uncertain; fi |
| +} |
| +launch() { |
| + need IMAGE_ARN VER_SMALL CONN_QARN; [ -f "$4" ] || die "no payload file $4" |
| + intent vm "$1" "token=$2" "max=$3" |
| + L_T0=$(date -u +%FT%T.%3NZ) |
| + _launch_once "$@" |
| + local k |
| + for k in 1 2; do |
| + [ "$L_OUTCOME" = uncertain ] || break |
| + jw "UNCERTAIN vm $1 token=$2 (${L_CODE:-${LV_KIND:-rc$L_RC}}): replay $k with the same client token"; sleep 5 |
| + _launch_once "$1-replay$k" "$2" "$3" "$4" |
| + done |
| + if [ "$L_OUTCOME" = uncertain ] || { [ "$L_OUTCOME" = rejected ] && grep -q $'\tUNCERTAIN vm '"$1"' ' "$JOURNAL"; }; then |
| + finding "launch $1 has an uncertain outcome (${L_CODE:-${LV_KIND:-rc$L_RC}}); settling every VM of the image" |
| + settle_all; L_OUTCOME=settled; L_ID=""; jw "RESOLVED vm $1 by settlement" |
| fi |
| - echo "launch $1: rc=$L_RC code=${L_CODE:-none} id=${L_ID:-none}" |
| + echo "launch $1: $L_OUTCOME rc=$L_RC code=${L_CODE:-none} id=${L_ID:-none}" |
| +} |
| +# eni_snapshot MODE WHEN: list the VPC's interfaces. Any outside this run's subnet is not in the ledger: |
| +# a hard stop, before anything is recorded. Each one inside is recorded once as SERVICE-ENI, so 10.2 |
| +# can prove each ID gone. MODE strict makes a failed list a hard stop (10.2 needs it); soft makes it a |
| +# FINDING (observations during the VM phases). |
| +eni_snapshot() { |
| + need VPC SUBNET |
| + try aws ec2 describe-network-interfaces --filters Name=vpc-id,Values="$VPC" --output json |
| + if [ "$RC" != 0 ]; then |
| + [ "$1" = strict ] && die "interface list failed (${ECODE:-rc$RC}); 10.2 needs it" |
| + finding "interface list failed ($2): ${ECODE:-rc$RC}"; return 0 |
| + fi |
| + printf '%s' "$OUT" | jq -e '.NetworkInterfaces | type == "array"' >/dev/null || die "interface list unreadable ($2)" |
| + printf '%s' "$OUT" | jq -e --arg s "$SUBNET" 'all(.NetworkInterfaces[]; .SubnetId == $s)' >/dev/null \ |
| + || die "an interface outside this run's subnet is in the run's VPC ($2): not in the ledger" |
| + local e n=0 |
| + for e in $(printf '%s' "$OUT" | jq -r '.NetworkInterfaces[].NetworkInterfaceId'); do |
| + n=$((n + 1)); grep -qF "SERVICE-ENI $e" "$JOURNAL" || jw "SERVICE-ENI $e" |
| + done |
| + jw "FACT interfaces in the VPC ($2): $n"; echo "interfaces in the VPC ($2): $n" |
| } |
| # harvest LOG SOURCE PHASESTART: record every MicroVM ID a log names, with the phase start as its |
| # conservative start (scans add the provider's startedAt later). |
| @@ -622,12 +716,13 @@ _ctl_ready() { |
| printf '%s\n' "$m" | grep -q '^equipo_hosted_reap_last_error 0$' || return 4 |
| return 0 |
| } |
| -# ctl_ready: within 240 s the audit has passed and a reaper pass has finished cleanly; listeners are 127.0.0.1 only. |
| +# ctl_ready: within 240 s the audit has passed and a reaper pass has finished cleanly (else soft_fail); |
| +# listeners are 127.0.0.1 only (else a hard stop: docs-t1's binding rule). |
| ctl_ready() { |
| poll 240 5 "controller ready" _ctl_ready |
| listeners; [ "$LST" = "127.0.0.1:18443 127.0.0.1:18444 " ] || die "listeners are [$LST], want 127.0.0.1:18443 and :18444 only" |
| - local m; m=$(curl -fsS "http://$METRICS/metrics") || die "metrics unreadable" |
| - echo "controller ready:"; printf '%s\n' "$m" | grep -E '^equipo_hosted_(network_audit_passing|reap_last_error|reap_last_age_seconds|store_readable) ' || die "readiness metrics missing" |
| + local m; m=$(curl -fsS "http://$METRICS/metrics") || soft_fail "metrics unreadable" |
| + echo "controller ready:"; printf '%s\n' "$m" | grep -E '^equipo_hosted_(network_audit_passing|reap_last_error|reap_last_age_seconds|store_readable) ' || soft_fail "readiness metrics missing" |
| } |
| # stop_ctl: SIGTERM, then SIGKILL after 45 s if still alive; ports must close. |
| stop_ctl() { |
| @@ -715,7 +810,7 @@ try aws ec2 describe-vpcs --filters Name=tag:run,Values=$RUN --query 'Vpcs[].Vpc |
| for r in "$OPERATOR_ROLE" "$BUILD_ROLE"; do try aws iam get-role --role-name "$r"; expect_err NoSuchEntity; done |
| lvr connector get -id "$CONN_NAME"; { [ "$RC" != 0 ] && [ "$ECODE" = ResourceNotFoundException ]; } || die "connector name $CONN_NAME: rc $RC ${ECODE:-} (it exists, or the check could not run)" |
| lvr image list -name "$IMAGE_NAME"; must |
| -[ "$(jq --arg n "$IMAGE_NAME" '[.Items[] | select(.Name == $n)] | length' <<<"$OUT")" = 0 ] || die "image name $IMAGE_NAME exists" |
| +[ "$(jq --arg n "$IMAGE_NAME" '[(.Items // [])[] | select(.Name == $n)] | length' <<<"$OUT")" = 0 ] || die "image name $IMAGE_NAME exists" |
| get _v aws s3api list-buckets --prefix "$BUCKET" --query "length(Buckets[?Name=='$BUCKET'])" --output json; [ "$_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" |
| get _v aws sns list-topics --query "length(Topics[?TopicArn=='arn:aws:sns:eu-west-1:$ACCOUNT:$TOPIC_NAME'])" --output json; [ "$_v" = 0 ] || die "topic $TOPIC_NAME exists" |
| @@ -757,13 +852,15 @@ get DEF aws ec2 describe-network-acls --filters Name=vpc-id,Values="$VPC" Name=d |
| get DEF aws ec2 describe-security-group-rules --filters Name=group-id,Values="$DEF_SG" --query 'SecurityGroupRules[].SecurityGroupRuleId' --output text |
| [ -n "$DEF" ] || die "the default group has no rules to tag"; rec DEF_SG_RULES "$DEF" |
| aws ec2 create-tags --resources "$DEF_SG" "$MAIN_RTB" "$DEF_ACL" $DEF_SG_RULES --tags $TAGS_EC2 |
| -get n aws ec2 describe-tags --filters Name=resource-id,Values="$VPC,$DEF_SG,$MAIN_RTB,$DEF_ACL,$(tr '\t ' ',,' <<<"$DEF_SG_RULES")" Name=key,Values=purpose --query 'length(Tags)' --output text |
| -[ "$n" = $(( 4 + $(wc -w <<<"$DEF_SG_RULES") )) ] || finding "purpose tag read back on $n resources" |
| +try aws ec2 describe-tags --filters Name=resource-id,Values="$VPC,$DEF_SG,$MAIN_RTB,$DEF_ACL,$(tr '\t ' ',,' <<<"$DEF_SG_RULES")" Name=key,Values=purpose --query 'length(Tags)' --output json |
| +if [ "$RC" != 0 ]; then finding "purpose tag read failed: ${ECODE:-rc$RC}" |
| +elif [ "$OUT" != $(( 4 + $(wc -w <<<"$DEF_SG_RULES") )) ]; then finding "purpose tag read back on $OUT resources"; fi |
| echo "VPC $VPC: DNS support and hostnames off; defaults tagged: $DEF_SG $MAIN_RTB $DEF_ACL $DEF_SG_RULES" |
| ``` |
| - Expected: the last line. The defaults go with the VPC in 10.3 and are verified gone in 10.8. |
| -- Abort if: any check fails. |
| +- Abort if: the create, a default-resource lookup or the tagging fails. A differing or failed |
| + readback (DNS attributes, tag count) is a FINDING. |
| ### 1.2 One VM subnet |
| @@ -776,12 +873,12 @@ try aws ec2 create-subnet --vpc-id "$VPC" --cidr-block 10.177.1.0/24 --availabil |
| printf '%s\n' "$OUT" > "$T17/out/1.2-subnet.json" |
| rec SUBNET "$(jq -r .Subnet.SubnetId "$T17/out/1.2-subnet.json")" |
| aws ec2 wait subnet-available --subnet-ids "$SUBNET" |
| -get got aws ec2 describe-subnets --subnet-ids "$SUBNET" --query 'Subnets[0].[VpcId,CidrBlock,AvailabilityZone,MapPublicIpOnLaunch]' --output text |
| -[ "$got" = "$VPC 10.177.1.0/24 eu-west-1a False" ] || finding "subnet is [$got]" |
| +fact_eq "subnet readback" "$VPC 10.177.1.0/24 eu-west-1a False" aws ec2 describe-subnets --subnet-ids "$SUBNET" --query 'Subnets[0].[VpcId,CidrBlock,AvailabilityZone,MapPublicIpOnLaunch]' --output text |
| echo "subnet $SUBNET ok" |
| ``` |
| -- Abort if: creation fails (an unsupported zone is a stop: U10) or the readback differs. |
| +- Abort if: creation fails (an unsupported zone would be a stop; U10 is settled). A readback that |
| + differs or fails is a FINDING. |
| ### 1.3 The subnet's own route table, local route only |
| @@ -796,10 +893,8 @@ rec RTB "$(jq -r .RouteTable.RouteTableId "$T17/out/1.3-rtb.json")" |
| intent route-table-association "" "$RTB/$SUBNET" |
| try aws ec2 associate-route-table --route-table-id "$RTB" --subnet-id "$SUBNET" --query AssociationId --output text; must |
| rec RTB_ASSOC "$OUT" |
| -get got aws ec2 describe-route-tables --route-table-ids "$RTB" --query 'RouteTables[0].Routes[].[DestinationCidrBlock,GatewayId,State]' --output text |
| -[ "$got" = "10.177.0.0/16 local active" ] || finding "routes are [$got]" |
| -get got aws ec2 describe-route-tables --filters Name=association.subnet-id,Values="$SUBNET" --query 'RouteTables[].RouteTableId' --output text |
| -[ "$got" = "$RTB" ] || finding "the subnet uses [$got]" |
| +fact_eq "routes" "10.177.0.0/16 local active" aws ec2 describe-route-tables --route-table-ids "$RTB" --query 'RouteTables[0].Routes[].[DestinationCidrBlock,GatewayId,State]' --output text |
| +fact_eq "the subnet's route table" "$RTB" aws ec2 describe-route-tables --filters Name=association.subnet-id,Values="$SUBNET" --query 'RouteTables[].RouteTableId' --output text |
| echo "route table $RTB: local route only, associated" |
| ``` |
| @@ -945,21 +1040,17 @@ if [ "$RC" = 0 ]; then |
| [ "$(jq -r .LatestVersionArn <<<"$OUT")" = "$CONN_QARN" ] || finding "unqualified read: LatestVersionArn is $(jq -r .LatestVersionArn <<<"$OUT"), not $CONN_QARN" |
| else finding "unqualified connector read failed: ${ECODE:-rc$RC}"; fi |
| lvr connector list-versions -id "$CONN_ARN" |
| -if [ "$RC" = 0 ]; then jw "FACT connector versions: $(jq -c '[.Items[] | {Version,VersionArn,State}]' <<<"$OUT")" |
| +if [ "$RC" = 0 ]; then jw "FACT connector versions: $(jq -c '[(.Items // [])[] | {Version,VersionArn,State}]' <<<"$OUT")" |
| else finding "connector version list failed: ${ECODE:-rc$RC}"; fi |
| -try aws ec2 describe-network-interfaces --filters Name=vpc-id,Values="$VPC" --output json |
| -if [ "$RC" = 0 ]; then |
| - printf '%s\n' "$OUT" > "$T17/out/2.4-enis.json" |
| - for e in $(jq -r '.NetworkInterfaces[].NetworkInterfaceId' "$T17/out/2.4-enis.json"); do jw "SERVICE-ENI $e"; done |
| - jw "FACT interfaces in the VPC while ACTIVE: $(jq '.NetworkInterfaces | length' "$T17/out/2.4-enis.json")" |
| - jq -e --arg s "$SUBNET" 'all(.NetworkInterfaces[]; .SubnetId == $s)' "$T17/out/2.4-enis.json" >/dev/null || finding "an interface outside the run's subnet" |
| -else finding "interface list failed: ${ECODE:-rc$RC}"; fi |
| +eni_snapshot soft "2.4, connector ACTIVE" |
| echo "qualified connector ARN: $CONN_QARN" |
| ``` |
| - Expected: the version-1 read is this run's ACTIVE connector, in this subnet with this group. No |
| Elastic IP configuration. Attempt 3 saw no interfaces while ACTIVE, which is recorded as a fact. |
| - Interfaces Lambda creates later are recorded in 10.2 by the VPC-wide count. |
| + Interfaces Lambda creates later are recorded by ID by `eni_snapshot` in 9.B, 6.1, 7.2 and 8.1 |
| + (while VMs run) and in 10.2 just before the connector is deleted; 10.2 then proves each recorded ID |
| + gone. An interface outside this run's subnet is a hard stop. |
| - Abort if: the version-1 read fails or shows another connector; everything after needs it. |
| --- |
| @@ -1105,10 +1196,10 @@ for the pre-approved step down in 3.7 and 3.8. |
| set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; guard |
| lvr image base-versions; must |
| printf '%s\n' "$OUT" > "$T17/out/3.6-base.json" |
| -jq -r '.Items[] | [.ImageVersion, .Status, ([.SupportedCpuConfigurations[]?.Architecture] | join(","))] | @tsv' "$T17/out/3.6-base.json" |
| +jq -r '(.Items // [])[] | [.ImageVersion, .Status, ([.SupportedCpuConfigurations[]?.Architecture] | join(","))] | @tsv' "$T17/out/3.6-base.json" |
| rec BASE_ARN "$(jq -r '.BaseImage' "$T17/out/3.6-base.json")" |
| [ "$BASE_ARN" = arn:aws:lambda:eu-west-1:aws:microvm-image:al2023-1 ] || finding "base image ARN is $BASE_ARN" |
| -vs=$(jq -r '[.Items[] | select(.Status == "AVAILABLE" and any(.SupportedCpuConfigurations[]?; .Architecture == "X86_64"))] | .[0:2][] | .ImageVersion' "$T17/out/3.6-base.json") |
| +vs=$(jq -r '[(.Items // [])[] | select(.Status == "AVAILABLE" and any(.SupportedCpuConfigurations[]?; .Architecture == "X86_64"))] | .[0:2][] | .ImageVersion' "$T17/out/3.6-base.json") |
| v1=$(sed -n 1p <<<"$vs"); v2=$(sed -n 2p <<<"$vs") |
| [ -n "$v1" ] || die "no AVAILABLE base version supports x86_64; the image needs one" |
| rec BASE_VER "$v1" |
| @@ -1148,7 +1239,7 @@ create_image() { |
| IMG_CODE=$ECODE; IMG_MSG=$LV_MSG |
| jw "REFUSED image attempt $2 (base $1): ${IMG_CODE} ${IMG_MSG}" |
| lvr image list -name "$IMAGE_NAME"; must |
| - [ "$(jq --arg n "$IMAGE_NAME" '[.Items[] | select(.Name == $n)] | length' <<<"$OUT")" = 0 ] || die "a refused create left an image named $IMAGE_NAME" |
| + [ "$(jq --arg n "$IMAGE_NAME" '[(.Items // [])[] | select(.Name == $n)] | length' <<<"$OUT")" = 0 ] || die "a refused create left an image named $IMAGE_NAME" |
| jw "NOTCREATED image attempt $2" |
| case "$IMG_CODE" in ValidationException|AccessDeniedException|InvalidParameterValueException) role_code=yes;; *) role_code=no;; esac |
| if [ "$role_code" = yes ] \ |
| @@ -1424,6 +1515,7 @@ scan >/dev/null; [ -z "$LIVE" ] || die "live VMs of this image before the contra |
| export EQUIPO_HOSTED_LIVE_CONFIG="$T17/live.json" |
| J="$T17/out/6-contract.json" |
| if gotest "$J" -tags hostedlive ./internal/isolatedjob/awsjob -run TestLiveContract -count=1 -v -json -timeout 60m; then rc=0; else rc=$?; fi |
| +eni_snapshot soft "6.1, after the contract" |
| settle_all |
| [ -s "$J" ] || { finding "the contract wrote no test output (rc $rc)"; exit 0; } |
| jq -R -r 'fromjson? | select(.Action == "output") | .Output' "$J" > "$T17/out/6-contract.log" |
| @@ -1482,6 +1574,7 @@ jw "PHASE sequence start" |
| if gotest "$T17/out/7.2-sequence.log" -tags hostedlive ./internal/hostedclient -run 'TestLiveControllerSequence$' -count=1 -v -timeout 30m; then rc=0; else rc=$?; fi |
| jw "PHASE sequence end rc=$rc" |
| grep -E 'attempt |launch:|running:|pause:|suspended:|resume:|stop:|timings:' "$T17/out/7.2-sequence.log" || true |
| +eni_snapshot soft "7.2, after the sequence" |
| harvest_ctl |
| stop_ctl |
| settle_all |
| @@ -1531,8 +1624,8 @@ jw "CRASH controller exited after launching $CRASH_VM" |
| - Expected: the launch fails in transport (the test passes); exit status 137; the log line |
| `crash point: the provider launched <vm> for <attempt>; exiting before the Ref is saved`; the VM |
| - `PENDING` or `RUNNING`. If the launch is refused because no audit has passed recently, `ctl_ready` |
| - was not satisfied; that cannot happen after it returned, so it is an abort. |
| + `PENDING` or `RUNNING`. A launch refused because no audit has passed recently is a FINDING, like |
| + any other failed launch step; the controller is stopped and every VM settled. |
| - The controller answering the launch, another exit status, or no launched VM is a FINDING; 7.4 |
| is then skipped if there is no VM to recover. Every VM is settled. |
| @@ -1590,8 +1683,9 @@ printf 'orphan' > "$T17/out/payload-orphan" |
| rec ORPHAN_TOKEN "$NAME-orphan" |
| rec ORPHAN_PLANTED "$(date -u +%FT%TZ)" |
| launch orphan "$ORPHAN_TOKEN" 1800 "$T17/out/payload-orphan" |
| -if [ "$L_RC" != 0 ]; then finding "the orphan launch failed: ${L_CODE:-rc$L_RC} ${L_MSG}; section 8 skipped"; stop_ctl; rec SKIP_8 yes; exit 0; fi |
| +if [ "$L_OUTCOME" != created ]; then finding "the orphan launch was $L_OUTCOME (${L_CODE:-rc$L_RC} ${L_MSG}); section 8 skipped"; stop_ctl; settle_all; rec SKIP_8 yes; exit 0; fi |
| rec ORPHAN_VM "$L_ID" |
| +eni_snapshot soft "8.1, orphan planted" |
| ``` |
| - Expected: a VM ID; no job or intent names its token; its 1800 s maximum duration is the backstop. |
| @@ -1647,8 +1741,10 @@ n=$(dbread "select count(*) from audit where action='orphan_stopped' and reason |
| 9.A to 9.F run before section 6, with no controller running. Every VM here comes from the `launch` |
| helper (livectl `vm run`: Small, `NO_INGRESS`, the qualified connector, a short maximum duration as |
| AWS's backstop), which journals the intent first and records any VM ID returned. Each experiment |
| -ends every VM it made, confirmed, before the next one starts. The expected codes are recorded as |
| -results; any other code is a FINDING and the run goes on. |
| +ends every VM it made, confirmed, before the next one starts. A launch whose outcome is uncertain |
| +is replayed under the same client token and, failing that, settled by image-scoped scans before the |
| +next experiment (the `launch` helper). The expected codes are recorded as results; any other code is |
| +a FINDING and the run goes on. |
| ### 9.A Client token: same request, then changed request |
| @@ -1659,18 +1755,20 @@ scan >/dev/null; [ -z "$LIVE" ] || die "live VMs of this image: $LIVE" |
| printf 'task17-a' > "$T17/out/payload-a"; printf 'task17-b' > "$T17/out/payload-b" |
| rec TOKEN_A "$NAME-token-a" |
| rec A1_BEFORE "$(date -u +%FT%T.%3NZ)" |
| -launch A1 "$TOKEN_A" 900 "$T17/out/payload-a" |
| +launch A1 "$TOKEN_A" 600 "$T17/out/payload-a" |
| rec A1_AFTER "$(date -u +%FT%T.%3NZ)" |
| [ "$L_RC" = 0 ] || die "A1 failed (${L_CODE:-rc$L_RC}: ${L_MSG}); every VM step needs a launch (U21: a qualified egress ARN)" |
| rec VM_A "$L_ID" |
| jw "FIRST-VM-ID $VM_A (length ${#VM_A})"; echo "first real MicroVM ID: $VM_A (length ${#VM_A})" |
| [[ "$VM_A" =~ ^[A-Za-z0-9-]{1,128}$ ]] || finding "MicroVM ID [$VM_A] is outside R36's form; the adapter will refuse it (fails closed)" |
| -launch A2 "$TOKEN_A" 900 "$T17/out/payload-a" |
| -if [ "$L_RC" = 0 ] && [ "$L_ID" = "$VM_A" ]; then rec A2_RESULT same-vm |
| +launch A2 "$TOKEN_A" 600 "$T17/out/payload-a" |
| +if [ "$L_OUTCOME" = settled ]; then rec A2_RESULT uncertain-settled; rec VM_A_ENDED "$(date -u +%FT%TZ)" |
| +elif [ "$L_RC" = 0 ] && [ "$L_ID" = "$VM_A" ]; then rec A2_RESULT same-vm |
| elif [ "$L_RC" = 0 ]; then vm_end "$L_ID"; rec A2_RESULT "new-vm:$L_ID"; finding "a replay of the same request made a second VM ($L_ID, ended)" |
| else rec A2_RESULT "refused:${L_CODE:-rc$L_RC}"; finding "a replay of the same request was refused: ${L_CODE:-rc$L_RC} ${L_MSG}"; fi |
| -launch A3 "$TOKEN_A" 900 "$T17/out/payload-b" |
| -if [ "$L_RC" != 0 ]; then |
| +launch A3 "$TOKEN_A" 600 "$T17/out/payload-b" |
| +if [ "$L_OUTCOME" = settled ]; then rec A3_RESULT uncertain-settled; [ -n "${VM_A_ENDED:-}" ] || rec VM_A_ENDED "$(date -u +%FT%TZ)" |
| +elif [ "$L_RC" != 0 ]; then |
| rec A3_RESULT "refused:${L_CODE:-rc$L_RC}"; jw "FACT A3 message: ${L_MSG}" |
| case "$L_CODE" in ConflictException|ValidationException) ;; *) finding "a changed request with a used token was refused with ${L_CODE:-rc$L_RC}";; esac |
| elif [ "$L_ID" = "$VM_A" ]; then rec A3_RESULT same-vm |
| @@ -1692,6 +1790,7 @@ echo "A2=$A2_RESULT A3=$A3_RESULT" |
| ```sh |
| set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; guard |
| need VM_A A1_BEFORE A1_AFTER CONN_QARN |
| +if [ -n "${VM_A_ENDED:-}" ]; then finding "9.B skipped: VM_A has ended"; exit 0; fi |
| echo "run call: $A1_BEFORE to $A1_AFTER; reply: $(jq -c '{State,StartedAt}' "$T17/out/launch-A1.json")" |
| _running() { lvr vm get -id "$VM_A"; [ "$RC" = 0 ] || return 1 |
| echo "$(date -u +%T.%3N) $(jq -r '"\(.State) \(.StartedAt)"' <<<"$OUT")"; case "$(jq -r .State <<<"$OUT")" in RUNNING) return 0;; PENDING) return 1;; esac; return 2; } |
| @@ -1701,6 +1800,7 @@ fi |
| lvr vm get -id "$VM_A" |
| if [ "$RC" = 0 ]; then |
| printf '%s\n' "$OUT" > "$T17/out/9.B-get.json" |
| + eni_snapshot soft "9.B, VM_A running" |
| jw "FACT VM_A echoes: $(jq -c '{IngressNetworkConnectors,EgressNetworkConnectors,MaximumDurationInSeconds,ExecutionRoleArn,IdlePolicy,StartedAt}' "$T17/out/9.B-get.json")" |
| [ "$(jq -c .IngressNetworkConnectors "$T17/out/9.B-get.json")" = "[\"$NO_INGRESS\"]" ] || finding "ingress echo is $(jq -c .IngressNetworkConnectors "$T17/out/9.B-get.json")" |
| [ "$(jq -c .EgressNetworkConnectors "$T17/out/9.B-get.json")" = "[\"$CONN_QARN\"]" ] || finding "egress echo is $(jq -c .EgressNetworkConnectors "$T17/out/9.B-get.json")" |
| @@ -1757,7 +1857,8 @@ set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; guard |
| probe() { local n=$1 |
| head -c "$n" /dev/zero | tr '\0' x > "$T17/out/payload-$n"; [ "$(wc -c < "$T17/out/payload-$n")" = "$n" ] || die "payload file size" |
| launch "P$n" "$NAME-p$n" 120 "$T17/out/payload-$n" |
| - if [ "$L_RC" = 0 ]; then vm_end "$L_ID"; rec "PAYLOAD_$n" accepted |
| + if [ "$L_OUTCOME" = settled ]; then rec "PAYLOAD_$n" uncertain-settled |
| + elif [ "$L_RC" = 0 ]; then vm_end "$L_ID"; rec "PAYLOAD_$n" accepted |
| elif [ "$L_CODE" = ValidationException ]; then rec "PAYLOAD_$n" "refused:ValidationException"; jw "FACT payload $n message: ${L_MSG}" |
| else rec "PAYLOAD_$n" "refused:${L_CODE:-rc$L_RC}"; finding "payload $n refused with ${L_CODE:-rc$L_RC}: ${L_MSG}"; fi; } |
| probe 4096; probe 4097 |
| @@ -1778,8 +1879,9 @@ vm_end "$VM_A"; [ -n "${VM_A_ENDED:-}" ] || rec VM_A_ENDED "$(date -u +%FT%TZ)" |
| lvr vm terminate -id "$VM_A" |
| if [ "$RC" = 0 ]; then rec TERMINATE_AGAIN ok; elif [ "$ECODE" = ResourceNotFoundException ]; then rec TERMINATE_AGAIN ResourceNotFoundException |
| else rec TERMINATE_AGAIN "other:${ECODE:-rc$RC}"; finding "terminate of an ended VM: ${ECODE:-rc$RC} ${LV_MSG}"; fi |
| -launch E1 "$TOKEN_A" 900 "$T17/out/payload-a" |
| -if [ "$L_RC" = 0 ] && [ "$L_ID" = "$VM_A" ]; then rec E1_RESULT same-ended-vm |
| +launch E1 "$TOKEN_A" 600 "$T17/out/payload-a" |
| +if [ "$L_OUTCOME" = settled ]; then rec E1_RESULT uncertain-settled |
| +elif [ "$L_RC" = 0 ] && [ "$L_ID" = "$VM_A" ]; then rec E1_RESULT same-ended-vm |
| elif [ "$L_RC" = 0 ]; then vm_end "$L_ID"; rec E1_RESULT "new-vm:$L_ID" |
| else rec E1_RESULT "refused:${L_CODE:-rc$L_RC}" |
| case "$L_CODE" in ConflictException|ValidationException|ResourceNotFoundException) jw "FACT E1 message: ${L_MSG}";; *) finding "E1 replay refused with ${L_CODE:-rc$L_RC}: ${L_MSG}";; esac; fi |
| @@ -1809,8 +1911,9 @@ scan >/dev/null; echo "image list: $(wc -l < "$T17/last_scan.tsv") VMs, $(grep - |
| set -euo pipefail; T17='<T17 printed by 0.2>'; . "$T17/env.sh"; guard |
| need TOKEN_A VM_A A1_BEFORE |
| ! ctl_alive || die "the controller is running" |
| -launch G1 "$TOKEN_A" 900 "$T17/out/payload-a" |
| -if [ "$L_RC" = 0 ] && [ "$L_ID" = "$VM_A" ]; then rec G1_RESULT same-ended-vm |
| +launch G1 "$TOKEN_A" 600 "$T17/out/payload-a" |
| +if [ "$L_OUTCOME" = settled ]; then rec G1_RESULT uncertain-settled |
| +elif [ "$L_RC" = 0 ] && [ "$L_ID" = "$VM_A" ]; then rec G1_RESULT same-ended-vm |
| elif [ "$L_RC" = 0 ]; then vm_end "$L_ID"; rec G1_RESULT "new-vm:$L_ID" |
| else rec G1_RESULT "refused:${L_CODE:-rc$L_RC}" |
| case "$L_CODE" in ConflictException|ValidationException|ResourceNotFoundException) jw "FACT G1 message: ${L_MSG}";; *) finding "G1 replay refused with ${L_CODE:-rc$L_RC}: ${L_MSG}";; esac; fi |
| @@ -1844,7 +1947,7 @@ settle_all |
| lvr image delete -id "$IMAGE_ARN" |
| [ "$RC" = 0 ] || die "image delete: ${ECODE:-rc$RC} ${LV_MSG:-$ERR} (a ConflictException is a stop: U8)" |
| _img() { lvr image list -name "$IMAGE_NAME"; [ "$RC" = 0 ] || return 1 |
| - OUT=$(jq -r --arg a "$IMAGE_ARN" '[.Items[] | select(.ImageArn == $a) | .State] | join(" ")' <<<"$OUT") || return 3 |
| + OUT=$(jq -r --arg a "$IMAGE_ARN" '[(.Items // [])[] | select(.ImageArn == $a) | .State] | join(" ")' <<<"$OUT") || 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 |
| deleted microvm-image "$IMAGE_ARN" |
| @@ -1864,9 +1967,13 @@ fi |
| set -euo pipefail; T17='<T17 printed by 0.2>'; . "$T17/env.sh"; guard |
| if have CONN_ARN; then |
| need VPC SUBNET OPERATOR_ROLE |
| +eni_snapshot strict "10.2, before the connector delete" |
| +B_END=$(( $(date +%s) + 7200 )) |
| +# budget N: N seconds, or what is left of 10.2's shared 120-minute budget if that is less. |
| +budget() { local r=$(( B_END - $(date +%s) )); [ "$r" -gt 0 ] || die "10.2's shared 120-minute budget is spent: hard stop"; echo $(( r < $1 ? r : $1 )); } |
| conn_delete() { lvr connector delete -id "$CONN_ARN" |
| [ "$RC" = 0 ] || [ "$ECODE" = ResourceNotFoundException ] || die "connector delete: ${ECODE:-rc$RC} ${LV_MSG:-$ERR}"; } |
| -conn_gone() { lv_wait 2400 connector wait-gone -id "$CONN_ARN" -interval 15s; CG_RC=$RC; CG_CODE=$ECODE |
| +conn_gone() { local b; b=$(budget 2400) || die "10.2's shared budget is spent: hard stop"; lv_wait "$b" connector wait-gone -id "$CONN_ARN" -interval 15s; CG_RC=$RC; CG_CODE=$ECODE |
| echo "wait-gone: rc $CG_RC ${CG_CODE:-} $(jq -c '{State,StateReason}' <<<"$OUT" 2>/dev/null || true)"; } |
| # enis_gone SECONDS: 0 when no interface is left in the VPC within SECONDS; 1 when some are left at the bound. |
| enis_gone() { local end=$(( $(date +%s) + $1 )) |
| @@ -1878,7 +1985,7 @@ enis_gone() { local end=$(( $(date +%s) + $1 )) |
| sleep 30 |
| done; } |
| conn_delete; conn_gone; ok=no |
| -if [ "$CG_RC" = 0 ]; then deleted connector "$CONN_ARN"; enis_gone 2400 && ok=yes |
| +if [ "$CG_RC" = 0 ]; then deleted connector "$CONN_ARN"; eb=$(budget 2400) || die "10.2's shared budget is spent: hard stop"; enis_gone "$eb" && ok=yes |
| elif [ "$CG_RC" = 6 ] && [ "$CG_CODE" = DELETE_FAILED ]; then : |
| else die "connector wait-gone: rc $CG_RC ${CG_CODE:-}"; fi |
| if [ "$ok" = no ]; then |
| @@ -1897,7 +2004,7 @@ TEOF |
| conn_delete; conn_gone |
| [ "$CG_RC" = 0 ] || die "the connector delete failed again after the fallback (rc $CG_RC ${CG_CODE:-}): hard stop" |
| grep -q $'\tDELETED connector '"$CONN_ARN"'$' "$JOURNAL" || deleted connector "$CONN_ARN" |
| - enis_gone 2400 || die "interfaces are still in the VPC after the fallback: hard stop" |
| + eb=$(budget 2400) || die "10.2's shared budget is spent: hard stop"; enis_gone "$eb" || die "interfaces are still in the VPC after the fallback: hard stop" |
| fi |
| for e in $(awk -F'\t' '$2 ~ /^SERVICE-ENI / {split($2, a, " "); print a[2]}' "$JOURNAL"); do |
| gone0 "interface $e" aws ec2 describe-network-interfaces --filters Name=network-interface-id,Values="$e" --query 'length(NetworkInterfaces)' --output json |
| @@ -1910,6 +2017,10 @@ fi |
| minutes, the inline delete policy loses its `ec2:ManagedResourceOperator` condition (the subnet |
| condition stays), and after 120 s the connector delete is retried once. A second failure, or |
| interfaces still left, is a hard stop. Lambda's interfaces are never deleted by hand. |
| +- One shared budget of 120 minutes covers the attempt and its fallback: each wait takes at most its |
| + own 40-minute bound and never more than what is left of the 120 minutes; when it is spent, that is |
| + a hard stop. The detached-block limit for 10.2 alone is 130 minutes, so the wrapper never cuts the |
| + pre-approved fallback short. |
| ### 10.3 Network |
| @@ -2056,7 +2167,7 @@ Paste `journal-for-progress.txt`, `vms.tsv`, the R7 lines and section 11.2's est |
| `HOSTED-SLICE1-PROGRESS.md` (they hold IDs, times and results only, no keys), then: |
| ```sh |
| -set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; no_unresolved; rm -rf "$TMPDIR/equipo-t17"; [ ! -e "$TMPDIR/equipo-t17" ] && echo "scratch removed" |
| +set -euo pipefail; . "${TMPDIR:?}/equipo-t17/env.sh"; no_unresolved; rm -rf "$TMPDIR/equipo-t17" "$TMPDIR/equipo-t17-pre"; [ ! -e "$TMPDIR/equipo-t17" ] && echo "scratch removed" |
| ``` |
| --- |
| @@ -2177,7 +2288,7 @@ if pending s3-object "s3://$BUCKET/t17/app.zip" ARTIFACT; then |
| fi |
| if pending microvm-image "$IMAGE_NAME" IMAGE_ARN; then |
| lvr image list -name "$IMAGE_NAME" |
| - [ "$RC" != 0 ] || OUT=$(jq -r --arg n "$IMAGE_NAME" '[.Items[] | select(.Name == $n) | .ImageArn] | join(" ")' <<<"$OUT") || RC=99 |
| + [ "$RC" != 0 ] || OUT=$(jq -r --arg n "$IMAGE_NAME" '[(.Items // [])[] | select(.Name == $n) | .ImageArn] | join(" ")' <<<"$OUT") || RC=99 |
| 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" |
| @@ -2234,7 +2345,7 @@ the ledger and this exposure: |
| | Left in place | Cost while it stays | |
| | --- | --- | |
| -| MicroVM image (two versions) | about $0.08 per GB-month (Ireland rate not printed), assumed 6 GB: about $0.50 a month; worst case 68 GB: about $5.40 a month; one-week minimum already paid | |
| +| MicroVM image (two or three versions) | about $0.08 per GB-month (Ireland rate not printed), assumed 6 GB: about $0.50 a month; worst case 102 GB: about $8.20 a month; one-week minimum already paid | |
| | Connector, VPC, subnet, route table, group, defaults | no listed charge (no NAT, gateway or Elastic IP) | |
| | IAM roles, log group (1-day retention), SNS topic | none | |
| | S3 bucket and one object under 10 MB | under $0.01 a month | |
| @@ -2256,22 +2367,28 @@ connectors; the worst case still allows for builds billed as VM time. |
| | Item | Basis | Expected | Worst case, every approved branch | |
| | --- | --- | --- | --- | |
| -| Facts VMs (9) | A1 about 12 min; payload VMs ended at once | $0.04 | A1, A2, A3, E1, G1 at 900 s each, 4 payload VMs at 120 s: 1.4 h, $0.22 | |
| +| Facts VMs (9) | A1 about 10 min; payload VMs ended at once | $0.04 | A1, A2, A3, E1, G1 at 600 s each (was 900 s, R43), 4 payload VMs at 120 s: 0.97 h, $0.15 | |
| | Contract VMs (6) | about 7, 3 to 6 min each | $0.09 | 8 at their 15-min maximum: 2 h, $0.31 | |
| | Controller VMs (7) | 2, about 10 min each | $0.05 | 2 at the 1-h maximum, plus one late R21 VM at 1 h: 3 h, $0.47 | |
| | Orphan VM (8) | about 12 min | $0.03 | 1800 s: 0.5 h, $0.08 | |
| -| Above-baseline use | idle hook server, none expected | $0.00 | 4x on all 6.9 VM-hours: +$3.21 | |
| -| Pause and resume | 3 cycles at about 2 GB | $0.03 | 6 cycles at 40 GB (8 GB memory, 32 GB disk), x1.2: $1.64 | |
| +| Above-baseline use | idle hook server, none expected | $0.00 | 4x on all 6.47 VM-hours: +$3.01 | |
| +| Pause and resume | 3 cycles at about 2 GB | $0.03 | 3 cycles at 40 GB (8 GB memory, 32 GB disk), x1.2: $0.82. Three is the plan's maximum: one suspend each in 9.C, the contract and the driver | |
| | Launch snapshot reads | about 22 starts at 2 GB | $0.07 | 30 starts at 40 GB, x1.2: $2.23 | |
| -| Image storage | 2 versions, assumed 3 GB each, one-week minimum | $0.11 | 68 GB, one-week minimum, x1.2: $1.51 | |
| -| Image builds | 2 builds, a few minutes | $0.05 | 2 builds of 20 min at 4 GB: $0.21 | |
| +| Image storage | 2 versions, assumed 3 GB each, one-week minimum | $0.11 | 3 versions (Small, a failed Small after the step down, Large) at 34 GB: 102 GB, one-week minimum, x1.2: $2.28 | |
| +| Image builds | 2 builds, a few minutes | $0.05 | 3 builds (the step down adds one) of 20 min at 4 GB: $0.31 | |
| | S3, CloudWatch Logs, SNS, data transfer | tiny object, under 1 MB of logs, a few publishes, no route out | $0.02 | $0.05 | |
| -| **Total** | | **about $0.55** | **about $9.90** | |
| +| **Total** | | **about $0.55** | **about $9.70** | |
| The worst case is the sum of every bound at once (every VM at its maximum, at 4x, with the largest |
| snapshots), which cannot all happen in one run; it is still under the $10 approval ceiling. |
| **Leftovers after an abort** are not in the total: retained image storage costs about $0.50 to |
| -$5.40 a month until teardown (S.4). |
| +$8.20 a month until teardown (S.4). |
| + |
| +**Which bound changed (R43).** The third build and its retained failed version add about $0.87, so |
| +the fact experiments' VM maximum duration is cut from 900 s to 600 s (A1, A2, A3, E1 and G1, which |
| +must share one request body). VM_A needs about 10 minutes for 9.A to 9.C; if it reaches its maximum |
| +early, that is a FINDING, not a safety issue. The pause-cycle row is also corrected to the plan's |
| +real maximum of three (it counted six). The worst case is about $9.70, under the $10 ceiling. |
| ### 11.2 The run's own estimate (stop rule) |
| @@ -2319,7 +2436,8 @@ for vid in set(prov) | set(phase): |
| if vid not in prov: phase_only.append(vid) |
| hours += max(0.0, (end.get(vid, now) - start).total_seconds()) / 3600 |
| live = [v for v in set(prov) | set(phase) if v not in end] |
| -est = hours * 0.155 + 0.11 + 0.05 + 0.02 + 0.0057 * 2 * 3 |
| +third = any("\tCONFIRMED VER_SMALL_FAILED " in l for l in open(sys.argv[2])) |
| +est = hours * 0.155 + 0.11 + 0.05 + 0.02 + 0.0057 * 2 * 3 + (0.055 + 0.025 if third else 0) |
| print(f"VMs {len(prov) + len([v for v in phase if v not in prov])}, not yet ended {len(live)}, " |
| f"started from phase only {len(phase_only)} {phase_only}, VM-hours {hours:.2f}, estimate ${est:.2f} " |
| f"(baseline compute plus image storage, builds, small items and three pause cycles; retained storage after an abort is separate)") |
| @@ -2371,8 +2489,12 @@ EOF |
| shown in 0.3; a refusal there is a hard stop before anything is created. |
| - **U22, livectl's interface:** settled at `bdf85fb7`. The plan follows `livectl-usage.md` at that |
| commit: pinned endpoints, one attempt per call, a 60 s cutoff per call, bounded waits that never |
| - read after their deadline, and static credentials only. Every call site handles exits 2, 4 and 5 |
| - as the livectl rule above says. |
| + read after their deadline, and static credentials only. After Astra's round 1 on revision 5, every |
| + call site handles the exits as the livectl rule says. Exit 4 and every other hard stop propagate |
| + through subshells and polls (`die` with the FATAL marker; `finding` re-raises it). Exit 2 is a |
| + FINDING on observation reads and follows the block's branches on changes, with uncertain launches |
| + settled. Exit 5 is checked against one outer deadline per wait. `"Items":null` is read as an empty |
| + list. |
| ### Still unconfirmed, 12 |