oficina / equipo Public

Isolate staging suite runs and assert placement safety

Paul Campbell pushed by paul@keymail.dev 06335fb041ec5b2f8e86501dc349ee4162ee012c parent 5a6755b
11 files changed, +437 −30
  • internal/headless/env_test.go +2 −0
  • internal/headless/projects_test.go +40 −17
  • internal/headless/scenarios_test.go +35 −7
  • internal/headless/staging_guards_test.go +42 −0
  • internal/release/staging_suite_test.go +19 −0
  • internal/stagingtest/budget_test.go +10 −0
  • internal/stagingtest/checks.go +59 −0
  • internal/stagingtest/checks_test.go +56 −0
  • internal/{headless/staging_setup_test.go => stagingtest/setup_test.go} +1 −1
  • scripts/staging-thin-test.py +103 −0
  • scripts/staging-thin.py +70 −5

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/staging-suite-fresh: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.5s
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.5s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 3.2s
ci-box: file times set from content: 2672 files, 173 directories
ci-box: ready in 16.3s
=== 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.238s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.0s
+ go list -export -test -tags testbuild -f  ./...
  1.1s
+ go list -export -test -tags browser,testbuild -f  ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  1.1s
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

receipt: test step 1m18.523s 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.056s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.06s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 31.52, cpu waiting 20.75%, memory waiting 0.00%, io waiting 0.95%
--- 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 1m19.788s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m18.347s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.35s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 30.43, cpu waiting 20.43%, memory waiting 0.00%, io waiting 0.91%
--- 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 1m20.604s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m18.962s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.75s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.66s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.56s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 30.43, cpu waiting 20.43%, memory waiting 0.00%, io waiting 0.91%
--- 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 1m16.188s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m14.755s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.75s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.67s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.98s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.36s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 31.52, cpu waiting 21.04%, memory waiting 0.00%, io waiting 0.98%
--- 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

receipt: test step 1m33.392s 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 1m31.954s amadan.net/oficina/equipo/internal/headless
receipt: slow test 57.7s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.65s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.54s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.63s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 28.57, cpu waiting 16.61%, memory waiting 0.00%, io waiting 0.72%
--- 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

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

receipt: test step 425ms 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 1m51.043s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.56s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.7s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.71s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.37s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 1.05, cpu waiting 0.04%, memory waiting 0.00%, io waiting 3.46%
--- 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 405ms 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.073s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.32s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.08s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/thintest TestContractTokenConnection
machine: 32 CPUs, load 1.05, cpu waiting 0.04%, memory waiting 0.00%, io waiting 3.46%
--- 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.218s 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.135s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.11s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 23.10, cpu waiting 20.13%, memory waiting 0.00%, io waiting 1.57%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 46.093s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 44.16s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.14s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.11s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 23.10, cpu waiting 20.07%, memory waiting 0.00%, io waiting 1.62%
--- 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.873s 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.019s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.05s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 17.01, cpu waiting 15.51%, memory waiting 0.00%, io waiting 1.91%
--- 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 26.5%, load 12.22
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 1m2.366s 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 1m0.495s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.21s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 25.13s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 23.36s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 20.99s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 20.72s amadan.net/oficina/equipo/internal/equipotest TestAuthorityRejectsMismatchedTarget
machine: 32 CPUs, load 28.57, cpu waiting 17.17%, memory waiting 0.00%, io waiting 0.75%
--- 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 26.5%, load 12.22
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.102s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m12.08s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 18.98s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 18.92s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 18.86s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 18.85s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
machine: 32 CPUs, load 12.22, cpu waiting 10.97%, memory waiting 0.00%, io waiting 2.12%
--- 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 26.5%, load 12.22
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m13.448s 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.313s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.93s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.47s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.38s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.34s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 22.90, cpu waiting 14.06%, memory waiting 0.00%, io waiting 0.61%
--- 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 26.5%, load 12.22
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1.185s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m4.547s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.06s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.03s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 21.31s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 21.22s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 12.22, cpu waiting 12.44%, memory waiting 0.00%, io waiting 2.05%
--- 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 26.5%, load 12.22
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 699ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 48.107s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.45s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.44s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.39s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.18s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 12.22, cpu waiting 10.97%, memory waiting 0.00%, io waiting 2.12%
--- 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 26.5%, load 12.22
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/cmd/equipo-runner: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: 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/release TestStagingSuiteDriver
=== RUN   TestStagingSuiteDriver
    staging_suite_test.go:17: staging driver: exit status 1
        suite cleanup ours-1: temporary failure
        .E
        ======================================================================
        ERROR: test_fresh_runs_and_green_record (__main__.SuiteTest.test_fresh_runs_and_green_record)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
          File "/work/equipo/internal/release/../../scripts/staging-thin-test.py", line 19, in test_fresh_runs_and_green_record
            with tempfile.TemporaryDirectory(dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder:
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/usr/lib/python3.13/tempfile.py", line 1077, in __init__
            self.name = mkdtemp(suffix, prefix, dir)
                        ~~~~~~~^^^^^^^^^^^^^^^^^^^^^
          File "/usr/lib/python3.13/tempfile.py", line 575, in mkdtemp
            _os.mkdir(file, 0o700)
            ~~~~~~~~~^^^^^^^^^^^^^
        FileNotFoundError: [Errno 2] No such file or directory: '/home/ci/.cache/tmpqglbfbvi'
        
        ----------------------------------------------------------------------
        Ran 2 tests in 0.002s
        
        FAILED (errors=1)
--- FAIL: TestStagingSuiteDriver (0.14s)

--- FAIL amadan.net/oficina/equipo/internal/release (package output)
FAIL
rastrillo-budget/v1 ran 4.294s
FAIL	amadan.net/oficina/equipo/internal/release	4.309s

--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:302 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.61s)

--- FAIL amadan.net/oficina/equipo/internal/runner/webread (package output)
FAIL
rastrillo-budget/v1 ran 1.153s
FAIL	amadan.net/oficina/equipo/internal/runner/webread	1.162s

budget note: internal/equipo took 24.227s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 11.886s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 42.05s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 38.033s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.22s against a 60s target (the gate's other steps are not in this figure)
receipt: 13 packages ran, 44 cached, 18 without tests, 2 failed
receipt: slow package 51.279s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 51.268s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 42.05s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 38.033s amadan.net/oficina/equipo/internal/runner/containment
rastrillo: budget test: go test failed
receipt: slow package 35.54s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 20.97s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.07s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 11.57s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
receipt: slow test 8.02s amadan.net/oficina/equipo/internal/runner/checks TestCheckNamespaceGoRootInsideModuleCache
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestStagingSuiteDriver$' -count=1 ./internal/release   (retry, once)
FAILED TWICE ./internal/release:TestStagingSuiteDriver rest
=== RUN   TestStagingSuiteDriver
    staging_suite_test.go:17: staging driver: exit status 1
        suite cleanup ours-1: temporary failure
        .E
        ======================================================================
        ERROR: test_fresh_runs_and_green_record (__main__.SuiteTest.test_fresh_runs_and_green_record)
        ----------------------------------------------------------------------
        Traceback (most recent call last):
          File "/work/equipo/internal/release/../../scripts/staging-thin-test.py", line 19, in test_fresh_runs_and_green_record
            with tempfile.TemporaryDirectory(dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder:
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/usr/lib/python3.13/tempfile.py", line 1077, in __init__
            self.name = mkdtemp(suffix, prefix, dir)
                        ~~~~~~~^^^^^^^^^^^^^^^^^^^^^
          File "/usr/lib/python3.13/tempfile.py", line 575, in mkdtemp
            _os.mkdir(file, 0o700)
            ~~~~~~~~~^^^^^^^^^^^^^
        FileNotFoundError: [Errno 2] No such file or directory: '/home/ci/.cache/tmpwxel14y6'
        
        ----------------------------------------------------------------------
        Ran 2 tests in 0.002s
        
        FAILED (errors=1)
--- FAIL: TestStagingSuiteDriver (0.11s)
FAIL
rastrillo-budget/v1 ran 106ms
FAIL	amadan.net/oficina/equipo/internal/release	0.109s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest 06335fb041ec5b2f8e86501dc349ee4162ee012c 0.61s 9.66
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 9.66, cpu waiting 4.84%, memory waiting 0.00%, io waiting 0.20%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 17 of 29 failed: exit status 2
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m21.471s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.131s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.14s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.94s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.67s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.96s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 30.43, cpu waiting 19.92%, memory waiting 0.00%, io waiting 0.88%
--- 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 1m29.003s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m27.528s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.07s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.77s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.71s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.84s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.77s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 28.57, cpu waiting 17.72%, memory waiting 0.00%, io waiting 0.77%
--- 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 1m38.383s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m37.065s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.53s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.91s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.78s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 10.2s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.1s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 24.63, cpu waiting 15.03%, memory waiting 0.00%, io waiting 0.65%
--- 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-19T08:42:31.061Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T08:42:31.062Z level=INFO msg="startup phase done" phase=state_lock took=389µs
time=2026-11-19T08:42:31.063Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T08:42:31.064Z level=INFO msg="startup phase done" phase=claim_roots took=150µs
time=2026-11-19T08:42:31.064Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T08:42:31.099Z level=INFO msg="startup phase done" phase=sweep took=35.51ms
time=2026-11-19T08:42:31.099Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T08:42:31.099Z level=INFO msg="startup phase done" phase=credentials took=195µs
time=2026-11-19T08:42:31.100Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T08:42:31.148Z level=INFO msg="startup phase done" phase=open_state took=48.585ms
time=2026-11-19T08:42:31.148Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T08:42:31.150Z level=INFO msg=connecting host=127.0.0.1:35287 protocol=26
time=2026-11-19T08:42:31.151Z level=INFO msg=connected host=127.0.0.1:35287 took=999µs
time=2026-11-19T08:42:31.151Z level=INFO msg="capabilities gathering"
time=2026-11-19T08:42:31.152Z level=INFO msg="capabilities gathered" took=784µs tags=linux,claude,go
time=2026-11-19T08:42:31.156Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T08:42:31.156Z level=INFO msg=welcome protocol=26 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.83s)

rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-19T08:43:01.330Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T08:43:01.330Z level=INFO msg="startup phase done" phase=state_lock took=66µs
time=2026-11-19T08:43:01.330Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T08:43:01.331Z level=INFO msg="startup phase done" phase=claim_roots took=85µs
time=2026-11-19T08:43:01.331Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T08:43:01.359Z level=INFO msg="startup phase done" phase=sweep took=28.907ms
time=2026-11-19T08:43:01.359Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T08:43:01.360Z level=INFO msg="startup phase done" phase=credentials took=99µs
time=2026-11-19T08:43:01.360Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T08:43:01.398Z level=INFO msg="startup phase done" phase=open_state took=38.581ms
time=2026-11-19T08:43:01.398Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T08:43:01.400Z level=INFO msg=connecting host=127.0.0.1:34441 protocol=26
time=2026-11-19T08:43:01.400Z level=INFO msg=connected host=127.0.0.1:34441 took=900µs
time=2026-11-19T08:43:01.401Z level=INFO msg="capabilities gathering"
time=2026-11-19T08:43:01.401Z level=INFO msg="capabilities gathered" took=389µs tags=linux,claude,go
time=2026-11-19T08:43:01.404Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T08:43:01.405Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T08:43:02.366Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserEmptyExplore (5.75s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m24.906s
FAIL	amadan.net/oficina/equipo/internal/headless	85.179s


receipt: test step 1m26.242s 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 1m24.906s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.95s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.82s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.23s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.23s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.86s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 06335fb041ec5b2f8e86501dc349ee4162ee012c 1.83s 29.84
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 06335fb041ec5b2f8e86501dc349ee4162ee012c 5.75s 29.84
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 26.60, cpu waiting 15.54%, memory waiting 0.00%, io waiting 0.67%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

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

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

receipt: test step 272ms 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 2m51.872s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.02s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.79s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 7.64s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 1.05, cpu waiting 1.25%, memory waiting 0.00%, io waiting 3.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   (51s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.21s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.27s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.07s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.57s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.67s
+ 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   (59s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.69s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 21.37s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.79s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 19.55s
+ 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   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 32.03, cpu waiting 21.45%, memory waiting 0.00%, io waiting 1.28%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 8.015s 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 6.951s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 152ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 87ms 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 4.99s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 2.821s 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.49s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 250ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
machine: 32 CPUs, load 3.63, cpu waiting 4.02%, memory waiting 0.00%, io waiting 2.96%
--- 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 26.5%, load 12.22
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2386 text files, 2742 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: 86 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.432s
machine: 32 CPUs, load 21.89, cpu waiting 18.98%, memory waiting 0.00%, io waiting 1.73%
--- 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 26.5%, load 12.22
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 12.22, cpu waiting 12.44%, memory waiting 0.00%, io waiting 2.05%
--- 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 26.5%, load 12.22
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 17.01, cpu waiting 15.51%, memory waiting 0.00%, io waiting 1.91%
--- 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 26.5%, load 12.22
shard 28: make gitleaks
8:42AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
8:42AM INF 988 commits scanned.
8:42AM INF scanned ~59025484 bytes (59.03 MB) in 12.9s
8:42AM INF no leaks found
machine: 32 CPUs, load 21.89, cpu waiting 18.98%, memory waiting 0.00%, io waiting 1.73%
diff --git a/internal/headless/env_test.go b/internal/headless/env_test.go
index 1e90d029..e906a10a 100644
--- a/internal/headless/env_test.go
+++ b/internal/headless/env_test.go
@@ -87,6 +87,7 @@ type Env struct {
// Project is the repository a live run works in (for example
// oficina/equipo); local runs use the local forge's oficina/sample.
Project string
+ RunID string
// Grant and Revoke change what the agent reaches (local forge only),
// then restart the runner so its index refreshes.
Grant, Revoke func(t *testing.T, repo string)
@@ -434,6 +435,7 @@ func stagingEnv(t *testing.T) *Env {
return &Env{
Client: client,
Live: true,
+ RunID: os.Getenv("EQUIPO_STAGING_RUN_ID"),
Slow: "Count from 1 to 150, one number per line, and nothing else.",
StartRunner: run("EQUIPO_STAGING_RUNNER_START"),
StopRunner: run("EQUIPO_STAGING_RUNNER_STOP"),
diff --git a/internal/headless/projects_test.go b/internal/headless/projects_test.go
index 102494a3..800e7be4 100644
--- a/internal/headless/projects_test.go
+++ b/internal/headless/projects_test.go
@@ -16,6 +16,7 @@ import (
"amadan.net/oficina/equipo/internal/runner/forge/forgetest"
"amadan.net/oficina/equipo/internal/runner/thin"
"amadan.net/oficina/equipo/internal/runner/workspace"
+ "amadan.net/oficina/equipo/internal/stagingtest"
"amadan.net/oficina/equipo/internal/thintest"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -309,24 +310,19 @@ func scenarioProject(t *testing.T, env *Env) {
}
text := "think Fix the README typo in sample. tool:status\ntool:add_project:oficina/sample"
if env.Live {
- text = "Fix the README typo in " + strings.Split(target, "/")[1] + "."
+ text = "In " + target + ", add a README note saying: Staging suite check " + env.RunID + ". This is a new request for this run."
}
sent, timing := s.timed(t, "project", text)
- s.wait(t, "project card", time.Minute, func(c *thintest.Conversation) bool {
- for _, k := range cards(c, sent.Turn.ID, wire.CardProject) {
- if k.Name == target && (k.State == wire.CardAdded || k.State == wire.CardWorking) {
- return true
- }
- }
- return false
- })
+ if err := s.placement(sent.Turn.ID, []string{target}, true); err != nil {
+ t.Fatal(err)
+ }
if _, ok := s.project(target); !ok {
t.Fatalf("no %s project event", target)
}
- noRepoQuestion(t, s, sent.Turn.ID)
if env.Live {
return
}
+ noRepoQuestion(t, s, sent.Turn.ID)
if timing.Timing == nil || timing.Timing.ResultMs == 0 || timing.Timing.FirstToolMs == 0 || timing.Timing.FirstThinkingMs == 0 {
t.Fatalf("turn timing %+v", timing.Timing)
}
@@ -360,12 +356,19 @@ func scenarioFindAndRead(t *testing.T, env *Env) {
s.keep()
s.wait(t, "runner online", 30*time.Second, func(c *thintest.Conversation) bool { return c.Runner.Online })
if env.Live {
- sent := s.send(t, "In Woodstar, the panes aren't slideable with a finger sliding from the edge to go back.")
+ sent := s.send(t, "Investigate the swipe-back gesture in Woodstar for this suite run. Do not create a repository. Ask me if the project is unclear.")
s.waitTurn(t, sent.Turn.ID, wire.TurnReplied)
- noRepoQuestion(t, s, sent.Turn.ID)
- s.wait(t, "access card or project", time.Minute, func(c *thintest.Conversation) bool {
- return len(cards(c, sent.Turn.ID, wire.CardAccess)) == 1 || len(cards(c, sent.Turn.ID, wire.CardProject)) > 0
- })
+ list, err := env.Client.Projects(s.ctx)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var allowed []string
+ for _, repo := range list.Allowed {
+ allowed = append(allowed, strings.TrimPrefix(repo, "amadan.net/"))
+ }
+ if err := s.placement(sent.Turn.ID, allowed, false); err != nil {
+ t.Fatal(err)
+ }
return
}
sent := s.send(t, "In Woodstar, the panes aren't slideable from the edge. tool:find:Woodstar panes\ntool:search_code:oficina/sample|EdgeSwipe\ntool:read_file:oficina/sample|panes/swipe.go")
@@ -409,12 +412,14 @@ func scenarioNewWork(t *testing.T, env *Env) {
s.wait(t, "runner online", 30*time.Second, func(c *thintest.Conversation) bool { return c.Runner.Online })
text := "Create a new project called oficina/suite-site"
if env.Live {
- text = "Create a new project for a small website that introduces the Oficina suite."
+ text = "Plan a small website introducing the Oficina suite. Use the existing project " + env.Project + " if it fits, otherwise ask me where it should go. Do not create a repository."
}
sent := s.send(t, text)
s.waitTurn(t, sent.Turn.ID, wire.TurnReplied)
if env.Live {
- s.wait(t, "placement question", time.Minute, func(c *thintest.Conversation) bool { return len(cards(c, sent.Turn.ID, wire.CardQuestion)) > 0 })
+ if err := s.placement(sent.Turn.ID, []string{env.Project}, false); err != nil {
+ t.Fatal(err)
+ }
return
}
noRepoQuestion(t, s, sent.Turn.ID)
@@ -583,3 +588,21 @@ func (s *session) timed(t *testing.T, name, text string) (wire.Sent, turnClock)
t.Logf("turn clock %s: %s", name, raw)
return sent, clock
}
+
+func (s *session) placement(turn string, named []string, required bool) error {
+ var found []wire.Card
+ var tasks []wire.Task
+ s.conv.Locked(func(c *thintest.Conversation) {
+ for _, card := range c.Cards {
+ if card.TurnID == turn {
+ found = append(found, card)
+ }
+ }
+ for _, task := range c.Tasks {
+ if task.TurnID == turn {
+ tasks = append(tasks, task)
+ }
+ }
+ })
+ return stagingtest.Placement(found, tasks, named, required)
+}
diff --git a/internal/headless/scenarios_test.go b/internal/headless/scenarios_test.go
index 46854177..655eee63 100644
--- a/internal/headless/scenarios_test.go
+++ b/internal/headless/scenarios_test.go
@@ -11,6 +11,7 @@ import (
"testing"
"time"
+ "amadan.net/oficina/equipo/internal/stagingtest"
"amadan.net/oficina/equipo/internal/thintest"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -74,11 +75,14 @@ func key() string { return "h-" + strings.ToLower(rand.Text()) }
func (s *session) send(t *testing.T, text string) wire.Sent {
t.Helper()
+ if s.env.RunID != "" {
+ text += "\nSuite run: " + s.env.RunID
+ }
+ s.env.Turn(t)
sent, err := s.env.Client.Send(s.ctx, text, key())
if err != nil {
t.Fatalf("send: %v", err)
}
- s.env.Turn(t)
return sent
}
@@ -216,11 +220,27 @@ func scenarioFirstToken(t *testing.T, env *Env) {
t.Fatalf("restarted runner did not resume the session: %q", r)
}
}
- if warm > 5*time.Second {
- t.Fatalf("warm first token %v, want under 5s", warm)
- }
- if cold > env.ResumeThreshold || resumed > env.ResumeThreshold {
- t.Fatalf("cold first token %v / %v, want under %v", cold, resumed, env.ResumeThreshold)
+ for _, sample := range []struct {
+ name string
+ first, limit time.Duration
+ cold bool
+ }{
+ {"warm", warm, 5 * time.Second, false}, {"cold", cold, env.ResumeThreshold, true}, {"cold_resume", resumed, env.ResumeThreshold, true},
+ } {
+ samples, err := stagingtest.Latency(sample.first, sample.limit, func() time.Duration {
+ if sample.cold {
+ env.RestartRunner(t)
+ }
+ elapsed, _ := s.firstToken(t, "Reply with one short sentence.")
+ return elapsed
+ })
+ for i, elapsed := range samples {
+ Timings[fmt.Sprintf("%s/%s/sample_%d", t.Name(), sample.name, i+1)] = elapsed
+ }
+ t.Logf("%s first-token samples: %v (limit %v)", sample.name, samples, sample.limit)
+ if err != nil {
+ t.Error(err)
+ }
}
}
@@ -501,7 +521,15 @@ func TestStaging(t *testing.T) {
if only != "" && !strings.Contains(","+only+",", ","+sc.name+",") {
continue
}
- if !t.Run(sc.name, func(t *testing.T) { sc.run(t, env) }) {
+ if !t.Run(sc.name, func(t *testing.T) {
+ before := *env.turns
+ defer func() {
+ used := *env.turns - before
+ t.Logf("model turns used: %d (total %d)", used, *env.turns)
+ Witness[t.Name()+"/turns"] = used
+ }()
+ sc.run(t, env)
+ }) {
break
}
}
diff --git a/internal/headless/staging_guards_test.go b/internal/headless/staging_guards_test.go
new file mode 100644
index 00000000..180f3d9e
--- /dev/null
+++ b/internal/headless/staging_guards_test.go
@@ -0,0 +1,42 @@
+package headless
+
+import (
+ "strings"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func TestHeadlessStagingPlacement(t *testing.T) {
+ env, _, r := localEnv(t)
+ r.start(t)
+ s := open(t, env)
+ // Create a real repository as a fixture; the staging assertion must reject
+ // that outcome when its request did not consent to a new repository.
+ for _, tc := range []struct {
+ name, prompt, want string
+ required bool
+ }{
+ {"question", "tool:ask_person:Where should it go?|oficina/sample|Elsewhere", "", false},
+ {"named project", "tool:add_project:oficina/sample", "", false},
+ {"clarification", "tool:add_project:oficina/sample\ntool:ask_person:Which README words should change?|Title|Summary", "", true},
+ {"missing card", "tool:ask_person:Which README words should change?|Title|Summary", "missing project card", true},
+ {"unauthorized creation", "Create a new project called oficina/suite-site", "created without consent", false},
+ {"wrong project", "tool:add_project:oficina/notes", "unnamed project", false},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ sent := s.send(t, tc.prompt)
+ s.waitTurn(t, sent.Turn.ID, wire.TurnReplied)
+ err := s.placement(sent.Turn.ID, []string{"oficina/sample"}, tc.required)
+ if tc.want == "" {
+ if err != nil {
+ t.Fatal(err)
+ }
+ return
+ }
+ if err == nil || !strings.Contains(err.Error(), tc.want) {
+ t.Fatalf("guard = %v, want %q", err, tc.want)
+ }
+ })
+ }
+}
diff --git a/internal/release/staging_suite_test.go b/internal/release/staging_suite_test.go
new file mode 100644
index 00000000..a6999a18
--- /dev/null
+++ b/internal/release/staging_suite_test.go
@@ -0,0 +1,19 @@
+package release
+
+import (
+ "os"
+ "os/exec"
+ "testing"
+)
+
+func TestStagingSuiteDriver(t *testing.T) {
+ for _, path := range []string{"../../scripts/staging-thin.py", "../../scripts/staging-thin-test.py"} {
+ if _, err := os.ReadFile(path); err != nil {
+ t.Fatal(err)
+ }
+ }
+ cmd := exec.Command("python3", "../../scripts/staging-thin-test.py")
+ if out, err := cmd.CombinedOutput(); err != nil {
+ t.Fatalf("staging driver: %v\n%s", err, out)
+ }
+}
diff --git a/internal/stagingtest/budget_test.go b/internal/stagingtest/budget_test.go
new file mode 100644
index 00000000..8b8eed53
--- /dev/null
+++ b/internal/stagingtest/budget_test.go
@@ -0,0 +1,10 @@
+package stagingtest
+
+import (
+ "os"
+ "testing"
+
+ "amadan.net/rastrillo/rastrillo/budget"
+)
+
+func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
diff --git a/internal/stagingtest/checks.go b/internal/stagingtest/checks.go
new file mode 100644
index 00000000..12b405d3
--- /dev/null
+++ b/internal/stagingtest/checks.go
@@ -0,0 +1,59 @@
+// Package stagingtest holds the staging suite's assertions so the local
+// rig can exercise both safe choices and deliberate coordinator failures.
+package stagingtest
+
+import (
+ "fmt"
+ "slices"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func Latency(first, limit time.Duration, retry func() time.Duration) ([]time.Duration, error) {
+ samples := []time.Duration{first}
+ if first <= limit {
+ return samples, nil
+ }
+ samples = append(samples, retry())
+ if samples[1] > limit {
+ return samples, fmt.Errorf("first-token samples %v both exceed %v", samples, limit)
+ }
+ return samples, nil
+}
+
+// Placement accepts a question or placement in a named, existing project.
+// A question cannot excuse creating a repository or choosing another project.
+// requiredCard is used when the person has already named an exact repository.
+func Placement(cards []wire.Card, tasks []wire.Task, named []string, requiredCard bool) error {
+ question, placed, projectCard := false, false, false
+ for _, c := range cards {
+ switch c.Kind {
+ case wire.CardQuestion, wire.CardAccess:
+ question = question || c.Question != ""
+ case wire.CardProject:
+ if c.State == wire.CardCreated {
+ return fmt.Errorf("repository %s created without consent", c.Name)
+ }
+ if !slices.Contains(named, c.Name) {
+ return fmt.Errorf("placed in unnamed project %s", c.Name)
+ }
+ if c.State == wire.CardAdded || c.State == wire.CardWorking {
+ placed, projectCard = true, true
+ }
+ }
+ }
+ for _, task := range tasks {
+ if !slices.Contains(named, task.Project) {
+ return fmt.Errorf("task placed in unnamed project %s", task.Project)
+ }
+ placed = true
+ }
+ if requiredCard && !projectCard {
+ return fmt.Errorf("missing project card for %v", named)
+ }
+ if !question && !placed {
+ return fmt.Errorf("no placement question or work in %v", named)
+ }
+ return nil
+}
diff --git a/internal/stagingtest/checks_test.go b/internal/stagingtest/checks_test.go
new file mode 100644
index 00000000..7787e0c1
--- /dev/null
+++ b/internal/stagingtest/checks_test.go
@@ -0,0 +1,56 @@
+package stagingtest
+
+import (
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func TestPlacement(t *testing.T) {
+ project := wire.Card{Kind: wire.CardProject, Name: "oficina/sample", State: wire.CardWorking}
+ question := wire.Card{Kind: wire.CardQuestion, Question: "Where should this go?"}
+ created := wire.Card{Kind: wire.CardProject, Name: "oficina/sample", State: wire.CardCreated}
+ for _, tc := range []struct {
+ name string
+ cards []wire.Card
+ required bool
+ bad bool
+ }{
+ {"question", []wire.Card{question}, false, false},
+ {"named project", []wire.Card{project}, false, false},
+ {"project with clarification", []wire.Card{project, question}, true, false},
+ {"no placement", nil, false, true},
+ {"missing project card", []wire.Card{question}, true, true},
+ {"created without consent", []wire.Card{created, question}, false, true},
+ {"wrong project", []wire.Card{{Kind: wire.CardProject, Name: "oficina/other", State: wire.CardWorking}, question}, false, true},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ err := Placement(tc.cards, nil, []string{"oficina/sample"}, tc.required)
+ if (err != nil) != tc.bad {
+ t.Fatalf("Placement = %v, want bad=%v", err, tc.bad)
+ }
+ })
+ }
+}
+
+func TestLatency(t *testing.T) {
+ for _, tc := range []struct {
+ name string
+ first, retry time.Duration
+ calls int
+ bad bool
+ }{
+ {"fast", time.Second, 0, 0, false},
+ {"provider blip", 11400 * time.Millisecond, 1900 * time.Millisecond, 1, false},
+ {"persistently slow", 6 * time.Second, 7 * time.Second, 1, true},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ calls := 0
+ samples, err := Latency(tc.first, 5*time.Second, func() time.Duration { calls++; return tc.retry })
+ if calls != tc.calls || len(samples) != tc.calls+1 || (err != nil) != tc.bad {
+ t.Fatalf("samples %v calls %d error %v", samples, calls, err)
+ }
+ })
+ }
+}
diff --git a/internal/headless/staging_setup_test.go b/internal/stagingtest/setup_test.go
similarity index 99%
rename from internal/headless/staging_setup_test.go
rename to internal/stagingtest/setup_test.go
index b107e484..cd7f13ca 100644
--- a/internal/headless/staging_setup_test.go
+++ b/internal/stagingtest/setup_test.go
@@ -1,4 +1,4 @@
-package headless
+package stagingtest
import (
"crypto/ed25519"
diff --git a/scripts/staging-thin-test.py b/scripts/staging-thin-test.py
new file mode 100644
index 00000000..4278438a
--- /dev/null
+++ b/scripts/staging-thin-test.py
@@ -0,0 +1,103 @@
+import importlib.util
+import json
+import os
+from pathlib import Path
+import tempfile
+import sys
+import unittest
+from unittest.mock import patch
+
+sys.dont_write_bytecode = True
+
+spec = importlib.util.spec_from_file_location('staging', Path(__file__).with_name('staging-thin.py'))
+staging = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(staging)
+
+
+class SuiteTest(unittest.TestCase):
+ def test_fresh_runs_and_green_record(self):
+ with tempfile.TemporaryDirectory(dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder:
+ root = Path(folder)
+ suite_root = root / 'suite'
+ (suite_root / 'config').mkdir(parents=True)
+ bindings = suite_root / 'config/bindings.json'
+ original = json.dumps([{'local_id': 'claude-a', 'person_id': 'old.invalid'},
+ {'local_id': 'codex-app', 'person_id': 'old.invalid'}])
+ bindings.write_text(original)
+ addresses, runs, cleaned, records = [], [], [], []
+ fail = False
+
+ def mail(address, path):
+ staging.private(path, 'cookie')
+ return 'cookie'
+
+ def setup(cookie, **extra):
+ if 'EQUIPO_STAGING_ADD_OWNER' in extra:
+ addresses.append(extra['EQUIPO_STAGING_ADD_OWNER'])
+ if 'EQUIPO_STAGING_TOKEN_FILE' in extra:
+ staging.private(Path(extra['EQUIPO_STAGING_TOKEN_FILE']), 'fresh-token')
+
+ def run(args, **kwargs):
+ if 'is-active' in args:
+ return 'active\n'
+ if '^TestStaging$' in args:
+ env = kwargs['env']
+ runs.append(env)
+ self.assertEqual(env['EQUIPO_STAGING_TOKEN'], 'fresh-token')
+ self.assertGreaterEqual(int(env['EQUIPO_STAGING_TURN_LIMIT']), 25)
+ self.assertTrue(all(b['person_id'] == addresses[-1] for b in json.loads(bindings.read_text())))
+ if fail:
+ raise RuntimeError('scenario failed')
+ Path(env['EQUIPO_HEADLESS_REPORT']).write_text('{}')
+ return ''
+
+ with patch.multiple(staging, ROOT=root, SUITE_ROOT=suite_root), \
+ patch.object(staging, 'mail_signin', side_effect=mail), \
+ patch.object(staging, 'setup_test', side_effect=setup), \
+ patch.object(staging, 'claude_a', return_value={'person_id': 'owner@example.com'}), \
+ patch.object(staging, 'run', side_effect=run), \
+ patch.object(staging, 'cleanup_suite', side_effect=lambda token, person: cleaned.append(person)), \
+ patch.object(staging, 'record_running', side_effect=lambda: records.append(True)), \
+ patch.dict(os.environ, {}, clear=False):
+ os.environ.pop('EQUIPO_STAGING_TURN_LIMIT', None)
+ os.environ['TMPDIR'] = str(root)
+ staging.suite()
+ staging.suite('2_project')
+ fail = True
+ with self.assertRaisesRegex(RuntimeError, 'scenario failed'):
+ staging.suite()
+ self.assertEqual(len(set(addresses)), 3)
+ self.assertTrue(all(a.startswith('suite-') and a.endswith('@equipo-staging.invalid') for a in addresses))
+ self.assertEqual(cleaned, addresses)
+ self.assertEqual(len(records), 1)
+ self.assertEqual(bindings.read_text(), original)
+ self.assertEqual(len({e['EQUIPO_STAGING_RUN_ID'] for e in runs}), 3)
+ self.assertFalse(list(root.glob('equipo-suite-*')))
+
+ def test_cleanup_only_this_person_and_continues_after_failure(self):
+ person = 'suite-run@equipo-staging.invalid'
+ tasks = [dict(id='ours-1', creator=person, stage='noted'),
+ dict(id='human', creator='owner@example.com', stage='in_progress'),
+ dict(id='old', creator='suite-old@equipo-staging.invalid', stage='noted'),
+ dict(id='ours-done', creator=person, stage='done'),
+ dict(id='ours-2', creator=person, stage='in_progress')]
+ requests = []
+ from io import BytesIO
+
+ def respond(req, **kwargs):
+ requests.append(req)
+ if req.full_url.endswith('/tasks'):
+ return BytesIO(json.dumps({'items': tasks}).encode())
+ if 'ours-1' in req.full_url:
+ raise OSError('temporary failure')
+ return BytesIO(b'{}')
+
+ with patch.object(staging.urllib.request, 'urlopen', side_effect=respond):
+ staging.cleanup_suite('test-token', person)
+ self.assertEqual([r.method for r in requests], ['GET', 'POST', 'POST'])
+ self.assertEqual([r.full_url.rsplit('/', 2)[-2] for r in requests[1:]], ['ours-1', 'ours-2'])
+ self.assertTrue(all(r.get_header('Authorization') == 'Bearer test-token' for r in requests))
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/scripts/staging-thin.py b/scripts/staging-thin.py
index 0b9da2d8..f432173d 100755
--- a/scripts/staging-thin.py
+++ b/scripts/staging-thin.py
@@ -22,6 +22,7 @@ Only equipo-staging in Oficina on the flagship console, and only the
staging runner units, are ever touched. Cookies, bearers and sign-in links
are kept in 0600 files under the staging root and never printed.
"""
+from contextlib import contextmanager
import fcntl
import hashlib
import html
@@ -36,6 +37,7 @@ import shutil
import subprocess
import sys
import time
+import tempfile
import urllib.parse
import urllib.request
@@ -293,7 +295,7 @@ def mail_signin(address, cookie_path):
def setup_test(cookie, **extra):
env = dict(os.environ, CGO_ENABLED='0', EQUIPO_STAGING_ORIGIN=ORIGIN, EQUIPO_STAGING_COOKIE=cookie, **extra)
- run(['go', 'test', './internal/headless', '-run', '^TestStagingSetup$', '-count=1', '-v'], env=env)
+ run(['go', 'test', './internal/stagingtest', '-run', '^TestStagingSetup$', '-count=1', '-v'], env=env)
def signin():
@@ -427,8 +429,64 @@ def enrol(release, env, cookie_path):
print('staging runner enrolled')
+def cleanup_suite(token, person):
+ def request(path, method='GET'):
+ req = urllib.request.Request(ORIGIN + '/api/v1' + path, method=method,
+ headers={'Authorization': 'Bearer ' + token,
+ 'Idempotency-Key': secrets.token_hex(16)})
+ with urllib.request.urlopen(req, timeout=30) as response:
+ return json.load(response)
+ try:
+ tasks = request('/tasks')['items']
+ except Exception as error:
+ print('suite cleanup: ' + redact(str(error)), flush=True)
+ return
+ for task in tasks:
+ if task['creator'] != person or task['stage'] in ('done', 'cancelled'):
+ continue
+ try:
+ request('/tasks/' + urllib.parse.quote(task['id'], safe='') + '/cancel', 'POST')
+ except Exception as error:
+ print('suite cleanup ' + task['id'] + ': ' + redact(str(error)), flush=True)
+
+
+@contextmanager
+def fresh_suite():
+ run_id = time.strftime('%Y%m%dT%H%M%SZ', time.gmtime()).lower() + '-' + secrets.token_hex(6)
+ person = 'suite-' + run_id + '@equipo-staging.invalid'
+ bindings = SUITE_ROOT / 'config/bindings.json'
+ original = bindings.read_text()
+ # Reuse only the installed suite runner, never restart the owner's.
+ active = run(['systemctl', '--user', 'is-active', SUITE_UNIT], check=False, quiet=True).strip() == 'active'
+ with tempfile.TemporaryDirectory(prefix='equipo-suite-', dir=os.environ.get('TMPDIR', str(Path.home() / '.cache'))) as folder:
+ root = Path(folder)
+ owner = mail_signin(claude_a()['person_id'], root / 'owner-cookie')
+ setup_test(owner, EQUIPO_STAGING_ADD_OWNER=person)
+ cookie = mail_signin(person, root / 'cookie')
+ setup_test(cookie, EQUIPO_STAGING_TOKEN_FILE=str(root / 'token'))
+ token = (root / 'token').read_text().strip()
+ try:
+ run(['systemctl', '--user', 'stop', SUITE_UNIT])
+ private(bindings, json.dumps([dict(b, person_id=person) for b in json.loads(original)]))
+ run(['systemctl', '--user', 'start', SUITE_UNIT])
+ print('suite run ' + run_id + ' as ' + person, flush=True)
+ yield run_id, token
+ finally:
+ try:
+ cleanup_suite(token, person)
+ finally:
+ run(['systemctl', '--user', 'stop', SUITE_UNIT])
+ private(bindings, original)
+ if active:
+ run(['systemctl', '--user', 'start', SUITE_UNIT])
+
+
def suite(only=''):
- token = (SUITE_ROOT / 'token').read_text().strip()
+ with fresh_suite() as (run_id, token):
+ suite_run(only, run_id, token)
+
+
+def suite_run(only, run_id, token):
restart = f'carlos restart --app {APP} --account {ACCOUNT} --console {CONSOLE}'
env = dict(os.environ, CGO_ENABLED='0', EQUIPO_STAGING_ORIGIN=ORIGIN, EQUIPO_STAGING_TOKEN=token,
EQUIPO_STAGING_RUNNER_START=f'systemctl --user start {SUITE_UNIT}',
@@ -438,7 +496,9 @@ def suite(only=''):
# namespaces die with it. The unit restarts on failure.
EQUIPO_STAGING_RUNNER_KILL=f'systemctl --user kill --kill-whom=main --signal=SIGKILL {SUITE_UNIT} && sleep 1',
EQUIPO_STAGING_INSTANCE_RESTART=restart,
- EQUIPO_STAGING_TURN_LIMIT=os.environ.get('EQUIPO_STAGING_TURN_LIMIT', '10'),
+ # Observed 11-17 turns on 2026-11-19; allow retries and headroom.
+ EQUIPO_STAGING_TURN_LIMIT=os.environ.get('EQUIPO_STAGING_TURN_LIMIT', '30'),
+ EQUIPO_STAGING_RUN_ID=run_id,
EQUIPO_STAGING_SCENARIOS=only,
EQUIPO_STAGING_PROJECT=os.environ.get('EQUIPO_STAGING_PROJECT', 'oficina/equipo'),
# What the person says in the live Engineering scenarios: a
@@ -458,8 +518,13 @@ def suite(only=''):
# coordinator turn that should run on Codex (claude-a limited).
EQUIPO_STAGING_CONN_WITNESS=os.environ.get('EQUIPO_STAGING_CONN_WITNESS', ''),
EQUIPO_HEADLESS_REPORT=str(ROOT / 'report.json'))
- run(['go', 'test', './internal/headless', '-run', '^TestStaging$', '-count=1', '-v', '-timeout', '90m'], env=env, timeout=5600)
- print(json.dumps(json.loads((ROOT / 'report.json').read_text()), indent=2))
+ report = ROOT / 'report.json'
+ report.unlink(missing_ok=True)
+ try:
+ run(['go', 'test', './internal/headless', '-run', '^TestStaging$', '-count=1', '-v', '-timeout', '90m'], env=env, timeout=5600)
+ finally:
+ if report.exists():
+ print(report.read_text(), flush=True)
if not only:
record_running()