oficina / equipo Public

plan: account plan rev 3 after Astra round 2; run kit details

Account plan: per-invocation credential checks, block runner with an
exempt safe stop, fence before settle, durable estimator with
reservations (5 stop, 0 ceiling), intents before every create,
reloadable run bundle, controller key bound into signing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 339cb403f08f284b3a30bead9a2a9fe7704beac9 parent 5d33d45
2 files changed, +158 −95
  • docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md +152 −90
  • docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md +6 −5

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-slice-2-plan: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.5s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.2s
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.7s
ci-box: pi: installed and verified in 7.2s
ci-box: opencode: installed and verified in 2.1s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 7.1s
ci-box: file times set from content: 3753 files, 244 directories
ci-box: ready in 20.2s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.231s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.5s
+ go list -export -test -tags testbuild -f  ./...
  0.8s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./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 1m11.991s 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 1m10.173s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m10.17s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 44.04, cpu waiting 24.33%, memory waiting 0.00%, io waiting 0.77%
--- 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 1m8.751s 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 1m6.914s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m6.91s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 40.82, cpu waiting 24.72%, memory waiting 0.00%, io waiting 0.82%
--- 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 1m12.211s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m10.003s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m1.06s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.85s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.09s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 44.04, cpu waiting 24.51%, memory waiting 0.00%, io waiting 0.74%
--- 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

amadan: job cancelled — a newer push superseded it
--- 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_step_refused$|^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 1m27.372s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m25.404s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.31s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.06s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.9s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.49s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.65s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 39.57, cpu waiting 22.23%, memory waiting 0.00%, io waiting 0.59%
--- 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_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

amadan: job cancelled — a newer push superseded it
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 385ms 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 3m27.032s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.73s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 10.96s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.46s amadan.net/oficina/equipo/internal/thintest TestNudgeResumesHeldJob
receipt: slow test 5.43s amadan.net/oficina/equipo/internal/thintest TestAbilityHoldResumes
machine: 32 CPUs, load 1.11, cpu waiting 0.00%, memory waiting 0.00%, io waiting 2.44%
--- 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 519ms 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 2m23.332s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.44s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.07s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.93s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 4.9s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 3.04s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 6.94, cpu waiting 0.65%, memory waiting 0.00%, io waiting 2.49%
--- 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 48.044s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.931s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.9s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 39.53, cpu waiting 22.84%, memory waiting 0.00%, io waiting 1.11%
--- 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.492s 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.605s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.62s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.77s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.42s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.55s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 39.53, cpu waiting 22.60%, memory waiting 0.00%, io waiting 1.15%
--- 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 40.716s 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 39.819s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.7s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 37.75, cpu waiting 19.87%, memory waiting 0.00%, io waiting 1.27%
--- 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 30.5%, load 22.24
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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:234:744: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:234:783: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:285:60: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:294:119: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:316:225: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:380:97: unclassified equipo-runner
        reference scan: 3465 text files, 3991 matches, 7 failures
--- FAIL: TestDirectDeadReferencesRepository (2.79s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m11.736s
FAIL	amadan.net/oficina/equipo/internal/equipotest	72.053s


receipt: test step 1m13.84s 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 1m11.736s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 33.4s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 33.27s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 30.98s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 28.05s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 27.67s amadan.net/oficina/equipo/internal/equipotest TestAuthorityGrantReferences
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:234:744: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:234:783: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:285:60: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:294:119: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:316:225: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:380:97: unclassified equipo-runner
        reference scan: 3465 text files, 3991 matches, 7 failures
--- FAIL: TestDirectDeadReferencesRepository (2.73s)
FAIL
rastrillo-budget/v1 ran 2.735s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.897s
FAIL
machine: 32 CPUs, load 32.79, cpu waiting 16.50%, memory waiting 0.00%, io waiting 0.42%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 12 of 29 failed: exit status 2
--- 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 30.5%, load 22.24
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 547ms 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 2m22.502s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.6s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 23.59s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 23.51s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 23.51s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 23.49s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
machine: 32 CPUs, load 28.31, cpu waiting 12.90%, memory waiting 0.00%, io waiting 1.51%
--- 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 30.5%, load 22.24
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

amadan: job cancelled — a newer push superseded it
--- 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 30.5%, load 22.24
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 465ms 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 1m11.828s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 30.35s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 29.9s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 29.8s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 27.57s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 27.5s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 22.24, cpu waiting 12.05%, memory waiting 0.00%, io waiting 1.56%
--- 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 31.9%, load 22.24
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 672ms 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 57.81s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.51s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.88s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/plan3test TestOnboardingAccountMigration
machine: 32 CPUs, load 28.31, cpu waiting 12.90%, memory waiting 0.00%, io waiting 1.51%
--- 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 30.5%, load 22.24
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/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./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/pause ./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/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mac/creds ./internal/runner/mac/denylist ./internal/runner/mac/fprobe ./internal/runner/mac/proc ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/render ./internal/runner/renderpage ./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/teamprobe ./internal/testci ./internal/toolproxy ./internal/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/websource/hostaddrs ./internal/wire ./internal/wire/forgekey ./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/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./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/pause ./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/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mac/creds ./internal/runner/mac/denylist ./internal/runner/mac/fprobe ./internal/runner/mac/proc ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/render ./internal/runner/renderpage ./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/teamprobe ./internal/testci ./internal/toolproxy ./internal/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/websource/hostaddrs ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/isolatedjob: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/release: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/render: 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/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed

amadan: job cancelled — a newer push superseded it
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.292s 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.453s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.08s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.67s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.72s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.51s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 40.92, cpu waiting 23.39%, memory waiting 0.00%, io waiting 0.65%
--- 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 1m23.42s 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.444s amadan.net/oficina/equipo/internal/headless
receipt: slow test 24.27s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 19.45s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.85s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.26s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 40.92, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.63%
--- 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 1m47.672s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m45.908s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.79s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 11.68s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.08s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.38s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 32.79, cpu waiting 15.96%, memory waiting 0.00%, io waiting 0.40%
--- 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|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m30.727s 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 1m29.055s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.01s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.58s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.1s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.18s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.43s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 37.84, cpu waiting 20.31%, memory waiting 0.00%, io waiting 0.53%
--- 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|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 302ms 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 2.586s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 590ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/equipotest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserGitHubManifestCSP)$' ./internal/equipotest

receipt: test step 322ms 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 6.528s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.53s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.229s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

receipt: test step 255ms 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 11.229s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.98s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.25s 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 261ms 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 2.575s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.57s 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|TestBrowserAskMacOffline|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|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 339ms 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 3m38.868s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 27.16s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.37s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.72s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 6.94, cpu waiting 1.64%, memory waiting 0.00%, io waiting 2.41%
--- 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   (48s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.92s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.33s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.52s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.99s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.21s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (56s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 11.95s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.49s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.26s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.15s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (19s)
ok ./internal/headless TestMixedVersions 17.33s
+ 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.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 42.32, cpu waiting 24.56%, memory waiting 0.00%, io waiting 0.97%
--- 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.561s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.106s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 171ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 83ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.04s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.476s 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 3.075s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 10.86, cpu waiting 5.72%, memory waiting 0.00%, io waiting 2.04%
--- 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 30.5%, load 22.24
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:234:744: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:234:783: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:285:60: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:294:119: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:316:225: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:380:97: unclassified equipo-runner
reference scan: 3465 text files, 3991 matches, 7 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 28.31, cpu waiting 12.90%, memory waiting 0.00%, io waiting 1.51%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 25 of 29 failed: exit status 2
--- 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 30.5%, load 22.24
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 28.31, cpu waiting 12.90%, memory waiting 0.00%, io waiting 1.51%
--- 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 30.5%, load 22.24
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 1 vulnerability in packages you import and 10
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 41.42, cpu waiting 24.77%, memory waiting 0.00%, io waiting 0.88%
--- 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 30.5%, load 22.24
shard 28: make gitleaks
6:09PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
6:09PM INF 1332 commits scanned.
6:09PM INF scanned ~75155792 bytes (75.16 MB) in 16.2s
6:09PM INF no leaks found
machine: 32 CPUs, load 37.75, cpu waiting 21.81%, memory waiting 0.00%, io waiting 1.19%
diff --git a/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md b/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md
index 093a8244..8826ffa6 100644
--- a/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md
+++ b/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md
@@ -1,7 +1,8 @@
# Hosted runners: production account bring-up (149757027610, `equipo-hosted`)
-**Revision:** 2 (2026-11-30), after Astra round 1 (NOT READY: 5 Critical, 13 Important, 2 Minor, all
-taken; `.superpowers/sdd/2026-11-30-hosted-slice-2-plan/acct-r1.md`). Written in the shape of the
+**Revision:** 3 (2026-11-30), after Astra rounds 1 and 2 (`acct-r1.md`, `acct-r2.md` in
+`.superpowers/sdd/2026-11-30-hosted-slice-2-plan/`; round 2: 5 Critical, 4 Important new and 13 round-1
+items partly addressed, all taken in revision 3). Written in the shape of the
Task 17 revision 5 and Task 17b plans: safety-only hard stops, FINDING lines, a ledger, verified
teardown, a safe stop. **No AWS command or SDK call of any kind was made while writing it, not even
a read.**
@@ -11,7 +12,7 @@ provider-level VM settlement, connector handling, bucket emptying, units, safe s
shell adapted from Task 17b. It is `equipo-hosted-ops`, a Go tool built and tested offline in slice 2
Task 33 and run first in the dev drill (Task 34), so every block below calls tested code.
-**Runs after:** slice 2 (`2026-11-30-hosted-runners-slice-2.md`, revision 3) is built, merged and
+**Runs after:** slice 2 (`2026-11-30-hosted-runners-slice-2.md`, revision 4) is built, merged and
released, and its dev drill passed (`Task 34 PASSED` in `HOSTED-SLICE2-PROGRESS.md` at the release).
Block 0.1 checks both.
@@ -21,9 +22,12 @@ One bring-up of the hosted-runner stack in account `149757027610` (`equipo-hoste
`eu-west-1`, reached through the organisation's `OrganizationAccountAccessRole` from the `titogo`
profile, as the other member accounts are.
-**Envelope.** Every block starts with `ops guard`, which checks through STS that the caller is
-`149757027610` under `OrganizationAccountAccessRole/equipo-hosted-bringup` and the region is
-`eu-west-1`. Every OpenTofu provider block carries `allowed_account_ids = ["149757027610"]` and
+**Envelope.** Every `ops`, `img` and `cert` invocation that calls AWS resolves its credentials once,
+verifies through STS that they are `149757027610` under
+`OrganizationAccountAccessRole/equipo-hosted-bringup` in `eu-west-1`, and uses those same frozen
+credentials for every later call in that process (slice 2 Task 33). `ops tf` hands the same frozen keys
+to `tofu`, with every profile, config-file and endpoint-override variable unset, and refuses a root
+whose backend block sets anything but `bucket`, `key`, `region` and `use_lockfile`. Every OpenTofu provider block carries `allowed_account_ids = ["149757027610"]` and
`region = "eu-west-1"`, so the provider itself refuses any other account. The named exceptions to
"one region, this account's ARNs":
- IAM and STS (global endpoints; STS also for the credential chain from `titogo`);
@@ -39,9 +43,9 @@ No Cost Explorer call of any kind is made (revision 1's anomaly monitor is dropp
**Hard stops, the whole list** (each `exit 99` from `ops`, then section S):
1. `ops guard` fails: wrong account, role or region.
-2. `ops estimate` reaches $10 (the approval ceiling is $20).
+2. `ops estimate` (cumulative spend plus reservations) would pass $25 (the approval ceiling is $40; decision 7).
3. A MicroVM of this run's image is live more than 10 minutes after the step that launched it
- ended, or is live and not in the ledger.
+ ended, or is live and in neither the ledger nor the controller's job table.
4. Anything outside the ledger or the checked plan: a name collision (0.5), a plan that
`plan-check.py` refuses, a bucket whose owner is not this account.
5. The egress boundary differs from this plan (3.3), the network audit fails (5.3), the controller's
@@ -54,11 +58,12 @@ safely can. Guarded, read-only calls on this run's own resources are pre-approve
fallbacks: the connector delete fallback of Task 17b's 10.2 (inside `ops connector delete`), and one
base image version down in 4.3.
-**Expected spend** about $3.70 for the bring-up; the stack then costs about $41 to $49 a month before
-use (section 11). Any other change, or any other AWS call, comes back to Paul.
+**Expected spend** about $3.70 for the bring-up, with a proven worst case of about $25 (section 11);
+the stack then costs about $41 to $49 a month before use. Any other change, or any other AWS call, comes back to Paul.
-**Paul's own steps, each bounded at 24 hours** (`ops wait-human`; past the bound, section S, with
-the hosts left running at about $1.50 a day): confirm the SNS subscription (2.3; required before
+**Paul's own steps, each bounded at 24 hours** (`ops wait-human`; past the bound, section S, which
+stops the controller host and leaves the rest at about $1.10 a day until Paul decides; Paul approves
+that stopped-state cost with the GO): confirm the SNS subscription (2.3; required before
hand-over, not before later steps), sign the certificate (6.4), turn the project setting on for the
first project (8.1).
@@ -73,10 +78,10 @@ first project (8.1).
everything later: whether `OrganizationAccountAccessRole` exists in this account, the applied
MicroVM quota, MFA on the access path, and the account's current singleton settings.
*Recommendation:* yes.
-3. **MFA on the access path.** Nothing today shows that `titogo-source` requires MFA. 0.3 reads the
- local profile and records whether it names an `mfa_serial`. *Recommendation:* require it before
- GO, by adding `mfa_serial` to `titogo-source` (Paul's step); otherwise accept the current path
- knowingly.
+3. **MFA on the access path.** Enforcement lives in policy, not the client. 0.4 reads the trust policy
+ of `OrganizationAccountAccessRole` in this account and records whether it requires
+ `aws:MultiFactorAuthPresent`. *Recommendation:* if it does not, Paul either adds that condition (and
+ `mfa_serial` to `titogo-source`) before GO, or waives it in the GO; the run records which.
4. **Account singletons.** The account-wide S3 public access block and EBS default encryption are
settings, not resources. *Recommendation:* turn both on if they are off (2.0), record what they
were, and leave them on at teardown, since on is stricter. Revision 1's IAM password policy is
@@ -85,8 +90,14 @@ first project (8.1).
certificate. The instance and the proxies pin it, and requests and responses are signed. No VM
reaches the controller directly: certification reports travel through the proxies' bootstrap
listener, signed by the VM's own key (slice 2 Task 13).
-6. **`INSTANCE_HOST`:** the exact hostname of the Equipo instance this stack serves. Paul names it
- at GO.
+6. **`INSTANCE_HOST`, `INSTANCE_APP` and `INSTANCE_ACCOUNT`:** the Equipo instance this stack serves,
+ by hostname and by its CARLOS app and account. Paul names them at GO.
+7. **Spend ceiling.** Expected about $3.70; the proven worst case is about $25 (section 11): every VM
+ the run could launch counted at four times the Large rate for its whole 90-minute lifetime, two
+ image builds, the image storage minimum, and two days of hosts. *Recommendation:* approve a $40
+ ceiling with the run refusing any block that would pass $25 by its own estimate.
+8. **The certification key.** The public half of Paul's offline signing key is an input at GO; the
+ controller trusts only it.
## Order of execution
@@ -107,27 +118,39 @@ Sections R (rollback), T (full teardown) and S (safe stop) run only when called.
## Rules for every block
-- **Shape.** Every block runs with the agent sandbox off, as its own script (`bash <file>`), and
- begins `set -euo pipefail; P='<P printed by 0.2>'; . "$P/run.env"; ops guard; ops estimate --stop 10`.
- `run.env` (0.2) defines `ops`, `img` and `cert`. Long blocks (3.4, 4.3, 5.2, 6.2) run as transient
+- **Shape.** Every block runs with the agent sandbox off as `ops block <id> -- bash "$P/blocks/<id>.sh"`.
+ `ops block` checks the guard and `ops estimate --stop 25` first, runs the script, and on exit 99
+ runs `ops safe-stop` itself, so a hard stop always reaches section S. Section S is the one
+ exception to the admission checks: `ops safe-stop` does local shutdown first, then cloud steps that
+ each verify their own credentials, and never checks spend. Each script begins
+ `set -euo pipefail; P='<P printed by 0.2>'; . "$P/run.env"`; `run.env` (0.2) defines `ops`, `img`
+ and `cert`. Long blocks (3.4, 4.3, 5.2, 6.2) run as transient
systemd user units through `ops unit start|wait|stop` (Task 17b's R44 and R45 rules, ported: units
`hprod-<RUN>-<block>`, journalled before start, stopped by journalled name only, environment
allowlisted).
-- **Ledger.** OpenTofu state is the ledger for what it creates. Everything else goes through
- `ops ledger intent KIND NAME` before its create call and `ops ledger rec KIND ID` after; the `ops`
- subcommands that create things do both themselves. `rec` accepts this account's ARNs and the
- listed AWS-owned ones and refuses any other account's. Teardown acts only on confirmed records
- and OpenTofu state.
+- **Ledger.** Every create, in OpenTofu or not, has a durable intent before it. `ops tf` journals an
+ intent for each planned create address before `apply`; after a failed or interrupted apply,
+ `ops tf reconcile ROOT` runs `tofu plan -refresh-only` and lists this run's tagged resources through
+ the tagging API, and records each as in state, imported, or created outside state (deleted by `ops`,
+ or adopted only with Paul's word). `img publish` and `cert launch` take `-ledger "$P"` and journal
+ their client token or attempt ID before the create call. Other `ops` subcommands that create things
+ journal intent and record themselves. Every VM ID seen anywhere (provider scan, controller
+ `GET /v1/vms`, logs) is recorded with its source, and its charge is kept after it leaves the
+ provider's list. `rec` accepts this account's ARNs and the
+ listed AWS-owned ones (and S3 bucket ARNs, which carry no account, only for names `phases.json` or
+ the ledger lists and whose owner `ops` has checked), and refuses any other account's. Teardown acts
+ only on confirmed records and OpenTofu state.
- **`ops tf ROOT PHASE`** checks the state bucket's owner, runs `tofu init` with the S3 backend
(`use_lockfile=true`, key `prod/<ROOT>.tfstate`), `tofu plan -out` (`plan -destroy -out` for a
- `destroy-*` phase), `tofu show -json`, then `plan-check.py --phase PHASE`, and only then
- `tofu apply` of the saved plan. `plan-check.py` (slice 2 Task 28) refuses a plan unless: every
+ `destroy-*` phase), `tofu show -json`, then `plan-check.py --phase PHASE`, and only then `tofu apply` of the saved plan.
+ For `destroy-*` phases the checker compares against the prior state and allows `no-op` entries. `plan-check.py` (slice 2 Task 28) refuses a plan unless: every
provider configuration has `allowed_account_ids` equal to this account and region `eu-west-1`;
there are no provider aliases, provisioners, `terraform_data` or `null_resource`; every resource
address is in `phases.json` for the phase; every action is `create` (or `delete` for a `destroy-*`
phase); and the security values `phases.json` pins for the phase (VPC DNS flags, route
- destinations and targets, security group rules, IAM policy documents, bucket policies) equal the
- planned values, with no unknown value among them.
+ destinations and targets, security group rules, IAM policy documents, bucket policies) equal the planned values. An unknown planned value passes only as a reference, in the plan's
+ configuration, to an attribute of a resource created in the same plan at an address the phase
+ lists (a route whose target is the new peering's ID passes; one naming a literal peering does not).
- **Fatal assertions are `ops assert`,** which exits 99 on a mismatch; observations are `ops fact`,
which writes a FINDING.
- **Tags.** Every taggable resource carries `purpose=equipo-hosted-prod` and `run=<RUN>` (OpenTofu
@@ -164,7 +187,7 @@ PIN='<PIN from 0.1>'
P=$(mktemp -d "$TMPDIR/equipo-hosted-prod-XXXX")
RUN=$(date -u +%m%d)-$(head -c3 /dev/urandom | od -An -tx1 | tr -d ' \n')
git -C /home/paulca/amadan.net/oficina/equipo worktree add --detach "$P/repo" "$PIN"
-mkdir -m 700 "$P/keys" "$P/bin"
+mkdir -m 700 "$P/keys" "$P/bin" "$P/blocks"
for c in equipo-hosted-ops equipo-hosted-controller equipo-hosted-image equipo-hosted-certify; do
(cd "$P/repo" && CGO_ENABLED=0 go build -o "$P/bin/$c" "./cmd/$c"); done
cat > "$P/run.env" <<EOF
@@ -193,12 +216,13 @@ role_session_name = equipo-hosted-bringup
region = eu-west-1
```
-Then `aws configure get mfa_serial --profile titogo-source`, and `ops ledger note MFA yes|no`. `MFA no`
-is a FINDING, unless Paul made MFA a condition of GO (section 13), in which case the run stops here.
+Then `aws configure get mfa_serial --profile titogo-source`, and `ops ledger note mfa-client yes|no`.
### 0.4 First AWS call: who am I
-`ops guard`. An `AccessDenied` on the assume-role is a hard stop: the role does not exist or does not
+`ops guard`, then `ops mfa-check`, which reads the role's trust policy (`iam get-role`) and records
+whether it requires `aws:MultiFactorAuthPresent`. If it does not and the GO did not waive MFA, the run
+stops here (decision 3). An `AccessDenied` on the assume-role is a hard stop: the role does not exist or does not
trust the management account, and Paul decides how to create access (the account's root user, or a
service-managed StackSet from the management account).
@@ -234,7 +258,8 @@ $c keygen -ca -out "$K/client-ca" # proxy client CA (S2-8), held by the
$c keygen -ca -out "$K/intercept-ca" # proxies' inner-TLS CA; its SPKI pin is in every bootstrap
chmod -R go-rwx "$K"
ops tfvars --out "$P/prod.tfvars" --instance-host '<INSTANCE_HOST>' --alert-email '<ALERT_EMAIL>' \
- --budget 150 --budget-action 300 --release '<HOSTED_RELEASE>' --keys "$K"
+ --budget 150 --budget-action 300 --release '<HOSTED_RELEASE>' --keys "$K" --cert-pub '<CERT_PUB>'
+ops ledger note controller-pub "$(cat "$K/controller.pub")" # its fingerprint is posted on discussion 46 for 6.4
```
`ops tfvars` writes only public halves, hostnames, fixed addresses and numbers.
@@ -251,8 +276,9 @@ read. Teardown and rollback never turn them off.
`ops tf account account`. Addresses: `aws_s3_bucket.trail` with its versioning, encryption, public
access block, bucket policy (CloudTrail writes only) and a 400-day lifecycle; `aws_cloudtrail.main`
-(multi-region management events, plus one advanced event selector for data events with
-`resources.type` `AWS::Lambda::MicrovmImage`); `aws_sns_topic.alerts`, `aws_sns_topic_policy.alerts`
+(multi-region; advanced event selectors only: one with `eventCategory` `Management`, and one with
+`eventCategory` `Data`, `resources.type` `AWS::Lambda::MicrovmImage` and `resources.ARN` starting with
+`arn:aws:lambda:eu-west-1:149757027610:`); `aws_sns_topic.alerts`, `aws_sns_topic_policy.alerts`
(publish allowed to this account's CloudWatch and Budgets and to the controller role's ARN by name);
`aws_sns_topic_subscription.paul_email`; `aws_budgets_budget.monthly` (cost, monthly, $150, four
notifications to the topic).
@@ -294,8 +320,9 @@ and the Lambda-managed operator, as Task 17b's).
`aws_s3_bucket.image_inputs`, each with versioning, encryption, public access block and a bucket
policy that denies any principal outside this account; `aws_iam_role.controller`,
`aws_iam_role.proxy_a`, `aws_iam_role.proxy_b` (trusted by EC2, no permissions yet: their policies
-come with the hosts in 5.1); `aws_iam_role.image_build` with `aws_iam_role_policy.image_build` (read
-`images/` in the image-input bucket, write its log group) and `aws_cloudwatch_log_group.image_build`.
+come with the hosts in 5.1); `aws_iam_role.image_build` (with the trust policy of Task 17 revision 5's build role, which built two
+images in dev) with `aws_iam_role_policy.image_build` (read `images/` in the image-input bucket, write
+its log group) and `aws_cloudwatch_log_group.image_build`.
### 3.3 Checks (fatal)
@@ -317,8 +344,9 @@ hard stop.
`ops keys upload --bucket <config bucket> --expected-owner 149757027610 --keys "$P/keys"` uploads
with SSE, each to its own key: `controller/controller.key`, `controller/client-ca.key`,
`controller/operators.json` (the operator public key), `proxy/a/proxy.key`, `proxy/a/intercept.key`,
-`proxy/b/proxy.key`, `proxy/b/intercept.key`. Each is confirmed by a `HeadObject`. Keys are in place
-before any host exists.
+`proxy/b/proxy.key`, `proxy/b/intercept.key`. Each is confirmed by a `HeadObject`. Keys are in place before any host exists. Each proxy's
+`proxy/<name>/controller.json` (controller URL, pin and public key) is written in 5.2, once the pin
+exists; a proxy's boot waits for it for up to 15 minutes.
## 4. Image
@@ -335,7 +363,7 @@ certified. A difference is a hard stop.
### 4.3 Create the image and its Large version (unit, bound 50 min)
-`img publish -name "equipo-hosted-prod-$RUN" -bucket <image-input bucket> -key "images/$IMAGE_DIGEST.zip" -build-role-arn <image_build role ARN> -log-group <image_build log group> -size large -capabilities ALL -timeout 45m -out "$P/image.json"`,
+`img publish -ledger "$P" -base-version "$(jq -r .BaseImageVersion "$REPO/release/<HOSTED_RELEASE>.json")" -name "equipo-hosted-prod-$RUN" -bucket <image-input bucket> -key "images/$IMAGE_DIGEST.zip" -build-role-arn <image_build role ARN> -log-group <image_build log group> -size large -capabilities ALL -timeout 45m -out "$P/image.json"`,
then `ops ledger rec microvm-image "$(jq -r .ImageArn "$P/image.json")"` and
`ops ledger rec microvm-image-version "$(jq -r .VersionArn "$P/image.json")"`. Pre-approved fallback:
one base image version down, once.
@@ -368,7 +396,9 @@ subscriber the topic).
The controller's `ExecStartPre` fetches its keys and config, then runs `litestream restore
-if-replica-exists` (none on a first boot); the controller and Litestream start; the controller writes
`pins/controller.spki`. `ops wait object --bucket <config bucket> --key pins/controller.spki --max
-15m`, then `ops ledger rec controller-pin <value>`.
+15m`, then `ops ledger rec controller-pin <value>`, then `ops object put` `proxy/a/controller.json` and
+`proxy/b/controller.json` (`{"url": "https://<controller EIP>", "pin": <pin>, "key": <controller
+public key>}`). The proxies then fetch them and start.
### 5.3 Status, through the pin (fatal)
@@ -380,8 +410,10 @@ reaper pass in the last 2 minutes; and the pin unchanged on a second read 60 s l
### 5.4 Restore check (fatal)
`ops litestream-check --bucket <litestream bucket>` restores the latest generation into `$P` with the
-pinned Litestream binary and checks that it opens and holds the `provider_bound` row. A failure is a
-hard stop: launches stay off until the database is durable.
+pinned Litestream binary and checks that it opens and holds the `provider_bound` row. A failure is a hard stop: launches stay off until the database is durable. Litestream's version is
+pinned in the release manifest; the controller publishes `LitestreamLag`, and an alarm fires above
+300 s. The drill that starts a restored controller against outstanding launches runs in the dev drill
+(slice 2 Task 34), not here.
## 6. Certification
@@ -390,13 +422,14 @@ hard stop: launches stay off until the database is durable.
`ops object put` `controller/certification-images.json` (`[{"digest": IMAGE_DIGEST, "image_arn":
<ledger>, "version_arn": <ledger>}]`) and `controller/env` with `EQUIPO_HOSTED_ENABLED=1`; then
`cert reload --restart --controller https://<controller EIP> --pin <pin> --operator-key
-"$P/keys/operator.key"`; `ops status` must show `enabled 1`. Nothing else can launch: no instance
-holds the instance key until 7.1, and a `checks` launch needs a certificate.
+"$P/keys/operator.key"`; `ops status` must show `enabled 1`. (`reload` makes the controller re-fetch every `controller/` object from the bucket, verify it and
+swap it in; `--restart` restarts the unit instead.) Nothing else can launch: no instance holds the
+instance key until 7.1, and a `checks` launch needs a certificate.
### 6.2 Certification launch (unit, bound 25 min)
-`cert launch --controller https://<controller EIP> --pin <pin> --operator-key "$P/keys/operator.key"
---image "$IMAGE_DIGEST" --wait 20m --out "$P/evidence.json"`, then `ops ledger rec cert-launch
+`ops reserve vm 2` (the launch and one retry), then `cert launch -ledger "$P" --controller
+https://<controller EIP> --pin <pin> --operator-key "$P/keys/operator.key" --image "$IMAGE_DIGEST" --wait 20m --out "$P/evidence.json"`, then `ops ledger rec cert-launch
"$(jq -r .LaunchID "$P/evidence.json")"`. The certification VM's one egress service is
`INSTANCE_HOST` (its positive control); its report goes through the proxy bootstrap listener, signed
by its own key. The controller signs the evidence from its launch record and stops the VM with proof.
@@ -405,26 +438,29 @@ Then `ops vms settle --image <image ARN> --max 10m`: no live VM of this image, t
### 6.3 Judge (no AWS call; fatal)
-`cert judge -evidence "$P/evidence.json" -release "$REPO/release/<HOSTED_RELEASE>.json"` must pass.
+`cert judge -evidence "$P/evidence.json" -release "$REPO/release/<HOSTED_RELEASE>.json" -controller-pub
+"$P/keys/controller.pub"` must pass; evidence signed by any other key is refused.
### 6.4 Paul signs (HUMAN, bounded 24 h)
-Paul copies `evidence.json` and the release manifest to his signing machine and runs `cert sign
--evidence evidence.json -release <release>.json -key <his key>`, which judges again and signs the
+Paul copies `evidence.json` and the release manifest to his signing machine and checks that the controller public key's fingerprint matches the one posted on discussion 46 in 1.2,
+and runs `cert sign -evidence evidence.json -release <release>.json -controller-pub controller.pub
+-key <his key>`, which judges again and signs the
snapshot it derives from the evidence. The agent runs `cert verify -cert certificate.json -pub
<public key from prod.tfvars>`, `ops object put` `controller/certificates.json`, `cert reload`, and
-`ops assert` that `GET /v1/certs` lists it. Within 15 minutes, `ops fact` that the trail holds a data
-event for the image.
+`ops assert` that `GET /v1/certs` lists it. Within 15 minutes, `ops fact` that the trail holds a data event for the image; 9.1 requires it.
## 7. Instance wiring
### 7.1 The Equipo instance's settings
-Through the instance's configuration path that `scripts/upgrade-thin.sh` uses, set
-`EQUIPO_HOSTED_RUNNERS=1`, `EQUIPO_HOSTED_CONTROLLER_URL=https://<controller EIP>`,
-`EQUIPO_HOSTED_CONTROLLER_PIN=<pin>`, `EQUIPO_HOSTED_CONTROLLER_KEY=<controller public key>`,
-`EQUIPO_HOSTED_KEY_ID=instance`, and the secret `EQUIPO_HOSTED_KEY` from `$P/keys/instance.key`,
-never echoed. The instance restarts.
+`carlos env set --app <INSTANCE_APP> --account <INSTANCE_ACCOUNT> EQUIPO_HOSTED_CONTROLLER_URL=https://<controller EIP>
+EQUIPO_HOSTED_CONTROLLER_PIN=<pin> EQUIPO_HOSTED_CONTROLLER_KEY=<controller public key> EQUIPO_HOSTED_KEY_ID=instance`;
+then the secret `EQUIPO_HOSTED_KEY` with `carlos secrets set` reading the value from standard input
+(`< "$P/keys/instance.key"`), so it never appears in an argument list; if the CLI at that time has no
+standard-input form, Paul runs that one command. Last, `carlos env set` (same app and account)
+`EQUIPO_HOSTED_RUNNERS=1`, which restarts the instance. Rollback is `carlos env unset` of
+`EQUIPO_HOSTED_RUNNERS` (R.1).
### 7.2 The instance reaches the controller (fatal)
@@ -439,23 +475,27 @@ A scratch project of Paul's with a Go repository whose checks pass.
### 8.2 Three steps, watched
-Paul starts three small tasks: checks that pass, checks that fail, and a change that adds a module
+`ops reserve vm 6` (three steps, each with one retry). Paul starts three small tasks: checks that pass, checks that fail, and a change that adds a module
the base does not pin. Expected, each an `ops fact`: `waiting_hosted` within 10 s; enrolment within
2 minutes; results `passed` (certified, `bubblewrap`), `failed`, and `cannot_run` `needs_network`
-`deps_new_module`; usage settled. After each step ends, `ops vms settle --image <image ARN> --max
+`deps_new_module`; usage settled. `ops vms adopt` records every VM the controller's `GET /v1/vms` lists. After each
+step ends, `ops vms settle --image <image ARN> --max
10m`; a live VM after the bound is hard stop 3.
### 8.3 Alert path
-`cert alert-test --controller ... --pin ... --operator-key ...`; Paul sees the email. A FINDING if
-not.
+`cert alert-test --controller https://<controller EIP> --pin <pin> --operator-key "$P/keys/operator.key"`;
+then `ops wait-human alert-received --max 24h` (Paul confirms the email arrived). 9.1 requires it.
## 9. Hand-over
### 9.1 Prerequisites (fatal)
-`ops assert` that the SNS subscription is confirmed (2.3's wait, bounded 24 h from 2.3), and that
-every alarm in 5.1 is `OK` or `INSUFFICIENT_DATA`.
+`ops assert` that the SNS subscription is confirmed (2.3's wait, bounded 24 h from 2.3), that Paul
+confirmed the alert email (8.3), that `heartbeat`, `audit` and the three status alarms are `OK`
+(`leaked_vm`, `proxy_silent` and `sns_failed` may be `INSUFFICIENT_DATA`, which is normal with no
+events), and that the trail holds a MicroVM data event (6.4). A miss leaves the hand-over incomplete:
+the run ends with the stack up, hosted checks on only for the one smoke project, and asks Paul.
### 9.2 What stays on, on purpose
@@ -471,41 +511,55 @@ a new `operators.json`, and reboot the controller host (`aws ec2 reboot-instance
### 9.4 Clean up docs-t1
-Delete `$P/keys`, `ops unit stop --all` (journalled names only), `git worktree remove "$P/repo"`,
-remove `$P`, and check nothing of this run is left.
+`ops bundle --out docs/superpowers/plans/HOSTED-PROD-RUN-<RUN>.json` writes a secret-free bundle:
+the ledger, the journal, the public tfvars, the pins, the state keys, the release pin and the inputs.
+It is committed with the record and stored as `runs/<RUN>.json` in the config bucket. Later rollback
+or teardown starts with `ops reopen --bundle <file>`, which rebuilds a run directory from it, with
+fresh credentials and, for controller calls, a fresh operator key (9.3). Then delete `$P/keys`,
+`ops unit stop --all` (journalled names only), `git worktree remove "$P/repo"`, remove `$P`, and
+check nothing of this run is left.
## R. Rollback after a failed step
Undoes only what this run created, newest first, and keeps section 2 and the state bucket unless Paul
asks for T:
1. Instance: unset `EQUIPO_HOSTED_RUNNERS`.
-2. Controller, if it answers: `EQUIPO_HOSTED_ENABLED` off and every live job stopped with proof.
- Then, whether or not it answered: `ops vms settle --image <image ARN> --terminate --max 15m`
- terminates every live VM of this run's image through the provider and proves none is left.
-3. Image: `img delete --arn <image ARN>` (all versions), verified absent by list.
-4. `ops tf services destroy-services`; `ops connector delete` (Task 17b's 10.2 logic: on
+2. Fence, whether or not the controller answers: `ops fence` attaches the `deny_launches` policy
+ (5.1) to the controller role directly (an IAM call, the listed exception), then stops the
+ controller host (`ec2 stop-instances`, confirmed `stopped`). Nothing can launch after this.
+3. Reconcile: `ops ledger reconcile` resolves every unresolved intent, and every VM ID ever recorded
+ gets a direct `GetMicrovm` showing it terminal or not found.
+4. Settle: `ops vms settle --image <image ARN> --terminate --max 15m` terminates every live VM of
+ this run's image through the provider and proves none is left by three scans 30 s apart; then
+ once more after 10 minutes, for a launch that was already in flight.
+5. Image: `img delete --arn <image ARN>` (all versions), verified absent by list.
+6. `ops tf services destroy-services`; `ops connector delete` (Task 17b's 10.2 logic: on
`DELETE_FAILED`, one retry with the managed-operator condition dropped and the subnet condition
- kept; interfaces left after deletion are waited for and verified gone, never deleted by hand);
+ kept; interfaces left after a successful deletion are waited for within the same 120-minute budget and
+ verified gone, never deleted by hand);
`ops bucket empty` for the config, Litestream and image-input buckets (every version and delete
marker, paginated, owner checked, after the hosts that write them are gone);
`ops tf config destroy-config`; `ops tf network destroy-network`.
-5. `ops verify-gone` reads each recorded resource directly; the tag index is a cross-check, and its
+7. `ops verify-gone` reads each recorded resource directly; the tag index is a cross-check, and its
lag is recorded, not chased.
## T. Full teardown
-R, then `ops bucket empty` for the trail bucket, `ops tf account destroy-account`, then
+R, then `ops cloudtrail stop-logging` (and 15 minutes for the last delivery), `ops bucket empty` for
+the trail bucket, `ops tf account destroy-account`, then
`ops bucket empty` and `ops bucket delete` for the state bucket (last, after every other deletion is
proven and recorded), then the profile block removed from `~/.aws/config`. The singleton settings
stay on.
## S. Safe stop
-S.0 `ops unit stop --all`. S.1 if the controller answers, launches off and live jobs stopped with
-proof; then, regardless, `ops vms settle --image <image ARN, if recorded> --terminate --max 15m`.
-S.2 `ops ledger reconcile`: every unresolved intent is resolved by a direct read into `rec` or
-`NOTCREATED`. S.3 `ops report --stopped` lists what exists and its monthly cost, and the run waits for
-Paul. Nothing but VMs is deleted in S without Paul's word.
+`ops safe-stop` runs these in order and never checks spend: S.0 `ops unit stop --all` (local, no
+AWS). S.1 `carlos env unset` of `EQUIPO_HOSTED_RUNNERS` if 7.1 ran. S.2 R.2's fence, if the
+controller host exists. S.3 R.3's reconciliation, with `ops tf reconcile` for any root whose apply
+did not finish. S.4 R.4's settlement, with its repeat after 10 minutes. S.5 `ops bundle` and
+`ops report --stopped`: what exists and what it costs a day (about $1.10 with the controller host
+stopped); the run waits for Paul. If a cloud step's own credential check fails, S does the local steps,
+records the failure, and waits. Nothing but VMs is deleted in S without Paul's word.
## 11. Spend
@@ -513,11 +567,18 @@ Paul. Nothing but VMs is deleted in S without Paul's word.
smoke VMs (Large, about 15 min each) $0.24; image builds about $0.20; image storage for the first
week up to $1.50; S3, CloudTrail and SNS under $0.10. **Expected about $3.70.**
-**The run's own limit.** `ops estimate` adds, from the ledger and the provider: every host's hours
-since creation at its on-demand rate; every VM the provider lists for this run's image at four times
-the Large rate for its full 90-minute lifetime ($1.86 each); each image build at $1; image storage at
-$8 a month pro rata. It stops the run at $10. With the 24-hour human bounds, three waits add at most
-about $4.50 of host time; the ceiling is $20.
+**The run's own limit.** `ops estimate` adds, from the durable ledger: every host's hours since
+creation at its on-demand rate, with its public IPv4 address and EBS volume; every VM ever recorded,
+at four times the Large rate for its full 90-minute lifetime ($1.86 each), kept after the VM leaves
+the provider's list; every reservation not yet used (`ops reserve`, taken before each launch or
+build); each image build at $1; image storage at its one-week minimum, then $8 a month pro rata; and
+no snapshot reads (slice 2 never pauses a VM). `ops block` refuses to start a block that would pass
+$25.
+
+**Worst case:** hosts, addresses and volumes for two days $3.60; two image builds $2; the storage
+minimum $2; certification launch and retry $3.72; six smoke attempts $11.16; S's repeat finding one
+late VM $1.86; S3, CloudTrail, SNS and alarms $1. **About $25.34.** A third day of waiting adds about
+$1.80. Paul's ceiling is $40 (decision 7).
**Running cost, before any use** (eu-west-1 on-demand rates, to confirm on the first bill;
standard-credit T4g, so no surplus credit charges):
@@ -532,14 +593,13 @@ standard-credit T4g, so no surplus credit charges):
| CloudTrail data events, S3, SNS, CloudWatch alarms, Budgets | under $2 |
| **Total** | **$39.92 for the first four lines; about $41 to $49 in all** |
-**Use:** each person is capped at $50 a month by the instance (slice 2 Task 20), counted at the
-worst-case burst rate; a 10-minute check counts $0.22. The budget action at $300 (decision 1) is a
+**Use:** each person is capped at $50 a month by the instance (slice 2 Task 20), counted at the worst-case burst rate; a 10-minute check counts $0.21. The budget action at $300 (decision 1) is a
delayed backstop.
## 12. Unconfirmed
- Whether `OrganizationAccountAccessRole` exists in `149757027610` (0.4).
-- Whether `titogo-source` requires MFA (0.3).
+- Whether the access path enforces MFA (0.4).
- The applied MicroVM quota (0.6).
- The CloudTrail resource type for MicroVM data events, `AWS::Lambda::MicrovmImage` (2.2 asserts the
selector; 6.4 observes an event).
@@ -548,6 +608,8 @@ delayed backstop.
## 13. Inputs filled at GO
-`<HOSTED_RELEASE>` (and so `PIN` and `IMAGE_DIGEST`), `<INSTANCE_HOST>`, `<ALERT_EMAIL>`, the budget
-numbers (decision 1), and whether MFA is a condition of GO (decision 3). Everything else is read from
+`<HOSTED_RELEASE>` (and so `PIN`, `IMAGE_DIGEST` and the base image version), `<INSTANCE_HOST>`,
+`<INSTANCE_APP>`, `<INSTANCE_ACCOUNT>`, `<ALERT_EMAIL>`, `<CERT_PUB>` (Paul's certification public
+key), the budget numbers (decision 1), the spend ceiling (decision 7), and whether MFA is enforced or
+waived (decision 3). Everything else is read from
the ledger, `prod.tfvars` or OpenTofu outputs by `ops`.
diff --git a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
index 16524f09..0bfbbec0 100644
--- a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
+++ b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
@@ -179,7 +179,7 @@ func (*Client) Admission(ctx context.Context, attempt string) (hostedwire.Admiss
**Files:** Modify `internal/hostedctl/http.go`, `launch.go`, `cmd/equipo-hosted-controller/main.go`. Create `internal/hostedctl/operator_test.go`.
-**Interfaces:** operator role only: `POST /v1/cert/launch` (`CertLaunchRequest`; the image must be in the operator's `certification-images.json`; purpose `certification`, `Person` empty, services from `Manifest.For("certification")`); `GET /v1/certs` (active certificate digests and their snapshots); `POST /v1/admin/reload` (re-read the certificate and certification-image files; a file that fails to verify leaves the old set in place and returns the error); `POST /v1/admin/restart` (exit 0 after in-flight requests, so systemd restarts it and `ExecStartPre` re-fetches config); `POST /v1/admin/alert-test` (one `test` alert); `GET /v1/status` (the network audit result, `provider_bound` rows, each proxy's last feed age, `enabled`, the last clean reaper pass), so an operator outside the VPC can see what the private metrics listener shows. `GET /v1/vms` already exists.
+**Interfaces:** operator role only: `POST /v1/cert/launch` (`CertLaunchRequest`; the image must be in the operator's `certification-images.json`; purpose `certification`, `Person` empty, services from `Manifest.For("certification")`); `GET /v1/certs` (active certificate digests and their snapshots); `POST /v1/admin/reload` (re-fetch the `controller/` objects from the config bucket, then re-read the certificate and certification-image files; a file that fails to verify leaves the old set in place and returns the error); `POST /v1/admin/restart` (exit 0 after in-flight requests, so systemd restarts it and `ExecStartPre` re-fetches config); `POST /v1/admin/alert-test` (one `test` alert); `GET /v1/status` (the network audit result, `provider_bound` rows, each proxy's last feed age, `enabled`, the last clean reaper pass), so an operator outside the VPC can see what the private metrics listener shows. `GET /v1/vms` already exists.
- [ ] **Red:** `TestCertLaunchOperatorOnly`, `TestCertLaunchNeedsCandidateImage`, `TestReloadKeepsOldSetOnBadFile`, `TestAlertTestPublishesOnce`, `TestStatusOperatorOnly`.
- [ ] **Green:** `go test ./internal/hostedctl -run 'TestCertLaunch|TestReload|TestAlertTest' -count=1`.
@@ -318,11 +318,11 @@ func (*Session) Token() string
**Interfaces:**
- Runner (`hosted-certify`, as the runner user): runs the user and sandbox probes, reads `root.json` and `measured.json` from `EQUIPO_HOSTED_RESULTS`, and sends `Report{LaunchID string; Root, User, Sandbox []ProbeResult; Measured map[string]string; Containment ContainmentResult}` as a `hostedwire.CertReport` signed with its certificate key to the proxy bootstrap listener's `POST /cert-report`, which forwards it to the controller's `POST /v1/proxy/cert-report` (role proxy).
- Controller (`ctlcert/report.go`): accepts a report only when the serial is one it issued for a live `certification` launch with that launch ID, unrevoked, and the signature verifies against that certificate's public key; once per launch; headers carry no identity; wraps it in `Evidence{EvidenceID, LaunchID string; Image isolatedjob.ImageDigest; ImageVersion string; ProxyPolicy int; Deployment []string; Report Report; ReceivedNS int64}`, where every field but `Report` comes from the controller's own launch record and config, and signs it with the controller key. `GET /v1/cert/evidence/{launch}` (operator) returns it. Then it stops the VM with proof.
-- `equipo-hosted-certify`: `launch` (Task 5's route; waits for the evidence), `judge -evidence e.json -release r.json` (verifies the controller's signature; checks `Measured` equals the release manifest's runner, vm-init and policy digests; runs `Judge(report, Matrix())`; writes `snapshot.json` derived from the evidence alone), `sign -evidence e.json -release r.json -key <file>` (repeats `judge` and signs the derived snapshot; there is no snapshot input to substitute), `verify`, `reload`, `alert-test`.
+- `equipo-hosted-certify`: `launch` (Task 5's route; waits for the evidence), `judge -evidence e.json -release r.json -controller-pub k` (verifies the controller's signature against the separately supplied public key `k`, never a key carried in the evidence; checks `Measured` equals the release manifest's runner, vm-init and policy digests; runs `Judge(report, Matrix())`; writes `snapshot.json` derived from the evidence alone), `sign -evidence e.json -release r.json -controller-pub k -key <file>` (repeats `judge` and signs the derived snapshot; there is no snapshot input to substitute), `verify`, `reload`, `alert-test`.
Probes, each from its stage. Root, before the drop: VPC DNS answers nothing at each managed resolver address; the metadata endpoint gives no credential; `resolv.conf` is empty. User: cannot write `resolv.conf`; cannot gain a capability; a used proxy code is refused at the bootstrap listener. Sandbox: direct IPv4 and IPv6 to a public address, each managed resolver, the metadata endpoint, the proxy egress port without a certificate, the proxy bootstrap port, a DNS query, a build script and `go mod download` with an empty cache, all failing. Positive controls: the runner gets `GET /api/runner/protocol` from the instance through the proxy (the certification launch's one service); the containment suite passes in full (`containment.test -test.skip '^TestSource'`); the sandbox reads the Go tree. Expected outcomes live only in `Matrix()`.
-- [ ] **Red:** `TestJudgeUsesTrustedMatrix` (a report claiming success for a failing probe still fails). `TestJudgeNeedsEveryProbe`. `TestJudgeNeedsPositiveControls`. `TestEvidenceFromLaunchRecord` (a report naming another image or launch cannot change the evidence's image). `TestReportOncePerLaunch`. `TestReportNeedsVMKeySignature` (right serial, wrong key; a revoked serial; a proxy-supplied identity header: each refused). `TestSignRefusesMeasuredMismatch` (evidence whose measured runner digest differs from the release's: refused). `TestSignHasNoSnapshotInput`. `TestEvidenceSignatureChecked`.
+- [ ] **Red:** `TestJudgeUsesTrustedMatrix` (a report claiming success for a failing probe still fails). `TestJudgeNeedsEveryProbe`. `TestJudgeNeedsPositiveControls`. `TestEvidenceFromLaunchRecord` (a report naming another image or launch cannot change the evidence's image). `TestReportOncePerLaunch`. `TestReportNeedsVMKeySignature` (right serial, wrong key; a revoked serial; a proxy-supplied identity header: each refused). `TestSignRefusesMeasuredMismatch` (evidence whose measured runner digest differs from the release's: refused). `TestSignHasNoSnapshotInput`. `TestEvidenceSignatureChecked`, `TestEvidenceFromSubstitutedControllerKeyRefused`. `launch` and `img publish` take `-ledger DIR` and journal their attempt ID or client token there before the create call; `img publish` also takes `-base-version` (the release manifest pins it).
- [ ] **Green:** `go test ./internal/hostedcert ./internal/hostedctl/... ./cmd/equipo-hosted-certify -run 'TestJudge|TestEvidence|TestReportOnce|TestReportNeedsVMKeySignature|TestSign' -count=1`.
- [ ] **Mutations:** take the image from the report; skip the measured-digest comparison; skip one positive control.
- [ ] **Commit:** `hostedcert: certification evidence, trusted matrix and offline signer`.
@@ -560,7 +560,7 @@ var ErrCheckpointMismatch, ErrNoReceipt error
**Files:** Create `scripts/release-hosted.sh`, `infra/hosted/modules/controller/cloud-init.yaml.tmpl`, `infra/hosted/modules/proxy/cloud-init.yaml.tmpl`, `internal/hostedctl/healthz.go`. Modify `cmd/equipo-hosted-controller/{main.go,config.go}` (subcommand `keygen -ed25519|-ca -out <prefix>`; read the deployment manifest and the config-bucket files fetched by `ExecStartPre`; write its TLS certificate's SPKI pin to `pins/controller.spki` at first boot), `Makefile`.
-**Interfaces:** `release-hosted.sh <version>` builds `equipo-hosted-controller`, `equipo-hosted-proxy`, `equipo-vm-init`, `equipo-hosted-image`, `equipo-hosted-certify` and the runner for the image, records SHA-256 sums, and publishes them on the forge under the release tag, as `publish-renderer.sh` does. Cloud-init downloads by URL and checks the digest before installing; a mismatch, or private keys absent from the config bucket after 15 minutes, leaves the unit off. The controller unit's `ExecStartPre` fetches config and runs `litestream restore -if-replica-exists` before the controller starts; Litestream then replicates continuously to the Litestream bucket, and the controller exports `litestream_lag_seconds`. After a restore that trails live VMs, the 1a reaper treats unknown VMs as orphans and stops them after 10 minutes, which is the intended recovery. The controller publishes `Heartbeat` (only after a clean reaper pass), `AuditPassing`, `OrphansSeen` and `ProxySilent` to CloudWatch every minute. `GET /healthz` on the metrics listener only.
+**Interfaces:** `release-hosted.sh <version>` builds `equipo-hosted-controller`, `equipo-hosted-proxy`, `equipo-vm-init`, `equipo-hosted-image`, `equipo-hosted-certify` and the runner for the image, records SHA-256 sums, and publishes them on the forge under the release tag, as `publish-renderer.sh` does. Cloud-init downloads by URL and checks the digest before installing; a mismatch, or private keys absent from the config bucket after 15 minutes, leaves the unit off. The controller unit's `ExecStartPre` fetches config and runs `litestream restore -if-replica-exists` before the controller starts; Litestream then replicates continuously to the Litestream bucket, and the controller exports `litestream_lag_seconds` and publishes it to CloudWatch as `LitestreamLag`. Each proxy's boot reads `proxy/<name>/controller.json` (URL, pin, public key) from the config bucket, waiting up to 15 minutes for it. After a restore that trails live VMs, the 1a reaper treats unknown VMs as orphans and stops them after 10 minutes, which is the intended recovery. The controller publishes `Heartbeat` (only after a clean reaper pass), `AuditPassing`, `OrphansSeen` and `ProxySilent` to CloudWatch every minute. `GET /healthz` on the metrics listener only.
- [ ] **Red:** `TestCloudInitChecksDigest`, `TestControllerReadsManifest`, `TestKeygenWritesPrivate0600`, `TestPinWrittenOnce`, `TestHealthzOnMetricsOnly`, `TestHeartbeatOnlyAfterCleanPass`, `TestRestoreBeforeStart` (the unit order).
- [ ] **Green:** `go test ./internal/hostedctl ./cmd/equipo-hosted-controller -run 'TestCloudInit|TestControllerReads|TestKeygen|TestPinWritten|TestHealthz|TestHeartbeat|TestRestoreBeforeStart' -count=1`; `scripts/release-hosted.sh --dry-run`.
@@ -604,10 +604,11 @@ The account plan's Astra round 1 showed that live-run machinery adapted by hand
- `singleton ensure|get NAME`: the account S3 public access block and EBS default encryption; records the prior value; never turns one off.
- `tf ROOT PHASE`: the bucket owner check, init, `plan -out` (or `plan -destroy -out` for `destroy-*`), `show -json`, `plan-check.py`, apply of the saved plan.
- `unit start|wait|stop [--all]`: Task 17b's systemd user units (R44, R45), with the run's prefix.
+- `block ID -- CMD` (guard and estimate first, then CMD; on exit 99 it runs `safe-stop`); `safe-stop` (local unit shutdown, instance flag off, `fence`, reconcile, settle with a repeat after 10 minutes, bundle; never checks spend; if a credential check fails it does the local steps and waits); `fence` (attach the deny-launch policy to the controller role, then stop the controller host and confirm); `reserve vm|build N` (durable reservations counted by `estimate`); `mfa-check` (reads the access role's trust policy for `aws:MultiFactorAuthPresent`); `vms adopt` (records every VM the controller's `GET /v1/vms` lists); `tf reconcile ROOT` (refresh-only plan plus a tagged-resource listing; classifies each resource); `cloudtrail stop-logging`; `bundle --out` and `reopen --bundle` (a secret-free, reloadable run record).
- `assert` (99 on mismatch) and `fact` (a FINDING); `ledger note`; `wait-human NAME --max D [--background]`; `wait object`; `object put`; `keys upload`; `status` (the operator route of Task 5, through the pin); `litestream-check` (restore the latest generation into scratch and open it); `inventory`; `quota`; `tfvars [--add-image --add-connector]`; `verify-gone` (direct reads per recorded type); `report [--stopped]`.
- Each subcommand's exact flags are the ones `2026-11-30-hosted-prod-account-plan.md` uses; that plan is the acceptance list for this tool.
-- [ ] **Red:** `TestGuardRefusesOtherAccount`, `TestEveryAWSCommandVerifiesItself` (a profile changed between two invocations, and wrong-role credentials, are refused by the second invocation before any mutation), `TestTfPassesFrozenKeys`, `TestLedgerSkipNeverCreated`, `TestLedgerUnresolvedBlocksTeardown`, `TestRecRefusesForeignAccount`, `TestRecAcceptsListedAWSOwned`, `TestEstimateStops` (a ledger whose worst case reaches the stop: 99), `TestEstimateKeepsVanishedVMs`, `TestEstimateIncompleteScanStops`, `TestSettleNeedsThreeCleanScans`, `TestSettleIgnoresController`, `TestConnectorDeleteFallback` (DELETE_FAILED, then the one retry; a second failure is 99), `TestBucketEmptyPaginates` (versions and markers over several pages), `TestBucketOwnerChecked`, `TestSingletonNeverTurnsOff`, `TestTfRefusesUnsavedApply`, `TestUnitStopOnlyJournalled`. AWS is faked with SDK middleware; no test reaches AWS.
+- [ ] **Red:** `TestGuardRefusesOtherAccount`, `TestEveryAWSCommandVerifiesItself` (a profile changed between two invocations, and wrong-role credentials, are refused by the second invocation before any mutation), `TestTfPassesFrozenKeys`, `TestLedgerSkipNeverCreated`, `TestLedgerUnresolvedBlocksTeardown`, `TestRecRefusesForeignAccount`, `TestRecAcceptsListedAWSOwned`, `TestEstimateStops` (a ledger whose worst case reaches the stop: 99), `TestEstimateKeepsVanishedVMs`, `TestEstimateIncompleteScanStops`, `TestSettleNeedsThreeCleanScans`, `TestSettleIgnoresController`, `TestConnectorDeleteFallback` (DELETE_FAILED, then the one retry; a second failure is 99), `TestBucketEmptyPaginates` (versions and markers over several pages), `TestBucketOwnerChecked`, `TestSingletonNeverTurnsOff`, `TestTfRefusesUnsavedApply`, `TestUnitStopOnlyJournalled`, `TestBlockRunsSafeStopOn99`, `TestSafeStopSkipsSpendCheck`, `TestFenceBeforeSettle`, `TestSettleRepeatsAfterTenMinutes`, `TestTfReconcileFindsUntrackedResource`, `TestBundleReopenRoundTrip` (no secret in the bundle). AWS is faked with SDK middleware; no test reaches AWS.
- [ ] **Green:** `go test ./internal/hostedops ./internal/isolatedjob/... ./cmd/equipo-hosted-ops -count=1`; `make build vet govulncheck`.
- [ ] **Mutations:** let `guard` pass on a region mismatch; let `settle` stop after one clean scan; let `rec` accept another account.
- [ ] **Commit:** `hostedops: tested run kit for the dev drill and production`.