oficina / equipo Public

Spec hosted runners on AWS Lambda MicroVMs

Design for one Firecracker VM per hosted job, covering the isolated job
runner adapter, VM lifecycle, snapshots, task-scoped tokens, egress,
the vm-boundary containment profile, placement, cost, failure handling,
the inference gateway dependency, rollout and tests.

Findings come from a throwaway spike in the dev AWS account, torn down
and verified. Reviewed by gpt-6-astra over three rounds; final verdict
READY. Building is not approved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f1e60ccfabb3cf781007a976131800430adcac90 parent 449e9c1
1 file changed, +403 −0
  • docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md +403 −0

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/design-hosted-runners: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.5s
ci-box: codex: fetched and verified in 4.5s
ci-box: codex-code-mode-host: fetched and verified in 1.8s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
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.4s
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 8.9s
ci-box: clone deepened in 3.9s
ci-box: file times set from content: 2592 files, 151 directories
ci-box: ready in 18.4s
=== 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.243s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.1s
+ go list -export -test -tags testbuild -f  ./...
  0.5s
+ go list -export -test -tags browser,testbuild -f  ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC

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

receipt: test step 1m17.506s 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 1m15.955s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m15.95s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 29.51, cpu waiting 20.42%, memory waiting 0.00%, io waiting 0.85%
--- 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 1m20.216s 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 1m18.582s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.58s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 28.11, cpu waiting 19.84%, memory waiting 0.00%, io waiting 0.80%
--- 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 1m21.454s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.468s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.33s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.56s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 28.11, cpu waiting 19.38%, memory waiting 0.00%, io waiting 0.77%
--- 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 1m16.443s 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 1m14.84s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.76s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.7s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.04s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.34s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 29.51, cpu waiting 20.42%, memory waiting 0.00%, io waiting 0.85%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m33.819s 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 1m32.193s amadan.net/oficina/equipo/internal/headless
receipt: slow test 57.5s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.82s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.77s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.48s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.62s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 26.32, cpu waiting 16.74%, memory waiting 0.00%, io waiting 0.65%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 3m0.278s 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 2m58.29s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m41.4s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.41s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.16s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.98s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.24s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.46, cpu waiting 3.91%, memory waiting 0.00%, io waiting 0.14%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 1.055s 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 1m56.643s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.71s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.4s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.38s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 1.19, cpu waiting 0.16%, 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 250ms 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 1m9.144s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.84s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.38s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.03s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.77s amadan.net/oficina/equipo/internal/thintest TestContractTokenConnection
machine: 32 CPUs, load 1.19, cpu waiting 0.16%, 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
budget note: internal/runner/thin took 4m15.595s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m28.115s 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 4m15.595s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.77s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.7s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.62s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.38s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.83s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.70, cpu waiting 0.90%, memory waiting 0.00%, io waiting 0.02%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 47.333s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.297s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.27s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 32.50, cpu waiting 19.95%, memory waiting 0.00%, io waiting 1.41%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 46.645s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 44.653s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.66s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.08s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.37s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 32.50, cpu waiting 19.95%, memory waiting 0.00%, io waiting 1.41%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 34.641s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 33.795s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.36s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.97s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 27.05, cpu waiting 14.54%, memory waiting 0.00%, io waiting 1.73%
--- 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 27.3%, load 20.00
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/specs/2026-11-18-hosted-runners-microvms.md:11:2: unclassified equipo-runner
        docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md:362:28: unclassified equipo-runner
        reference scan: 2307 text files, 2741 matches, 2 failures
--- FAIL: TestDirectDeadReferencesRepository (1.65s)

rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m1.799s
FAIL	amadan.net/oficina/equipo/internal/equipotest	62.182s


receipt: test step 1m3.586s 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 1m1.799s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.28s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.23s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.3s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.78s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.67s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
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/specs/2026-11-18-hosted-runners-microvms.md:11:2: unclassified equipo-runner
        docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md:362:28: unclassified equipo-runner
        reference scan: 2307 text files, 2741 matches, 2 failures
--- FAIL: TestDirectDeadReferencesRepository (1.63s)
FAIL
rastrillo-budget/v1 ran 1.634s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.885s
FAIL
machine: 32 CPUs, load 25.09, cpu waiting 15.70%, memory waiting 0.00%, io waiting 0.61%
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 27.5%, load 20.00
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1.307s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m12.08s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 18.98s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 18.92s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 18.86s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 18.85s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
machine: 32 CPUs, load 20.00, cpu waiting 13.10%, memory waiting 0.00%, io waiting 1.79%
--- 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 27.3%, load 20.00
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m13.284s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m2.371s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.55s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.83s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.79s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.74s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 23.24, cpu waiting 14.24%, memory waiting 0.00%, io waiting 0.55%
--- 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 27.3%, load 20.00
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 1.176s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m4.547s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.06s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.03s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 21.31s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 21.22s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 20.00, cpu waiting 11.31%, memory waiting 0.00%, io waiting 1.85%
--- 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 27.3%, load 20.00
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 576ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 48.107s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.45s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.44s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.39s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.18s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 20.00, cpu waiting 11.31%, memory waiting 0.00%, io waiting 1.85%
--- 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 27.3%, load 20.00
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./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-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/runner/webread: 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/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: 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 24.227s, 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 11.886s, 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 42.05s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 38.513s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m16.162s against a 60s target (the gate's other steps are not in this figure)
receipt: 11 packages ran, 47 cached, 18 without tests, 0 failed
receipt: slow package 52.423s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.199s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 42.05s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 38.513s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 35.748s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 21.01s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.22s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 14.63s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 11.57s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 9.33s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
machine: 32 CPUs, load 10.57, cpu waiting 4.94%, 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

receipt: test step 1m21.669s 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.236s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.3s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.07s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.6s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.53s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 28.11, cpu waiting 19.38%, memory waiting 0.00%, io waiting 0.77%
--- 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 1m29.274s 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 1m27.687s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.01s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.82s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.77s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.96s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.59s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 26.32, cpu waiting 17.28%, memory waiting 0.00%, io waiting 0.67%
--- 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 1m38.688s 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 1m37.144s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.49s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.83s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.8s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 10.21s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 9.99s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 23.24, cpu waiting 15.18%, memory waiting 0.00%, io waiting 0.59%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-18T22:10:36.202Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-18T22:10:36.202Z level=INFO msg="startup phase done" phase=state_lock took=68µs
time=2026-11-18T22:10:36.202Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-18T22:10:36.202Z level=INFO msg="startup phase done" phase=claim_roots took=79µs
time=2026-11-18T22:10:36.202Z level=INFO msg="startup phase" phase=sweep
time=2026-11-18T22:10:36.228Z level=INFO msg="startup phase done" phase=sweep took=26.53ms
time=2026-11-18T22:10:36.228Z level=INFO msg="startup phase" phase=credentials
time=2026-11-18T22:10:36.229Z level=INFO msg="startup phase done" phase=credentials took=344µs
time=2026-11-18T22:10:36.229Z level=INFO msg="startup phase" phase=open_state
time=2026-11-18T22:10:36.269Z level=INFO msg="startup phase done" phase=open_state took=40.389ms
time=2026-11-18T22:10:36.270Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-18T22:10:36.271Z level=INFO msg=connecting host=127.0.0.1:41593 protocol=26
time=2026-11-18T22:10:36.272Z level=INFO msg=connected host=127.0.0.1:41593 took=865µs
time=2026-11-18T22:10:36.272Z level=INFO msg="capabilities gathering"
time=2026-11-18T22:10:36.273Z level=INFO msg="capabilities gathered" took=393µs tags=linux,claude,go
time=2026-11-18T22:10:36.273Z level=INFO msg="hello sent" protocol=26
time=2026-11-18T22:10:36.278Z level=INFO msg=welcome protocol=26 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.75s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-18T22:11:06.559Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-18T22:11:06.559Z level=INFO msg="startup phase done" phase=state_lock took=74µs
time=2026-11-18T22:11:06.559Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-18T22:11:06.559Z level=INFO msg="startup phase done" phase=claim_roots took=88µs
time=2026-11-18T22:11:06.559Z level=INFO msg="startup phase" phase=sweep
time=2026-11-18T22:11:06.586Z level=INFO msg="startup phase done" phase=sweep took=26.475ms
time=2026-11-18T22:11:06.586Z level=INFO msg="startup phase" phase=credentials
time=2026-11-18T22:11:06.586Z level=INFO msg="startup phase done" phase=credentials took=95µs
time=2026-11-18T22:11:06.586Z level=INFO msg="startup phase" phase=open_state
time=2026-11-18T22:11:06.627Z level=INFO msg="startup phase done" phase=open_state took=40.55ms
time=2026-11-18T22:11:06.627Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-18T22:11:06.628Z level=INFO msg=connecting host=127.0.0.1:45187 protocol=26
time=2026-11-18T22:11:06.629Z level=INFO msg=connected host=127.0.0.1:45187 took=813µs
time=2026-11-18T22:11:06.629Z level=INFO msg="capabilities gathering"
time=2026-11-18T22:11:06.630Z level=INFO msg="capabilities gathered" took=438µs tags=linux,claude,go
time=2026-11-18T22:11:06.630Z level=INFO msg="hello sent" protocol=26
time=2026-11-18T22:11:06.635Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-18T22:11:07.654Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserEmptyExplore (5.83s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m25.036s
FAIL	amadan.net/oficina/equipo/internal/headless	85.310s


receipt: test step 1m26.41s 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 1m25.036s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.04s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.84s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.35s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.21s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.92s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest f1e60ccfabb3cf781007a976131800430adcac90 1.75s 27.22
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest f1e60ccfabb3cf781007a976131800430adcac90 5.83s 27.22
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 25.09, cpu waiting 15.18%, memory waiting 0.00%, io waiting 0.59%
--- 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/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 922ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.679s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.68s 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 306ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.889s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.89s 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|TestBrowserCoordinatorQueue|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 906ms 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 2m59.541s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.54s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.69s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 1.19, cpu waiting 1.40%, memory waiting 0.00%, io waiting 2.95%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.03s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.34s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.08s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.81s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.82s
+ 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   (53s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.60s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.48s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.13s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.56s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 19.44s
+ 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   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 32.62, cpu waiting 20.50%, memory waiting 0.00%, io waiting 1.28%
--- 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.202s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 3 without tests, 0 failed
receipt: slow package 7.132s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 220ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 95ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 4.97s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms 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 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.021s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.711s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
machine: 32 CPUs, load 3.69, cpu waiting 4.12%, memory waiting 0.00%, io waiting 2.59%
--- 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 27.3%, load 20.00
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md:11:2: unclassified equipo-runner
docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md:362:28: unclassified equipo-runner
reference scan: 2307 text files, 2741 matches, 2 failures
make[1]: *** [Makefile:229: runner-dead-references] Error 1
machine: 32 CPUs, load 20.00, cpu waiting 11.31%, memory waiting 0.00%, io waiting 1.85%
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 27.5%, load 20.00
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 20.00, cpu waiting 13.10%, memory waiting 0.00%, io waiting 1.79%
--- 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 27.3%, load 20.00
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 5
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 27.05, cpu waiting 15.60%, memory waiting 0.00%, io waiting 1.67%
--- 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 27.3%, load 20.00
shard 28: make gitleaks
10:10PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:10PM INF 973 commits scanned.
10:10PM INF scanned ~58557010 bytes (58.56 MB) in 12.2s
10:10PM INF no leaks found
machine: 32 CPUs, load 29.93, cpu waiting 18.75%, memory waiting 0.00%, io waiting 1.51%

amadan: job failed at step check shards 12, 25 of 29 — its output is above, not at the tail of this log
diff --git a/docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md b/docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md
new file mode 100644
index 00000000..30363b2a
--- /dev/null
+++ b/docs/superpowers/specs/2026-11-18-hosted-runners-microvms.md
@@ -0,0 +1,403 @@
+# Hosted runners on AWS Lambda MicroVMs
+
+**Date:** 2026-11-18. **Status:** draft for Paul's review; building is not
+approved. **Decision:** discussion 22 (Lambda MicroVMs, not reopened).
+**Evidence:** a throwaway spike in the dev AWS account, torn down (§15).
+
+## 1. What this adds
+
+A person can run Equipo work without keeping a machine online. Each hosted job
+gets one Firecracker VM in Ireland running the existing outbound-only
+`equipo-runner`. Personal runners keep working as they do today.
+
+Three spike results changed the design from discussion 22:
+
+- **Managed DNS bypasses an egress allowlist** unless VPC DNS is off (§6).
+- **An execution role exposes live AWS credentials inside the VM**, so hosted VMs
+ have no role (§5).
+- **Bubblewrap works in the VM** with a specific image profile, so the agent stays
+ sandboxed from the runner's secrets (§7).
+
+## 2. The isolated job runner adapter
+
+The scheduler uses this interface and never sees AWS types. It lives in
+`internal/isolatedjob`, with an AWS implementation and an in-memory fake.
+
+```go
+type Runner interface {
+ Launch(ctx context.Context, s LaunchSpec) (Ref, error) // idempotent on AttemptID
+ Get(ctx context.Context, ref Ref) (Job, error)
+ Suspend(ctx context.Context, ref Ref) error
+ Resume(ctx context.Context, ref Ref) error
+ Stop(ctx context.Context, ref Ref, reason string) error // succeeds if already gone
+ List(ctx context.Context) ([]Job, error) // all VMs the provider holds
+ Limits() Limits
+}
+
+type LaunchSpec struct {
+ AttemptID string
+ Image ImageDigest // must be certified (§7)
+ Size Size // Small (2 GB) or Large (4 GB)
+ MaxLifetime time.Duration // includes suspended time
+ Bootstrap []byte // one-time code only (§5)
+}
+
+type Job struct {
+ Ref Ref
+ State State // Starting, Running, Suspending, Suspended, Stopping, Stopped, Failed
+ StartedAt time.Time
+ Reason string
+}
+
+type Limits struct {
+ MaxLifetime time.Duration
+ MaxBootstrapBytes int
+ SuspendUsesLifetime bool
+ ConnectionsSurvive bool
+}
+```
+
+**Controller.** `equipo-hosted-controller` runs in the hosted AWS account and
+holds the only IAM role that can call the MicroVM APIs. The Equipo instance calls
+it over signed HTTPS and holds no AWS credentials. `run-microvm` accepts no tags
+and `List` returns no attempt ID, so the controller's job table is the only link
+between a VM and its job.
+
+## 3. VM lifecycle
+
+Every launch uses `NO_INGRESS`, the VPC connector as its only egress, no execution
+role, no idle policy (outbound traffic does not count as activity, §15), a maximum
+duration of 28,800 s, and x86_64, the runner's only release target.
+
+| Stage | What happens |
+| --- | --- |
+| **Launch** | The controller saves a launch intent with the exact request, then calls AWS with the attempt ID as client token. After a crash it replays the same request. |
+| **Enrol** | The `/run` hook gives the runner the bootstrap code. The runner generates its machine key and enrols (§5). |
+| **Run** | The instance dispatches the step over the normal runner stream. |
+| **Pause** | See the barrier below. |
+| **Resume** | See the barrier below. |
+| **Stop** | Close admission, fence publication, then obtain proof of the end: the runner's termination report or a terminal VM state. Then revoke tokens. The revoked runner row stays until its attempts, transfers and publications settle. |
+
+**The pause barrier.** Checking that nothing is running is not enough, because a
+dispatch could arrive straight afterwards.
+
+1. The instance marks the job `draining`, with a new pause generation, in the same
+ transaction that authorises step starts. Nothing new can start once it commits.
+2. The runner stops taking work, flushes reports and transfers, acknowledges
+ `quiescent` for that generation, and only then closes its stream.
+3. The controller suspends only on an acknowledgement for the current generation.
+ Without one within 2 minutes it cancels that generation and ignores any late
+ acknowledgement. Admission reopens only when the runner confirms it is taking work
+ again. If it cannot confirm, the VM is stopped and the attempt recovered.
+4. Resume carries an operation ID, so a retried call raises the epoch once.
+ Admission stays closed until the runner has replaced its tokens and resynced.
+
+**The 8-hour limit.** The deadline is launch time plus 8 hours and never moves.
+Suspended time counts.
+
+1. At 7 h 15 min the job enters `draining`.
+2. The runner sends a checkpoint: a pack of work in progress, acknowledged durably
+ by the primary, plus a notebook summary. Today's provider failover discards a
+ refused attempt's work, so checkpointing is new work in slice 4.
+3. A replacement starts only after the old VM is proven stopped. Publication is
+ fenced by attempt number, so a late push from the old attempt is refused.
+4. With no acknowledged checkpoint by 7 h 50 min, the VM is stopped and the step
+ retries from the last acknowledged state.
+
+## 4. Snapshots
+
+**The base image** is built from a pinned manifest: runner release, tool proxy,
+harness, toolchains and the pinned bubblewrap binary. It carries that binary
+itself, because Debian's current package no longer matches the pin.
+
+**A base image may never contain** tokens, bootstrap codes, provider keys, OAuth
+homes, forge credentials, machine keys, SSH keys, a person's configuration, or any
+repository or task output. The `/ready` hook fails the build unless the runner
+state directory is empty, and CI scans the image inputs for secrets. Unique values
+are generated in the `/run` hook, because AWS documents that VMs from one image
+version share build-time state.
+
+**A suspended VM's snapshot** holds one task's workspace and short-lived tokens. It
+never launches another VM and ends when the VM terminates.
+
+## 5. Task-scoped tokens
+
+| Token | Lifetime | Scope | Held by |
+| --- | --- | --- | --- |
+| Bootstrap code | 2 min, single use | One attempt and VM | `/run` payload |
+| Runner bearer | 1 h, renewable to the deadline | One job, worker role | Runner, outside the sandbox |
+| Gateway token | 15 min, renewable | One task, spend cap, allowed models | Runner, outside the sandbox |
+| Forge push token | 15 min, renewable | One repository and task branch | Not issued in slices 1 to 4 |
+
+**Issue.** The run payload crosses AWS's control plane, so it carries only the
+bootstrap code. The runner calls a new `POST /api/hosted/enrol` with the code, the
+VM's ID and a new public key. This replaces device-code approval and the 30-day
+credential for hosted runners.
+
+**Renewal while running.** The runner renews each token at half its lifetime and
+installs it atomically. Two code changes follow: `Link` must read the current bearer
+on each dial, because it copies it at startup today; and the harness must not hold
+the gateway token, because a 15-minute token cannot live in the launch environment
+of a 20-minute step. The harness calls a runner-side relay through its namespace
+socket, and the relay attaches the current token.
+
+**Renewal after resume.** Each resume raises the job's epoch. The `/resume` hook
+makes the runner sign the instance's challenge with its machine key and fetch new
+tokens for that epoch.
+
+**Revocation and its limits.** The epoch invalidates Equipo-issued tokens at once. A
+gateway token copied earlier stays usable until the gateway revokes it, within 60
+seconds (G1). A replacement attempt starts only after that revocation is acknowledged
+or the token has expired.
+
+**Forge pushes.** While a person has a personal primary, hosted workers return candidate
+packs and the primary publishes, as workers do today. The instance already refuses a
+worker that reports a push. The forge token is reserved for a later hosted primary.
+
+**No AWS credentials in the VM.** With an execution role, the metadata endpoint gave
+any process the role's temporary keys. Without one it returned only region and tags.
+With no role AWS forwards no runtime logs, so logs travel over the runner stream.
+
+## 6. Egress proxy and resolver
+
+```text
+VM -> VPC connector -> private subnet -> resolver and TLS proxy -> allowlisted hosts
+```
+
+**Network rules.** The private subnet has no internet route. The VM security group
+allows only TCP 443 and UDP 53 to the proxy. **`enableDnsSupport` is false on the
+VPC**, as a launch requirement: with it on, four managed resolvers answered any name
+and carried arbitrary data to an outside DNS server, and security groups do not
+filter them.
+
+**In the VM.** The root init unmounts the service-managed `/etc/resolv.conf` and
+`/etc/hosts`, writes files pointing at our resolver, and starts the runner as an
+unprivileged user who cannot change them.
+
+**The resolver** answers allowlisted names with the proxy's address and returns
+NXDOMAIN otherwise. **The proxy** reads the TLS SNI, refuses anything not
+allowlisted, resolves the name itself, refuses non-public addresses and connects to
+the real host. It does not terminate TLS.
+
+**Two proxies in series.** The runner's per-namespace proxy enforces each harness's
+hosts and refuses private addresses (`egress/proxy.go`), so it would refuse the
+resolver's answer. In the hosted profile, once its policy allows a host, it dials the
+fixed outer proxy address with the same SNI instead of resolving the name. The outer
+proxy checks again. The gateway also needs a route in `egress/policy.go`.
+
+**The allowlist** is the Equipo instance, gateway, forge and named package registries,
+one list per deployment. All VMs reach the proxy from one connector address, so it
+cannot apply per-VM rules by source address.
+
+**Known gap.** A task holding its own credential for an allowed registry or forge can
+still send data there, because SNI filtering cannot see the request (question 4).
+
+**Production shape.** Two proxies in two availability zones. The spike tested one.
+
+## 7. The `vm-boundary` containment profile
+
+The VM separates people. Bubblewrap still separates the agent's tools from the
+runner's tokens, using the same launch policy as personal runners.
+
+**The certified image has:**
+
+1. `additionalOsCapabilities: ["ALL"]`. With default capabilities bubblewrap cannot
+ mount `/proc`, and 51 of 79 containment tests fail.
+2. A root init that replaces the managed mounts, which otherwise stop the runner
+ overlaying `/etc`, and that reaps orphaned processes.
+3. The runner as an unprivileged user with no capabilities.
+4. The bubblewrap digest pinned in the release manifest.
+
+**Certification** is a release gate run in a real VM for each image digest. The full
+containment suite and the §14 egress matrix must pass, no AWS credential may be
+reachable, VPC DNS must be off, and the runner user must be unable to alter the
+resolver files or gain privileges. The gate signs the digest. The runner's hello
+reports profile and digest, and every hosted admission path refuses an uncertified
+digest, including checks with no special needs.
+
+**Test-suite fixes first:** `exited` must retry `poll` on `EINTR`; the two
+source-reading tests must run from the source tree; the delegated-cgroup test must
+skip where no user session exists (production containment does not use cgroups).
+
+## 8. Hosted and personal runners together
+
+- A hosted VM enrols as a **worker bound to one job**. `fits`, authorisation and
+ dispatch refuse it any other task, so it never joins the person's general pool.
+- The person's **primary stays their personal runner**. It must be online, because
+ it relays the candidate as a pack and alone publishes the result. Workers hold no
+ forge credential in any slice here, and slice 2 needs no model token either.
+- **Trigger:** a project setting, off by default, runs checks in a hosted VM. `place`
+ reads it before today's early return for checks with no special needs.
+- Starting, draining and suspended VMs are exempt from offline withdrawal. The step
+ shows a new `waiting_hosted` placement while its VM starts.
+
+**Slice 2 needs two changes to existing code.** `thin.Run` starts the worker loop only
+on a Mac or the test fake, so Linux needs a checks worker built on the containment
+manager, with namespace proof. The instance also accepts only `seatbelt` from a worker
+and taints anything else, so it must accept `bubblewrap` from a certified hosted runner.
+
+## 9. Connections
+
+| Connection | Hosted? | Why |
+| --- | --- | --- |
+| Claude or Codex subscription, `setup-token` | No | Subscription credentials stay on the person's machine |
+| A person's own API key | No in v1 | Keys stay out of VMs, and the gateway resells the operator's account |
+| Platform gateway through the Pi harness | Yes, once built | OpenAI-compatible, short-lived token |
+| Claude Code or Codex through the gateway | No | They need APIs the gateway does not serve |
+
+A person with only a subscription can use hosted checks. Their model work stays on
+their own runner.
+
+## 10. Cost, limits and failure
+
+**AWS rates for Ireland, x86_64:** 2 GB / 1 vCPU costs $0.155 an hour and 4 GB / 2 vCPU
+costs $0.310. A pause and resume costs $0.0057 per GB of snapshot. Use above baseline,
+up to 4x, costs extra.
+
+**Illustrative day for one active person, at baseline:**
+
+| Work | Cost |
+| --- | --- |
+| Three Engineering tasks, 45 min each at 2 GB | $0.35 |
+| Later coordinator at 4 GB: 40 turns of 2 min | $0.41 |
+| 40 pauses, assuming 4 GB written each time | $0.91 |
+| **Total** | **$1.67, about $37 for 22 working days** |
+
+AWS does not report snapshot size, so the pause figure is an assumption, and a VM that
+has burst could write more. Budgets must also count launch reads, image storage and
+data transfer. The shared proxies add roughly $35 a month.
+
+**Default limits per person,** enforced from slice 2: 2 running VMs, 8 VM-hours a day,
+$50 a month. At the limit, new work waits and says why. Confirm the applied account
+quota in the production account first. The dev account's is 2,048 GB of VM memory.
+
+| Failure | Response |
+| --- | --- |
+| Launch throttled | Back off and stay in `waiting_hosted` |
+| VM does not enrol in 2 min | Stop it, retry once, then fail with a reason |
+| VM stops or resume fails | Prove it stopped, then start a new attempt from the checkpoint |
+| Token renewal fails | Stop the VM; never run on stale tokens |
+| Proxy down | Steps wait; nothing falls back to open egress |
+| Controller down | Running VMs continue; launches wait |
+
+**Leaked VMs.** Every 60 seconds the controller compares `List` with its job table.
+
+- An incomplete `List` skips the pass.
+- An attempt with a live launch intent is left alone; the controller replays it first.
+- A VM with no matching job is stopped after 10 minutes, once ownership is rechecked.
+- A VM past its deadline is stopped.
+
+AWS's maximum duration is the backstop. A leaked 4 GB VM costs at most $2.48 at
+baseline, or $9.92 at sustained 4x.
+
+## 11. Observability
+
+The spike found no CloudWatch metrics for MicroVMs, so Equipo records its own.
+
+- **Metrics:** launch-to-enrolled and resume-to-ready time, jobs by state, VM-hours and
+ estimated cost per person, leaks stopped, renewal failures, proxy decisions.
+- **Logs and audit:** runner logs over the stream, proxy decisions by name, and every
+ lifecycle action with person, task and reason. CloudTrail data events stay on.
+- **Alerts:** a leaked VM, VPC DNS switched on, no healthy proxy, or daily spend above
+ twice the trailing average.
+
+## 12. The inference gateway dependency
+
+The gateway is designed but not built (`2026-09-21-platform-inference-design.md`,
+carlos/platform branch `design-platform-inference`). Carloku is the platform's
+flagship, so Equipo requests these from the platform instead of building its own:
+
+| Need | Today's design |
+| --- | --- |
+| **G1.** Per-task tokens minted by the app: 15 min at most, renewable, revoked within 60 s with an acknowledgement | One static bearer per app |
+| **G2.** A spend cap per token, with usage by person and task | Balance per account |
+| **G3.** A stable hostname reachable through our TLS-passthrough proxy | Needs confirming |
+| **G4.** Accepted fields that cover the Pi harness's requests | Strict parser, untested with Pi |
+| **G5.** A cut stream releases its hold correctly | Needs confirming |
+
+**Until it exists,** hosted VMs run no model work, model work stays on personal runners,
+Equipo builds no relay to a provider, and no provider key enters a VM or the controller.
+
+## 13. Rollout
+
+Each slice ships behind a flag.
+
+| Slice | Delivers | Depends on |
+| --- | --- | --- |
+| **1. Foundation** | Adapter, controller, image pipeline, egress stack, certification gate, reaper, in the dev account | Paul's approval |
+| **2. Hosted checks** | Checks in a bound VM, Linux worker, certified results, `waiting_hosted`, per-person limits | Slice 1 |
+| **3. Visibility** | Cost display and project controls | Slice 2 |
+| **4. Hosted Engineering** | Pi through the gateway, token relay, candidate packs back to the primary, checkpoint and handover | G1 to G5 |
+
+**A hosted coordinator is out of scope** and needs its own spec. Coordinator lanes run
+only Claude and Codex today, and a hosted primary needs defined authority over routing,
+connections and publication. It would also need a short-lived, branch-scoped forge
+token, which the forge's CLI does not offer today.
+
+## 14. Test plan
+
+- **Adapter contract:** one suite runs against the fake and the AWS implementation.
+- **Lifecycle simulation:** randomised launch, pause, resume, crash and expiry. Invariants:
+ one live VM per attempt, nothing starts while draining, no Equipo token survives its
+ epoch, no job outlives its deadline, and only one attempt publishes.
+- **Races:** dispatch during pause, crash between launch and saving the VM ID, lost stop
+ reply, late candidate from a replaced attempt, late acknowledgement of a cancelled pause.
+- **Tokens:** replayed code, wrong VM, old epoch and revoked renewal are refused. A step
+ runs past 15 minutes and 1 hour on renewed tokens.
+- **Egress matrix, in a real VM:** an allowed host works, including a sandboxed Pi request
+ through both proxies. A disallowed name, no SNI, direct IPv4 and IPv6, other proxy ports,
+ each managed resolver and metadata credentials all fail.
+- **Slice 2 end to end:** pack transfer, checks in the sandbox, certified report.
+- **Failure drills:** kill the controller and proxy, stop a VM mid-step, plant an orphan.
+- **Cost:** compare estimates with the first week's bill and real snapshot sizes.
+
+## 15. Spike findings
+
+Run on 2026-11-18 in Ireland, at 0.5 GB and x86_64, from oficina/equipo `449e9c14`.
+
+| Question | Result |
+| --- | --- |
+| Launch from a prepared image | 5 launches; first response at 2.3 to 3.2 s |
+| Image build; connector ready | About 2 min; about 4.5 min |
+| Real runner in the VM | `equipo-runner version` ran; not enrolled, no task |
+| Reach staging through the proxy | TLS 1.3, `/healthz` 200, runner stream with no credential 403 |
+| Suspend; resume | 2.0 to 4.0 s; 7 cycles, first response at 2.1 to 4.0 s |
+| State after resume | Memory, disk and a child process intact; clock within 12 ms |
+| Open connection after resume | **Dropped**, after 20 s and 200 s pauses; new connections work |
+| Disallowed name, no SNI | Refused by the proxy |
+| Direct IPv4, IPv6, other proxy ports | Timed out |
+| Source address seen by the proxy | One address for every VM |
+| Managed DNS, VPC DNS on | **Leaked** through four resolvers to an outside server |
+| Managed DNS, VPC DNS off | All four silent, on running and new VMs |
+| Metadata, no role | Region and tags only |
+| Metadata, with a role | **Returned the role's temporary credentials** |
+| Bubblewrap, default capabilities | Fails: cannot mount `/proc` |
+| Bubblewrap, `ALL` capabilities | Works, including nested; `--unshare-net` cuts the network |
+| Containment suite, final profile | **71 of 79 pass** |
+| Idle policy with outbound traffic only | **Suspended at about 70 s** |
+| No idle policy supplied | None applied; maximum duration defaults to 8 hours |
+| Maximum duration 60 s | Terminated at about 64 s; 28,801 s is rejected |
+
+**The 8 containment failures:** 5 need the codex binary, which the image left out; 2 read
+source files and fail the same way on a developer machine; 1 needs a systemd user session.
+`TestNamespaceParentDeath` passes only with the `EINTR` fix in §7, tried on a scratch copy.
+
+**Not proven:** real enrolment or a task in a VM; those 5 Engineering tests; snapshot size;
+an 8-hour run or long suspension; many VMs at once; proxy failover; the two-proxy path.
+
+**Spike cost:** estimated under $0.50, including the one-week minimum on image storage.
+Billing data had not arrived. **Teardown:** every resource was deleted and checked by type
+and by the purpose tag. AWS's tag index lagged; direct lookups confirmed the deletions.
+
+## 16. Questions only Paul can answer
+
+1. **Which AWS account hosts production VMs?** Recommendation: a new dedicated account,
+ separate from every existing production account.
+2. **What are the default limits per person?** Recommendation: 2 running VMs, 8 VM-hours a
+ day and $50 a month, which an owner can raise.
+3. **Should hosted checks ship before the gateway exists?** Recommendation: yes. They need
+ no model or forge token and prove the foundation.
+4. **Is the registry data-leak gap acceptable for v1?** Recommendation: accept it for a
+ team's own repositories, and require a read-only mirror before running untrusted code.
+5. **Should we request G1 to G5 from the platform now?** Recommendation: yes. They decide
+ when slice 4 can start.