oficina / equipo Public

Merge origin/main into specialists-slice-1

claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 3c4f05784d07578b690402a0c4f54de4632b4cf1 parent 1917380parent 8bd40ed
5 files changed, +208 −4
  • internal/stagingtest/checks.go +27 −0
  • internal/stagingtest/checks_test.go +36 −0
  • internal/stagingtest/setup_test.go +28 −3
  • scripts/staging-thin-test.py +58 −1
  • scripts/staging-thin.py +59 −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/specialists-slice-1: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.4s
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 10.0s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.0s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 4.8s
ci-box: file times set from content: 3285 files, 213 directories
ci-box: ready in 18.1s
=== 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.143s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.4s
+ go list -export -test -tags testbuild -f  ./...
  1.2s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  1.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-24 15:56:00 +0000 UTC

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

receipt: test step 1m10.581s 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 1m8.962s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.96s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 41.58, cpu waiting 23.93%, memory waiting 0.00%, io waiting 0.62%
--- 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

receipt: test step 1m9.924s 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 1m8.189s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.19s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 41.58, cpu waiting 23.79%, memory waiting 0.00%, io waiting 0.64%
--- 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

receipt: test step 1m9.517s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.717s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.25s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.51s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 3.96s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 41.98, cpu waiting 23.79%, memory waiting 0.00%, io waiting 0.64%
--- 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

receipt: test step 1m7.722s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.058s amadan.net/oficina/equipo/internal/headless
receipt: slow test 31.03s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 17.21s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.95s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.86s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 41.98, cpu waiting 23.68%, memory waiting 0.00%, io waiting 0.67%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

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

receipt: test step 2m47.767s 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 2m45.977s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m30.48s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 19.99s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.01s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.99s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 15.60, cpu waiting 5.92%, memory waiting 0.00%, io waiting 0.12%
--- 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 435ms 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 2m16.095s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.1s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.82s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.94s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.94s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.78s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 10.86, cpu waiting 0.00%, memory waiting 0.00%, io waiting 2.03%
--- 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 451ms 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 1m53.03s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.41s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.92s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.48s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.98s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 10.86, cpu waiting 0.00%, memory waiting 0.00%, io waiting 2.03%
--- 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 5m4.154s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m18.275s 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 5m4.154s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.04s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.84s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.8s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.87s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 1.77, cpu waiting 0.48%, memory waiting 0.00%, io waiting 0.03%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

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

receipt: test step 48.406s 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.471s amadan.net/oficina/equipo/internal/runner
receipt: slow test 36.5s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 32.38s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.37s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.58s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 38.06, cpu waiting 23.33%, memory waiting 0.00%, io waiting 0.93%
--- 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 35.176s 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.303s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.4s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.1s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.48s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 27.93, cpu waiting 16.78%, memory waiting 0.00%, io waiting 1.14%
--- 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 31.2%, load 24.36
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        docs/superpowers/plans/2026-11-28-dynamic-specialists-slice-1.md:109:5: unclassified equipo-runner
        docs/superpowers/plans/CONTROLLER-BRIEF-specialists-slice-1.md:84:25: unclassified Paseo
        docs/superpowers/specs/2026-11-28-dynamic-specialists.md:224:15: unclassified equipo-runner
        reference scan: 2997 text files, 3232 matches, 3 failures
--- FAIL: TestDirectDeadReferencesRepository (2.24s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m7.36s
FAIL	amadan.net/oficina/equipo/internal/equipotest	67.693s


receipt: test step 1m9.464s 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 1m7.36s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 30.34s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 30.3s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 28.16s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 25.42s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 25.2s amadan.net/oficina/equipo/internal/equipotest TestAuthorityReadsOneSnapshot
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        docs/superpowers/plans/2026-11-28-dynamic-specialists-slice-1.md:109:5: unclassified equipo-runner
        docs/superpowers/plans/CONTROLLER-BRIEF-specialists-slice-1.md:84:25: unclassified Paseo
        docs/superpowers/specs/2026-11-28-dynamic-specialists.md:224:15: unclassified equipo-runner
        reference scan: 2997 text files, 3232 matches, 3 failures
--- FAIL: TestDirectDeadReferencesRepository (2.23s)
FAIL
rastrillo-budget/v1 ran 2.228s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.383s
FAIL
machine: 32 CPUs, load 34.64, cpu waiting 16.99%, memory waiting 0.00%, io waiting 0.36%
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 31.2%, load 24.36
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 424ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m12.546s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.5s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.49s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.49s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.44s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 20.44s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 24.36, cpu waiting 12.72%, memory waiting 0.00%, io waiting 1.27%
--- 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 31.2%, load 24.36
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 1m21.048s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.527s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.68s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.58s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.52s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.5s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.44s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 30.63, cpu waiting 14.93%, memory waiting 0.00%, io waiting 0.31%
--- 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 31.2%, load 24.36
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 534ms 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 1m8.769s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.06s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 26.59s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 26.56s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24.57s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 24.51s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 24.36, cpu waiting 12.72%, memory waiting 0.00%, io waiting 1.27%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 31.2%, load 24.13
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 500ms 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 55.147s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.95s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.86s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.36s amadan.net/oficina/equipo/internal/plan3test TestPersonAPIMigrationUpgrade
machine: 32 CPUs, load 24.36, cpu waiting 12.72%, memory waiting 0.00%, io waiting 1.27%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 31.2%, load 24.36
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/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/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/claude/realcli ./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/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/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/claude/realcli ./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/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: 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/equipo/team: 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
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeInitPolicy
=== RUN   TestClaudeInitPolicy
--- FAIL: TestClaudeInitPolicy (1.13s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeInitPolicy/mcp
=== RUN   TestClaudeInitPolicy/mcp
    launcher_test.go:793: claude_turn_uncertain
--- FAIL: TestClaudeInitPolicy/mcp (0.17s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude (package output)
FAIL
rastrillo-budget/v1 ran 19.142s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	19.513s

budget note: internal/equipo took 2m10.759s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 29.303s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/github took 40.581s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 12.267s, 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 1m42.189s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 26.018s, 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.316s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m18.553s against a 60s target (the gate's other steps are not in this figure)
receipt: 14 packages ran, 54 cached, 16 without tests, 1 failed
receipt: slow package 2m10.759s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m42.189s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 54.189s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.157s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 40.581s amadan.net/oficina/equipo/internal/equipo/github
receipt: slow test 54.63s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.17s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 46.06s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 46.04s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.72s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestClaudeInitPolicy$/^mcp$' -count=1 ./internal/runner/provider/claude   (retry, once)
##############################################################################
FLAKE ./internal/runner/provider/claude:TestClaudeInitPolicy/mcp rest 3c4f05784d07578b690402a0c4f54de4632b4cf1 0.17s 15.60
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 14.43, cpu waiting 5.72%, memory waiting 0.00%, io waiting 0.11%
--- 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 1m20.932s 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.452s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.15s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.68s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.79s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.33s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.24s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 41.00, cpu waiting 22.79%, memory waiting 0.00%, io waiting 0.53%
--- 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

receipt: test step 1m20.932s 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.227s amadan.net/oficina/equipo/internal/headless
receipt: slow test 24.13s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 18.81s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.47s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.53s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.79s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 41.00, cpu waiting 22.79%, memory waiting 0.00%, io waiting 0.53%
--- 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

receipt: test step 1m47.793s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m45.964s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.07s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 11.82s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.66s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 32.51, cpu waiting 15.93%, memory waiting 0.00%, io waiting 0.34%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-28T16:34:13.885Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T16:34:13.885Z level=INFO msg="startup phase done" phase=state_lock took=192µs
time=2026-11-28T16:34:13.885Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T16:34:13.885Z level=INFO msg="startup phase done" phase=claim_roots took=113µs
time=2026-11-28T16:34:13.885Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T16:34:13.920Z level=INFO msg="startup phase done" phase=sweep took=34.932ms
time=2026-11-28T16:34:13.920Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T16:34:13.920Z level=INFO msg="startup phase done" phase=credentials took=187µs
time=2026-11-28T16:34:13.920Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T16:34:13.964Z level=INFO msg="startup phase done" phase=open_state took=43.919ms
time=2026-11-28T16:34:13.965Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T16:34:13.966Z level=INFO msg=connecting host=127.0.0.1:40131 protocol=35
time=2026-11-28T16:34:13.969Z level=INFO msg=connected host=127.0.0.1:40131 took=1.081ms
time=2026-11-28T16:34:13.969Z level=INFO msg="capabilities gathering"
time=2026-11-28T16:34:13.969Z level=INFO msg="capabilities gathered" took=380µs tags=linux,claude,go
time=2026-11-28T16:34:13.973Z level=INFO msg="hello sent" protocol=35
time=2026-11-28T16:34:13.975Z level=INFO msg=welcome protocol=35 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.98s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m28.141s
FAIL	amadan.net/oficina/equipo/internal/headless	88.355s


receipt: test step 1m29.807s 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 1m28.141s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.8s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.01s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.74s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.41s 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|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 3c4f05784d07578b690402a0c4f54de4632b4cf1 1.98s 38.05
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 38.05, cpu waiting 19.66%, memory waiting 0.00%, io waiting 0.43%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

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

receipt: test step 342ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 6.431s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.43s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.009s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

receipt: test step 343ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 11.009s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.18s 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 264ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2.467s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.47s 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|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

receipt: test step 348ms 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 3m37.449s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 27.38s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.42s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.72s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 10.86, cpu waiting 1.21%, memory waiting 0.00%, io waiting 2.03%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (48s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.67s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.34s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.40s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.39s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.61s
+ 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   (47s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 10.36s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.53s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.57s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 14.41s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (19s)
ok ./internal/headless TestMixedVersions 17.56s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ 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 38.06, cpu waiting 23.49%, memory waiting 0.00%, io waiting 0.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.66s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.258s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 208ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 101ms 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/claude/realcli
receipt: slow test 5.17s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 210ms 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 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.044s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.706s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
receipt: slow test 90ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
machine: 32 CPUs, load 16.10, cpu waiting 5.13%, memory waiting 0.00%, io waiting 1.71%
--- 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 31.2%, load 24.36
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
docs/superpowers/plans/2026-11-28-dynamic-specialists-slice-1.md:109:5: unclassified equipo-runner
docs/superpowers/plans/CONTROLLER-BRIEF-specialists-slice-1.md:84:25: unclassified Paseo
docs/superpowers/specs/2026-11-28-dynamic-specialists.md:224:15: unclassified equipo-runner
reference scan: 2997 text files, 3232 matches, 3 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 24.36, cpu waiting 13.74%, memory waiting 0.00%, io waiting 1.22%
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 31.2%, load 24.36
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 24.36, cpu waiting 15.38%, memory waiting 0.00%, io waiting 1.18%
--- 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 31.2%, load 24.36
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 38.06, cpu waiting 23.49%, memory waiting 0.00%, io waiting 0.90%
--- 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 31.2%, load 24.36
shard 28: make gitleaks
4:33PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
4:34PM INF 1266 commits scanned.
4:34PM INF scanned ~68824242 bytes (68.82 MB) in 15.3s
4:34PM INF no leaks found
machine: 32 CPUs, load 38.06, cpu waiting 22.60%, memory waiting 0.00%, io waiting 0.97%

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/internal/stagingtest/checks.go b/internal/stagingtest/checks.go
index 171cebff..badea1ef 100644
--- a/internal/stagingtest/checks.go
+++ b/internal/stagingtest/checks.go
@@ -4,13 +4,40 @@ package stagingtest
import (
"fmt"
+ "net/url"
+ "regexp"
"slices"
"strings"
"time"
+ "amadan.net/oficina/equipo/internal/equipo/personapi"
"amadan.net/oficina/equipo/internal/wire"
)
+// suitePerson is a fresh suite person's address, as the staging harness
+// makes them: suite-<run id>@equipo-staging.invalid.
+var suitePerson = regexp.MustCompile(`^suite-[a-z0-9-]+@equipo-staging\.invalid$`)
+
+// SuitePerson reports whether address is a fresh suite person the staging
+// harness added (never the owner or the long-lived suite person).
+func SuitePerson(address string) bool { return suitePerson.MatchString(address) }
+
+// Roster reads the whole roster through get, a page at a time (the API
+// pages it, 50 a page by default).
+func Roster(get func(path string, out *personapi.Page[personapi.RosterMember])) []personapi.RosterMember {
+ var all []personapi.RosterMember
+ q := url.Values{"limit": {"100"}}
+ for {
+ var page personapi.Page[personapi.RosterMember]
+ get("/api/v1/roster?"+q.Encode(), &page)
+ all = append(all, page.Items...)
+ if page.NextCursor == "" {
+ return all
+ }
+ q.Set("cursor", page.NextCursor)
+ }
+}
+
func Latency(first, limit time.Duration, retry func() time.Duration) ([]time.Duration, error) {
samples := []time.Duration{first}
if first <= limit {
diff --git a/internal/stagingtest/checks_test.go b/internal/stagingtest/checks_test.go
index f2f12300..375fde3f 100644
--- a/internal/stagingtest/checks_test.go
+++ b/internal/stagingtest/checks_test.go
@@ -4,6 +4,7 @@ import (
"testing"
"time"
+ "amadan.net/oficina/equipo/internal/equipo/personapi"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -61,3 +62,38 @@ func TestLatency(t *testing.T) {
})
}
}
+
+// Only a fresh suite person the harness added may be removed by it: the
+// owner, the long-lived suite person and anyone else are refused.
+func TestSuitePerson(t *testing.T) {
+ for addr, want := range map[string]bool{
+ "suite-20261128t161056z-800e724b1ffd@equipo-staging.invalid": true,
+ "suite@equipo-staging.invalid": false,
+ "paul@tito.io": false,
+ "suite-x@equipo-staging.invalid.example.com": false,
+ "suite-x@equipo-staging.invalid,paul@tito.io": false,
+ "Suite-X@equipo-staging.invalid": false,
+ "suite-@equipo-staging.invalid": false,
+ } {
+ if SuitePerson(addr) != want {
+ t.Errorf("%q: %v", addr, !want)
+ }
+ }
+}
+
+// The roster comes a page at a time (50 by default, 100 at most): every
+// page is read, so a suite person past the first is still found.
+func TestRosterReadsEveryPage(t *testing.T) {
+ var asked []string
+ pages := map[string]personapi.Page[personapi.RosterMember]{
+ "/api/v1/roster?limit=100": {Items: []personapi.RosterMember{{Person: personapi.Person{Address: "a@example.com"}}}, NextCursor: "c1"},
+ "/api/v1/roster?cursor=c1&limit=100": {Items: []personapi.RosterMember{{Person: personapi.Person{Address: "b@example.com"}, Revision: 7}}},
+ }
+ got := Roster(func(path string, out *personapi.Page[personapi.RosterMember]) {
+ asked = append(asked, path)
+ *out = pages[path]
+ })
+ if len(got) != 2 || got[1].Address != "b@example.com" || got[1].Revision != 7 || len(asked) != 2 {
+ t.Fatalf("roster %+v asked %v", got, asked)
+ }
+}
diff --git a/internal/stagingtest/setup_test.go b/internal/stagingtest/setup_test.go
index cd7f13ca..a6b3d4b2 100644
--- a/internal/stagingtest/setup_test.go
+++ b/internal/stagingtest/setup_test.go
@@ -10,6 +10,7 @@ import (
"net/http"
"net/url"
"os"
+ "slices"
"strings"
"testing"
"time"
@@ -57,17 +58,41 @@ func TestStagingSetup(t *testing.T) {
}
var me wire.Me
call("GET", "/api/v1/me", "", "", true, &me)
+ roster := func() []personapi.RosterMember {
+ return Roster(func(path string, out *personapi.Page[personapi.RosterMember]) { call("GET", path, "", "", true, out) })
+ }
// The suite runs as its own owner, so the owner's own conversation on
// staging stays clean. The owner's session adds it once.
if add := os.Getenv("EQUIPO_STAGING_ADD_OWNER"); add != "" {
- var roster json.RawMessage
- call("GET", "/api/v1/roster", "", "", true, &roster)
- if !strings.Contains(string(roster), `"address":"`+add+`"`) {
+ if !slices.ContainsFunc(roster(), func(m personapi.RosterMember) bool { return m.Address == add }) {
call("PUT", "/api/v1/roster/"+url.PathEscape(add), `{"role":"owner","active":true}`, `"0"`, true, nil)
t.Log("suite owner added")
}
return
}
+ // Suite people the harness added are removed by the owner's session
+ // at the end of their run, or by the one-off cleanup of stale ones:
+ // a member made inactive has every runner it enrolled revoked. Only
+ // counts are logged, never an address.
+ if list := os.Getenv("EQUIPO_STAGING_REMOVE_SUITE"); list != "" {
+ members := roster()
+ removed, missing := 0, 0
+ for _, address := range strings.Split(list, ",") {
+ if !SuitePerson(address) {
+ t.Fatal("refusing to remove someone who is not a suite person")
+ }
+ i := slices.IndexFunc(members, func(m personapi.RosterMember) bool { return m.Address == address })
+ if i < 0 {
+ missing++
+ continue
+ }
+ m := members[i]
+ call("PUT", "/api/v1/roster/"+url.PathEscape(address), fmt.Sprintf(`{"role":%q,"active":false}`, m.Role), fmt.Sprintf(`"%d"`, m.Revision), true, nil)
+ removed++
+ }
+ t.Logf("suite people removed: %d; not on the roster: %d", removed, missing)
+ return
+ }
if code := os.Getenv("EQUIPO_STAGING_ENROL_CODE"); code != "" {
call("POST", "/api/v1/runners/enrol/approve", fmt.Sprintf(`{"typed_code":%q}`, code), "", true, nil)
t.Log("runner enrolment approved")
diff --git a/scripts/staging-thin-test.py b/scripts/staging-thin-test.py
index 1049a5fb..f9ddbf0e 100644
--- a/scripts/staging-thin-test.py
+++ b/scripts/staging-thin-test.py
@@ -27,7 +27,7 @@ class SuiteTest(unittest.TestCase):
service = suite_root / 'service.env'
original_service = 'EQUIPO_TOOL_PROXY_PATH="/installed/equipo-tool-proxy"\nEQUIPO_RUNNER_STATE_DIR="/existing/state"\n'
service.write_text(original_service)
- addresses, runs, cleaned, records, enrolled = [], [], [], [], []
+ addresses, runs, cleaned, records, enrolled, retired = [], [], [], [], [], []
fail = False
report_mode = "valid"
@@ -40,6 +40,11 @@ class SuiteTest(unittest.TestCase):
addresses.append(extra['EQUIPO_STAGING_ADD_OWNER'])
if 'EQUIPO_STAGING_TOKEN_FILE' in extra:
staging.private(Path(extra['EQUIPO_STAGING_TOKEN_FILE']), 'fresh-token')
+ if 'EQUIPO_STAGING_REMOVE_SUITE' in extra:
+ # Retired by the owner, after its tasks were cleaned up.
+ self.assertEqual(cookie, 'cookie')
+ self.assertEqual(cleaned[-1], extra['EQUIPO_STAGING_REMOVE_SUITE'])
+ retired.append(extra['EQUIPO_STAGING_REMOVE_SUITE'])
def run(args, **kwargs):
if 'is-active' in args:
@@ -98,6 +103,10 @@ class SuiteTest(unittest.TestCase):
self.assertTrue(all(a.startswith('suite-') and a.endswith('@equipo-staging.invalid') for a in addresses))
self.assertEqual(enrolled, addresses)
self.assertEqual(cleaned, addresses)
+ # Every run's person, and with it the runner it enrolled, is
+ # removed at the end, a failed run's too (2026-11-28: 32 suite
+ # runners were left enrolled on staging).
+ self.assertEqual(retired, addresses)
self.assertEqual(len(records), 1)
self.assertEqual(bindings.read_text(), original)
self.assertEqual(service.read_text(), original_service)
@@ -155,6 +164,54 @@ class SuiteTest(unittest.TestCase):
staging.cleanup_suite('test-token', person)
self.assertGreaterEqual(clock[0], staging.CANCEL_WAIT)
+ def test_retire_failure_does_not_hide_the_run(self):
+ # A removal that fails is said, and the run's own outcome stands.
+ def setup(cookie, **extra):
+ raise RuntimeError('HTTP 500')
+
+ with tempfile.TemporaryDirectory(dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder, \
+ patch.object(staging, 'mail_signin', return_value='cookie'), \
+ patch.object(staging, 'claude_a', return_value={'person_id': 'owner@example.com'}), \
+ patch.object(staging, 'setup_test', side_effect=setup), \
+ patch('builtins.print') as said:
+ staging.retire_suite('suite-run@equipo-staging.invalid', Path(folder) / 'owner-cookie')
+ self.assertIn('suite retire', said.call_args[0][0])
+ with self.assertRaises(ValueError):
+ staging.retire_suite('owner@example.com', Path('/nowhere'))
+
+ def test_stale_suite_runners_are_retired_counting_only(self):
+ # The one-off cleanup: suite people whose runners are still
+ # enrolled, read from staging's database copy, are removed by the
+ # owner in one pass; only counts are printed, never an address.
+ counts = iter(['count=32\n', 'count=0\n'])
+ sql, removed = [], []
+
+ def carlos(verb, *args, quiet=False):
+ sql.append(args[-1])
+ if "group_concat" in args[-1]:
+ return "header\npersons=suite-a@equipo-staging.invalid,suite-b@equipo-staging.invalid,owner@example.com\n"
+ return next(counts)
+
+ def setup(cookie, **extra):
+ removed.append(extra['EQUIPO_STAGING_REMOVE_SUITE'])
+
+ with tempfile.TemporaryDirectory(dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder, \
+ patch.object(staging, 'ROOT', Path(folder)), \
+ patch.object(staging, 'carlos', side_effect=carlos), \
+ patch.object(staging, 'mail_signin', return_value='cookie'), \
+ patch.object(staging, 'claude_a', return_value={'person_id': 'owner@example.com'}), \
+ patch.object(staging, 'setup_test', side_effect=setup), \
+ patch.object(staging.time, 'sleep'), \
+ patch('builtins.print') as said:
+ staging.cleanup_suite_runners()
+ self.assertEqual(removed, ['suite-a@equipo-staging.invalid,suite-b@equipo-staging.invalid'])
+ self.assertTrue(all("LIKE 'suite-%@equipo-staging.invalid'" in q and 'revoked_at IS NULL' in q for q in sql))
+ out = ' '.join(str(c.args[0]) for c in said.call_args_list)
+ self.assertNotIn('@', out)
+ self.assertIn('32', out)
+ self.assertIn('2', out)
+ self.assertIn('0', out)
+
def test_in_flight_ignores_suite_people(self):
seen = []
diff --git a/scripts/staging-thin.py b/scripts/staging-thin.py
index c8bbde03..97f517e8 100755
--- a/scripts/staging-thin.py
+++ b/scripts/staging-thin.py
@@ -9,6 +9,7 @@ unit on this machine with the real Claude CLI, and run the headless suite.
scripts/staging-thin.py runner # both runner units: config, enrolment, start
scripts/staging-thin.py suite [scenario,...]
scripts/staging-thin.py stop # stop both staging runner units
+ scripts/staging-thin.py cleanup-suite-runners # one-off: remove stale suite people and their runners
Two people use staging. The owner (the claude-a binding's person) chats
there and has the owner's runner unit, which stays running. The headless
@@ -528,6 +529,60 @@ def enrol(release, env, cookie_path):
CANCEL_WAIT = 120
+# A fresh suite person: suite-<run id>@equipo-staging.invalid. Only these
+# are ever removed by the harness (never the owner or SUITE).
+SUITE_PEOPLE = "person LIKE 'suite-%@equipo-staging.invalid'"
+
+
+def suite_person(address):
+ return re.fullmatch(r'suite-[a-z0-9-]+@equipo-staging\.invalid', address) is not None
+
+
+def retire_suite(person, cookie_path):
+ """Remove a run's suite person, which the harness added as an owner:
+ an inactive member has every runner it enrolled revoked. The owner's
+ session does it. A failure is said, never raised over the run's own
+ outcome; the one-off cleanup catches what is left."""
+ if not suite_person(person):
+ raise ValueError('not a suite person')
+ try:
+ owner = mail_signin(claude_a()['person_id'], cookie_path)
+ setup_test(owner, EQUIPO_STAGING_REMOVE_SUITE=person)
+ except Exception as error:
+ print('suite retire: ' + redact(str(error)), flush=True)
+
+
+def stale_suite_runners():
+ out = carlos('db query', '--sql', "SELECT 'count=' || count(*) FROM runners WHERE revoked_at IS NULL AND " + SUITE_PEOPLE, quiet=True)
+ m = re.search(r'^count=(\d+)\s*$', out, re.M)
+ if not m:
+ raise RuntimeError('could not count the suite runners')
+ return int(m.group(1))
+
+
+def cleanup_suite_runners():
+ """One-off, staging only: suite people whose runners are still
+ enrolled (runs before 2026-11-28 never removed them) are removed by
+ the owner, which revokes those runners. Prints counts only."""
+ before = stale_suite_runners()
+ out = carlos('db query', '--sql', "SELECT 'persons=' || coalesce(group_concat(DISTINCT person), '') FROM runners WHERE revoked_at IS NULL AND " + SUITE_PEOPLE, quiet=True)
+ m = re.search(r'^persons=(.*)$', out, re.M)
+ if not m:
+ raise RuntimeError('could not list the suite people')
+ people = sorted({p for p in m.group(1).strip().split(',') if suite_person(p)})
+ if people:
+ with tempfile.TemporaryDirectory(prefix='equipo-suite-', dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder:
+ owner = mail_signin(claude_a()['person_id'], Path(folder) / 'owner-cookie')
+ setup_test(owner, EQUIPO_STAGING_REMOVE_SUITE=','.join(people))
+ after = before
+ # The database copy catches up with the instance.
+ for _ in range(10):
+ after = stale_suite_runners()
+ if after == 0 or not people:
+ break
+ time.sleep(15)
+ print(f'stale suite runners: {before} before, {after} after; suite people removed: {len(people)}', flush=True)
+
def cleanup_suite(token, person):
def request(path, method='GET'):
@@ -609,6 +664,9 @@ def fresh_suite():
finally:
run(['systemctl', '--user', 'stop', SUITE_UNIT])
private(service, original_service)
+ # Its runner enrolment goes with the person, so suite
+ # runners never pile up on staging.
+ retire_suite(person, root / 'owner-cookie')
if active:
run(['systemctl', '--user', 'start', SUITE_UNIT])
@@ -768,6 +826,7 @@ def main():
step = sys.argv[1]
try:
{'build': build, 'release': release, 'deploy': deploy, 'signin': signin, 'runner': runner, 'stop': stop,
+ 'cleanup-suite-runners': cleanup_suite_runners,
'suite': lambda: suite(sys.argv[2] if len(sys.argv) > 2 else '')}[step]()
return 0
except Exception as error: