oficina / equipo Public

plan: hosted runners slice 2, hosted checks (rev 1 draft)

Slice 2 plan with the slice 1b foundation folded in (proxy, per-VM
credentials, root init, image, certification, OpenTofu), the Linux
checks worker, limits, certified results and the Fable H3/M4/M8
residue. Draft for Astra review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev ea4b9bc86699d395a52d1780a7edcd3d691d1936 parent 27d50e7
1 file changed, +542 −0
  • docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md +542 −0

CI cancelled — superseded by a newer push — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-slice-2-plan: Type  Size Avail | ext4   96G   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.3s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.1s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.9s
ci-box: clone deepened in 6.9s
ci-box: file times set from content: 3751 files, 244 directories
ci-box: ready in 20.2s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.231s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.5s
+ go list -export -test -tags testbuild -f  ./...
  0.8s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m12.937s 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 1m11.172s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.17s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 33.70, cpu waiting 25.42%, memory waiting 0.00%, io waiting 0.92%
--- 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.702s 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.892s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.89s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 33.67, cpu waiting 25.30%, memory waiting 0.00%, io waiting 0.95%
--- 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.35s 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 1m11.112s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m1.93s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.94s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.24s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 33.70, cpu waiting 25.42%, memory waiting 0.00%, io waiting 0.92%
--- 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.254s 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.29s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m59.53s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 15.51s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.28s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 8.96s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 18.04, cpu waiting 8.05%, memory waiting 0.00%, io waiting 0.23%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m27.379s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m25.377s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.13s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.24s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.92s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.52s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.56s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 31.14, cpu waiting 22.86%, memory waiting 0.00%, io waiting 0.70%
--- 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 3m18.201s 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 3m15.715s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m33.12s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.22s amadan.net/oficina/equipo/internal/headless TestMacMixedVersions
receipt: slow test 20.43s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.27s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.34s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
machine: 32 CPUs, load 11.81, cpu waiting 3.87%, memory waiting 0.00%, io waiting 0.10%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 530ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m27.032s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.73s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 10.96s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.46s amadan.net/oficina/equipo/internal/thintest TestNudgeResumesHeldJob
receipt: slow test 5.43s amadan.net/oficina/equipo/internal/thintest TestAbilityHoldResumes
machine: 32 CPUs, load 1.58, cpu waiting 0.00%, memory waiting 0.00%, io waiting 3.02%
--- 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 450ms 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 1.58, cpu waiting 0.00%, memory waiting 0.00%, io waiting 3.02%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed

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

receipt: test step 48.104s 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.902s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.87s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 31.26, cpu waiting 23.44%, memory waiting 0.00%, io waiting 1.38%
--- 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 49.047s 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 47.111s amadan.net/oficina/equipo/internal/runner
receipt: slow test 37.06s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 33.45s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 31.26, cpu waiting 23.98%, memory waiting 0.00%, io waiting 1.33%
--- 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 41.248s 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.296s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.7s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.78s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 27.32, cpu waiting 18.96%, memory waiting 0.00%, io waiting 1.58%
--- 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.0%, load 17.64
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: 3463 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.704s
FAIL	amadan.net/oficina/equipo/internal/equipotest	71.958s


receipt: test step 1m13.688s 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.704s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 33.31s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 33.21s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 30.78s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 27.84s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 27.64s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectOwnershipIsLocal
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: 3463 text files, 3988 matches, 4 failures
--- FAIL: TestDirectDeadReferencesRepository (2.67s)
FAIL
rastrillo-budget/v1 ran 2.672s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.832s
FAIL
machine: 32 CPUs, load 27.89, cpu waiting 17.51%, memory waiting 0.00%, io waiting 0.52%
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.0%, load 17.64
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 510ms 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 17.64, cpu waiting 12.30%, memory waiting 0.00%, io waiting 1.87%
--- 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.0%, load 17.64
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

amadan: job cancelled — a newer push superseded it
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 30.0%, load 17.64
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 582ms 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 17.64, cpu waiting 12.30%, memory waiting 0.00%, io waiting 1.87%
--- 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 30.0%, load 17.64
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 666ms 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 17.64, cpu waiting 12.30%, memory waiting 0.00%, io waiting 1.87%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 30.0%, load 17.64
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/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/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/release: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/render: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: 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 2m4.249s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 33.778s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 41.388s, 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 1m26.959s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m18.038s 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 2m4.249s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m26.959s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 55.831s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.537s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 1m5.71s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 56.79s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 56.73s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 56.62s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 56.61s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
machine: 32 CPUs, load 14.71, cpu waiting 6.38%, memory waiting 0.00%, io waiting 0.18%
--- 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.902s 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.209s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.3s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.59s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.55s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.61s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.74s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 32.37, cpu waiting 24.18%, memory waiting 0.00%, io waiting 0.78%
--- 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.957s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.088s amadan.net/oficina/equipo/internal/headless
receipt: slow test 24.47s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 19.76s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.84s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.62s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.41s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 32.37, cpu waiting 23.33%, memory waiting 0.00%, io waiting 0.73%
--- 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.791s 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 1m47.006s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.13s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 26.38, cpu waiting 16.42%, memory waiting 0.00%, io waiting 0.48%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
=== RUN   TestBrowserThinkingAndCards
time=2026-11-30T17:33:45.195Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-30T17:33:45.195Z level=INFO msg="startup phase done" phase=state_lock took=69µs
time=2026-11-30T17:33:45.195Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-30T17:33:45.195Z level=INFO msg="startup phase done" phase=claim_roots took=87µs
time=2026-11-30T17:33:45.195Z level=INFO msg="startup phase" phase=sweep
time=2026-11-30T17:33:45.232Z level=INFO msg="startup phase done" phase=sweep took=37.198ms
time=2026-11-30T17:33:45.232Z level=INFO msg="startup phase" phase=credentials
time=2026-11-30T17:33:45.232Z level=INFO msg="startup phase done" phase=credentials took=98µs
time=2026-11-30T17:33:45.232Z level=INFO msg="startup phase" phase=open_state
time=2026-11-30T17:33:45.285Z level=INFO msg="startup phase done" phase=open_state took=52.906ms
time=2026-11-30T17:33:45.286Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-30T17:33:45.288Z level=INFO msg=connecting host=127.0.0.1:46081 protocol=38
time=2026-11-30T17:33:45.289Z level=INFO msg=connected host=127.0.0.1:46081 took=1.129ms
time=2026-11-30T17:33:45.289Z level=INFO msg="capabilities gathering"
time=2026-11-30T17:33:45.290Z level=INFO msg="capabilities gathered" took=415µs tags=linux,claude,go
time=2026-11-30T17:33:45.291Z level=INFO msg="hello sent" protocol=38
time=2026-11-30T17:33:45.297Z level=INFO msg=welcome protocol=38 role=primary generation=1
time=2026-11-30T17:33:46.302Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_cards_test.go:66: waiting for (()=>{const l=document.querySelector('[equipo-thinking] [equipo-activity]');return !!l && l.textContent==='Adding oficina/sample…'})(): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserThinkingAndCards (7.29s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-30T17:34:17.357Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-30T17:34:17.357Z level=INFO msg="startup phase done" phase=state_lock took=215µs
time=2026-11-30T17:34:17.357Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-30T17:34:17.357Z level=INFO msg="startup phase done" phase=claim_roots took=191µs
time=2026-11-30T17:34:17.357Z level=INFO msg="startup phase" phase=sweep
time=2026-11-30T17:34:17.399Z level=INFO msg="startup phase done" phase=sweep took=41.475ms
time=2026-11-30T17:34:17.399Z level=INFO msg="startup phase" phase=credentials
time=2026-11-30T17:34:17.399Z level=INFO msg="startup phase done" phase=credentials took=190µs
time=2026-11-30T17:34:17.399Z level=INFO msg="startup phase" phase=open_state
time=2026-11-30T17:34:17.453Z level=INFO msg="startup phase done" phase=open_state took=53.596ms
time=2026-11-30T17:34:17.454Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-30T17:34:17.455Z level=INFO msg=connecting host=127.0.0.1:43441 protocol=38
time=2026-11-30T17:34:17.457Z level=INFO msg=connected host=127.0.0.1:43441 took=1.645ms
time=2026-11-30T17:34:17.457Z level=INFO msg="capabilities gathering"
time=2026-11-30T17:34:17.458Z level=INFO msg="capabilities gathered" took=1.39ms tags=linux,claude,go
time=2026-11-30T17:34:17.459Z level=INFO msg="hello sent" protocol=38
time=2026-11-30T17:34:17.471Z level=INFO msg=welcome protocol=38 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.94s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m22.919s
FAIL	amadan.net/oficina/equipo/internal/headless	83.095s


receipt: test step 1m24.486s 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 1m22.919s amadan.net/oficina/equipo/internal/headless
receipt: slow test 10.35s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.53s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.33s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.41s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
receipt: slow test 7.29s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
rastrillo: budget test: go test failed
exit status 1
+ go 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$' -v -run '^TestBrowserCopyContinue$|^TestBrowserThinkingAndCards$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest ea4b9bc86699d395a52d1780a7edcd3d691d1936 1.94s 32.37
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserThinkingAndCards browser-headless-rest ea4b9bc86699d395a52d1780a7edcd3d691d1936 7.29s 32.37
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 27.89, cpu waiting 18.51%, memory waiting 0.00%, io waiting 0.55%
--- 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 396ms 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 409ms 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 224ms 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 224ms 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 389ms 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 3.53, cpu waiting 1.79%, memory waiting 0.00%, io waiting 2.88%
--- 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.77s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.34s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.82s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.02s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.42s
+ 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   (57s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.12s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.76s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.50s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.12s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (20s)
ok ./internal/headless TestMixedVersions 17.90s
+ 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 32.77, cpu waiting 25.41%, memory waiting 0.00%, io waiting 1.17%
--- 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.719s 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.291s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 179ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 96ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 6ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.472s 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.137s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 230ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 9.86, cpu waiting 5.11%, memory waiting 0.00%, io waiting 2.52%
--- 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.0%, load 17.64
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: 3463 text files, 3988 matches, 4 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 23.52, cpu waiting 15.15%, memory waiting 0.00%, io waiting 1.75%
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.0%, load 17.64
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 23.52, cpu waiting 15.15%, memory waiting 0.00%, io waiting 1.75%
--- 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.0%, load 17.64
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 31.99, cpu waiting 25.77%, memory waiting 0.00%, io waiting 1.09%
--- 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.0%, load 17.64
shard 28: make gitleaks
5:34PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
5:34PM INF 1327 commits scanned.
5:34PM INF scanned ~74955430 bytes (74.96 MB) in 16.1s
5:34PM INF no leaks found
machine: 32 CPUs, load 29.46, cpu waiting 22.68%, memory waiting 0.00%, io waiting 1.43%

Intent

Human

Plan slice 2 (hosted checks) of Equipo's hosted runners on AWS Lambda MicroVMs (Paul said yes 2026-11-30), with a production account plan for 149757027610 and a note on what slice 4 (hosted Engineering) needs. Opus plans; Astra reviews, three rounds at most. No building, no AWS.

diff --git a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
new file mode 100644
index 00000000..92ee38df
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md
@@ -0,0 +1,542 @@
+# Hosted runners, slice 2: hosted checks (plan, 2026-11-30, revision 1)
+
+**Status:** draft for Astra review, then Paul. Nothing built, nothing run against AWS.
+
+> **For agentic workers:** REQUIRED SUB-SKILL: use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task by task. Steps use checkbox (`- [ ]`) syntax. Steps marked **HUMAN** are not agent work: stop and ask Paul.
+
+**Goal:** A project owner turns on "Run checks in a hosted VM". From then on that project's checks steps run in a Lambda MicroVM in our AWS account, bound to that one step, and the result counts as a sandboxed, certified check, as if the person's own Linux runner had run it. Each person stays inside 2 running VMs, 8 VM-hours a day and $50 a month.
+
+**Architecture:** The instance places a checks step on a hosted job, asks the controller (slice 1a) to launch a certified image, and hands the VM only a bootstrap code. Inside the VM, `equipo-vm-init` starts `equipo-runner` as an unprivileged worker. The runner gets a client certificate for the authenticated egress proxy, enrols with the instance as a worker bound to that one job, receives the candidate pack and a dependency bundle from the person's primary, and runs the checks offline in bubblewrap. The instance accepts the result as sandboxed only because the controller's launch record says the VM runs a certified image, never because the runner says so. The VM's one reachable destination is the Equipo instance, through the proxy.
+
+**Tech stack:** Go (floor 1.26.0, gate `GOTOOLCHAIN=go1.26.11`, `CGO_ENABLED=0`), modernc SQLite, `crypto/ed25519`, `crypto/x509`, `github.com/coder/websocket` (already the runner's), aws-sdk-go-v2 only under `internal/isolatedjob/awsjob` and the composition commands, OpenTofu 1.12 for `infra/hosted/`.
+
+**Spec:** `docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md` (approved 2026-11-19), with §6, §7, §8, §10, §14 and §17 driving this plan. The slice 1a plan's "Slice 1b outline" and its open findings are folded in here (Phase A to D), because slice 2 cannot run without them.
+
+**Baseline:** `origin/main` at `27d50e7f`, which contains slice 1a (`dd66ff0c`). Tasks run in order unless a task says otherwise.
+
+## Why this plan includes slice 1b
+
+Slice 1a built the controller, the adapter and the reaper. It has no egress stack, so a launched VM has no route anywhere and cannot enrol (slice 1a plan, global constraints). The 1b work (proxy, per-VM credentials, root init, image pipeline, certification, OpenTofu) was outlined but never planned. Hosted checks need all of it, so Phases A to D build the part of 1b that checks need, cut to the smallest shape the spec allows (decisions S2-1 to S2-4 below). Nothing in 1b's outline is dropped without a decision.
+
+## Decisions this plan takes (Paul confirms or overrules; see "Decisions owed to Paul")
+
+- **S2-1. Dependencies come from the person's primary, not a mirror service.** The primary already holds the module cache its own checks use. It sends a dependency bundle with the candidate pack; the runner (outside the sandbox) checks every file against the module hashes and mounts the result read-only. A missing module ends the step `cannot_run` with `needs_network`, exactly as on a personal runner today. The VM's only destination is the Equipo instance. This meets every property in spec §6 (trusted staging outside the sandbox, immutable, hash-verified, read-only, an explicit missing result, no fetch the sandbox can trigger), but it is not the separate importer service §6 describes. The importer is deferred until a hosted primary exists. Go modules only, as on personal runners today.
+- **S2-2. No resolver in the VM network.** The runner dials the proxies by IP literal from the bootstrap; the proxy resolves the instance's name. The VM has no DNS at all. This removes the 1b resolver component.
+- **S2-3. No bounded continuation when the controller is unreachable** (1b open question Q3). The proxy refuses everything once its signed feed is older than 5 minutes on its monotonic clock, and closes open tunnels. A checks step then fails `hosted_unavailable` and retries once on a new VM.
+- **S2-4. Controller and proxies live in a services VPC with VPC DNS on, peered to a VM VPC with VPC DNS off.** VMs reach only the two proxies' addresses across the peering. The instance and the proxies reach the controller over public HTTPS with signed requests and a pinned certificate.
+- **S2-5. Checks VMs are Large (4 GB, 2 vCPU) with a 90-minute lifetime.** Go builds need the memory; a 10-minute run costs about $0.05.
+- **S2-6. No pause or resume in slice 2.** A checks VM is launched, used once and stopped. The slice 1a pause barrier stays unused until slice 4.
+- **S2-7. The proxy speaks HTTP/1.1 only** (ALPN `http/1.1`), including the WebSocket upgrade the runner's link uses. HTTP/2 is refused, which removes `:authority` disagreement by construction.
+- **S2-8. The controller is the client CA for proxy certificates.** It mints a 15-minute certificate per VM against the launch record; both proxies trust that CA and the signed feed.
+- **S2-9. Limits are held and settled.** Admission holds a job's full lifetime against the person's daily VM-hours and its full estimated cost against the monthly dollars, then settles to actual when the job ends. Limits can never be exceeded by jobs that run long.
+
+## Global constraints
+
+- AWS SDK types only under `internal/isolatedjob/awsjob/` and the composition commands. Task 9 adds `cmd/equipo-vm-init`, `cmd/equipo-hosted-image`, `cmd/equipo-hosted-proxy` and `cmd/equipo-hosted-certify` to `TestProviderTypesStayInAdapter`'s allowed list only where they import AWS packages (the proxy and the certifier must not).
+- Spec §17's five authority rules apply to every task. In particular: a hello is diagnostic only (rule 2, Fable M8); untrusted text enters prompts only through `wire.QuotedData` under a source label (rule 3, Fable M4); a sandbox that runs agent-chosen or candidate code has no network (rule 5, Fable H3).
+- Egress names are exact fully qualified hostnames on port 443, copied into each launch record. No wildcard, suffix match, IP literal or `amadan.net` in a VM's set. An unset name blocks launch.
+- Every new instance route checks the current roster inside its transaction; lookup errors deny. An unknown count stays unknown and denies admission.
+- Migrations additive, one per task that needs one, the next free number at the time (latest on main is `0124_step_renders.sql`). Protocol: one new number, `wire.ProtocolHostedChecks`, the next free at build time (main's highest is 38); confirm with the coordinator before code, since other branches allocate numbers.
+- Package budgets (`.rastrillo/budgets.txt`): `internal/runner/thin`, `internal/runner`, `internal/wire` and `internal/runner/provider` sit exactly at their recorded sizes. New code goes in new packages; any line added to those four raises its record in the same commit, with the reason.
+- Copy: new runtime strings only in `internal/equipo/copy.go`, marked pending with `python3 scripts/copy-status.py pending`, and listed in `docs/superpowers/plans/2026-11-30-hosted-slice-2-copy.json` for review. Never accepted by an agent. Plain words, no em dashes, no exclamation marks.
+- Tests first. Each guard gets a mutation check: break it, watch the named test compile, run at least one test and fail on its assertion (a build error, an infrastructure error or a run of zero tests does not count), restore. Record commands and results in `docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md`.
+- Local runs are targeted (`go test ./internal/<pkg> -run 'TestX' -count=1`); `make ci` once before the whole-branch review. No sudo; scratch under `$TMPDIR` via `mktemp -d`; test servers on `127.0.0.1`; default Go caches. Live AWS tests use build tag `hostedlive` and run only inside Task 30's approved plan.
+- Flags: the instance does nothing hosted unless `EQUIPO_HOSTED_RUNNERS=1`; the controller launches nothing unless `EQUIPO_HOSTED_ENABLED=1`; a project runs nothing hosted unless its owner turned the setting on.
+- Commit subjects under 80 characters, trailer `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>`. Never merge, push the default branch or deploy. No AWS call outside Tasks 30 and 31's approved plans.
+
+## Review focus
+
+1. **A forged or replayed identity.** A hello claiming `bubblewrap` and a certified image from an uncertified VM; another VM's bootstrap code, proxy certificate or enrolment replayed. Expected: refused, and no result counts as sandboxed. `TestHelloCannotCertify` (Task 21), `TestEnrolRefusesReplayAndWrongVM` (Task 19), `TestRedeemSingleUse` (Task 4).
+2. **The proxy as an exfiltration path.** An allowed SNI with another Host, a CONNECT to an IP literal, a redirect to another host, an encoded authority, a WebSocket upgrade to another host, HTTP/2. Expected: refused and logged by name. `TestFrontingMatrix` (Task 7).
+3. **Limits under concurrency and long jobs.** Two steps for one person dispatched at once with one slot left; a job that runs its full lifetime; a count query that fails. Expected: never 3 running, never over 8 VM-hours or $50, a failed count waits. `TestLimitsHoldAndSettle`, `TestLimitsRace`, `TestLimitCountErrorDenies` (Task 17).
+4. **A VM that never enrols or dies mid-step.** Expected: stopped with proof, retried once, then the step fails with a reason the person can read; the person's other work is unaffected. `TestEnrolTimeoutRetriesOnce`, `TestVMGoneMidStep` (Task 18).
+5. **A candidate that edits its own gates or dependency hashes.** Expected: base gates from BaseSHA still certify; a module whose bytes do not match the hash lines is refused, never staged. `TestHostedBaseGatesFromBase` (Task 14), `TestBundleRefusesHashMismatch` (Task 13).
+
+---
+
+## Phase A: controller additions (spec §5, §6, §7)
+
+### Task 1: Wire contracts for hosted checks
+
+**Files:** Modify `internal/hostedwire/api.go`, `internal/hostedwire/api_test.go`. Create `internal/wire/hosted.go`, `internal/wire/hosted_test.go`. Modify `internal/wire/runners.go` (protocol constant), `.rastrillo/budgets.txt`.
+
+**Interfaces:**
+
+```go
+// hostedwire
+const RoleProxy Role = "proxy"
+type BootstrapV2 struct {
+ Version int `json:"v"` // 2
+ LaunchID string `json:"launch_id"`
+ AttemptID string `json:"attempt_id"`
+ InstanceCode string `json:"instance_code"` // 32 bytes, base64url
+ ProxyCode string `json:"proxy_code"` // 32 bytes, base64url
+ Proxies []netip.AddrPort `json:"proxies"` // egress listeners, 1 or 2
+ ProxyBoot []netip.AddrPort `json:"proxy_boot"` // bootstrap listeners, same hosts
+ ProxyCAPin string `json:"proxy_ca_pin"` // sha256 of the proxy TLS CA's SPKI, hex
+ InstanceHost string `json:"instance_host"` // exact FQDN
+}
+func (b BootstrapV2) Encode() ([]byte, error) // ASCII JSON, refuses over 4096 bytes (live fact, Task 17)
+type Service struct{ Host string; Port uint16; Class string } // Class "instance" in slice 2
+type LaunchRequest struct{ /* 1a fields */ Person string; Services []Service; Purpose string } // Purpose "checks" | "certification"
+type AdmissionView struct{ AttemptID, LaunchID, State string; VMRef isolatedjob.Ref; Epoch int64; Image isolatedjob.ImageDigest; CertDigest string; CertValid bool }
+type ProxyFeed struct{ Version int; Serial int64; IssuedAtNS int64; TTLMS int64; Launches []FeedLaunch; Revoked []string }
+type FeedLaunch struct{ LaunchID, AttemptID string; VMRef isolatedjob.Ref; Epoch int64; Services []Service; ProxyCodeHash string }
+type RedeemRequest struct{ LaunchID, VMRef, ProxyCode string; CSR []byte } // proxy forwards
+type RedeemResponse struct{ Cert []byte; NotAfterNS int64 }
+type RenewCertRequest struct{ LaunchID string; CertSerial string; CSR []byte; Proof []byte }
+// wire
+const PlacementHosted = "waiting_hosted"; const PlacementHostedLimit = "hosted_limit"
+const TransferKindDeps = "deps"
+type HostedEnrolRequest struct{ Code, LaunchID, VMRef string; MachinePublicKey []byte }
+type HostedRenewRequest struct{ RunnerID string; Epoch int64; Challenge, Signature []byte }
+```
+
+- [ ] **Red:** `TestBootstrapV2Limit` (a maximal valid bootstrap encodes under 4096 bytes; 4097 refused; non-ASCII refused). `TestLaunchRequestV2Strict` (unknown field, a wildcard or IP-literal host, port other than 443, empty `Services` for `checks`, unknown `Purpose`: each refused by `DecodeStrict` plus `Validate`). `TestHostedFramesOldProtocol` (`wire.Encode` at protocol 38 drops `TransferKindDeps` headers).
+- [ ] **Green:** `go test ./internal/hostedwire ./internal/wire -run 'TestBootstrapV2|TestLaunchRequestV2|TestHostedFrames' -count=1`.
+- [ ] **Mutations:** accept a `*.` host (`TestLaunchRequestV2Strict`); drop the size check (`TestBootstrapV2Limit`).
+- [ ] **Commit:** `hostedwire: bootstrap v2, services, admission and proxy feed types`.
+
+### Task 2: Egress manifest and the per-launch snapshot
+
+**Files:** Create `internal/hostedctl/egress.go`, `egress_test.go`, `schema/0002_egress.sql`. Modify `launch.go`, `cmd/equipo-hosted-controller/config.go`, `config_test.go`.
+
+**Interfaces:** `Config.Services map[string]hostedwire.Service` (class to service, from the deployment manifest); `Config.Proxies, ProxyBoot []netip.AddrPort`; `Config.ProxyCAPin string`. `func (c Config) servicesFor(purpose string) ([]hostedwire.Service, error)`; `ErrServiceUnset`. Launch intents gain an immutable `services_json` column under the 1a immutability trigger.
+
+- [ ] **Red:** `TestManifestRefusesWildcardsAndLiterals` (`*.x`, `.x`, `1.2.3.4`, `[::1]`, `amadan.net`, a name with a trailing dot, upper case: each refused at config load). `TestUnsetServiceBlocksLaunch`. `TestLaunchSnapshotsServices` (the intent's services equal the config at launch; changing config afterwards does not change a saved intent; `Replay` uses the saved snapshot). `TestSnapshotImmutable`.
+- [ ] **Green:** `go test ./internal/hostedctl ./cmd/equipo-hosted-controller -run 'TestManifest|TestUnsetService|TestLaunchSnapshots|TestSnapshotImmutable' -count=1`.
+- [ ] **Mutations:** suffix match in validation; replay from current config instead of the snapshot.
+- [ ] **Commit:** `hostedctl: exact-host egress manifest, snapshotted per launch`.
+
+### Task 3: Image certificates replace the image allowlist
+
+**Files:** Create `internal/hostedcert/{cert.go,cert_test.go}`, `internal/hostedctl/{certs.go,certs_test.go,admission.go,admission_test.go}`. Modify `controller.go`, `launch.go`, `http.go`, `cmd/equipo-hosted-controller/config.go`.
+
+**Interfaces:**
+
+```go
+// hostedcert: the canonical certificate (1b finding: verify the snapshot, not only a digest)
+type Snapshot struct {
+ Purpose string // "equipo-hosted-image-cert"
+ Version int // 1
+ Image isolatedjob.ImageDigest
+ Runner string // sha256 of the runner binary in the image
+ SandboxPolicy string // sha256 of the check policy digest set
+ ProxyPolicy int // proxy policy version the matrix ran against
+ Deps string // "primary-bundle-v1" (S2-1)
+ Deployment []string // exact instance hosts this cert covers
+ Profile string // "vm-boundary"
+ IssuedAt time.Time
+}
+type Certificate struct{ Snapshot Snapshot; KeyID string; Sig []byte }
+func Canonical(s Snapshot) []byte
+func Sign(s Snapshot, id string, k ed25519.PrivateKey) Certificate
+func Verify(c Certificate, keys map[string]ed25519.PublicKey, now time.Time) (Snapshot, error)
+func Digest(c Certificate) string
+// hostedctl
+// Config.Images (map[digest]bool) is replaced by Config.Certificates []hostedcert.Certificate and Config.CertKeys.
+var ErrNotCertified error
+func (*Controller) Admission(ctx context.Context, by hostedwire.KeyID, attemptID string) (hostedwire.AdmissionView, error) // creating instance only
+```
+
+`Launch` (purpose `checks`) requires a certificate whose snapshot names the image, covers every `Services` host of class `instance`, and verifies; it records the certificate digest on the intent. Purpose `certification` requires the image only in `Config.CertificationImages` (the operator's candidate list) and launches with the controller's own report host as its one service. `Admission` re-verifies the stored certificate against the current key set each call; a key removed from config makes `CertValid` false.
+
+- [ ] **Red:** `TestCertificateCanonical` (field order, and every field covered: changing any one breaks `Verify`). `TestLaunchNeedsCertificate` (table: no certificate, wrong image, host not covered, unknown key, bad signature, purpose mismatch). `TestAdmissionRecordsCertDigest`. `TestAdmissionKeyRevoked`. `TestAdmissionCreatorOnly`.
+- [ ] **Green:** `go test ./internal/hostedcert ./internal/hostedctl -run 'TestCertificate|TestLaunchNeedsCertificate|TestAdmission' -count=1`; the 1a contract and simulation still pass (`-run 'TestLifecycleSimulation|TestLaunch'`).
+- [ ] **Mutations:** leave `Deployment` out of `Canonical`; skip re-verification in `Admission`.
+- [ ] **Commit:** `hostedctl: certified images and the admission record`.
+
+### Task 4: The controller as client CA, and the signed proxy feed
+
+**Files:** Create `internal/hostedctl/{proxyca.go,proxyca_test.go,feed.go,feed_test.go}`, `schema/0003_proxy.sql`. Modify `http.go`, `stop.go`, `cmd/equipo-hosted-controller/config.go`.
+
+**Interfaces:** routes `GET /v1/proxy/feed` (role proxy) returns `ProxyFeed`; `POST /v1/proxy/redeem` (role proxy) takes `RedeemRequest`; `POST /v1/proxy/renew` (role proxy) takes `RenewCertRequest`. `func (*Controller) Redeem(ctx, by hostedwire.KeyID, q hostedwire.RedeemRequest) (hostedwire.RedeemResponse, error)`; `CertLifetime = 15 * time.Minute`; `FeedTTL = 60 * time.Second`. The client certificate carries one URI SAN `equipo-launch://<launch_id>/<attempt_id>/<vm_ref>/<epoch>` and an ECDSA P-256 key from the VM's CSR. Proxy codes are stored as SHA-256 only, single use, valid 2 minutes from the moment the VM is first seen `running`, bound to the launch and the VM reference. Stop or epoch change revokes every serial for that launch, and the feed lists it.
+
+- [ ] **Red:** `TestRedeemSingleUse`, `TestRedeemBindsVMRef` (the right code from another VM is refused), `TestRedeemExpires` (2 min 1 s), `TestRenewNeedsCurrentEpoch`, `TestStopRevokesSerials`, `TestFeedSignedAndListsOnlyLive`, `TestFeedRoleProxyOnly`.
+- [ ] **Green:** `go test ./internal/hostedctl -run 'TestRedeem|TestRenew|TestStopRevokes|TestFeed' -count=1`.
+- [ ] **Mutations:** skip the VM reference check; keep revoked serials out of the feed.
+- [ ] **Commit:** `hostedctl: proxy client certificates and the signed launch feed`.
+
+## Phase B: the authenticated egress proxy (spec §6, Fable H3)
+
+### Task 5: Proxy policy core
+
+**Files:** Create `internal/hostedproxy/{policy.go,feed.go,policy_test.go,feed_test.go}`.
+
+**Interfaces:**
+
+```go
+type Identity struct{ LaunchID, AttemptID string; VMRef isolatedjob.Ref; Epoch int64; Serial string }
+func IdentityFromCert(c *x509.Certificate) (Identity, error)
+type Request struct{ Connect string; SNI string; Host string; Method, Path string; ALPN []string; ECH bool }
+type Decision struct{ Allow bool; Reason string; Service hostedwire.Service }
+type Feed struct{ /* verified ProxyFeed + monotonic receipt time */ }
+func (f *Feed) Decide(id Identity, r Request, mono time.Duration) Decision
+func VerifyFeed(raw []byte, sig []byte, pub ed25519.PublicKey) (hostedwire.ProxyFeed, error)
+```
+
+Reasons are fixed strings: `stale_feed`, `unknown_launch`, `revoked`, `wrong_epoch`, `not_in_manifest`, `ip_literal`, `no_sni`, `ech`, `sni_mismatch`, `host_mismatch`, `bad_port`, `bad_method`, `bad_path`, `alpn`. Instance path class: `GET`/`POST` on `/api/runner/v2/` and its subpaths, `POST /api/hosted/enrol`, `POST /api/hosted/renew`; nothing else.
+
+- [ ] **Red:** `TestDecideTable` (one row per reason, plus the allowed row). `TestStaleFeedDeniesAll` (at TTL+1 ms on the monotonic clock; a wall clock jump forward or back changes nothing). `TestFeedSignature`.
+- [ ] **Green:** `go test ./internal/hostedproxy -run 'TestDecide|TestStaleFeed|TestFeedSignature' -count=1`.
+- [ ] **Mutations:** compare hosts case-insensitively by suffix; measure freshness on the wall clock.
+- [ ] **Commit:** `hostedproxy: decision core and signed feed`.
+
+### Task 6: Proxy data path and bootstrap listener
+
+**Files:** Create `internal/hostedproxy/{egress.go,boot.go,origin.go,log.go,egress_test.go}`, `cmd/equipo-hosted-proxy/{main.go,config.go,config_test.go}`.
+
+**Interfaces:** `func Serve(ctx context.Context, cfg Config) error`; `Config{Egress, Boot netip.AddrPort; ControllerURL string; ControllerKey ed25519.PublicKey; ControllerTLSPin string; KeyID hostedwire.KeyID; Key ed25519.PrivateKey; ClientCA *x509.CertPool; InterceptCA tls.Certificate; Log io.Writer}`.
+
+Egress listener: TLS with a required client certificate from the controller CA; each tunnel is an HTTP/1.1 `CONNECT host:443`; the proxy answers 200, terminates the runner's inner TLS with a leaf for exactly that host minted from `InterceptCA` (ALPN `http/1.1` only), reads each request, applies `Decide` with CONNECT target, SNI, `Host` and path, then forwards to the origin over its own TLS to that exact host with system roots and SNI set. WebSocket upgrades are allowed only after the same check and are then piped. A 3xx whose `Location` names another authority becomes 502 `redirect_refused`. A feed change that revokes the identity closes its tunnels within one feed poll. Bootstrap listener: server TLS only, two routes (`POST /redeem`, `POST /renew`) forwarded to the controller with the proxy's own signature. Decision log: one JSON line per decision with VM, launch, attempt, destination, method, path class, decision, reason, bytes in and out; never headers, bodies or tokens. `config.go` refuses wildcard listen addresses, as the controller's does.
+
+- [ ] **Red:** `TestConfigRefusesWildcardListen`. `TestLogHasNoSecrets` (a request carrying `Authorization` and a body: neither appears in the log). `TestRevocationClosesTunnel`. `TestRedirectRefused`.
+- [ ] **Green:** `go test ./internal/hostedproxy ./cmd/equipo-hosted-proxy -run 'TestConfig|TestLogHasNoSecrets|TestRevocation|TestRedirect' -count=1`; `make build vet`.
+- [ ] **Mutations:** forward without the per-request `Host` check (Task 7's fronting rows fail); log the `Authorization` header.
+- [ ] **Commit:** `hostedproxy: authenticated CONNECT proxy with origin TLS`.
+
+### Task 7: Proxy end to end over real TLS
+
+**Files:** Create `internal/hostedproxy/e2e_test.go`, `internal/hostedproxy/proxytest/{harness.go}`.
+
+**Interfaces:** `proxytest.Harness{Proxy, Origin, Other *httptest.Server; Controller *fakeController; Client func(id Identity) *http.Client}`, all on `127.0.0.1`. Origins use `httptest.NewTLSServer` with a test root the proxy trusts through a `Config.OriginRoots` override available only in tests.
+
+- [ ] **Red:** `TestFrontingMatrix`: allowed SNI with another `Host`; CONNECT to the allowed host then SNI of another; CONNECT to `127.0.0.1:443`, `[::1]:443`, the host on port 8443; no SNI; ALPN `h2` only; percent-encoded and userinfo authorities (`x@host`, `host%2Eexample`); absolute-form request URI naming another host; a WebSocket upgrade with another `Host`; a nested CONNECT inside the tunnel. Each refused with its reason, the origin sees nothing. Positive control: the allowed runner path succeeds, and a WebSocket echo works. `TestNoCertificate`, `TestCertFromOtherCA`, `TestReplayedCertAfterRevoke`, `TestWrongEpochCert`. `TestControllerDownThenStale` (the controller stops; requests pass until the feed is 5 min old on the monotonic clock, then all fail and open tunnels close).
+- [ ] **Green:** `go test ./internal/hostedproxy -run 'TestFronting|TestNoCertificate|TestCertFromOtherCA|TestReplayedCert|TestWrongEpoch|TestControllerDown' -count=1` within the 10 s package budget.
+- [ ] **Mutations:** accept `h2` in ALPN; skip the revoked-serial check. Each fails a named row.
+- [ ] **Commit:** `hostedproxy: fronting, revocation and staleness tests over TLS`.
+
+## Phase C: the VM side (spec §3, §4, §7)
+
+### Task 8: Root init and the lifecycle hooks
+
+**Files:** Create `internal/vminit/{init.go,hooks.go,mounts_linux.go,reap_linux.go,init_test.go}`, `cmd/equipo-vm-init/main.go`.
+
+**Interfaces:** `func Main(ctx context.Context, cfg Config) error`; `Config{HookAddr netip.AddrPort; RunnerUser string; RunnerBinary string; StateDir string; Mounts MountPlan}`; hook handlers for `POST /aws/lambda-microvms/runtime/v1/run`, `/resume`, `/suspend`, `/terminate` on the image's `hooks.port` (awsjob `doc.go` facts). `/run`: parse `{"microvmId","runHookPayload"}`, decode `BootstrapV2`, refuse if the runner state directory is not empty, write the bootstrap and the VM ID to a 0600 file owned by the runner user, start `equipo-runner hosted-run` as that user with no capabilities and an environment of exactly `HOME`, `PATH`, `TMPDIR`, `EQUIPO_HOSTED_BOOTSTRAP`, then return 200. `/ready` (image build only) fails unless the state directory is empty. `/suspend` and `/resume` answer 409 (S2-6). `/terminate` signals the runner and returns. Root init replaces the managed resolver mounts with an empty `resolv.conf`, overlays `/etc` from the image's copy, and reaps orphans as PID 1's child reaper.
+
+- [ ] **Red:** `TestRunHookWritesBootstrapOnce` (a second `/run` is refused). `TestRunHookRefusesStateLeft`. `TestRunnerEnvironmentExact`. `TestMountPlanEmptiesResolver` (pure plan function over a fake FS). `TestSuspendRefused`. `TestRunnerDropsCapabilities` (plan: `SysProcAttr` with the user's uid and gid, `AmbientCaps` empty, `NoNewPrivs`).
+- [ ] **Green:** `go test ./internal/vminit -count=1`; `GOOS=linux go build ./cmd/equipo-vm-init`.
+- [ ] **Mutations:** accept a second `/run`; pass the parent environment through.
+- [ ] **Commit:** `vminit: root init, lifecycle hooks and the runner launch`.
+
+### Task 9: The image build
+
+**Files:** Create `internal/hostedimage/{manifest.go,build.go,manifest_test.go,build_test.go}`, `cmd/equipo-hosted-image/main.go`, `infra/hosted/image/{manifest.json,Dockerfile.tmpl}`. Modify `internal/isolatedjob/providerguard_test.go`, `.amadan/ci.d/` (secret scan of the image inputs), `Makefile` (`hosted-image-check`).
+
+**Interfaces:** `Manifest{RunnerRelease, RunnerSHA256, VMInitSHA256, BubblewrapSHA256, GoToolchain, GoToolchainSHA256, GitSHA256 string; Packages []Pinned}`; `func Build(m Manifest, out string) (Inventory, error)` writes a byte-reproducible zip (sorted entries, fixed times and modes) for `create-microvm-image`; `Inventory{ZipSHA256 string; Files map[string]string}`; `func (i Inventory) Digest() isolatedjob.ImageDigest`. The image holds no token, key, code, OAuth home, forge credential, person's configuration or repository (spec §4). The Go toolchain is the one the runner's checks use (`GOROOT=/opt/go`).
+
+- [ ] **Red:** `TestBuildReproducible` (two builds, identical bytes). `TestManifestPinsEverything` (an unpinned package or an empty digest is refused). `TestImageInputsHaveNoSecrets` (runs the repo's gitleaks config over the build context). `TestProviderTypesStayInAdapter` updated for the new commands.
+- [ ] **Green:** `go test ./internal/hostedimage ./internal/isolatedjob -run 'TestBuild|TestManifest|TestImageInputs|TestProviderTypes' -count=1`; `make hosted-image-check`.
+- [ ] **Mutations:** use the file's own mtime in the zip; let an empty digest through.
+- [ ] **Commit:** `hostedimage: pinned, reproducible MicroVM image build`.
+
+### Task 10: Certification run, report and offline signing
+
+**Files:** Create `internal/hostedcert/{matrix.go,probe_linux.go,report.go,matrix_test.go,report_test.go}`, `internal/hostedctl/{certreport.go,certreport_test.go}`, `cmd/equipo-hosted-certify/main.go`.
+
+**Interfaces:** the runner subcommand `equipo-runner hosted-certify` (Task 11 wires it) runs `hostedcert.Probes()` and posts `Report{LaunchID, Image, Results []ProbeResult; Containment string}` to `POST /v1/cert/report` through the proxy (the certification launch's one service is the controller's report host). Controller: `GET /v1/cert/reports/{launch}` (operator). Signer, offline: `equipo-hosted-certify sign -report r.json -snapshot s.json -key <file>` prints a `Certificate` only if `hostedcert.Judge(report, Matrix())` passes. The expected outcome of every probe lives in `Matrix()` in the signer, never in the report (1b finding).
+
+Probes (each from the sandbox unless marked): direct IPv4 and IPv6 to a public address, each managed resolver address, the metadata endpoint, the proxy egress port without a certificate, the proxy bootstrap port, a DNS query, a build script and `go mod download` with an empty cache; root-before-drop probes (marked): VPC DNS answers nothing, no AWS credential at the metadata endpoint, `resolv.conf` empty; runner-user probes (marked): cannot write `resolv.conf`, cannot gain capabilities, cannot reach the proxy bootstrap with a used code; positive controls: the runner reaches the report host through the proxy, the containment suite passes (`containment.test -test.skip '^TestSource'`, 79 tests, with the codex binary present), and the sandbox can read the Go tree.
+
+- [ ] **Red:** `TestJudgeUsesTrustedMatrix` (a report claiming "expected" for a failing probe still fails). `TestJudgeNeedsEveryProbe`. `TestJudgeNeedsPositiveControls`. `TestReportRouteLaunchBound` (a report for another launch is refused). `TestSignerRefusesFailingReport`.
+- [ ] **Green:** `go test ./internal/hostedcert ./internal/hostedctl -run 'TestJudge|TestReportRoute|TestSigner' -count=1`.
+- [ ] **Mutations:** read expected outcomes from the report; skip one positive control.
+- [ ] **Commit:** `hostedcert: certification matrix, report route and offline signer`.
+
+## Phase D: the hosted runner (spec §5, §8)
+
+### Task 11: Hosted bootstrap, proxy certificate and enrolment in the runner
+
+**Files:** Create `internal/runner/hosted/{bootstrap.go,redeem.go,enrol.go,dial.go,hosted_test.go}`. Modify `cmd/equipo-runner/main.go` (subcommands `hosted-run`, `hosted-certify`), `internal/runner/thin/link.go` (token source), `.rastrillo/budgets.txt`.
+
+**Interfaces:**
+
+```go
+func ReadBootstrap(path string) (hostedwire.BootstrapV2, string /*vmRef*/, error) // then deletes the file
+type Session struct{ /* key, cert, bearer, epoch */ }
+func Start(ctx context.Context, b hostedwire.BootstrapV2, vmRef string, state string) (*Session, error) // redeem, then enrol
+func (*Session) Dialer() func(ctx context.Context, network, addr string) (net.Conn, error) // CONNECT via a proxy, failover to the second
+func (*Session) Token() string // current bearer
+// thin.Link gains: TokenSource func() string; Dial func(ctx, network, addr) (net.Conn, error)
+```
+
+`Link` reads `TokenSource()` on every dial instead of the copy made at startup (spec §5); a nil `TokenSource` keeps today's behaviour. The runner key is ECDSA P-256 for the proxy CSR and ed25519 for the machine key, both generated in `/run`'s process, never written outside the state directory.
+
+- [ ] **Red:** `TestLinkReadsTokenEachDial` (rotate the token between two dials; the second handshake carries the new one). `TestReadBootstrapDeletesFile`. `TestDialerFailsOver` (first proxy refuses the TCP connect, second works). `TestEnrolSendsVMRefAndKey`. `TestNoPlainDialInHostedMode` (the session never dials without the proxy).
+- [ ] **Green:** `go test ./internal/runner/hosted ./internal/runner/thin -run 'TestLinkReadsToken|TestReadBootstrap|TestDialer|TestEnrolSends|TestNoPlainDial' -count=1`; `make build vet` (darwin vet included).
+- [ ] **Mutations:** copy the token once at `Link` construction; dial the instance directly when both proxies fail.
+- [ ] **Commit:** `runner: hosted bootstrap, proxy certificate and enrolment`.
+
+### Task 12: Token renewal
+
+**Files:** Create `internal/runner/hosted/{renew.go,renew_test.go}`.
+
+**Interfaces:** `func (*Session) Run(ctx context.Context, clock func() time.Time) error` renews the bearer (1 h) and the proxy certificate (15 min) at half their lifetime, installs each atomically, and on a renewal failure cancels the work context, reports `token_renewal_failed` once if the link is up, and returns `ErrRenewal`; `hosted-run` exits non-zero and the instance stops the VM (Task 18).
+
+- [ ] **Red:** `TestRenewAtHalfLife`. `TestRenewalFailureStopsWork` (no further dial after the failure). `TestStepPastFifteenMinutesAndAnHour` (a fake clock drives a step through four certificate renewals and one bearer renewal; the link never presents an expired credential).
+- [ ] **Green:** `go test ./internal/runner/hosted -run 'TestRenew|TestStepPast' -count=1`.
+- [ ] **Mutations:** keep working after a failed renewal; renew at expiry.
+- [ ] **Commit:** `runner: renew hosted bearer and proxy certificate at half life`.
+
+### Task 13: The dependency bundle
+
+**Files:** Create `internal/runner/depsbundle/{build.go,stage.go,gosum.go,depsbundle_test.go}`. Modify `internal/runner/thin/relay.go` (send the bundle after the pack for hosted steps; budget record).
+
+**Interfaces:**
+
+```go
+func Build(ctx context.Context, cache string, modules []Module, limit int64) (Bundle, error) // primary side
+type Module struct{ Path, Version string }
+type Bundle struct{ Digest string; Size int64; Files []File; Missing []Module }
+func ModulesFor(tree fs.FS) ([]Module, error) // every go.mod's requirements and go.sum lines, vendored modules skipped (as GoModuleDirs does)
+func Stage(ctx context.Context, b []byte, sums []SumLine, dir string) (Staged, error) // worker side, outside the sandbox
+type Staged struct{ Dir string; Missing []Module }
+var ErrHashMismatch, ErrTooLarge error
+const DefaultLimit = 512 << 20
+```
+
+The bundle holds `cache/download/<module>/@v/<version>.{zip,mod,info}` only. `Stage` verifies each `.zip` and `.mod` against the `h1:` lines from both the base and the candidate trees' `go.sum` (a module listed in neither is not staged), writes into a fresh directory, makes it read-only, and returns what was missing. The check sandbox then mounts it as `/opt/go-mod`. Over the limit, the primary sends nothing and the step ends `cannot_run` `needs_network` with reason `deps_too_large`.
+
+- [ ] **Red:** `TestBundleRoundTrip`. `TestBundleRefusesHashMismatch` (a tampered zip is not staged; a tampered `.mod` the same). `TestBundleUnlistedModuleDropped`. `TestBundleTooLarge`. `TestStagedReadOnly`. `TestMissingModuleIsNeedsNetwork` (with Task 14's gate: a module absent from the bundle gives `needs_network`, not `failed`).
+- [ ] **Green:** `go test ./internal/runner/depsbundle -count=1`.
+- [ ] **Mutations:** skip the hash check; stage a module listed in no `go.sum`.
+- [ ] **Commit:** `runner: verified dependency bundle from the primary`.
+
+### Task 14: The Linux checks worker
+
+**Files:** Create `internal/runner/linuxworker/{gate.go,checks.go,worker_test.go}`, `internal/runner/checkrun/{run.go,run_test.go}` (the dependency stage, base-gate certification and `needs_network` mapping moved out of `thin.Engineer.checks`, `judge.go:295-360`, so the primary and the hosted worker share one implementation). Modify `internal/runner/thin/run.go` (start `runWorker` on Linux when the credential's role is `worker` and the runner was started by `hosted-run`), `judge.go`, `worker_checks.go`, `.rastrillo/budgets.txt`.
+
+**Interfaces:**
+
+```go
+// checkrun
+type Inputs struct{ Workspace, BaseSHA, CandidateSHA string; GoRoot, ModuleCache string; Gates []provider.Mount; Limit time.Duration }
+type Result struct{ Outcome string; Reason string; Output string; Certified bool; Sandbox string; Evidence *checks.Evidence }
+func Run(ctx context.Context, m Starter, in Inputs, record func(context.Context, string) error) Result
+// linuxworker
+func NewGate(m *containment.Manager, goRoot string, staged func(attempt string) (string, error)) thin.GateRunner // Sandbox() returns wire.SandboxBubblewrap
+```
+
+The hosted worker's `checks` path now runs: await pack and bundle, index, checkout, stage the bundle (Task 13), `checkrun.Run` with base gates read from BaseSHA, `TerminationKind = wire.TerminationNamespace`, `ChecksSandbox = bubblewrap`, `BaseChecksSHA` set only when the base-gate run certified. A Linux runner whose role is `worker` but that was not started by `hosted-run` refuses to start (today it silently runs the primary path; runner survey, `run.go:166`).
+
+- [ ] **Red:** `TestPrimaryChecksUnchanged` (the existing primary checks tests pass through `checkrun`, unchanged outputs). `TestHostedBaseGatesFromBase` (a candidate that edits `.equipo/gates.json` still runs the base gates; `BaseChecksSHA` set only on a base pass). `TestHostedChecksNamespaceProof` (`TerminationNamespace`, the record ID written before launch). `TestLinuxWorkerRoleRefusedOutsideHosted`. `TestHostedChecksOffline` (inside the sandbox a probe to `127.0.0.1:<proxy port>` and to a public address both fail).
+- [ ] **Green:** `go test ./internal/runner/checkrun ./internal/runner/linuxworker ./internal/runner/thin -run 'TestPrimaryChecks|TestHosted|TestLinuxWorker|TestChecks' -count=1`; on docs-t1 `make runner-namespace-test`.
+- [ ] **Mutations:** read gates from the candidate tree; set `BaseChecksSHA` on a candidate-gate pass.
+- [ ] **Commit:** `runner: Linux checks worker on the containment manager`.
+
+## Phase E: the instance (spec §8, §10)
+
+### Task 15: The project setting
+
+**Files:** Create migration `internal/equipo/migrations/01NN_hosted_checks_setting.sql`, `internal/equipo/chat/{hosted_setting.go,hosted_setting_test.go}`, `internal/equipo/hosted_settings.go`, `internal/equipo/templates/hosted_settings.html`. Modify `internal/equipo/app.go`, `settings_hub.go`, `copy.go`.
+
+**Interfaces:** columns `hosted_checks bool`, `hosted_checks_owner`, `hosted_checks_revision` on `chat_projects` (pattern: `SetCopyDelegation`, `copy_store.go:66`). `func (s *Store) SetHostedChecks(ctx context.Context, person, project string, enabled bool, revision int64) error`; `func (t *txn) hostedChecks(project string) (bool, error)`. Owner only, current roster inside the transaction, revision conflict, audit event. Copy keys `hosted.checks`, `hosted.checks_help`, `hosted.title`, `hosted.lede`, pending. The section is hidden unless `EQUIPO_HOSTED_RUNNERS=1`.
+
+- [ ] **Red:** `TestHostedSettingOwnerOnly`, `TestHostedSettingRemovedOwnerRefused`, `TestHostedSettingRevisionConflict`, `TestHostedSettingAudited`, `TestHostedSettingHiddenWithoutFlag`.
+- [ ] **Green:** `go test ./internal/equipo/... -run 'TestHostedSetting' -count=1`; `python3 scripts/copy-status.py verify` (bounded JSON stdin, AGENTS.md).
+- [ ] **Mutation:** skip the roster check (`TestHostedSettingRemovedOwnerRefused`).
+- [ ] **Commit:** `equipo: owner setting to run a project's checks in a hosted VM`.
+
+### Task 16: Hosted jobs store
+
+**Files:** Create migration `01NN_hosted_jobs.sql`, `internal/equipo/chat/{hosted_jobs.go,hosted_jobs_test.go}`. Modify `internal/equipo/chat/models.go`.
+
+**Interfaces:** table `hosted_jobs` (`attempt_id` primary key, `step_id`, `task_id`, `project`, `person`, `size`, `state` one of `pending launching enrolling running stopping ended failed`, `launch_id`, `vm_ref`, `cert_digest`, `code_hash`, `code_expires_at`, `runner_id`, `held_seconds`, `held_micros`, `used_seconds`, `used_micros`, `created_at`, `started_at`, `ended_at`, `stop_reason`, `stop_proof_json`, `retry_of`, `revision`). `func (t *txn) newHostedJob(k *taskRecord, s *stepRecord, person string) (hostedJob, error)`; `func (t *txn) settleHostedJob(attempt string, used time.Duration, proof hostedwire.StopProof) error`; `func (t *txn) hostedJobForRunner(runnerID string) (hostedJob, error)`.
+
+- [ ] **Red:** `TestHostedJobLifecycle` (only the listed transitions), `TestSettleNeedsProof`, `TestOneLiveJobPerStep`, `TestMigrationAdditive`.
+- [ ] **Green:** `go test ./internal/equipo/chat -run 'TestHostedJob|TestSettle|TestOneLiveJob' -count=1`; `make migration-check`.
+- [ ] **Mutation:** allow `ended` without proof.
+- [ ] **Commit:** `equipo: hosted jobs table and lifecycle`.
+
+### Task 17: Per-person limits, held and settled (S2-9)
+
+**Files:** Create `internal/equipo/chat/{hosted_limits.go,hosted_limits_test.go}`, migration `01NN_hosted_limits.sql`.
+
+**Interfaces:**
+
+```go
+type HostedLimits struct{ Running int; DailySeconds int64; MonthlyMicros int64 } // USD micros
+var DefaultHostedLimits = HostedLimits{Running: 2, DailySeconds: 8 * 3600, MonthlyMicros: 50_000_000}
+const RateSmallMicrosPerHour, RateLargeMicrosPerHour = 155_000, 310_000 // spec §10, eu-west-1 x86_64
+const HostedChecksLifetime = 90 * time.Minute
+func (t *txn) hostedAdmit(person string, size isolatedjob.Size, now time.Time) (ok bool, reason string, err error) // reason "running" | "daily" | "monthly"
+func (s *Store) SetHostedLimits(ctx context.Context, owner, person string, l HostedLimits, revision int64) error // owner raises or lowers a person's limits
+```
+
+Days and months are UTC. A job holds `HostedChecksLifetime` and its cost at that lifetime from admission until it settles; settling replaces the hold with the used time (from the controller's launch-to-stop-proof times) and its cost. Running counts every job not `ended` or `failed`. Any count error denies and keeps the step waiting.
+
+- [ ] **Red:** `TestLimitsHoldAndSettle` (a third job waits with `running`; at 7 h 59 min used today a new 90-min hold waits with `daily`; settling a short job frees the difference). `TestLimitsRace` (20 goroutines, one slot: one admitted). `TestLimitCountErrorDenies`. `TestOwnerRaisesLimit` (owner only, audited). `TestMonthBoundaryUTC`.
+- [ ] **Green:** `go test ./internal/equipo/chat -run 'TestLimits|TestLimitCount|TestOwnerRaises|TestMonthBoundary' -count=1`.
+- [ ] **Mutations:** count only `running` jobs (`TestLimitsHoldAndSettle`); treat a count error as zero.
+- [ ] **Commit:** `equipo: per-person hosted limits, held then settled`.
+
+### Task 18: Placement, the dispatcher and the VM's end
+
+**Files:** Create `internal/equipo/hostedrun/{dispatcher.go,dispatcher_test.go,sim_test.go}`. Modify `internal/equipo/chat/runners.go` (`place`, `fits`, `waitingPlacements`, `offline`), `internal/equipo/chat/tasks.go` (`dispatchStep`, step terminal hook), `internal/equipo/app.go` (start the dispatcher only with the flag), `internal/hostedclient/client.go` (package comment), `client_test.go` (delete `TestInstanceDoesNotCallHostedClient`).
+
+**Interfaces:**
+
+- `place`: for a checks step in a project with `hostedChecks` on, before the early return at `runners.go:545`, check the primary is online and speaks `ProtocolHostedChecks` (else today's path), then `hostedAdmit`: on success create the job and set `Placement = waiting_hosted`, `RunnerID = ""`; on refusal set `Placement = hosted_limit` with the reason. Both are in `waitingPlacements`. Hosted placements are exempt from offline withdrawal like `PlacementSandbox` (`runners.go:1134`).
+- `fits`: a runner bound to a hosted job fits only that job's step; `Authorize` (`runners.go:931`) refuses any other step for it inside its transaction.
+- `type Dispatcher struct{ Store *chat.Store; Client *hostedclient.Client; Clock func() time.Time }`; `func (*Dispatcher) Pass(ctx context.Context) error`, every 10 s: launch `pending` jobs (outside the transaction; a throttle keeps `pending` with backoff 10 s to 5 min); stop a job not enrolled 2 min after the controller reports it running, retry once as a new attempt with `retry_of`, then fail the step with `hosted_enrol_timeout`; when the step is terminal, or the controller reports the VM gone, call `Stop` until it returns proof, revoke the runner, settle the job; reconcile every live job with `Get` each minute.
+- After a VM ends mid-step without a report, the step is retried once on a new job, then fails with `hosted_vm_lost`.
+
+- [ ] **Red:** `TestHostedPlacementBeforeEarlyReturn`, `TestHostedNeedsCapablePrimary`, `TestHostedWaitsAtLimit`, `TestBoundRunnerFitsOnlyItsStep`, `TestAuthorizeRefusesOtherStep`, `TestHostedExemptFromWithdrawal`, `TestEnrolTimeoutRetriesOnce`, `TestVMGoneMidStep`, `TestStopUntilProofThenSettle`, `TestThrottleBacksOff`, `TestDispatcherOffWithoutFlag`. `TestDispatcherSimulation` (200 seeds, fake controller with lost replies, throttles, VM deaths and instance restarts; invariants: at most one live VM per step, never more running jobs per person than the limit, every settled job has proof, no step is certified by a VM that was not admitted).
+- [ ] **Green:** `go test ./internal/equipo/hostedrun ./internal/equipo/chat ./internal/hostedclient -run 'TestHosted|TestBoundRunner|TestAuthorizeRefuses|TestEnrolTimeout|TestVMGone|TestStopUntil|TestThrottle|TestDispatcher' -count=1`.
+- [ ] **Mutations:** place after the early return; let a bound runner fit any step; settle without proof (the simulation fails with its seed).
+- [ ] **Commit:** `equipo: place checks on hosted VMs and see each VM to its end`.
+
+### Task 19: Hosted enrolment and renewal routes
+
+**Files:** Create `internal/equipo/{hosted_enrol.go,hosted_enrol_test.go}`. Modify `internal/equipo/app.go` (routes beside `:324`), `internal/equipo/personapi/auth.go:101` (public allowlist), `internal/equipo/runners.go` (`mintRunnerCredential` takes a lifetime).
+
+**Interfaces:** `POST /api/hosted/enrol` takes `wire.HostedEnrolRequest`; `POST /api/hosted/renew` takes `wire.HostedRenewRequest` with the current bearer. Enrol, in one transaction: the code hash matches a job in `enrolling`, unused, unexpired; then outside it `Client.Admission(attempt)`; then a second transaction re-checks the job and requires `AdmissionView` state `running`, `VMRef` equal to the request's, `CertValid`, and the job's person still on the roster; creates the runner row (role `worker`, `hosted_job` bound, no device code) and a 1-hour credential. Renew: signature over the instance's challenge with the machine key, same epoch, job still live. Rate limits as `BeginEnrolment`'s.
+
+- [ ] **Red:** `TestEnrolRefusesReplayAndWrongVM` (second use; right code, wrong `VMRef`; expired code). `TestEnrolNeedsCertifiedAdmission`. `TestEnrolRemovedPersonRefused`. `TestEnrolRouteIsPublicNotCSRF`. `TestRenewOldEpochRefused`. `TestRenewAfterStopRefused`. `TestHostedCredentialIsOneHour`.
+- [ ] **Green:** `go test ./internal/equipo -run 'TestEnrol|TestRenew|TestHostedCredential' -count=1`.
+- [ ] **Mutations:** skip the `VMRef` comparison; mark the code used outside the transaction.
+- [ ] **Commit:** `equipo: hosted enrolment and renewal bound to one job`.
+
+### Task 20: Bundle relay from the primary
+
+**Files:** Modify `internal/equipo/chat/tasks.go` (dispatch tells the primary to send the pack and the bundle to the hosted runner), `internal/runner/thin/relay.go` (primary builds with `depsbundle.Build`), `internal/runner/thin/relay_test.go`.
+
+**Interfaces:** `wire.SendPackCommand` gains `Deps bool` (protocol-gated). The primary computes `ModulesFor` over the base and candidate trees and sends the bundle as `TransferKindDeps` after the pack, through the existing relay.
+
+- [ ] **Red:** `TestPrimarySendsBundleForHostedStep`, `TestNoBundleForPersonalWorker`, `TestBundleTooLargeEndsStep`.
+- [ ] **Green:** `go test ./internal/runner/thin ./internal/equipo/chat -run 'TestPrimarySendsBundle|TestNoBundle|TestBundleTooLarge' -count=1`.
+- [ ] **Mutation:** always send the bundle (`TestNoBundleForPersonalWorker`).
+- [ ] **Commit:** `runner: primary sends the dependency bundle to hosted checks`.
+
+### Task 21: Certified results from hosted workers (Fable M8)
+
+**Files:** Modify `internal/equipo/chat/tasks.go:1843-1862` (`stepReport`), `internal/equipo/chat/mergeauth.go:1384` (`acceptBaseChecks`), `internal/equipo/chat/runners.go` (`cleanHello`). Create `internal/equipo/chat/hosted_results_test.go`.
+
+**Interfaces:** `func (t *txn) hostedCertified(runnerID string) (bool, error)`: true only when the runner is bound to a hosted job whose admission (recorded at enrolment, Task 19) carried a valid certificate digest and the job is live. In `stepReport`, a worker's checks result keeps `bubblewrap` only when `hostedCertified`; otherwise today's rules. `acceptBaseChecks` accepts `role == worker` only with `hostedCertified`. Hello fields (`Sandbox`, anything about images) are stored for diagnostics and read by none of these decisions.
+
+- [ ] **Red:** `TestHelloCannotCertify` (an uncertified Linux worker reports `bubblewrap` and a hello claiming a certified image: stored as `none`, runner tainted, no `BaseChecksSHA`). `TestHostedCertifiedResultCounts` (certified worker: `bubblewrap`, base checks accepted, the merge gate's `checked_in_sandbox` and `trusted_base_checks` both pass). `TestCertRevokedAfterEnrolNotCertified`. `TestMacRulesUnchanged`.
+- [ ] **Green:** `go test ./internal/equipo/chat ./internal/equipo/mergegate -run 'TestHelloCannotCertify|TestHostedCertified|TestCertRevoked|TestMacRules' -count=1`.
+- [ ] **Mutations:** read the hello's sandbox in `hostedCertified`; accept any worker in `acceptBaseChecks`.
+- [ ] **Commit:** `equipo: hosted results count only from certified admissions`.
+
+### Task 22: What the person sees (cost visibility, only as far as limits need)
+
+**Files:** Modify `internal/equipo/work_pages.go`, `work_views.go`, `copy.go`, the usage page template and handler (`UsageTotals`, `internal/equipo/chat/usage.go:44`). Create `internal/equipo/hosted_views_test.go`.
+
+**Interfaces:** step chips `work.checks.waiting_hosted` ("Starting a hosted machine"), `work.checks.hosted_limit_running`, `_daily`, `_monthly` (each says which limit and when it frees), failure reasons `work.reason.hosted_enrol_timeout`, `hosted_vm_lost`, `hosted_unavailable`, `deps_too_large`. Usage page: one block, "Hosted machines", with VM-hours today, estimated spend this month and the person's limits. Owners see the per-person limit editor (Task 17). Strings pending; no new page.
+
+- [ ] **Red:** `TestWaitingHostedChip`, `TestLimitChipSaysWhich`, `TestUsageShowsHostedTotals`, `TestUsageUnknownStaysUnknown` (a failed total shows "unknown", not 0).
+- [ ] **Green:** `go test ./internal/equipo -run 'TestWaitingHosted|TestLimitChip|TestUsageShowsHosted|TestUsageUnknown' -count=1`; `python3 scripts/copy-status.py verify` (bounded JSON stdin, AGENTS.md).
+- [ ] **Mutation:** render a failed total as 0.
+- [ ] **Commit:** `equipo: show hosted waits, limits and usage`.
+
+## Phase F: the injection-review fixes that gate hosted work
+
+H3 is closed by Tasks 2 and 4 to 7 (exact hosts, authenticated proxy, fronting matrix), Task 10 (certification probes) and S2-1 (no registry in a VM's egress). M8's digest half is closed by Tasks 3, 19 and 21. Tasks 23 and 24 close what is left of M4 and M8 on main (survey of `27d50e7f`).
+
+### Task 23: M4 residue: Research prompts and old runners
+
+**Files:** Modify `internal/runner/thin/research.go:664-676`, `internal/equipo/chat/runners.go` (placement), `internal/wire/runners.go:860-866`. Create `internal/runner/thin/research_quote_test.go`, `internal/equipo/chat/protocol_floor_test.go`.
+
+**Interfaces:** Research's task title, brief and question enter through `wire.QuotedData` under the labels `Task title`, `Task brief`, `Question`, and each fetched source under `Source <n> (<url>)`; the `<<<`/`>>>` and `=== source` fences go. Placement refuses Engineering, Design and Research on a runner below `wire.ProtocolInjectionDefences` (28), with `PlacementWaiting` and reason `runner_update_needed`, so the folding at `wire/runners.go:860-866` is never used; then the folding is deleted.
+
+- [ ] **Red:** `TestResearchQuotesTitleBriefQuestion` (a title containing `>>>` and a fake `=== source` line stays inside its quoted value). `TestOldRunnerGetsNoModelWork`. `TestNoBriefFolding`.
+- [ ] **Green:** `go test ./internal/runner/thin ./internal/equipo/chat ./internal/wire -run 'TestResearchQuotes|TestOldRunner|TestNoBriefFolding' -count=1`.
+- [ ] **Mutation:** put the title back unquoted.
+- [ ] **Commit:** `research: quote task text; old runners get no model work`.
+
+### Task 24: M8 residue: checkpoint provenance on the instance
+
+Slice 2 has no checkpoints (S2-6). This task builds the instance's half now so slice 4 only adds the runner's: the acknowledgement that binds a checkpoint, and the only renderer allowed to put checkpoint notes in a prompt.
+
+**Files:** Create migration `01NN_checkpoints.sql`, `internal/equipo/chat/{checkpoint.go,checkpoint_test.go}`, `internal/wire/checkpoint.go`.
+
+**Interfaces:**
+
+```go
+type Checkpoint struct{ TaskID, Repo, BaseSHA, CandidateSHA, AttemptID, LaunchID string; PackDigest, NotesDigest string; Notes []string }
+func (t *txn) AcknowledgeCheckpoint(l Lease, c wire.Checkpoint) (ackID string, err error) // binds digests to the recorded task, repo, base, candidate, attempt, launch
+func RenderResume(c Checkpoint, personWords []string) string // task, attempt, checkpoint digest; each note json.Marshal-quoted under "Checkpoint note n"; person words in their own block
+var ErrCheckpointMismatch error
+```
+
+- [ ] **Red:** `TestCheckpointBindsEverything` (any one field differing from the record: refused). `TestUnacknowledgedCannotResume`. `TestNotesCannotEscape` (a note containing a closing marker, a fake "Person's words:" heading and a JSON fragment stays one quoted string). `TestNotesDigestRecomputed`.
+- [ ] **Green:** `go test ./internal/equipo/chat ./internal/wire -run 'TestCheckpoint|TestUnacknowledged|TestNotes' -count=1`.
+- [ ] **Mutation:** trust the runner's `NotesDigest` without recomputing it.
+- [ ] **Commit:** `equipo: checkpoint acknowledgement and quoted resume rendering`.
+
+## Phase G: deployment, end to end, live
+
+### Task 25: OpenTofu for the hosted stack
+
+**Files:** Create `infra/hosted/modules/{account,network,controller,proxy,image-store,alerts}/`, `infra/hosted/envs/{dev,prod}/`, `infra/hosted/tests/*.tftest.hcl`, `infra/hosted/README.md`. Modify `.amadan/ci.d/` (a `tofu validate` and `tofu test` lane with mocked providers; no credentials in CI).
+
+**Shape (S2-4):**
+- `account` (prod only): CloudTrail (management events, Lambda MicroVM data events) to its own bucket, account-level S3 public access block, EBS encryption by default, IAM password policy, the alert SNS topic, AWS Budgets with an action (Task 31's plan sets the numbers).
+- `network`: VM VPC with `enable_dns_support = false` and `enable_dns_hostnames = false`; one VM subnet per AZ in use, route table with the local route and a route to each proxy's `/32` over the peering only; VM security group allowing egress only to the proxy addresses on 8443 and 8444; NACLs to match. Services VPC with DNS on, two public subnets in two AZs, an internet gateway. The peering, accepted in the same account.
+- `controller`: one `t4g.small` with an EIP, a role allowed only `lambda-microvms:*` on this account's MicroVMs and images in `eu-west-1`, `lambda:GetNetworkConnector` on the one connector, `ec2:Describe*` for the audit, `sns:Publish` on the topic, and S3 on the Litestream bucket; security group allowing 443 from anywhere (signed requests, pinned TLS) and metrics on 9100 from nowhere; systemd units running the released controller and Litestream; binaries fetched by digest.
+- `proxy` (×2, two AZs): `t4g.micro` with an EIP; no AWS role; listens on 8443 and 8444 on its private address only; egress 443 to anywhere.
+- `image-store`: the S3 bucket for image inputs, versioned, public access blocked.
+- The connector (`VPC_EGRESS` in the VM subnet) and its operator role with `AWSLambdaNetworkConnectorOperatorPolicy` plus the subnet-scoped `ec2:DeleteNetworkInterface` (Task 17 live fact).
+
+- [ ] **Red:** `tests/network.tftest.hcl` asserts DNS off on the VM VPC, no route to `0.0.0.0/0` or `::/0` from the VM subnet, the VM security group's egress set equal to the proxies' addresses, and DNS on in the services VPC. `tests/iam.tftest.hcl` asserts the controller role has no `iam:*`, no `*` resource on MicroVM actions outside the account and region, and the proxies have no instance profile.
+- [ ] **Green:** `tofu -chdir=infra/hosted/envs/dev init -backend=false && tofu -chdir=infra/hosted/envs/dev validate`; same for `prod`; `tofu -chdir=infra/hosted test` (mocked providers).
+- [ ] **Mutations:** add a default route on the VM subnet; give the proxy an instance profile. Each fails its test.
+- [ ] **Commit:** `infra: OpenTofu for the hosted stack, dev and prod`.
+
+### Task 26: Release artifacts and host configuration
+
+**Files:** Create `scripts/release-hosted.sh`, `infra/hosted/modules/controller/cloud-init.yaml.tmpl`, `infra/hosted/modules/proxy/cloud-init.yaml.tmpl`, `internal/hostedctl/healthz.go`. Modify `cmd/equipo-hosted-controller/config.go` (read the deployment manifest written by cloud-init), `Makefile`.
+
+**Interfaces:** `release-hosted.sh <version>` builds `equipo-hosted-controller`, `equipo-hosted-proxy`, `equipo-vm-init` and the runner for the image, records SHA-256 sums and publishes them on the forge under the release tag (the same mechanism as `publish-renderer.sh`). Cloud-init downloads by URL and checks the digest before installing; a mismatch leaves the unit off. `GET /healthz` on the metrics listener only.
+
+- [ ] **Red:** `TestCloudInitChecksDigest` (template rendering: the unit starts only after `sha256sum -c`). `TestControllerReadsManifest`.
+- [ ] **Green:** `go test ./internal/hostedctl ./cmd/equipo-hosted-controller -run 'TestCloudInit|TestControllerReadsManifest|TestHealthz' -count=1`; `scripts/release-hosted.sh --dry-run`.
+- [ ] **Commit:** `hosted: release artifacts and host configuration by digest`.
+
+### Task 27: Whole chain on one machine
+
+**Files:** Create `internal/hostedtest/{chain.go,chain_test.go}` (build tag `hostedchain`, run by its own CI lane on Linux).
+
+**Interfaces:** one test process starts, on `127.0.0.1`: an instance (`equipotest`), the controller with the in-memory `isolatedjob` fake whose `Launch` starts `equipo-vm-init`'s hook server in-process and calls `/run`, two proxies, and a personal primary (`thintest`). The hosted runner runs real bubblewrap on Linux.
+
+- [ ] **Red:** `TestChainHostedCheckPasses` (a project with the setting on: the step goes `waiting_hosted`, the VM enrols, pack and bundle arrive, checks pass in bubblewrap, the result is certified, the VM is stopped with proof, usage is settled). `TestChainFailingCheck`. `TestChainMissingModule` (`needs_network`). Drills: `TestChainKillProxyMidStep` (fails over to the second), `TestChainKillControllerMidStep` (step finishes; the stop waits for the controller), `TestChainStopVMMidStep` (retry once on a new VM), `TestChainOrphanVM` (the controller reaps it).
+- [ ] **Green:** `go test -tags hostedchain ./internal/hostedtest -count=1`.
+- [ ] **Commit:** `hostedtest: whole-chain hosted checks and failure drills`.
+
+### Task 28: Copy review
+
+- [ ] Write every new string from Tasks 15, 17 and 22 into `docs/superpowers/plans/2026-11-30-hosted-slice-2-copy.json`; run the copy review. **HUMAN:** Paul or the copy reviewer edits; apply edits verbatim; strings stay pending.
+- [ ] **Commit:** `copy: hosted checks strings for review`.
+
+### Task 29: Whole-branch review
+
+- [ ] `make ci`; one whole-branch Astra review, at most three rounds; fix what is clearly right; record what stays open in the progress file.
+- [ ] **Commit:** `hosted slice 2: review fixes`.
+
+### Task 30: Dev live drill in `kass` (HUMAN GO)
+
+- [ ] Write `docs/superpowers/plans/2026-MM-DD-hosted-2-dev-live-plan.md` in the shape of Task 17 revision 5 and 17b (livectl for Lambda calls, safety-only hard stops, FINDING lines, ledger, systemd user units, teardown verified by type and tag): `tofu apply` of `envs/dev` in `kass` / `eu-west-1`, image build, a certification launch, **HUMAN:** Paul signs the certificate offline, then hosted checks from the staging Equipo instance end to end, the Task 27 drills against real VMs, the egress matrix from inside a real VM, then `tofu destroy` and verification. Astra reviews it, three rounds at most.
+- [ ] **HUMAN:** Paul's one GO. The agent runs it, records spend, tears down.
+
+### Task 31: Production bring-up (HUMAN GO)
+
+- [ ] Run `docs/superpowers/plans/2026-11-30-hosted-prod-account-plan.md` (written with this plan) after Task 30 passes and the branch is merged. **HUMAN:** Paul's one GO; Paul signs the production certificate offline; Paul turns the project setting on for the first project.
+
+**Slice 2 is done when** a project with the setting on runs its checks in a hosted VM in `149757027610`, the result is certified through the controller's launch record, limits hold under the simulation and the chain tests, the dev drill and the production bring-up are recorded with nothing left running that the plan did not leave on purpose, and everything is off unless flagged.
+
+---
+
+## Decisions owed to Paul
+
+1. **Slice 2 includes the slice 1b foundation** (Phases A to D, Task 25). *Recommendation:* yes; there is no shorter path to a working hosted check.
+2. **S2-1, dependencies from the primary instead of a mirror service.** Spec §16 ruling 4 says "the read-only mirror is required before hosted code runs". This plan meets the mirror's properties with a bundle the primary sends and the runner verifies, and defers the importer service until a hosted primary exists. Note: the coordinator's brief quotes the earlier wording of ruling 4 ("the registry leak gap is accepted for a team's own repos in v1"); the spec's later text, written after Fable's H3, says no network for agent code in any project, and this plan follows the spec. *Recommendation:* accept S2-1.
+3. **S2-2 and S2-3:** no resolver; no continuation past a 5-minute-old feed. *Recommendation:* accept both.
+4. **S2-4:** two VPCs, peered. *Recommendation:* accept; it keeps AWS DNS for the hosts that need it and off for the VMs.
+5. **S2-5:** Large VMs for checks, 90-minute lifetime. *Recommendation:* accept.
+6. **Who holds the certification key.** The 1b decision says Paul or a named operator, offline. *Recommendation:* Paul, on a machine that is not docs-t1, with the public key in the controller config; each new image needs one signature.
+
+## Open questions carried from slice 1a
+
+- The connector's network-interface cleanup permission has never been exercised (Task 17b). Task 30 records it again.
+- `internal/hostedctl` already carries a size exception (5,313 / 8,516 lines). Tasks 2 to 4 and 10 add to it; Task 2 splits the store and HTTP layers into `internal/hostedctl/ctlstore` first if the package would pass 6,000 source lines.