oficina / equipo Public

plan: production account bring-up and slice 4 needs note (drafts)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 20e47bc19e2ca5352d418af63093871fd2bf57f1 parent ea4b9bc
2 files changed, +573 −0
  • docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md +496 −0
  • docs/superpowers/plans/2026-11-30-hosted-slice-4-needs.md +77 −0

CI failed — 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   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.9s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
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 9.3s
ci-box: clone deepened in 5.9s
ci-box: file times set from content: 3753 files, 244 directories
ci-box: ready in 19.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.236s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.6s
+ 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 1m12.641s 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.803s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m10.8s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 40.14, cpu waiting 24.44%, memory waiting 0.00%, io waiting 0.66%
--- 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 1m9.853s 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 1m7.91s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.91s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 40.14, cpu waiting 24.30%, memory waiting 0.00%, io waiting 0.70%
--- 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 1m13.053s 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.835s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m1.72s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.96s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.15s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 40.14, cpu waiting 24.44%, memory waiting 0.00%, io waiting 0.66%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 2m35.054s 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 2m33.103s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m59.45s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 15.56s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.21s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 8.88s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 18.95, cpu waiting 7.73%, memory waiting 0.00%, io waiting 0.16%
--- 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 1m28.153s 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 1m26.227s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.83s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.2s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.08s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.49s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.63s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 37.81, cpu waiting 22.02%, memory waiting 0.00%, io waiting 0.50%
--- 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

receipt: test step 3m19.552s 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 3m17.182s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m33.76s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.28s amadan.net/oficina/equipo/internal/headless TestMacMixedVersions
receipt: slow test 20.63s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.32s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.27s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
machine: 32 CPUs, load 10.47, cpu waiting 3.71%, memory waiting 0.00%, io waiting 0.07%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 357ms 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 5.79, cpu waiting 0.02%, memory waiting 0.00%, io waiting 2.11%
--- 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 448ms 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 5.79, cpu waiting 0.35%, memory waiting 0.00%, io waiting 2.21%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 7m22.643s, over the 45s its record on line 45 allows; reported only, timing fails on CI

receipt: test step 7m39.282s 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 7m22.643s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.1s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.91s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 33.26s amadan.net/oficina/equipo/internal/runner/thin TestWorkerHelloConnections
receipt: slow test 18.52s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
machine: 32 CPUs, load 0.88, cpu waiting 0.04%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 47.753s 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.64s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.61s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 40.13, cpu waiting 22.10%, memory waiting 0.00%, io waiting 1.02%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 48.023s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.111s amadan.net/oficina/equipo/internal/runner
receipt: slow test 36.04s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.91s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 40.13, cpu waiting 22.46%, memory waiting 0.00%, io waiting 0.99%
--- 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.981s 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 40.105s 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.26s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.89s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 35.96, cpu waiting 19.33%, memory waiting 0.00%, io waiting 1.13%
--- 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.4%, load 24.26
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
--- 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:215:533: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:237:40: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:250:114: unclassified equipo-runner
        reference scan: 3465 text files, 3988 matches, 4 failures
--- FAIL: TestDirectDeadReferencesRepository (2.71s)

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


receipt: test step 1m13.971s 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.999s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 33.45s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 33.38s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 31.02s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 27.94s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 27.64s amadan.net/oficina/equipo/internal/equipotest TestAuthorityReadsOneSnapshot
rastrillo: budget test: go test failed
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:215:533: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:237:40: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:250:114: unclassified equipo-runner
        reference scan: 3465 text files, 3988 matches, 4 failures
--- FAIL: TestDirectDeadReferencesRepository (2.67s)
FAIL
rastrillo-budget/v1 ran 2.668s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.829s
FAIL
machine: 32 CPUs, load 31.31, cpu waiting 16.80%, memory waiting 0.00%, io waiting 0.37%
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.4%, load 24.26
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 599ms 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 24.26, cpu waiting 12.71%, memory waiting 0.00%, io waiting 1.33%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 30.4%, load 24.26
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
budget note: internal/equipotest took 5m44.722s, over the 5m0s its record on line 15 allows; reported only, timing fails on CI

receipt: test step 5m59.883s 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 5m44.722s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m49.86s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 14.27s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 11.26s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 11.19s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 8.15s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 1.90, cpu waiting 0.15%, memory waiting 0.00%, io waiting 0.00%
--- 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.4%, load 24.26
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 575ms 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 24.26, cpu waiting 12.71%, memory waiting 0.00%, io waiting 1.33%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 31.4%, load 24.26
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 606ms 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 24.26, cpu waiting 12.71%, memory waiting 0.00%, io waiting 1.33%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 31.4%, load 24.26
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/isolatedjob: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/release: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/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/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/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 2m43.709s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 51.898s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/github took 40.217s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 15.02s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/hostedctl took 31.81s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 1m54.122s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 32.769s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 41.183s, over the 15s its record on line 41 allows; reported only, timing fails on CI
budget note: internal/runner/mac took 46.024s, over the 45s its record on line 44 allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/mac/fprobe took 14.761s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/render took 1m27.13s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m20.629s against a 60s target (the gate's other steps are not in this figure)
receipt: 17 packages ran, 68 cached, 22 without tests, 0 failed
receipt: slow package 2m43.709s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m54.122s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m27.13s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 55.304s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 53.191s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 1m2.67s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 53.77s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 53.64s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 53.17s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 51.64s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
machine: 32 CPUs, load 15.35, cpu waiting 5.92%, memory waiting 0.00%, io waiting 0.12%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.901s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.191s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.25s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.74s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.67s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.43s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 38.75, cpu waiting 23.29%, memory waiting 0.00%, io waiting 0.55%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

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

receipt: test step 1m48.76s 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 1m46.959s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.49s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.05s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 11.75s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.16s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.5s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 31.31, cpu waiting 16.29%, memory waiting 0.00%, io waiting 0.36%
--- 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

receipt: test step 1m31.739s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m30.082s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.87s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.35s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.15s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.21s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.34s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 36.70, cpu waiting 20.76%, memory waiting 0.00%, io waiting 0.47%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 382ms 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 253ms 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 234ms 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 209ms 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 424ms 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 5.79, cpu waiting 1.64%, memory waiting 0.00%, io waiting 2.13%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (48s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.80s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.33s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.50s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.00s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.55s
+ 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.72s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.76s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.42s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.34s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (19s)
ok ./internal/headless TestMixedVersions 17.56s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ 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 40.28, cpu waiting 24.00%, memory waiting 0.00%, io waiting 0.86%
--- 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.537s 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.079s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 155ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 63ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.06s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 70ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.414s 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.066s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
machine: 32 CPUs, load 10.48, cpu waiting 5.45%, memory waiting 0.00%, io waiting 1.80%
--- 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.4%, load 24.26
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:215:533: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:237:40: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:250:114: unclassified equipo-runner
reference scan: 3465 text files, 3988 matches, 4 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 24.26, cpu waiting 13.83%, memory waiting 0.00%, io waiting 1.29%
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.4%, load 24.26
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 24.26, cpu waiting 13.83%, memory waiting 0.00%, io waiting 1.29%
--- 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.4%, load 21.67
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 39.70, cpu waiting 24.70%, memory waiting 0.00%, io waiting 0.80%
--- 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.4%, load 21.67
shard 28: make gitleaks
5:38PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
5:38PM INF 1328 commits scanned.
5:38PM INF scanned ~74988740 bytes (74.99 MB) in 16.1s
5:38PM INF no leaks found
machine: 32 CPUs, load 40.13, cpu waiting 21.36%, memory waiting 0.00%, io waiting 1.05%

amadan: job failed at step check shards 12, 25 of 29 — its output is above, not at the tail of this log
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
new file mode 100644
index 00000000..fa0cbec3
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md
@@ -0,0 +1,496 @@
+# Hosted runners: production account bring-up (149757027610, `equipo-hosted`)
+
+**Revision:** 1 (2026-11-30), draft for Astra, then for Paul's one GO. Written in the shape of the
+Task 17 revision 5 and Task 17b plans (safety-only hard stops, FINDING lines, a ledger, verified
+teardown). **No AWS command or SDK call of any kind was made while writing it, not even a read.**
+
+**Runs after:** slice 2 (`docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md`) is built,
+merged and released, and its dev drill (Task 30) passed in `kass`. Block 0.1 checks this.
+
+## What Paul approves
+
+One bring-up of the hosted-runner stack in account `149757027610` (`equipo-hosted`), region
+`eu-west-1`, reached through the organisation's `OrganizationAccountAccessRole` from the `titogo`
+profile, as the other member accounts are. Every block checks the caller's account and region first.
+The global services are the named exceptions: IAM (inside OpenTofu), AWS Budgets and Cost Anomaly
+Detection (inside the `account` stack only). No Cost Explorer or billing read is made.
+
+Everything the stack needs is created by OpenTofu from `infra/hosted/envs/prod/` at the pinned
+release, except the state bucket (block 1.1), the MicroVM image (section 5) and the certification
+and smoke VMs (sections 6 and 8), which the controller launches. Every `tofu apply` runs only a
+saved plan that `infra/hosted/scripts/plan-check.py` has passed: only the resource addresses this
+document lists for that phase, only creates (no update, replace or delete of anything already
+there), every ARN in this account and region.
+
+The run stops hard only for safety:
+- the wrong account or region;
+- spend: the run's own estimate reaching $10 (the approval ceiling is $20);
+- a MicroVM alive outside the step that launched it;
+- anything not in the ledger or the checked plan, including a name collision with an existing resource;
+- a step that later steps need cannot complete.
+
+Everything else that differs from expectation is a `FINDING:` line, and the run goes on where it
+safely can. Guarded, read-only calls on this run's own resources are pre-approved. Pre-approved
+fallbacks: 3.3's connector delete-policy condition retry (the Task 17 10.2 rule) and 5.3's base
+image step-down by one version. Expected bring-up spend about $3; the stack then costs about $45 to
+$52 a month before use (section 11). Any other change, or any other AWS call, comes back to Paul.
+
+**Paul's own steps:** confirm the SNS email subscription (2.3), sign the image certificate offline
+(6.4), and turn the project setting on for the first project (8.1). The run waits at each.
+
+## Decisions owed to Paul (with recommendations)
+
+1. **Budget numbers.** *Recommendation:* a monthly cost budget of $150 that emails at 50%, 80% and
+ 100% actual and 100% forecast; and a budget action at $300 actual that attaches a deny policy to
+ the controller's role for `RunMicrovm` and `ResumeMicrovm`, so AWS itself stops new VMs. Running
+ VMs still end by their 90-minute lifetime. Lifting the action is a hand step.
+2. **Run section 0 early, on its own GO.** It is read-only, costs nothing, and answers the two
+ questions that could block everything later: whether `OrganizationAccountAccessRole` exists in
+ this account (it was renamed from "Keymail" and may have been invited rather than created), and
+ the applied MicroVM quota. *Recommendation:* yes.
+3. **The controller's address.** *Recommendation:* its Elastic IP with a pinned self-signed
+ certificate. The instance and the proxies already verify signed responses, so a DNS name adds
+ nothing but a dependency.
+4. **The Equipo instance this stack serves** (`INSTANCE_HOST`): its exact hostname, which every
+ certificate covers. Paul names it at GO.
+
+## Order of execution
+
+| Order | Section | Roughly |
+| --- | --- | --- |
+| 1 | 0. Access, guard rails, inventory, quota | 15 min |
+| 2 | 1. State bucket and keys | 10 min |
+| 3 | 2. Account baseline (`envs/prod/account`) | 10 min, plus Paul's email confirmation |
+| 4 | 3. Network and connector (`envs/prod/network`) | 15 min |
+| 5 | 4. Controller and proxies (`envs/prod/services`) | 20 min |
+| 6 | 5. Image | 20 min |
+| 7 | 6. Certification | 30 min, plus Paul's signature |
+| 8 | 7. Instance wiring | 20 min |
+| 9 | 8. Smoke checks | 30 min, with Paul |
+| 10 | 9. Hand-over | 10 min |
+
+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/env.sh"; guard`. Long blocks (3.2, 4.2,
+ 5.3, 6.2) run as transient systemd user units, started, waited on and stopped by name exactly as
+ Task 17b's `unitctl.sh` does (rulings R44, R45), with unit names `hprod-<RUN>-<block>`.
+- **`env.sh`** is Task 17b's `env.sh` (plan `2026-11-30-hosted-1a-task17b-live-plan.md` at
+ `78620c94`, the block that begins `# env.sh: sourced by every block`) with exactly these changes:
+ `AWS_PROFILE=equipo-hosted`; `ACCOUNT=149757027610`; `TAGV=equipo-hosted-prod`; `T17` renamed `P`
+ with default `$TMPDIR/equipo-hosted-prod`; `REPO` set to the pinned checkout from 0.1; `arn_ok`
+ accepts only `arn:aws:*:eu-west-1:149757027610:*`, `arn:aws:iam::149757027610:*`,
+ `arn:aws:budgets::149757027610:*` and `arn:aws:s3:::equipo-hosted-*`, and dies on any ARN naming
+ `640012953448`, `271376211898`, `658785697856`, `051457670018` or `665106592142`; the `_kind`
+ table lists `STATE_BUCKET`, `IMAGE_ARN`, `CERT_LAUNCH` and `SMOKE_JOBS`; the controller, livectl,
+ `API` and `METRICS` lines are removed (production uses `equipo-hosted-image` and the deployed
+ controller). Its `die`, `finding`, `jw`, `need`, `try`, `must`, `get`, `gone0`, `have`,
+ `creation_state`, `poll` and `fact_eq` helpers are used unchanged.
+- **`guard`**: `aws sts get-caller-identity` must answer `Account` `149757027610` and an `Arn`
+ under `assumed-role/OrganizationAccountAccessRole/equipo-hosted-bringup`, with `AWS_REGION` and
+ `AWS_DEFAULT_REGION` both `eu-west-1`; else `die`.
+- **`tf ROOT PHASE`**, defined in `env.sh`:
+
+ ```sh
+ tf() { local r=$1 ph=$2 d="$REPO/infra/hosted/envs/prod/$1"
+ tofu -chdir="$d" init -input=false -backend-config="bucket=$STATE_BUCKET" \
+ -backend-config="key=prod/$r.tfstate" -backend-config="region=eu-west-1" -backend-config="use_lockfile=true" >"$P/tf-$r-init.log" 2>&1 || die "tofu init $r"
+ tofu -chdir="$d" plan -input=false -var-file="$P/prod.tfvars" -out="$P/tf-$r.plan" >"$P/tf-$r-plan.log" 2>&1 || die "tofu plan $r"
+ tofu -chdir="$d" show -json "$P/tf-$r.plan" > "$P/tf-$r.plan.json" || die "tofu show $r"
+ python3 -I "$REPO/infra/hosted/scripts/plan-check.py" --phase "$ph" --account "$ACCOUNT" --region eu-west-1 "$P/tf-$r.plan.json" \
+ || die "plan-check refused the $r plan (phase $ph): nothing applied"
+ jw "INTENT tofu-apply $r $(sha256sum "$P/tf-$r.plan" | cut -c1-64)"
+ tofu -chdir="$d" apply -input=false "$P/tf-$r.plan" >"$P/tf-$r-apply.log" 2>&1 || die "tofu apply $r (state is in s3://$STATE_BUCKET; reconcile with S.2)"
+ tofu -chdir="$d" output -json > "$P/out-$r.json" || die "tofu output $r"
+ jw "APPLIED $r"; }
+ ```
+
+ `plan-check.py` is built in slice 2 Task 25, with the allowed address list per phase in
+ `infra/hosted/scripts/phases.json`; this document's sections 2 to 4 restate each list.
+- **Ledger.** OpenTofu state is the ledger for what it creates. Everything else gets an `INTENT`
+ line before its create call and a `rec` line after (Task 17b rules). Teardown acts only on
+ confirmed records and `tofu destroy`.
+- **Tags.** Every taggable resource carries `purpose=equipo-hosted-prod` and `run=<RUN>` (OpenTofu
+ `default_tags`). MicroVMs have no tags; they are tracked through the controller's job table and
+ `GET /v1/vms`.
+- **Never touched:** every other account, every resource this run did not create, and anything in
+ the inventory from 0.5.
+- **Records.** Results go to `docs/superpowers/plans/HOSTED-PROD-BRINGUP.md`, committed locally at
+ the end (subject under 80 characters). Secrets never enter the journal, the record or a commit.
+
+---
+
+## 0. Access, guard rails, inventory, quota
+
+### 0.1 Code pin and tools (no AWS call)
+
+```sh
+set -euo pipefail
+R=/home/paulca/amadan.net/oficina/equipo
+git -C "$R" fetch -q origin
+PIN=$(git -C "$R" rev-parse "refs/tags/<HOSTED_RELEASE>^{commit}") # filled at GO
+git -C "$R" merge-base --is-ancestor "$PIN" origin/main || { echo "ABORT: release not on main"; exit 1; }
+grep -q 'Task 30.*PASSED' <(git -C "$R" show "$PIN:docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md") \
+ || { echo "ABORT: no recorded dev drill pass at the pin"; exit 1; }
+tofu version | head -1 | grep -q '^OpenTofu v1\.12\.' || { echo "ABORT: tofu 1.12 needed"; exit 1; }
+aws --version; go version
+echo "PIN=$PIN"
+```
+
+### 0.2 Scratch, worktree and run name (no AWS call)
+
+```sh
+set -euo pipefail
+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 from 0.1>"
+mkdir -m 700 "$P/keys" "$P/blocks"
+# env.sh as described under "Rules", with REPO="$P/repo"; unitctl.sh copied from Task 17b with the hprod- prefix.
+printf 'RUN=%s\nPIN=%s\n' "$RUN" "<PIN>" > "$P/run.env"; : > "$P/journal.tsv"; : > "$P/ledger.env"
+echo "P=$P RUN=$RUN"
+```
+
+### 0.3 The profile (local file, no AWS call)
+
+Append once to `~/.aws/config`, unless a `[profile equipo-hosted]` block already exists, in which case
+it must match exactly or the run stops:
+
+```ini
+[profile equipo-hosted]
+role_arn = arn:aws:iam::149757027610:role/OrganizationAccountAccessRole
+source_profile = titogo
+role_session_name = equipo-hosted-bringup
+region = eu-west-1
+```
+
+### 0.4 First AWS call: who am I
+
+```sh
+guard
+jw "IDENTITY $(aws sts get-caller-identity --query Arn --output text)"
+```
+
+`AccessDenied` on the assume-role is a hard stop: the role does not exist or does not trust the
+management account. Paul then chooses how to create access (the account's root user, or a
+service-managed StackSet from the management account); this plan does not.
+
+### 0.5 Inventory (read-only)
+
+```sh
+guard
+for c in "ec2 describe-vpcs --query length(Vpcs[?IsDefault==\`false\`])" \
+ "ec2 describe-instances --query length(Reservations[].Instances[])" \
+ "s3api list-buckets --query length(Buckets)" \
+ "cloudtrail describe-trails --query length(trailList)" \
+ "budgets describe-budgets --account-id 149757027610 --query length(Budgets||\`[]\`)"; do
+ try aws $c --output text; [ "$RC" = 0 ] && jw "INVENTORY $c = $OUT" || finding "inventory read failed: $c ($ECODE)"
+done
+get NAMES aws iam list-roles --query 'Roles[?starts_with(RoleName,`equipo-hosted`)].RoleName' --output text
+[ -z "$NAMES" ] || die "roles named equipo-hosted* already exist: $NAMES"
+get B aws s3api list-buckets --query 'Buckets[?starts_with(Name,`equipo-hosted`)].Name' --output text
+[ -z "$B" ] || die "buckets named equipo-hosted* already exist: $B"
+equipo_image list --account 149757027610 --region eu-west-1 --prefix equipo-hosted-prod > "$P/images0.json" || die "image list"
+[ "$(jq '.Items|length' "$P/images0.json")" = 0 ] || die "MicroVM images named equipo-hosted-prod* already exist"
+```
+
+Anything non-zero in the first loop is a FINDING (an account that "cost $0" may still hold free
+resources); nothing found there is ever changed. `equipo_image` is
+`"$P/bin/equipo-hosted-image"` built from the pin in 1.2.
+
+### 0.6 The applied MicroVM quota (read-only)
+
+```sh
+guard
+try aws service-quotas list-service-quotas --service-code lambda --query 'Quotas[?contains(QuotaName, `MicroVM`)]' --output json
+[ "$RC" = 0 ] && jw "QUOTA $OUT" || finding "MicroVM quota unreadable ($ECODE); dev had 2048 GB"
+```
+
+Need: 2 running Large VMs per person, so 8 GB per person. Below 64 GB is a FINDING to raise with
+Paul after the run, not a stop.
+
+## 1. State bucket and keys
+
+### 1.1 The OpenTofu state bucket (CLI, the one bootstrap resource)
+
+```sh
+guard; STATE_BUCKET=equipo-hosted-tfstate-149757027610
+intent s3-bucket "$STATE_BUCKET"
+aws s3api create-bucket --bucket "$STATE_BUCKET" --create-bucket-configuration LocationConstraint=eu-west-1 >/dev/null
+rec STATE_BUCKET "$STATE_BUCKET"
+aws s3api put-public-access-block --bucket "$STATE_BUCKET" --public-access-block-configuration BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true
+aws s3api put-bucket-versioning --bucket "$STATE_BUCKET" --versioning-configuration Status=Enabled
+aws s3api put-bucket-encryption --bucket "$STATE_BUCKET" --server-side-encryption-configuration '{"Rules":[{"ApplyServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}]}'
+aws s3api put-bucket-tagging --bucket "$STATE_BUCKET" --tagging "TagSet=[{Key=purpose,Value=equipo-hosted-prod},{Key=run,Value=$RUN}]"
+fact_eq "state bucket versioning" Enabled aws s3api get-bucket-versioning --bucket "$STATE_BUCKET" --query Status --output text
+```
+
+### 1.2 Binaries and keys (no AWS call)
+
+```sh
+cd "$REPO"; mkdir -p "$P/bin"
+for c in equipo-hosted-controller equipo-hosted-image equipo-hosted-certify; do go build -o "$P/bin/$c" "./cmd/$c"; done
+K="$P/keys"; ctl="$P/bin/equipo-hosted-controller"
+$ctl keygen -ed25519 -out "$K/controller" # response and feed signing
+$ctl keygen -ed25519 -out "$K/instance" # the Equipo instance's request key (RoleInstance)
+$ctl keygen -ed25519 -out "$K/operator" # this run's operator key (RoleOperator), deleted in 9.2
+$ctl keygen -ed25519 -out "$K/proxy-a"; $ctl keygen -ed25519 -out "$K/proxy-b" # RoleProxy
+$ctl keygen -ca -out "$K/client-ca" # the proxy client CA (S2-8), held by the controller
+$ctl keygen -ca -out "$K/intercept-ca" # the proxies' inner-TLS CA; its SPKI pin goes in every bootstrap
+chmod -R go-rwx "$K"
+```
+
+`prod.tfvars` is written from these public halves, `INSTANCE_HOST`, the release digests and the
+budget numbers. Private halves reach the hosts only through the config bucket (4.1), each object
+readable by one host role.
+
+## 2. Account baseline (`envs/prod/account`, phase `account`)
+
+### 2.1 Plan and apply
+
+`tf account account`. Allowed addresses: `aws_cloudtrail.main`, `aws_s3_bucket.trail` (plus its
+versioning, encryption, public access block, policy and lifecycle at 400 days), `aws_ebs_encryption_by_default.on`,
+`aws_s3_account_public_access_block.on`, `aws_iam_account_password_policy.strict`,
+`aws_sns_topic.alerts`, `aws_sns_topic_policy.alerts`, `aws_sns_topic_subscription.paul_email`,
+`aws_budgets_budget.monthly`, `aws_budgets_budget_action.stop_launches`,
+`aws_iam_role.budget_action`, `aws_iam_policy.deny_launches`, `aws_ce_anomaly_monitor.service`,
+`aws_ce_anomaly_subscription.daily`. The trail logs management events in every region and the
+Lambda MicroVM data events in `eu-west-1`.
+
+### 2.2 Checks (read-only)
+
+`fact_eq` on: the trail is logging; EBS default encryption is on; the budget's limit is the
+approved amount; the anomaly subscription's threshold is "daily spend above twice the trailing
+average" as far as AWS can express it (a FINDING otherwise; the controller's own alert in slice 2
+Task 26 is the fallback).
+
+### 2.3 Paul confirms the email subscription (HUMAN)
+
+The run waits for Paul to confirm. `get-subscription-attributes` must then show
+`PendingConfirmation` `false`; until then, a FINDING, and the run goes on (alerts are not needed by
+later steps).
+
+## 3. Network and connector (`envs/prod/network`, phase `network`)
+
+### 3.1 Plan and apply
+
+`tf network network`. Allowed addresses: `aws_vpc.vm` (DNS support and hostnames off),
+`aws_subnet.vm[0]`, `aws_route_table.vm`, `aws_route_table_association.vm[0]`,
+`aws_route.vm_to_proxy[0..1]`, `aws_security_group.vm`, `aws_vpc_security_group_egress_rule.vm_proxy[0..3]`,
+`aws_network_acl.vm` and its rules, `aws_default_security_group.vm`, `aws_default_route_table.vm`,
+`aws_default_network_acl.vm`, `aws_vpc.services` (DNS on), `aws_subnet.services[0..1]` (two AZs),
+`aws_internet_gateway.services`, `aws_route_table.services`, `aws_route_table_association.services[0..1]`,
+`aws_route.services_to_vm`, `aws_vpc_peering_connection.vm_services`, `aws_iam_role.connector_operator`,
+`aws_iam_role_policy_attachment.connector_managed` (`AWSLambdaNetworkConnectorOperatorPolicy`),
+`aws_iam_role_policy.connector_delete_eni` (subnet-scoped `ec2:DeleteNetworkInterface`),
+`aws_lambda_network_connector.vm_egress` (or the stack's `terraform_data` wrapper around the
+publish tool if the AWS provider has no resource for it at the pinned version; slice 2 Task 25
+decides and `phases.json` names the one used).
+
+### 3.2 Wait for the connector (unit, bound 20 min)
+
+`equipo_image connector-wait --arn "$(jq -r .connector_arn.value "$P/out-network.json")" --timeout 18m`;
+ACTIVE, then record the `:1` version ARN (Task 17's 2.4 fact) as `CONN_VERSION_ARN`.
+
+### 3.3 Checks (read-only)
+
+`fact_eq`: the VM VPC's `enableDnsSupport` is false; the VM route table holds the local route and
+exactly the two proxy `/32` routes over the peering; the VM security group's egress set is exactly
+the two proxies on 8443 and 8444 and it has no ingress. A difference in any of these is a **hard
+stop** (it is the egress boundary), not a FINDING.
+
+## 4. Controller and proxies (`envs/prod/services`, phase `services`)
+
+### 4.1 Config bucket objects, then plan and apply
+
+The `services` stack creates `aws_s3_bucket.config` first in the same apply; the private keys are
+uploaded in 4.2 after it exists, and the hosts wait for them at boot (cloud-init retries for 15
+minutes, then leaves the unit off). Allowed addresses: `aws_s3_bucket.config` (+ versioning,
+encryption, public access block, policy), `aws_s3_bucket.litestream` (+ the same),
+`aws_s3_bucket.image_inputs` (+ the same), `aws_iam_role.controller`, `aws_iam_role_policy.controller`,
+`aws_iam_instance_profile.controller`, `aws_iam_role.proxy`, `aws_iam_role_policy.proxy` (only
+`s3:GetObject` on `proxy/<name>/*`), `aws_iam_instance_profile.proxy`, `aws_instance.controller`,
+`aws_eip.controller`, `aws_security_group.controller`, `aws_instance.proxy[0..1]`, `aws_eip.proxy[0..1]`,
+`aws_security_group.proxy`, `aws_cloudwatch_metric_alarm.status_check[0..2]`. Then `tf services services`.
+
+### 4.2 Upload the private keys (CLI)
+
+```sh
+guard; CB=$(jq -r .config_bucket.value "$P/out-services.json")
+for o in controller/controller.key:controller client-ca/ca.key:controller proxy/a/proxy.key:proxy-a \
+ proxy/a/intercept.key:intercept-ca proxy/b/proxy.key:proxy-b proxy/b/intercept.key:intercept-ca; do
+ key=${o%%:*}; src=${o##*:}
+ aws s3api put-object --bucket "$CB" --key "$key" --body "$P/keys/$src.key" --server-side-encryption AES256 >/dev/null
+ jw "KEY-UPLOADED $key"
+done
+```
+
+### 4.3 Hosts up (unit, bound 20 min)
+
+Poll until the controller's `/healthz` (over the pinned TLS from 4.4) answers and its metrics show
+`network_audit_passing 1` and one `provider_bound` row for `aws:149757027610:eu-west-1`, and each
+proxy's feed poll appears in the controller's `proxy_last_feed_seconds{proxy="a|b"}` below 90 s.
+A failing network audit is a **hard stop**.
+
+### 4.4 Pins (read-only)
+
+Read `pins/controller.spki` from the config bucket (written by the controller at first boot);
+record it as `CTL_PIN`. A pin that changes between two reads 60 s apart is a hard stop.
+
+## 5. Image
+
+### 5.1 Build (no AWS call)
+
+`equipo_image build -manifest "$REPO/infra/hosted/image/manifest.json" -out "$P/image.zip"`; record
+`IMAGE_DIGEST`. It must equal the digest the release recorded for `<HOSTED_RELEASE>` and the dev
+drill certified; else a hard stop.
+
+### 5.2 Upload
+
+`intent s3-object image.zip`; `aws s3api put-object --bucket "$(jq -r .image_inputs_bucket.value "$P/out-services.json")" --key "images/$IMAGE_DIGEST.zip" --body "$P/image.zip" --checksum-algorithm SHA256 --tagging "purpose=equipo-hosted-prod&run=$RUN"`; `rec ARTIFACT`.
+
+### 5.3 Create the image and its Large version (unit, bound 50 min)
+
+`intent microvm-image equipo-hosted-prod-<RUN>`; `equipo_image publish --account 149757027610 --region eu-west-1 --name equipo-hosted-prod-<RUN> --bucket ... --key ... --size large --capabilities ALL --timeout 45m`;
+`rec IMAGE_ARN`, `rec IMAGE_VERSION`. Pre-approved fallback: one base image version down, once.
+
+## 6. Certification
+
+### 6.1 Controller config gains the candidate image (CLI)
+
+Upload `controller/certification-images.json` (`[{"digest": IMAGE_DIGEST, "image_arn": ..., "version": ...}]`) to the config bucket; `equipo-hosted-certify reload --controller https://<EIP> --pin "$CTL_PIN" --operator-key "$P/keys/operator.key"`.
+
+### 6.2 Certification launch (unit, bound 25 min)
+
+`intent cert-launch`; `equipo-hosted-certify launch --controller ... --image "$IMAGE_DIGEST" --wait 20m --out "$P/cert-report.json"`; `rec CERT_LAUNCH`.
+Then `GET /v1/vms` (operator) must list no live VM for this launch within 5 minutes of the report:
+a live one is a **hard stop**.
+
+### 6.3 Judge locally (no AWS call)
+
+`equipo-hosted-certify judge --report "$P/cert-report.json"` must pass (the trusted matrix is in the
+tool, not the report). A failure is a hard stop: production does not get an uncertified image.
+
+### 6.4 Paul signs (HUMAN)
+
+Paul copies `cert-report.json` and `snapshot.json` (written by 6.3) to his signing machine, runs
+`equipo-hosted-certify sign -report cert-report.json -snapshot snapshot.json -key <his key>`, and
+returns `certificate.json`. The agent checks it with `equipo-hosted-certify verify` against the
+public key in `prod.tfvars`, uploads it as `controller/certificates.json`, reloads, and reads
+`GET /v1/certs` (operator) to see it active.
+
+## 7. Instance wiring
+
+### 7.1 The Equipo instance's settings
+
+Through the instance's own configuration path (the one `scripts/upgrade-thin.sh` uses for its
+settings), set `EQUIPO_HOSTED_RUNNERS=1`, `EQUIPO_HOSTED_CONTROLLER_URL=https://<controller EIP>`,
+`EQUIPO_HOSTED_CONTROLLER_PIN=<CTL_PIN>`, `EQUIPO_HOSTED_CONTROLLER_KEY=<controller public key>`,
+`EQUIPO_HOSTED_KEY_ID=instance` and the secret `EQUIPO_HOSTED_KEY` (the instance private key, never
+echoed). The instance restarts; the settings section shows the new option to owners.
+
+### 7.2 Controller launches on
+
+Set `EQUIPO_HOSTED_ENABLED=1` in `controller/env` in the config bucket; restart through
+`equipo-hosted-certify reload --restart`. Metrics show `enabled 1`.
+
+## 8. Smoke checks (with Paul)
+
+### 8.1 Paul turns the setting on for one project (HUMAN)
+
+A scratch project of Paul's, with a Go repository whose checks pass.
+
+### 8.2 Three steps, watched
+
+Paul starts three small tasks: one whose checks pass, one whose checks fail, one that adds a module
+the primary's cache lacks. Expected, each a FINDING if different: `waiting_hosted` within 10 s; a
+VM enrolled within 2 minutes; results `passed` (certified, `bubblewrap`), `failed`, and `cannot_run`
+`needs_network`; each VM stopped with proof within 2 minutes of its step ending; usage settled. A VM
+still live 10 minutes after its step ended is a **hard stop**. `rec SMOKE_JOBS` lists the attempts.
+
+### 8.3 Alert path
+
+`equipo-hosted-certify alert-test` makes the controller publish one `test` alert; Paul sees the
+email. A FINDING if not.
+
+## 9. Hand-over
+
+### 9.1 What stays on, on purpose
+
+The three stacks, the image and its certificate, the state bucket, the trail, the budget and its
+action. Record every output and ARN in `HOSTED-PROD-BRINGUP.md`, with the spend estimate.
+
+### 9.2 Clean up docs-t1
+
+Delete `$P/keys/operator.key` (a new one is minted when next needed), copy the other private keys
+nowhere, remove `$P` and its worktree (`git worktree remove`), stop every unit of this run, and
+check none is left.
+
+## R. Rollback after a failed step
+
+Rollback undoes only what this run created, newest first, and keeps the account baseline (section 2)
+and the state bucket unless Paul asks for full teardown (T):
+1. Instance: unset `EQUIPO_HOSTED_RUNNERS` (hosted placements fall back to the primary at once).
+2. Controller: `EQUIPO_HOSTED_ENABLED` off; every live job stopped with proof; `GET /v1/vms` empty
+ three times 30 s apart.
+3. Image: `equipo_image delete --arn "$IMAGE_ARN"` (all versions), verified absent by list.
+4. `tofu destroy` of `services`, then `network`, each from a saved destroy plan that
+ `plan-check.py --phase destroy-<stack>` passed. On a connector `DELETE_FAILED`, the pre-approved
+ condition retry; a second failure is a hard stop with the VPC left in place.
+5. Verify by type (direct reads) and by tag; tag index lag is recorded, not chased.
+
+## T. Full teardown
+
+R, then `tofu destroy` of `account` (the trail's bucket emptied first, versions included), then the
+state bucket emptied (all versions and delete markers) and deleted, then the profile block removed
+from `~/.aws/config`. Each verified by a direct read.
+
+## S. Safe stop
+
+S.0 stops this run's units by journalled name (Task 17b S.0). S.1 sets `EQUIPO_HOSTED_ENABLED` off
+if the controller exists and stops every live job with proof. S.2 reconciles every unresolved
+`INTENT` against a direct read and records `NOTCREATED` or `rec`. S.3 reports what exists, what it
+costs per month, and waits for Paul. Nothing is deleted in S without Paul's word, except VMs.
+
+## 10. Hard stops, in one list
+
+Wrong account or region; spend estimate at $10; a VM live outside its step (6.2, 8.2, R.2); a name
+collision or anything outside the ledger or the checked plan (0.5, every `tf`); the egress boundary
+differing from the plan (3.3); a failing network audit (4.3); a pin that changes (4.4); an image
+digest that differs from the release's (5.1); a certification that fails (6.3); a resource later
+steps need that cannot be created or deleted.
+
+## 11. Spend
+
+**Bring-up (this run):** hosts for a day about $1.50; the certification VM (Large, about 30 min)
+$0.16; three smoke VMs (Large, about 15 min each) $0.24; image storage for the first week up to
+$1.50; S3, CloudTrail and SNS under $0.10. **Expected about $3.** The run's estimator (Task 17b's
+11.2, with these rates) stops at $10; the ceiling is $20.
+
+**Running cost, before any use (eu-west-1 list prices, to confirm on the first bill):**
+
+| Item | Monthly |
+| --- | --- |
+| Controller, `t4g.small` | $13.40 |
+| Two proxies, `t4g.micro` | $13.40 |
+| Three public IPv4 addresses | $10.95 |
+| EBS, 3 x 8 GB gp3 | $2.11 |
+| Image storage | $0.50 to $6.50 (Task 17b's estimate; AWS does not publish it) |
+| CloudTrail data events, S3, SNS, Budgets, anomaly detection | under $2 |
+| **Total** | **about $41 to $48, call it $45 to $52 with slack** |
+
+**Use:** each person is capped at $50 a month by the instance (slice 2 Task 17). A 10-minute check
+on a Large VM costs about $0.05. The budget action at $300 (decision 1) is AWS's own backstop.
+
+## 12. Unconfirmed
+
+- Whether `OrganizationAccountAccessRole` exists in `149757027610` (0.4).
+- The applied MicroVM quota (0.6).
+- Whether the pinned AWS provider has a network connector resource (3.1).
+- Whether the anomaly subscription can express "twice the trailing average" (2.2).
+- Ireland prices for MicroVMs and image storage.
+- Lambda's cleanup of the connector's network interfaces (never exercised in dev).
+
+## 13. Placeholders filled at GO
+
+`<HOSTED_RELEASE>` (and so `PIN`), `INSTANCE_HOST`, Paul's alert email address, the budget numbers.
diff --git a/docs/superpowers/plans/2026-11-30-hosted-slice-4-needs.md b/docs/superpowers/plans/2026-11-30-hosted-slice-4-needs.md
new file mode 100644
index 00000000..282ef353
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-30-hosted-slice-4-needs.md
@@ -0,0 +1,77 @@
+# Hosted runners: what slice 4 needs from slice 2 and from the gateway
+
+**Date:** 2026-11-30. A note, not a plan. Slice 4 is hosted Engineering: an agent (Pi) runs in a
+MicroVM through the platform inference gateway, instead of on a person's own runner. That is Paul's
+goal for hosted runners. This note lists what slice 4 takes from slice 2 as built, what slice 2 must
+not do so nothing is rebuilt, and what slice 4 needs from the gateway.
+
+## Taken from slice 2 unchanged
+
+| Slice 2 piece | Plan task | How slice 4 uses it |
+| --- | --- | --- |
+| Bootstrap v2, enrolment bound to one job, 1-hour bearer with renewal, `Link` reading the token each dial | 1, 11, 12, 19 | The same enrolment; Engineering steps are long, so renewal matters more |
+| Authenticated proxy, exact services per launch, path classes | 2, 4 to 7 | Add one service class, `gateway`, with the model protocol's paths; no new proxy |
+| Certified images and the admission record | 3, 10, 21 | A second image profile with the Pi harness and the provider relay; same certificate format, new `Profile` value |
+| Linux worker loop on the containment manager | 14 | Add the Engineering step to the worker beside checks |
+| Dependency bundle from the primary | 13, 20 | Engineering's offline Go tree and module cache, as on personal runners (the 2026-11-13 toolchain spec) |
+| Hosted jobs, limits held and settled, the dispatcher | 16 to 18 | Longer lifetimes (up to 8 h); limits unchanged; pause costs added to the estimate |
+| Checkpoint acknowledgement and quoted resume rendering | 24 | Slice 4 adds the runner's side: packing work in progress at 7 h 15 min and resuming from it |
+| Controller pause barrier and resume epochs (slice 1a) | none in slice 2 | Used for the first time; `/suspend` and `/resume` hooks stop answering 409 (slice 2 decision S2-6) |
+
+## What slice 2 must keep open
+
+- `BootstrapV2.Services` and the feed's `Services` carry a class per host, so `gateway` is a new
+ value, not a new field.
+- The certificate `Snapshot` has `Profile` and `Deps` fields; slice 4 adds values, not fields.
+- The worker loop dispatches by step kind; checks must not be hard-wired as the only kind.
+- `HostedChecksLifetime` is a per-purpose constant, not the only lifetime.
+- The hosted job's `size` column takes Small and Large.
+- No code path in slice 2 assumes a hosted VM never pauses: the pause hooks refuse with 409 by
+ decision, in one place.
+
+## What slice 4 still builds
+
+- **The runner-side relay** (spec §5): the harness never holds the gateway token. It calls a relay
+ on its namespace socket; the relay attaches the current token and dials the gateway through the
+ proxy.
+- **Candidate packs back to the primary,** which alone publishes (spec §8). Workers already return
+ packs today; the hosted worker adds the same path.
+- **Checkpoint and handover at the 8-hour limit** (spec §3), on top of Task 24's acknowledgement.
+- **Pi certification**: the Engineering containment tests in the image (the 5 codex-dependent tests
+ the spike could not run, now with Pi and codex present), and the egress matrix with the relay as
+ the only route to the gateway.
+- **Cost:** pause snapshot charges ($0.0057 per GB written) in the estimate, and the gateway's spend
+ per task beside VM time.
+
+## What slice 4 needs from the gateway
+
+The gateway spec (carlos/platform `design-platform-inference-2`, revision 6) gives each app one
+credential with a per-account balance. Hosted Engineering needs more than that. These are the G1 to
+G5 items already requested in carlos/platform#1279, checked against revision 6:
+
+| Need | Revision 6 | Gap |
+| --- | --- | --- |
+| **G1.** A per-task token, 15 minutes at most, renewable, revoked within 60 s with an acknowledgement | One credential per app (§8, "per-instance credentials" not built) | **Open.** Without it, the app's whole credential would enter a VM, which spec §12 forbids |
+| **G2.** A spend cap per token, usage by person and task | Balance per account, hard stop at zero (§9 ruling 4) | **Open.** Per-token holds would reuse the existing hold-and-settle (§5) |
+| **G3.** An exact stable hostname | `inference.<platform domain>`, a direct A record (§1) | **Met**, if the name is fixed per deployment; the proxy needs it literally |
+| **G4.** Accepts the Pi harness's requests | A strict OpenAI-compatible subset; unlisted fields are a 400 (§2) | **To test** with Pi's real requests |
+| **G5.** A cut stream releases its hold | A client disconnect cancels upstream and settles from the usage that arrives, or at the hold if none does (§5, "An abandoned stream still bills") | **Met, differently:** a cut stream settles rather than releases. Slice 4's per-task cap must count a cut stream at its hold |
+
+**Two ways to close G1 and G2,** for the gateway's ruling pass:
+
+1. **Delegated tokens in the gateway.** The app (the Equipo instance) asks the gateway to mint a
+ short-lived sub-token with its own cap, bound to one task; the gateway revokes it on request and
+ acknowledges. This is what G1 asks for, and it keeps every token check in one place.
+2. **Equipo exchanges tokens itself.** The VM's relay sends model requests to the Equipo instance,
+ which checks its own 15-minute task token and forwards to the gateway with the app credential.
+ No gateway change, but every model token passes through the instance, which then carries
+ streaming load and becomes a relay of the kind spec §12 says Equipo does not build.
+
+*Recommendation:* option 1. It matches spec §12, and per-task caps belong where tokens are counted.
+
+## Order
+
+Slice 2 can be built and shipped now. Slice 4's runner and instance work can start once the
+gateway's ruling pass settles G1 and G2's shape, and its live work needs the gateway deployed with
+them. Slice 3 (visibility) folds into slice 4, as Paul said on 2026-11-30; slice 2 carries only the
+cost display the limits need (Task 22).