oficina / equipo Public

awsjob: refuse malformed MicroVM IDs before they reach the logs

Ruling R36 (code review round 2). No microvmId syntax is documented, so
isolatedjob.Ref.Valid accepts 1 to 128 letters, digits and '-'. awsjob
refuses any other ID from RunMicrovm or GetMicrovm with a fixed error and
any ListMicrovms item with ErrIncomplete and no jobs, and refuses such
refs passed in. hostedctl's bounded runner checks every Ref again, so no
Ref it stores or logs can carry other text.

seen_before_restart now uses the reaper's rule, Restarted() and a first
sighting before OpenedAt(). The hostedctl budget record moves to
5313/8489 lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 6b7f6ee1ee3939c85c75785ff8bf48c195714d35 parent 0eb2e61
9 files changed, +293 −26
  • .rastrillo/budgets.txt +1 −1
  • docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md +34 −0
  • internal/hostedctl/bounded.go +28 −3
  • internal/hostedctl/logs.go +1 −1
  • internal/hostedctl/logs_test.go +102 −1
  • internal/isolatedjob/awsjob/doc.go +6 −1
  • internal/isolatedjob/awsjob/ids_test.go +76 −0
  • internal/isolatedjob/awsjob/runner.go +24 −19
  • internal/isolatedjob/isolatedjob.go +21 −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-1a: 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 2.9s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 4.0s
ci-box: file times set from content: 2908 files, 194 directories
ci-box: ready in 17.7s
=== 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.245s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.2s
+ go list -export -test -tags testbuild -f  ./...
  1.5s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-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 1m21.317s 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.687s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.69s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 32.74, cpu waiting 21.65%, memory waiting 0.00%, io waiting 1.23%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m23.422s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m21.763s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.76s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 32.74, cpu waiting 21.24%, memory waiting 0.00%, io waiting 1.19%
--- 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 1m24.726s 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.539s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.97s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.77s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.79s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 31.56, cpu waiting 20.71%, memory waiting 0.00%, io waiting 1.15%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m19.58s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.899s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.43s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.31s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.58s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.57s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 32.74, cpu waiting 21.95%, memory waiting 0.00%, io waiting 1.27%
--- 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 1m37.424s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m35.671s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.81s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.13s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.98s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.81s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.94s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 28.31, cpu waiting 17.31%, memory waiting 0.00%, io waiting 0.94%
--- 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 3m10.139s 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 3m7.991s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.66s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.14s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.56s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.14s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.35s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.87, cpu waiting 3.76%, memory waiting 0.00%, io waiting 0.19%
--- 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.138s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m1.624s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.31s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
machine: 32 CPUs, load 0.96, cpu waiting 0.65%, memory waiting 0.00%, io waiting 4.68%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 1.129s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m26.784s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 0.96, cpu waiting 0.65%, memory waiting 0.00%, io waiting 4.68%
--- 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 47.251s 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.156s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.12s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 34.68, cpu waiting 21.70%, memory waiting 0.00%, io waiting 2.17%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 47.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 45.745s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.83s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.39s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 34.68, cpu waiting 21.70%, memory waiting 0.00%, io waiting 2.17%
--- 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.998s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.134s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.24s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 22.36, cpu waiting 15.46%, memory waiting 0.00%, io waiting 2.66%
--- 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 16.30
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m4.885s 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.97s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.98s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.92s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.98s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.49s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.27s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
machine: 32 CPUs, load 28.31, cpu waiting 17.86%, memory waiting 0.00%, io waiting 0.97%
--- 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 28.2%, load 16.30
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.207s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m12.399s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.2s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.12s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.11s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.08s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 16.30, cpu waiting 12.25%, memory waiting 0.00%, io waiting 2.84%
--- 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 28.2%, load 16.30
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m15.834s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m3.929s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.9s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.94s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.93s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 9.89s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 6.88s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 27.23, cpu waiting 14.69%, memory waiting 0.00%, io waiting 0.79%
--- 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 28.2%, load 16.30
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 378ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m4.903s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.66s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.64s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.02s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 21.99s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 16.30, cpu waiting 11.38%, memory waiting 0.00%, io waiting 2.94%
--- 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 28.2%, load 16.30
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 436ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 48.756s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.21s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 16.30, cpu waiting 12.25%, memory waiting 0.00%, io waiting 2.84%
--- 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 16.30
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: 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/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 45.275s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 12.529s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/hostedctl took 13.719s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 39.84s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/release took 34.981s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 39.365s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.577s against a 60s target (the gate's other steps are not in this figure)
receipt: 18 packages ran, 49 cached, 20 without tests, 0 failed
receipt: slow package 52.23s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.379s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 45.275s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 39.84s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 39.365s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 32.06s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.16s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 14.99s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 12.47s amadan.net/oficina/equipo/internal/hostedctl TestLifecycleSimulation
receipt: slow test 10.89s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
machine: 32 CPUs, load 12.29, cpu waiting 5.43%, memory waiting 0.00%, io waiting 0.28%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

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

receipt: test step 1m32.427s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m30.608s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.1s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.4s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 14.07s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.96s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 29.91, cpu waiting 18.43%, memory waiting 0.00%, io waiting 1.00%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m40.001s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m38.446s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.02s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.29s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.95s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.25s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.01s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 29.17, cpu waiting 16.20%, memory waiting 0.00%, io waiting 0.88%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-23T10:35:43.971Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T10:35:43.971Z level=INFO msg="startup phase done" phase=state_lock took=212µs
time=2026-11-23T10:35:43.971Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T10:35:43.971Z level=INFO msg="startup phase done" phase=claim_roots took=185µs
time=2026-11-23T10:35:43.971Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T10:35:44.017Z level=INFO msg="startup phase done" phase=sweep took=45.423ms
time=2026-11-23T10:35:44.017Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T10:35:44.017Z level=INFO msg="startup phase done" phase=credentials took=195µs
time=2026-11-23T10:35:44.017Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T10:35:44.068Z level=INFO msg="startup phase done" phase=open_state took=50.531ms
time=2026-11-23T10:35:44.068Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T10:35:44.069Z level=INFO msg=connecting host=127.0.0.1:45411 protocol=28
time=2026-11-23T10:35:44.072Z level=INFO msg=connected host=127.0.0.1:45411 took=1.089ms
time=2026-11-23T10:35:44.072Z level=INFO msg="capabilities gathering"
time=2026-11-23T10:35:44.074Z level=INFO msg="capabilities gathered" took=1.245ms tags=linux,claude,go
time=2026-11-23T10:35:44.074Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T10:35:44.079Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.18s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-23T10:36:18.685Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T10:36:18.685Z level=INFO msg="startup phase done" phase=state_lock took=138µs
time=2026-11-23T10:36:18.685Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T10:36:18.685Z level=INFO msg="startup phase done" phase=claim_roots took=133µs
time=2026-11-23T10:36:18.685Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T10:36:18.716Z level=INFO msg="startup phase done" phase=sweep took=30.785ms
time=2026-11-23T10:36:18.716Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T10:36:18.716Z level=INFO msg="startup phase done" phase=credentials took=122µs
time=2026-11-23T10:36:18.716Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T10:36:18.758Z level=INFO msg="startup phase done" phase=open_state took=41.902ms
time=2026-11-23T10:36:18.758Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T10:36:18.760Z level=INFO msg=connecting host=127.0.0.1:35203 protocol=28
time=2026-11-23T10:36:18.760Z level=INFO msg=connected host=127.0.0.1:35203 took=873µs
time=2026-11-23T10:36:18.761Z level=INFO msg="capabilities gathering"
time=2026-11-23T10:36:18.761Z level=INFO msg="capabilities gathered" took=437µs tags=linux,claude,go
time=2026-11-23T10:36:18.762Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T10:36:18.766Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-23T10:36:19.748Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (5.79s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m30.838s
FAIL	amadan.net/oficina/equipo/internal/headless	91.125s


receipt: test step 1m32.141s 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 1m30.838s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.13s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.69s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.52s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.28s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.1s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
rastrillo: budget test: go test failed
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 6b7f6ee1ee3939c85c75785ff8bf48c195714d35 6.18s 29.91
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 6b7f6ee1ee3939c85c75785ff8bf48c195714d35 5.79s 29.91
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 27.23, cpu waiting 15.18%, memory waiting 0.00%, io waiting 0.82%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

receipt: test step 1.043s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 573ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 570ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 814ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.673s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.67s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test

receipt: test step 193ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.856s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.86s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

receipt: test step 1.2s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m20.199s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 6.01, cpu waiting 2.28%, memory waiting 0.00%, io waiting 4.38%
--- 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   (54s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.35s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.38s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.52s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.41s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.00s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (56s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.38s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.90s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.66s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.72s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 20.73s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 34.63, cpu waiting 22.62%, memory waiting 0.00%, io waiting 1.90%
--- 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.351s 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.13s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 205ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 104ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.72s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms 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.186s 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.881s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
machine: 32 CPUs, load 7.69, cpu waiting 4.55%, memory waiting 0.00%, io waiting 3.97%
--- 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 28.2%, load 16.30
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2621 text files, 2854 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 96 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.469s
machine: 32 CPUs, load 34.68, cpu waiting 21.12%, memory waiting 0.00%, io waiting 2.25%
--- 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 28.2%, load 16.30
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 16.30, cpu waiting 13.68%, memory waiting 0.00%, io waiting 2.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 28.2%, load 16.30
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 22.36, cpu waiting 16.89%, memory waiting 0.00%, io waiting 2.57%
--- 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 28.2%, load 16.30
shard 28: make gitleaks
10:35AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:35AM INF 1152 commits scanned.
10:35AM INF scanned ~62463577 bytes (62.46 MB) in 13.7s
10:35AM INF no leaks found
machine: 32 CPUs, load 30.82, cpu waiting 20.31%, memory waiting 0.00%, io waiting 2.32%
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 63f79737..c5808990 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -76,4 +76,4 @@ size internal/thintest - 33399 Fable follow-up gates, preview isolation and prov
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
perf GET /api/v1/advice skip Thin v1 person API: bearer-only JSON for devices; the browser reads advice through /usage and /conversation.
-size internal/hostedctl 5288 8388 Hosted controller core plus its lifecycle simulation; split planned for slice 1b; measured 5288/8388 source/test lines after the Task 17 pre-flight operator logs.
+size internal/hostedctl 5313 8489 Hosted controller core plus its lifecycle simulation; split planned for slice 1b; measured 5313/8489 source/test lines after the Task 17 pre-flight review rounds (R36 ref checks).
diff --git a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
index 7f5ceaf9..3ca5230d 100644
--- a/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE1-PROGRESS.md
@@ -1138,3 +1138,37 @@ Offline preparation for the live check; no AWS call was made. The live pieces co
| `crashRecover` registers its guard after reading the operator key | `go test ./internal/hostedclient -run 'TestDriverRecover' -count=1` | `driver_offline_test.go:149: Get(rec-1) = starting, <nil>; want stopped` | yes, passes |
| `retryableStop` no longer retries `ErrTransport` | `go test ./internal/hostedclient -run 'TestDriverStopRetriesTransport' -count=1` | `driver_offline_test.go:166: cleanup made 1 calls, want the two failures and a retry` | yes, passes |
| Epoch check expects no rise (`running.Epoch+0`) | `go test ./internal/hostedclient -run 'TestDriverSequenceOffline' -count=1` | `driver_offline_test.go:95: sequence = Resume gave epoch 1, want 1: one resume raises the epoch by one` (the message prints the unmutated expectation) | yes, passes |
+
+### Code review round 2 (t17-code-r2-review.md): R36 and seen_before_restart
+
+- `isolatedjob.Ref.Valid`: 1 to 128 letters, digits and '-'. Neither the API reference nor the SDK
+ documents a syntax for `microvmId`, so ruling R36's fallback applies.
+- awsjob rejects an ID that fails the check:
+ - RunMicrovm: a fixed error;
+ - GetMicrovm: a fixed error;
+ - any ListMicrovms item: `ErrIncomplete` with no jobs;
+ - a malformed ref passed to Get, Suspend, Resume or Stop: `ErrInvalid` before any provider call.
+ No error quotes the ID. doc.go records it.
+- hostedctl's `boundedRunner`, the one way runner answers reach the controller, checks every Ref
+ again. A Launch with a bad Ref becomes a provider failure, so the intent stays waiting with no
+ Ref. A bad Get becomes an error, and a List holding one becomes `ErrIncomplete`. So no stored or
+ logged Ref can carry other text.
+- `seen_before_restart` is now `Restarted() && firstSeen < OpenedAt()`, the reaper's own rule.
+- Tests:
+ - `TestMalformedIDsRefused` (awsjob): a sentinel ID, a 129-character one, `vm/1` and a trailing
+ newline, each on Run, Get and List, and malformed refs passed in;
+ - `TestMalformedRefsNeverStoredOrLogged` (hostedctl): Launch, Get and List with a sentinel ref;
+ no job ref, unmatched VM, audit row, log line or error holds it;
+ - `TestControllerLogs` gains an orphan first seen before a restart and stopped more than the grace
+ later (`seen_before_restart=true`), and the plain case says `false`.
+- Budget: hostedctl record moved to 5313/8489.
+- Runs:
+ - hostedctl 7.3 s and 6.7 s (budget 10 s);
+ - awsjob, isolatedjob, hostedclient and the controller command ok;
+ - tagged vets, `make build vet`, `make budget`, the Task 7 guard.
+
+| Mutation | Command | Observed failure | Restored |
+| --- | --- | --- | --- |
+| awsjob checks only for an empty ID again (no validation) | `go test ./internal/isolatedjob/awsjob -run TestMalformedIDsRefused -count=1` | `ids_test.go:36: Launch with id "vm-1 SENTINEL-secret=hunter2" = ("vm-1 SENTINEL-secret=hunter2", <nil>), want an error and no ref` (and the Get and List rows) | yes, passes |
+| hostedctl boundary checks only for an empty Ref | `go test ./internal/hostedctl -run TestMalformedRefsNeverStoredOrLogged -count=1` | `logs_test.go:94: Launch answered with a malformed ref = nil error, want a provider failure` | yes, passes |
+| `seen_before_restart` back to `now-firstSeen < OrphanGrace` | `go test ./internal/hostedctl -run TestControllerLogs -count=1` | `logs_test.go:160: no log line holds [... "seen_before_restart=true"]` | yes, passes |
diff --git a/internal/hostedctl/bounded.go b/internal/hostedctl/bounded.go
index 2aafdb8d..c51fdb5d 100644
--- a/internal/hostedctl/bounded.go
+++ b/internal/hostedctl/bounded.go
@@ -2,6 +2,8 @@ package hostedctl
import (
"context"
+ "errors"
+ "fmt"
"amadan.net/oficina/equipo/internal/isolatedjob"
)
@@ -14,16 +16,30 @@ import (
// context of its own.
type boundedRunner struct{ r isolatedjob.Runner }
+// Every Ref a runner hands back is checked with isolatedjob.Ref.Valid here,
+// the one way into the controller, so no Ref it stores or logs can carry
+// other text (ruling R36). A Launch with a bad Ref is a provider failure; a
+// List holding one is incomplete.
+var errBadRef = errors.New("hostedctl: the runner returned a malformed VM ref")
+
func (b boundedRunner) Launch(ctx context.Context, s isolatedjob.LaunchSpec) (isolatedjob.Ref, error) {
ctx, cancel := context.WithTimeout(ctx, ProviderLaunchTimeout)
defer cancel()
- return b.r.Launch(ctx, s)
+ ref, err := b.r.Launch(ctx, s)
+ if err == nil && !ref.Valid() {
+ return "", errBadRef
+ }
+ return ref, err
}
func (b boundedRunner) Get(ctx context.Context, ref isolatedjob.Ref) (isolatedjob.Job, error) {
ctx, cancel := context.WithTimeout(ctx, ProviderCallTimeout)
defer cancel()
- return b.r.Get(ctx, ref)
+ j, err := b.r.Get(ctx, ref)
+ if err == nil && !j.Ref.Valid() {
+ return isolatedjob.Job{}, errBadRef
+ }
+ return j, err
}
func (b boundedRunner) Suspend(ctx context.Context, ref isolatedjob.Ref) error {
@@ -47,7 +63,16 @@ func (b boundedRunner) Stop(ctx context.Context, ref isolatedjob.Ref, reason str
func (b boundedRunner) List(ctx context.Context) ([]isolatedjob.Job, error) {
ctx, cancel := context.WithTimeout(ctx, ProviderCallTimeout)
defer cancel()
- return b.r.List(ctx)
+ jobs, err := b.r.List(ctx)
+ if err != nil {
+ return nil, err
+ }
+ for _, j := range jobs {
+ if !j.Ref.Valid() {
+ return nil, fmt.Errorf("%w: %w", isolatedjob.ErrIncomplete, errBadRef)
+ }
+ }
+ return jobs, nil
}
func (b boundedRunner) Limits() isolatedjob.Limits { return b.r.Limits() }
diff --git a/internal/hostedctl/logs.go b/internal/hostedctl/logs.go
index 2cc2b25a..5dad5d6f 100644
--- a/internal/hostedctl/logs.go
+++ b/internal/hostedctl/logs.go
@@ -17,7 +17,7 @@ import (
func (c *Controller) logOrphanStopped(o orphan, now T) {
c.log.Info("hosted controller: orphan VM stopped",
"vm_ref", string(o.ref), "first_seen_ns", int64(o.firstSeen), "unclaimed_for", time.Duration(now-o.firstSeen),
- "grace", OrphanGrace, "seen_before_restart", now-o.firstSeen < T(OrphanGrace))
+ "grace", OrphanGrace, "seen_before_restart", c.store.Restarted() && o.firstSeen < c.store.OpenedAt())
}
func (c *Controller) logOrphanStopFailed(o orphan) {
diff --git a/internal/hostedctl/logs_test.go b/internal/hostedctl/logs_test.go
index 85cde8cc..cb8cff5a 100644
--- a/internal/hostedctl/logs_test.go
+++ b/internal/hostedctl/logs_test.go
@@ -2,6 +2,7 @@ package hostedctl
import (
"bytes"
+ "context"
"errors"
"strings"
"sync"
@@ -45,6 +46,86 @@ func (e *launchEnv) wantLog(parts ...string) {
e.t.Fatalf("no log line holds %q; the log:\n%s", parts, all)
}
+// badRefs is the fake provider answering with a malformed VM ref carrying
+// sentinel text, on Launch, Get or List as set.
+type badRefs struct {
+ *isolatedjob.Fake
+ launch, get, list bool
+}
+
+const badRef = isolatedjob.Ref("vm-1 SENTINEL-secret=hunter2")
+
+func (b *badRefs) Launch(ctx context.Context, s isolatedjob.LaunchSpec) (isolatedjob.Ref, error) {
+ ref, err := b.Fake.Launch(ctx, s)
+ if b.launch && err == nil {
+ return badRef, nil
+ }
+ return ref, err
+}
+
+func (b *badRefs) Get(ctx context.Context, ref isolatedjob.Ref) (isolatedjob.Job, error) {
+ j, err := b.Fake.Get(ctx, ref)
+ if b.get && err == nil {
+ j.Ref = badRef
+ }
+ return j, err
+}
+
+func (b *badRefs) List(ctx context.Context) ([]isolatedjob.Job, error) {
+ jobs, err := b.Fake.List(ctx)
+ if b.list && err == nil {
+ jobs = append(jobs, isolatedjob.Job{Ref: badRef, State: isolatedjob.StateRunning})
+ }
+ return jobs, err
+}
+
+// TestMalformedRefsNeverStoredOrLogged (ruling R36): a runner reply whose
+// VM ref fails Ref.Valid is refused where it enters the controller, so the
+// ref reaches no job row, unmatched VM, audit row, log line or error.
+func TestMalformedRefsNeverStoredOrLogged(t *testing.T) {
+ t.Parallel()
+ e := newLaunchEnv(t)
+ bad := &badRefs{Fake: e.fake, launch: true}
+ e.run = bad
+ e.newController()
+ e.audit()
+ var errs []error
+ if _, err := e.c.Launch(e.ctx, "inst-1", instKey, request("att-1")); err == nil {
+ t.Fatal("Launch answered with a malformed ref = nil error, want a provider failure")
+ } else {
+ errs = append(errs, err)
+ }
+ if j, _ := e.job("att-1"); j.ref.Valid || j.state != JobWaiting {
+ t.Fatalf("att-1 after a malformed launch reply: ref %v state %s, want no ref and %s", j.ref, j.state, JobWaiting)
+ }
+
+ bad.launch, bad.get, bad.list = false, true, true
+ e.launchWith("att-2", 2*time.Hour)
+ _, err := e.c.Reap(e.ctx)
+ errs = append(errs, err, e.c.Refresh(e.ctx))
+ if _, err := e.c.ListVMs(e.ctx); !errors.Is(err, isolatedjob.ErrIncomplete) {
+ t.Errorf("ListVMs with a malformed ref listed = %v, want ErrIncomplete", err)
+ } else {
+ errs = append(errs, err)
+ }
+ if u := e.unmatched(); len(u) != 0 {
+ t.Errorf("unmatched_vms = %v, want nothing recorded from a list holding a malformed ref", u)
+ }
+ for _, err := range errs {
+ if err != nil && strings.Contains(err.Error(), "SENTINEL") {
+ t.Errorf("error %q quotes the malformed ref", err)
+ }
+ }
+ for _, a := range auditRows(t, e.store) {
+ if strings.Contains(a.Reason, "SENTINEL") {
+ t.Errorf("audit row %+v quotes the malformed ref", a)
+ }
+ }
+ if strings.Contains(e.logs.String(), "SENTINEL") {
+ t.Errorf("the log quotes the malformed ref:\n%s", e.logs)
+ }
+}
+
// TestControllerLogs: the records the Task 17 live check reads (round 1 of
// its code review) appear, at info, with fixed messages and no provider text.
func TestControllerLogs(t *testing.T) {
@@ -56,7 +137,27 @@ func TestControllerLogs(t *testing.T) {
e.reap()
e.clk.AdvanceMono(OrphanGrace)
e.reap()
- e.wantLog("level=INFO", `msg="hosted controller: orphan VM stopped"`, "vm_ref="+string(stray), "first_seen_ns=", "grace=10m0s")
+ e.wantLog("level=INFO", `msg="hosted controller: orphan VM stopped"`, "vm_ref="+string(stray), "first_seen_ns=", "grace=10m0s",
+ "seen_before_restart=false")
+ })
+ t.Run("orphan seen before a restart", func(t *testing.T) {
+ t.Parallel()
+ e := newLaunchEnv(t)
+ stray := e.plant("stray-1")
+ e.reap()
+ e.clk.AdvanceMono(time.Minute)
+ e.down()
+ e.up()
+ e.clk.AdvanceMono(time.Second)
+ // The first stop after the restart fails, so the one that lands
+ // comes more than the grace after the sighting: the record must
+ // still say the sighting predates the restart.
+ e.fake.Inject(isolatedjob.OpStop, isolatedjob.FaultThrottle)
+ _, _ = e.c.Reap(e.ctx)
+ e.wantLog(`msg="hosted controller: orphan VM stop call failed; sent again next pass"`, "vm_ref="+string(stray))
+ e.clk.AdvanceMono(OrphanGrace)
+ e.reap()
+ e.wantLog(`msg="hosted controller: orphan VM stopped"`, "vm_ref="+string(stray), "seen_before_restart=true")
})
t.Run("orphan deferred", func(t *testing.T) {
t.Parallel()
diff --git a/internal/isolatedjob/awsjob/doc.go b/internal/isolatedjob/awsjob/doc.go
index 71aac08f..ba5f3395 100644
--- a/internal/isolatedjob/awsjob/doc.go
+++ b/internal/isolatedjob/awsjob/doc.go
@@ -116,7 +116,12 @@
// carry microvmId, imageArn, imageVersion, startedAt and state, with no tags
// or client token. Source:
// https://docs.aws.amazon.com/lambda/latest/microvm-api/API_ListMicrovms.html
-// The SDK (lambdamicrovms v1.13.0) names the image filter ImageIdentifier.
+// Neither the API reference nor the SDK (lambdamicrovms v1.13.0) gives a
+// syntax for microvmId, so the adapter accepts only what
+// isolatedjob.Ref.Valid does, 1 to 128 letters, digits and '-' (ruling
+// R36), from RunMicrovm, GetMicrovm and every ListMicrovms item, and
+// refuses anything else with fixed text.
+// The SDK names the image filter ImageIdentifier.
// Runner.List sends it once per configured image ARN and also drops any item
// whose imageArn differs (ruling R32), as an account may hold other
// people's VMs, which the reaper must never take for orphans. That the
diff --git a/internal/isolatedjob/awsjob/ids_test.go b/internal/isolatedjob/awsjob/ids_test.go
new file mode 100644
index 00000000..0ce12dea
--- /dev/null
+++ b/internal/isolatedjob/awsjob/ids_test.go
@@ -0,0 +1,76 @@
+package awsjob
+
+import (
+ "context"
+ "errors"
+ "strings"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/isolatedjob"
+ "github.com/aws/aws-sdk-go-v2/aws"
+ vms "github.com/aws/aws-sdk-go-v2/service/lambdamicrovms"
+ "github.com/aws/aws-sdk-go-v2/service/lambdamicrovms/types"
+)
+
+// sentinelID is a provider "ID" carrying text that must never reach an
+// error or a log.
+const sentinelID = "vm-1 SENTINEL-secret=hunter2"
+
+// TestMalformedIDsRefused (ruling R36): an ID that is not 1 to 128 letters,
+// digits and '-' is refused on every path that reads one, with text that
+// never quotes it.
+func TestMalformedIDsRefused(t *testing.T) {
+ for _, id := range []string{sentinelID, strings.Repeat("a", isolatedjob.MaxRefLen+1), "vm/1", "vm-1\n"} {
+ quoted := func(t *testing.T, err error) {
+ t.Helper()
+ if err != nil && (strings.Contains(err.Error(), "SENTINEL") || strings.Contains(err.Error(), id)) {
+ t.Errorf("error %q quotes the malformed id", err)
+ }
+ }
+ t.Run("run "+id[:min(len(id), 12)], func(t *testing.T) {
+ s := &stub{run: func(*vms.RunMicrovmInput) (*vms.RunMicrovmOutput, error) {
+ return &vms.RunMicrovmOutput{MicrovmId: aws.String(id), State: types.MicrovmStatePending}, nil
+ }}
+ ref, err := newTestRunner(t, s).Launch(context.Background(), testSpec())
+ if err == nil || ref != "" {
+ t.Fatalf("Launch with id %q = (%q, %v), want an error and no ref", id, ref, err)
+ }
+ quoted(t, err)
+ })
+ t.Run("get "+id[:min(len(id), 12)], func(t *testing.T) {
+ s := &stub{get: func(*vms.GetMicrovmInput) (*vms.GetMicrovmOutput, error) {
+ return &vms.GetMicrovmOutput{MicrovmId: aws.String(id), State: types.MicrovmStateRunning}, nil
+ }}
+ job, err := newTestRunner(t, s).Get(context.Background(), "vm-1")
+ if err == nil || job.Ref != "" {
+ t.Fatalf("Get answered with id %q = (%+v, %v), want an error", id, job, err)
+ }
+ quoted(t, err)
+ })
+ t.Run("list "+id[:min(len(id), 12)], func(t *testing.T) {
+ s := &stub{list: func(*vms.ListMicrovmsInput) (*vms.ListMicrovmsOutput, error) {
+ return &vms.ListMicrovmsOutput{Items: []types.MicrovmItem{
+ {MicrovmId: aws.String("vm-ok"), ImageArn: aws.String(testImageARN), State: types.MicrovmStateRunning},
+ {MicrovmId: aws.String(id), ImageArn: aws.String(testImageARN), State: types.MicrovmStateRunning},
+ }}, nil
+ }}
+ jobs, err := newTestRunner(t, s).List(context.Background())
+ if !errors.Is(err, isolatedjob.ErrIncomplete) || jobs != nil {
+ t.Fatalf("List holding id %q = (%d jobs, %v), want no jobs and ErrIncomplete", id, len(jobs), err)
+ }
+ quoted(t, err)
+ })
+ }
+ // A malformed ref handed in is refused before any provider call.
+ s := &stub{}
+ r := newTestRunner(t, s)
+ if _, err := r.Get(context.Background(), sentinelID); !errors.Is(err, isolatedjob.ErrInvalid) || strings.Contains(err.Error(), "SENTINEL") {
+ t.Errorf("Get(malformed ref) = %v, want ErrInvalid without the ref", err)
+ }
+ if err := r.Stop(context.Background(), sentinelID, "x"); !errors.Is(err, isolatedjob.ErrInvalid) {
+ t.Errorf("Stop(malformed ref) = %v, want ErrInvalid", err)
+ }
+ if n := s.count("GetMicrovm") + s.count("TerminateMicrovm"); n != 0 {
+ t.Errorf("%d provider calls for malformed refs, want none", n)
+ }
+}
diff --git a/internal/isolatedjob/awsjob/runner.go b/internal/isolatedjob/awsjob/runner.go
index 9fbc9793..052b5bdb 100644
--- a/internal/isolatedjob/awsjob/runner.go
+++ b/internal/isolatedjob/awsjob/runner.go
@@ -254,11 +254,12 @@ func (r *Runner) Launch(ctx context.Context, s isolatedjob.LaunchSpec) (isolated
if err != nil {
return "", mapErr("run", err)
}
- id := aws.ToString(out.MicrovmId)
- if id == "" {
- return "", fmt.Errorf("awsjob: run %s: the reply has no microvm id", s.AttemptID)
+ id := isolatedjob.Ref(aws.ToString(out.MicrovmId))
+ if !id.Valid() {
+ // The text is fixed: a malformed ID is never echoed (R36).
+ return "", fmt.Errorf("awsjob: run %s: the reply's microvm id is missing or malformed", s.AttemptID)
}
- return isolatedjob.Ref(id), nil
+ return id, nil
}
// checkImageVersion reads the image version once and refuses it unless it
@@ -313,23 +314,26 @@ func memories(rs []types.Resources) []int32 {
// Get reads one VM.
func (r *Runner) Get(ctx context.Context, ref isolatedjob.Ref) (isolatedjob.Job, error) {
- if ref == "" {
- return isolatedjob.Job{}, fmt.Errorf("%w: empty ref", isolatedjob.ErrInvalid)
+ if !ref.Valid() {
+ return isolatedjob.Job{}, fmt.Errorf("%w: empty or malformed ref", isolatedjob.ErrInvalid)
}
out, err := r.api.GetMicrovm(ctx, &vms.GetMicrovmInput{MicrovmIdentifier: aws.String(string(ref))})
if err != nil {
return isolatedjob.Job{}, mapErr("get", err)
}
- if id := aws.ToString(out.MicrovmId); id != "" {
- ref = isolatedjob.Ref(id)
+ if id := isolatedjob.Ref(aws.ToString(out.MicrovmId)); id != "" {
+ if !id.Valid() {
+ return isolatedjob.Job{}, errors.New("awsjob: get: the reply's microvm id is malformed")
+ }
+ ref = id
}
return job(ref, out.State, out.StateReason, out.StartedAt, out.ResultMetadata), nil
}
// Suspend asks AWS to suspend the VM.
func (r *Runner) Suspend(ctx context.Context, ref isolatedjob.Ref) error {
- if ref == "" {
- return fmt.Errorf("%w: empty ref", isolatedjob.ErrInvalid)
+ if !ref.Valid() {
+ return fmt.Errorf("%w: empty or malformed ref", isolatedjob.ErrInvalid)
}
_, err := r.api.SuspendMicrovm(ctx, &vms.SuspendMicrovmInput{MicrovmIdentifier: aws.String(string(ref))})
return mapErr("suspend", err)
@@ -339,8 +343,8 @@ func (r *Runner) Suspend(ctx context.Context, ref isolatedjob.Ref) error {
// suspended with a ConflictException; Resume then reads the VM once and
// returns nil only if it is running, so resuming a running VM is a no-op.
func (r *Runner) Resume(ctx context.Context, ref isolatedjob.Ref) error {
- if ref == "" {
- return fmt.Errorf("%w: empty ref", isolatedjob.ErrInvalid)
+ if !ref.Valid() {
+ return fmt.Errorf("%w: empty or malformed ref", isolatedjob.ErrInvalid)
}
_, err := r.api.ResumeMicrovm(ctx, &vms.ResumeMicrovmInput{MicrovmIdentifier: aws.String(string(ref))})
var conflict *types.ConflictException
@@ -360,8 +364,8 @@ func (r *Runner) Resume(ctx context.Context, ref isolatedjob.Ref) error {
// Stop terminates the VM. AWS has no field for the reason, so it is not
// sent. A VM AWS no longer knows is already gone, which is success.
func (r *Runner) Stop(ctx context.Context, ref isolatedjob.Ref, reason string) error {
- if ref == "" {
- return fmt.Errorf("%w: empty ref", isolatedjob.ErrInvalid)
+ if !ref.Valid() {
+ return fmt.Errorf("%w: empty or malformed ref", isolatedjob.ErrInvalid)
}
_, err := r.api.TerminateMicrovm(ctx, &vms.TerminateMicrovmInput{MicrovmIdentifier: aws.String(string(ref))})
if err = mapErr("terminate", err); errors.Is(err, isolatedjob.ErrNotFound) {
@@ -379,7 +383,8 @@ const listPageSize = 50
// is not the ARN asked for is dropped, so a VM from another image is never
// returned even if the filter were ignored; the account may be shared, and
// the reaper stops listed VMs no job owns. If any page fails, repeats a
-// token or holds a VM with no ID, List returns no jobs and an error wrapping
+// token or holds a VM whose ID is missing or fails isolatedjob.Ref.Valid
+// (R36), List returns no jobs and an error wrapping
// isolatedjob.ErrIncomplete.
func (r *Runner) List(ctx context.Context) ([]isolatedjob.Job, error) {
var jobs []isolatedjob.Job
@@ -418,11 +423,11 @@ func (r *Runner) listImage(ctx context.Context, arn string) ([]isolatedjob.Job,
if aws.ToString(it.ImageArn) != arn {
continue
}
- id := aws.ToString(it.MicrovmId)
- if id == "" {
- return nil, fmt.Errorf("%w: list image %s page %d holds a VM with no id", isolatedjob.ErrIncomplete, arn, page)
+ id := isolatedjob.Ref(aws.ToString(it.MicrovmId))
+ if !id.Valid() {
+ return nil, fmt.Errorf("%w: list image %s page %d holds a VM with a missing or malformed id", isolatedjob.ErrIncomplete, arn, page)
}
- jobs = append(jobs, job(isolatedjob.Ref(id), it.State, nil, it.StartedAt, out.ResultMetadata))
+ jobs = append(jobs, job(id, it.State, nil, it.StartedAt, out.ResultMetadata))
}
next := aws.ToString(out.NextToken)
if next == "" {
diff --git a/internal/isolatedjob/isolatedjob.go b/internal/isolatedjob/isolatedjob.go
index 9118ec83..66478c29 100644
--- a/internal/isolatedjob/isolatedjob.go
+++ b/internal/isolatedjob/isolatedjob.go
@@ -31,6 +31,27 @@ type Runner interface {
// Ref is the provider's identifier for one VM.
type Ref string
+// MaxRefLen is the longest Ref Valid accepts.
+const MaxRefLen = 128
+
+// Valid reports whether r is 1 to MaxRefLen letters, digits and '-' (ruling
+// R36). A provider's ID is checked with it before it is used, stored or
+// logged, so a malformed reply can never carry other text into the
+// controller's records.
+func (r Ref) Valid() bool {
+ if len(r) == 0 || len(r) > MaxRefLen {
+ return false
+ }
+ for i := 0; i < len(r); i++ {
+ switch c := r[i]; {
+ case c >= 'a' && c <= 'z', c >= 'A' && c <= 'Z', c >= '0' && c <= '9', c == '-':
+ default:
+ return false
+ }
+ }
+ return true
+}
+
// ImageDigest names a certified base image: "sha256:" and 64 lower-case hex
// digits.
type ImageDigest string