Build: Ops audit: upgrading a running Equipo
I added one report, `docs/ops-audit.md`. It lists every part of Equipo, how each one is upgraded today step by step, every hand edit and ID lookup, and a ranked plan for a single upgrade command with rollback. The main finding is that Mac workers already update themselves to whatever release the instance is running, but the Linux runner ignores the same signal. That's why each Linux upgrade means hand-editing the service file and config and running systemctl, and those steps are written only in agent reports. Two of those edits aren't needed: the tool proxy path setting and the instance ID lookup. The report also flags a real bug. The service file the normal installer writes doesn't stop systemd from restarting a runner that another runner has taken over from, so the two keep swapping. It's a one-line fix. The report also shows that four different written rules exist for whether the instance or the runners go first, and nothing enforces any of them. I couldn't read the production runner machine's own files, so its layout comes from the scripts and reports. I found no record of how the Codex fix was deployed. Bash commands were rejected late in the session, so no checks ran on this change, which is documentation only. Equipo task tkt65fw4fly2, Engineering step attempt 1.
1 file changed,
+455
−0
docs/ops-audit.md+455 −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/equipo__tkt65fw4fly2-build-ops-audit-upgrading-a-running: 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 3.3s
ci-box: codex: fetched and verified in 3.6s
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.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.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.8s
ci-box: clone deepened in 3.9s
ci-box: file times set from content: 2592 files, 151 directories
ci-box: ready in 17.4s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok amadan.net/oficina/equipo/internal/equipotest 0.241s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
1.1s
+ go list -export -test -tags testbuild -f ./...
0.5s
+ go list -export -test -tags browser,testbuild -f ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
0.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m18.558s 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.063s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.06s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 34.36, cpu waiting 19.90%, memory waiting 0.00%, io waiting 1.14%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m19.874s 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.303s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.3s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 34.36, cpu waiting 19.51%, memory waiting 0.00%, io waiting 1.11%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m21.045s 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.062s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.98s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.56s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.52s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 34.36, cpu waiting 19.51%, memory waiting 0.00%, io waiting 1.11%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m32.26s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m30.654s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.8s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 35.42s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 29.59, cpu waiting 16.55%, memory waiting 0.00%, io waiting 0.90%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m33.326s 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.733s amadan.net/oficina/equipo/internal/headless
receipt: slow test 57.56s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.67s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.49s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.36s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.66s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 29.59, cpu waiting 16.55%, memory waiting 0.00%, io waiting 0.90%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 3m0.425s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m58.515s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m41.67s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.46s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.16s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.94s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.25s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 9.17, cpu waiting 3.86%, memory waiting 0.00%, io waiting 0.20%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest
receipt: test step 1.043s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m56.643s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.71s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.4s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.38s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 1.17, cpu waiting 0.00%, memory waiting 0.00%, io waiting 4.15%
--- 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 371ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m9.144s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.84s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.38s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.03s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.77s amadan.net/oficina/equipo/internal/thintest TestContractTokenConnection
machine: 32 CPUs, load 1.17, cpu waiting 0.00%, memory waiting 0.00%, io waiting 4.15%
--- 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 4m14.776s, over the 45s its record on line 44 allows; reported only, timing fails on CI
receipt: test step 4m27.199s 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 4m14.776s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.76s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.66s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.63s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.38s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.46, cpu waiting 0.88%, memory waiting 0.00%, io waiting 0.04%
--- 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.284s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.187s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.16s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 38.08, cpu waiting 19.80%, memory waiting 0.00%, io waiting 1.89%
--- 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.851s 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.965s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.93s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.87s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.42s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 38.08, cpu waiting 19.66%, memory waiting 0.00%, io waiting 1.96%
--- 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.582s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 33.72s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.33s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 31.37, cpu waiting 14.16%, memory waiting 0.00%, io waiting 2.39%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 27.6%, load 24.61
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/ops-audit.md:46:54: unclassified equipo-runner
docs/ops-audit.md:46:99: unclassified equipo-runner
docs/ops-audit.md:46:203: unclassified equipo-runner
docs/ops-audit.md:48:60: unclassified equipo-runner
docs/ops-audit.md:48:96: unclassified equipo-runner
docs/ops-audit.md:49:52: unclassified equipo-runner
docs/ops-audit.md:49:89: unclassified equipo-runner
docs/ops-audit.md:49:103: unclassified equipo-runner
docs/ops-audit.md:49:134: unclassified equipo-runner
docs/ops-audit.md:50:27: unclassified Node
docs/ops-audit.md:50:58: unclassified equipo-runner
docs/ops-audit.md:52:74: unclassified equipo-runner
docs/ops-audit.md:81:26: unclassified equipo-runner
docs/ops-audit.md:82:5: unclassified equipo-runner
docs/ops-audit.md:83:14: unclassified equipo-runner
docs/ops-audit.md:84:27: unclassified equipo-runner
docs/ops-audit.md:95:39: unclassified equipo-runner
docs/ops-audit.md:113:7: unclassified equipo-runner
docs/ops-audit.md:272:13: unclassified equipo-runner
docs/ops-audit.md:279:55: unclassified equipo-runner
docs/ops-audit.md:281:18: unclassified equipo-runner
docs/ops-audit.md:342:8: unclassified equipo-runner
docs/ops-audit.md:352:20: unclassified equipo-runner
docs/ops-audit.md:354:9: unclassified equipo-runner
docs/ops-audit.md:355:21: unclassified equipo-runner
docs/ops-audit.md:359:9: unclassified equipo-runner
docs/ops-audit.md:364:4: unclassified equipo-runner
docs/ops-audit.md:369:10: unclassified equipo-runner
docs/ops-audit.md:376:4: unclassified equipo-runner
docs/ops-audit.md:378:4: unclassified equipo-runner
docs/ops-audit.md:430:31: unclassified equipo-runner
docs/ops-audit.md:434:5: unclassified equipo-runner
reference scan: 2307 text files, 2771 matches, 32 failures
--- FAIL: TestDirectDeadReferencesRepository (1.67s)
--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m1.282s
FAIL amadan.net/oficina/equipo/internal/equipotest 61.662s
receipt: test step 1m3.057s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m1.282s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.14s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.06s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.16s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.75s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.59s amadan.net/oficina/equipo/internal/equipotest TestAuthorityGrantReferences
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/ops-audit.md:46:54: unclassified equipo-runner
docs/ops-audit.md:46:99: unclassified equipo-runner
docs/ops-audit.md:46:203: unclassified equipo-runner
docs/ops-audit.md:48:60: unclassified equipo-runner
docs/ops-audit.md:48:96: unclassified equipo-runner
docs/ops-audit.md:49:52: unclassified equipo-runner
docs/ops-audit.md:49:89: unclassified equipo-runner
docs/ops-audit.md:49:103: unclassified equipo-runner
docs/ops-audit.md:49:134: unclassified equipo-runner
docs/ops-audit.md:50:27: unclassified Node
docs/ops-audit.md:50:58: unclassified equipo-runner
docs/ops-audit.md:52:74: unclassified equipo-runner
docs/ops-audit.md:81:26: unclassified equipo-runner
docs/ops-audit.md:82:5: unclassified equipo-runner
docs/ops-audit.md:83:14: unclassified equipo-runner
docs/ops-audit.md:84:27: unclassified equipo-runner
docs/ops-audit.md:95:39: unclassified equipo-runner
docs/ops-audit.md:113:7: unclassified equipo-runner
docs/ops-audit.md:272:13: unclassified equipo-runner
docs/ops-audit.md:279:55: unclassified equipo-runner
docs/ops-audit.md:281:18: unclassified equipo-runner
docs/ops-audit.md:342:8: unclassified equipo-runner
docs/ops-audit.md:352:20: unclassified equipo-runner
docs/ops-audit.md:354:9: unclassified equipo-runner
docs/ops-audit.md:355:21: unclassified equipo-runner
docs/ops-audit.md:359:9: unclassified equipo-runner
docs/ops-audit.md:364:4: unclassified equipo-runner
docs/ops-audit.md:369:10: unclassified equipo-runner
docs/ops-audit.md:376:4: unclassified equipo-runner
docs/ops-audit.md:378:4: unclassified equipo-runner
docs/ops-audit.md:430:31: unclassified equipo-runner
docs/ops-audit.md:434:5: unclassified equipo-runner
reference scan: 2307 text files, 2771 matches, 32 failures
--- FAIL: TestDirectDeadReferencesRepository (1.64s)
FAIL
rastrillo-budget/v1 ran 1.64s
FAIL amadan.net/oficina/equipo/internal/equipotest 1.889s
FAIL
machine: 32 CPUs, load 29.59, cpu waiting 15.48%, memory waiting 0.00%, io waiting 0.85%
make: *** [Makefile:113: ci-shard] Error 1
amadan: step check shard 12 of 29 failed: exit status 2
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 27.6%, load 24.61
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.268s 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 31.37, cpu waiting 12.71%, memory waiting 0.00%, io waiting 2.47%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 27.6%, load 24.61
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 1m12.094s 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 1m1.376s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 13.85s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.72s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.68s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.64s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.61s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 25.58, cpu waiting 14.04%, memory waiting 0.00%, io waiting 0.76%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 27.6%, load 24.61
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.268s 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 31.37, cpu waiting 12.71%, memory waiting 0.00%, io waiting 2.47%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 27.6%, load 24.61
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 473ms 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 24.61, cpu waiting 11.31%, memory waiting 0.00%, io waiting 2.56%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 27.6%, load 24.61
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/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/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:301 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.62s)
--- FAIL amadan.net/oficina/equipo/internal/runner/webread (package output)
FAIL
rastrillo-budget/v1 ran 1.117s
FAIL amadan.net/oficina/equipo/internal/runner/webread 1.126s
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.172s, over the 15s its record on line 40 allows; reported only, timing fails on CI
receipt: test step 2m14.764s against a 60s target (the gate's other steps are not in this figure)
receipt: 10 packages ran, 47 cached, 18 without tests, 1 failed
receipt: slow package 51.953s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 51.177s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 42.05s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 38.172s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 35.178s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 20.46s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.22s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 14.56s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 11.57s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest d7e5a25d576c220689a15a8559dc5794621bc37b 0.62s 11.30
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 10.47, cpu waiting 4.87%, memory waiting 0.00%, io waiting 0.25%
--- 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.108s 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.863s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.22s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.13s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.09s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.59s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.62s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 32.81, cpu waiting 19.03%, memory waiting 0.00%, io waiting 1.07%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m28.99s 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.407s amadan.net/oficina/equipo/internal/headless
receipt: slow test 24.84s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.61s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.82s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.94s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.62s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 31.39, cpu waiting 17.04%, memory waiting 0.00%, io waiting 0.93%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
receipt: test step 1m38.102s 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 1m36.543s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.08s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.85s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.75s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 10.21s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.05s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 27.46, cpu waiting 14.97%, memory waiting 0.00%, io waiting 0.82%
--- 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 TestBrowserEmptyExplore
=== RUN TestBrowserEmptyExplore
time=2026-11-18T16:27:54.543Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-18T16:27:54.543Z level=INFO msg="startup phase done" phase=state_lock took=73µs
time=2026-11-18T16:27:54.544Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-18T16:27:54.544Z level=INFO msg="startup phase done" phase=claim_roots took=108µs
time=2026-11-18T16:27:54.544Z level=INFO msg="startup phase" phase=sweep
time=2026-11-18T16:27:54.572Z level=INFO msg="startup phase done" phase=sweep took=28.402ms
time=2026-11-18T16:27:54.572Z level=INFO msg="startup phase" phase=credentials
time=2026-11-18T16:27:54.572Z level=INFO msg="startup phase done" phase=credentials took=109µs
time=2026-11-18T16:27:54.572Z level=INFO msg="startup phase" phase=open_state
time=2026-11-18T16:27:54.611Z level=INFO msg="startup phase done" phase=open_state took=39.103ms
time=2026-11-18T16:27:54.612Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-18T16:27:54.613Z level=INFO msg=connecting host=127.0.0.1:37077 protocol=26
time=2026-11-18T16:27:54.614Z level=INFO msg=connected host=127.0.0.1:37077 took=814µs
time=2026-11-18T16:27:54.614Z level=INFO msg="capabilities gathering"
time=2026-11-18T16:27:54.615Z level=INFO msg="capabilities gathered" took=595µs tags=linux,claude,go
time=2026-11-18T16:27:54.615Z level=INFO msg="hello sent" protocol=26
time=2026-11-18T16:27:54.621Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-18T16:27:55.635Z 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.82s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m24.647s
FAIL amadan.net/oficina/equipo/internal/headless 84.985s
receipt: test step 1m26.107s 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.647s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.71s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.64s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.33s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.1s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.88s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserEmptyExplore$' -count=1 ./internal/headless (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest d7e5a25d576c220689a15a8559dc5794621bc37b 5.82s 32.81
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 29.59, cpu waiting 15.48%, memory waiting 0.00%, io waiting 0.85%
--- 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 887ms 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 226ms 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 954ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m59.541s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.54s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.69s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.02s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 4.92, cpu waiting 1.53%, memory waiting 0.00%, io waiting 3.95%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.22s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.33s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.32s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.75s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.85s
+ 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 (52s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.52s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.17s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.02s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.49s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (21s)
ok ./internal/headless TestMixedVersions 19.66s
+ 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 38.88, cpu waiting 20.21%, memory waiting 0.00%, io waiting 1.77%
--- 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 7.851s 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.959s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 179ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 77ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.58s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms 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.985s 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.606s 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 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 13.99, cpu waiting 4.56%, memory waiting 0.00%, io waiting 3.45%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 27.6%, load 24.61
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
docs/ops-audit.md:46:54: unclassified equipo-runner
docs/ops-audit.md:46:99: unclassified equipo-runner
docs/ops-audit.md:46:203: unclassified equipo-runner
docs/ops-audit.md:48:60: unclassified equipo-runner
docs/ops-audit.md:48:96: unclassified equipo-runner
docs/ops-audit.md:49:52: unclassified equipo-runner
docs/ops-audit.md:49:89: unclassified equipo-runner
docs/ops-audit.md:49:103: unclassified equipo-runner
docs/ops-audit.md:49:134: unclassified equipo-runner
docs/ops-audit.md:50:27: unclassified Node
docs/ops-audit.md:50:58: unclassified equipo-runner
docs/ops-audit.md:52:74: unclassified equipo-runner
docs/ops-audit.md:81:26: unclassified equipo-runner
docs/ops-audit.md:82:5: unclassified equipo-runner
docs/ops-audit.md:83:14: unclassified equipo-runner
docs/ops-audit.md:84:27: unclassified equipo-runner
docs/ops-audit.md:95:39: unclassified equipo-runner
docs/ops-audit.md:113:7: unclassified equipo-runner
docs/ops-audit.md:272:13: unclassified equipo-runner
docs/ops-audit.md:279:55: unclassified equipo-runner
docs/ops-audit.md:281:18: unclassified equipo-runner
docs/ops-audit.md:342:8: unclassified equipo-runner
docs/ops-audit.md:352:20: unclassified equipo-runner
docs/ops-audit.md:354:9: unclassified equipo-runner
docs/ops-audit.md:355:21: unclassified equipo-runner
docs/ops-audit.md:359:9: unclassified equipo-runner
docs/ops-audit.md:364:4: unclassified equipo-runner
docs/ops-audit.md:369:10: unclassified equipo-runner
docs/ops-audit.md:376:4: unclassified equipo-runner
docs/ops-audit.md:378:4: unclassified equipo-runner
docs/ops-audit.md:430:31: unclassified equipo-runner
docs/ops-audit.md:434:5: unclassified equipo-runner
reference scan: 2307 text files, 2771 matches, 32 failures
make[1]: *** [Makefile:229: runner-dead-references] Error 1
machine: 32 CPUs, load 24.61, cpu waiting 12.71%, memory waiting 0.00%, io waiting 2.47%
make: *** [Makefile:113: ci-shard] Error 2
amadan: step check shard 25 of 29 failed: exit status 2
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 27.6%, load 24.61
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 24.61, cpu waiting 12.71%, memory waiting 0.00%, io waiting 2.47%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 27.6%, load 24.61
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 31.37, cpu waiting 15.36%, memory waiting 0.00%, io waiting 2.31%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 27.6%, load 24.61
shard 28: make gitleaks
[90m4:27PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m4:27PM[0m [32mINF[0m [1m973 commits scanned.[0m
[90m4:27PM[0m [32mINF[0m [1mscanned ~58562195 bytes (58.56 MB) in 12.2s[0m
[90m4:27PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 36.35, cpu waiting 18.44%, memory waiting 0.00%, io waiting 2.09%
amadan: job failed at step check shards 12, 25 of 29 — its output is above, not at the tail of this log
diff --git a/docs/ops-audit.md b/docs/ops-audit.md| new file mode 100644 |
| index 00000000..0299e072 |
| --- /dev/null |
| +++ b/docs/ops-audit.md |
| @@ -0,0 +1,455 @@ |
| +# Ops audit: upgrading a running Equipo |
| + |
| +Date: 2026-11-18. Scope: how a merged change reaches the running system, |
| +what is manual, what is fragile, and what one upgrade command should look |
| +like. This is a read of the repository only. Nothing was run against |
| +production or staging, and the production runner host's own files |
| +(`service.env`, the unit) were not readable from here, so production's |
| +layout is described from the scripts and reports that change it. |
| + |
| +The goal, in the person's words: "once I have a new build of all the |
| +various parts, I really ought to be able to upgrade a running system |
| +without needing to directly run systemctl on small parts and dig out |
| +instance IDs from configs etc." |
| + |
| +## Short version |
| + |
| +- One `make release` already builds every part from one commit, and the |
| + instance already carries the runner binaries for its own release and |
| + serves them at `/releases/<version>/`. The build side is in good shape. |
| +- The instance upgrade is one `carlos deploy`. The pain is the Linux |
| + runner. It has no upgrade command, so each upgrade is a hand-written |
| + procedure that copies files, rewrites `ExecStart` in the unit and |
| + `EQUIPO_TOOL_PROXY_PATH` in the env file, then runs `systemctl`. Those |
| + procedures live in agent reports, not in code. |
| +- Mac workers already upgrade themselves. The instance's `welcome` names |
| + its release, and the worker downloads, verifies, swaps and restarts |
| + (`internal/runner/thin/mac.go:872-945`). The Linux primary ignores the |
| + same field. Closing that gap removes most of the manual work. |
| +- The order of the upgrade (instance first or runners first) has been |
| + written down four different ways, and nothing enforces any of them. |
| +- Some of the hand edits are not needed at all. The runner already finds |
| + the tool proxy beside its own binary when `EQUIPO_TOOL_PROXY_PATH` is |
| + unset (`internal/runner/config.go:197-202`). The instance ID in the |
| + config is only checked against what enrolment already saved |
| + (`internal/runner/enrol.go:56`). |
| +- A real bug found on the way: the unit the installer writes has no |
| + `RestartPreventExitStatus=3`, so a superseded runner is restarted by |
| + systemd every 5 seconds (see 3.6). |
| + |
| +## 1. Inventory |
| + |
| +| Part | Where it runs | Built by | Version | How it is upgraded today | |
| +|---|---|---|---|---| |
| +| Instance `equipo` | CARLOS app `equipo`, account `oficina`, console.carloku.com, channel `edge`, linux/arm64 | `make release` (`scripts/release-isolated.sh` then `release-in-tree`, `scripts/build-instance-release.sh`) | short commit, stamped as `rastrillo.BuildVersion`, read at `GET /api/version` | `carlos deploy ... --swap hold --version <sha>`, then poll `/api/version` | |
| +| Staging instance `equipo-staging` | CARLOS, account `bds` | same artifacts | same | `scripts/staging-thin.py deploy` (runs `carlos env set`, then `carlos deploy --swap hold`) | |
| +| Linux primary runner | docs-t1, user systemd unit `equipo-runner.service`, root `~/.local/share/equipo-runner` | `make release-runner` (part of `make release`), linux/amd64 | same short commit, also `equipo-runner version` | by hand: copy into `releases/<sha>/`, edit unit and env file, `systemctl --user daemon-reload` and `restart` (section 2) | |
| +| Tool proxy `equipo-tool-proxy` | beside the Linux runner, started per attempt | built first in `release-runner`; its SHA-256 is linked into the runner and the instance (`Makefile:266-267`) | must be the same build as the runner | copied with the runner; its path is hand-edited in the env file | |
| +| Staging runners (owner and suite) | same machine, units `equipo-runner-staging.service` and `equipo-runner-staging-suite.service` | same | same | `scripts/staging-thin.py runner` (writes both units and env files from scratch, restarts them) | |
| +| Mac workers | each Mac, launchd agent `io.amadan.equipo-runner`, binary `~/.local/lib/equipo-runner/equipo-runner`, env `~/.config/equipo-runner/runner.env` | `make release-runner`, darwin/arm64 | same | automatic: follows the instance's release (`mac.go:883-945`), exits 75 and launchd starts the new binary | |
| +| Mac sandbox tools (srt, Node, ripgrep) | `~/.local/lib/equipo-runner/{srt,tools}` on each Mac | pinned in the runner (`internal/runner/mac/pins.go`) | pins | only by running the installer again; self-update swaps the binary only (`DARWIN-PROGRESS.md:295-296`) | |
| +| Pinned provider CLIs (claude, codex, codex code mode host, bwrap) | on the Linux runner host, paths in the env file | not built here; pinned by digest in `internal/release/manifest.json` and the provider packages | `ClaudeVersion`, `CodexVersion` | by hand on the host, and only together with a release whose pins match (`scripts/runner-release-check.py`) | |
| +| Pi and OpenCode trees | under the staging root (`pi/`, `opencode/`) | `equipo-runner install-pi` / `install-opencode`, pinned | pins | staging runs both on every restage (`staging-thin.py:364-376`); no production script does | |
| +| Native apps and Base | outside this repository | separate teams | API v1 (`docs/api/equipo-v1.md`) | not deployed from here; device bearers survive an instance upgrade on the same database | |
| + |
| +### How each one is upgraded, step by step |
| + |
| +**Instance (production).** There is no script for an ordinary upgrade. |
| +The pieces are: |
| + |
| +1. In a clean checkout, source the runner's env file so the release check |
| + can hash the installed provider CLIs, then `make release` |
| + (`CONTROLLER-REPORT-connection-available.md:156-163`). |
| +2. Stage it: `scripts/staging-thin.py release`, then `suite`, which writes |
| + `releases/staged/<sha>.json` (`scripts/staged-artifacts.py`). |
| +3. `make staged-check RELEASE_VERSION=<sha>`. |
| +4. `carlos deploy --app equipo --account oficina --console ... --channel edge --target linux-arm64 --swap hold --version <sha> --timeout 5m --no-prompt releases/equipo-linux-arm64-<sha>`. |
| + The command shape is only written out in `scripts/cutover-thin.sh:197`. |
| + The README's example (`README.md:76`) uses an unversioned file name that |
| + `make release` no longer produces and leaves out `--swap hold`, which the |
| + README itself says is required with execution on (`README.md:79-81`). |
| +5. Poll `GET /api/version` until it reports `<sha>`. |
| + |
| +Rollback: `carlos promote ... <previous sha> edge`. Nothing records the |
| +previous version except the one-off cutover script (`cutover-thin.sh:149`). |
| +Migrations are additive (`AGENTS.md`), so promoting the old build onto the |
| +newer schema is expected to work. |
| + |
| +**Linux primary runner (production).** The procedure written most recently |
| +(`CONTROLLER-REPORT-connection-available.md:166-204`): |
| + |
| +1. `mkdir ~/.local/share/equipo-runner/releases/<sha>` and copy |
| + `equipo-runner`, `equipo-tool-proxy` and `install-manifest.json` from |
| + `releases/equipo-runner-linux-amd64-<sha>/`. |
| +2. `systemctl --user stop equipo-runner.service`. |
| +3. Rewrite the `ExecStart=` line in the unit to the new directory. |
| +4. Rewrite `EQUIPO_TOOL_PROXY_PATH=` in `service.env` to the new directory. |
| +5. `systemctl --user daemon-reload`, then `start`, then `is-active`. |
| +6. Confirm by hand through `carlos db query` that the runner's heartbeat is |
| + newer than the restart. |
| + |
| +An earlier report did the same with a different file name and a different |
| +unit location (`CONTROLLER-REPORT-runner-start.md:152-188`: `runner.env`, |
| +unit at the root, a backup copy, `verify-install-manifest`). Neither |
| +procedure runs `verify-installed`, which the cutover script and staging |
| +both run before starting a unit (`cmd/equipo-runner/install.go:90-94`). |
| + |
| +**Staging runners.** `scripts/staging-thin.py runner` regenerates |
| +everything: env file (copying provider paths out of the production env |
| +file), unit, Pi and OpenCode, enrolment if needed, then `systemctl --user |
| +restart`. `release` does an idle check, then runners, then the instance. |
| + |
| +**Mac workers.** Nothing to do. On each `welcome` whose `release` differs |
| +from its own, the worker downloads `install-manifest.json` and its |
| +darwin binary from the instance, checks the digest, swaps the file while |
| +holding new attempts, and exits `mac.ExitUpdated` (75) so launchd starts |
| +it again (`internal/runner/thin/mac.go:883-945`, |
| +`internal/runner/mac/launchd.go:11-15`). The Mac installer stops the |
| +agent itself before replacing anything (`install_mac.go:147-153`). |
| +`DARWIN-PROGRESS.md:262-273` lists the swap under launchd as something |
| +only a real Mac can confirm. |
| + |
| +**The Linux installer.** `curl .../releases/<sha>/install-v1.sh | sh` |
| +runs `equipo-runner install` (`internal/runner/setup/install.go`). It |
| +lays out `releases/<sha>/`, writes `runner.env` and a unit at the root, |
| +and runs `systemctl --user link/daemon-reload/enable/restart` |
| +(`setup/service.go:33-40`). It is built for a first install, and it cannot |
| +upgrade the production runner in place (section 4). |
| + |
| +## 2. Every manual step |
| + |
| +Taken from `scripts/cutover-thin.sh`, `scripts/staging-thin.py`, |
| +`internal/runner/setup` and the controller reports. |
| + |
| +Hand-edited config: |
| + |
| +- `ExecStart=` in the unit, every upgrade (`cutover-thin.sh:223`, |
| + `CONTROLLER-REPORT-connection-available.md:188-190`, |
| + `CONTROLLER-REPORT-runner-start.md:170-183`). |
| +- `EQUIPO_TOOL_PROXY_PATH=` in the env file, every upgrade |
| + (`cutover-thin.sh:222`, `CONTROLLER-REPORT-connection-available.md:191-193`). |
| +- `RestartPreventExitStatus=3` added by `sed` (`cutover-thin.sh:223`), |
| + because the installer's unit lacks it. |
| +- `EQUIPO_INSTANCE_ID=` rewritten when the instance's database changes |
| + (`cutover-thin.sh:222`). |
| +- A whole unit typed in as a heredoc (`CONTROLLER-REPORT-enable-execution.md:359-379`). |
| +- A line added to the staging runner's `service.env` by hand |
| + (`specs/2026-11-11-equipo-release-preview.md:203`). |
| +- Instance settings through `carlos env set` / `carlos secrets set` |
| + (`README.md:37-53`, `staging-thin.py:202-214`). |
| + |
| +IDs and facts looked up: |
| + |
| +- The instance ID, from the database through the replica: |
| + `carlos db query ... "select id from teams"` (`cutover-thin.sh:207`). |
| + Staging gets it from `GET /api/v1/me` as `team_id` (`staging-thin.py:309-312`). |
| +- The old instance ID, parsed out of `service.env` with `sed` |
| + (`cutover-thin.sh:158`). |
| +- The served version, from `/api/version`, to know what to roll back to |
| + (`cutover-thin.sh:149`). |
| +- Provider CLI paths, read from the production env file to build a |
| + release and to configure staging (`staging-thin.py:137-141, 342-345`). |
| +- Whether work is in flight, by SQL against a replica copy |
| + (`staging-thin.py:501-509`). |
| +- Whether the upgraded runner is alive, by SQL against `connections` or |
| + by hand in the UI (`CONTROLLER-REPORT-connection-available.md:206-221`, |
| + `CONTROLLER-REPORT-runner-start.md:197-208`). |
| + |
| +Direct systemctl: `stop`, `start`, `restart`, `daemon-reload`, |
| +`is-active`, `status`, `show -p MainPID` and `kill` across both scripts and |
| +three reports. The installer runs `link`, `enable` and `restart` itself. |
| + |
| +Re-enrolment: only when the instance's database changes (cutover step 8, |
| +or a fresh staging database). An ordinary upgrade keeps the enrolment. |
| +Re-running the Linux installer on an enrolled runner keeps a valid |
| +enrolment (`enrol.go:49-60`). |
| + |
| +## 3. Fragility |
| + |
| +### 3.1 Version skew between instance and runner |
| + |
| +What happens: each connection speaks the lower of the two protocols |
| +(`wire.Spoken`, `internal/wire/runners.go:1042-1044`), and the instance |
| +encodes every frame down to that level (`wire.Encode`). A newer runner |
| +against an older instance falls back once to protocol 1 if its hello is |
| +refused (`internal/runner/thin/link.go:508-529`). So skew does not crash |
| +anything. It quietly turns features off. For example, below |
| +`ProtocolMetered` an older runner "is refused metered connections rather |
| +than downgraded" (`runners.go:97-104`), and a fix that lives in the runner |
| +does nothing until the runner is replaced. During the Connections slice |
| +restage, the old runners' streams "were refused the new frames" for about |
| +a minute (`CONN1-PROGRESS.md:226-229, 260-261`). |
| + |
| +Is it detected: only passively. The Machines page shows each runner's |
| +reported version and protocol (`internal/equipo/machines_view.go:139-142`). |
| +Nothing compares them with the instance's own `BuildVersion`, nothing |
| +warns, and no log line on the instance says a runner is behind. A Mac |
| +worker refuses an instance below protocol 2 (`link.go:594-598`), which is |
| +the only enforced rule. |
| + |
| +### 3.2 Ordering |
| + |
| +Four versions of the rule exist: |
| + |
| +1. Mac runners spec, line 329: "instance, then the primary, then workers". |
| +2. `CONN1-PROGRESS.md:260-261`: "install runners right after the instance". |
| +3. `scripts/staging-thin.py:512-527` (2026-11-11): runners first, then the |
| + instance, because a runner restart fails running steps and an instance |
| + swap does not. |
| +4. `scripts/cutover-thin.sh`: instance, then runner (forced there by the |
| + new database). |
| + |
| +The protocol handles both orders. The real constraint is in-flight work |
| +(3.4), and the staging order is the one that respects it. Nothing |
| +enforces any order in production: there is no production upgrade script, |
| +and the reports deploy the instance first. Mac workers can only follow |
| +the instance, because their release comes from it. |
| + |
| +### 3.3 Rollback |
| + |
| +- Instance: `carlos promote <previous>`. Works, but the previous version |
| + is not recorded anywhere unless someone notes it first. |
| +- Linux runner: the old `releases/<sha>/` directory is kept, so rollback |
| + is the same hand edit in reverse. Only the runner-start report keeps a |
| + backup of the unit. Only the cutover script keeps a backup of the env file. |
| +- Mac workers: follow the instance both ways, since they accept any valid |
| + release the instance names (`mac.go:884`). Rolling the instance back |
| + rolls them back. |
| +- Pins: if the release being rolled back to pins a different claude or |
| + codex than the one now installed, `verify-installed` and the runtime |
| + check (`internal/runner/runtime_direct.go:166`) refuse. Rollback of the |
| + runner then also needs the old CLI back. |
| +- The only scripted, recorded rollback is in `cutover-thin.sh`, which |
| + covers a one-time database move rather than ordinary upgrades. |
| + |
| +### 3.4 In-flight work during a restart |
| + |
| +- Instance swap: the old process sends `drain` and closes with |
| + "service restart" (`internal/equipo/chat/stream.go:265-267`). Runners |
| + reconnect, and steps keep running and report on reconnect. This is safe. |
| +- Runner restart: systemd sends SIGTERM, waits `TimeoutStopSec=45`, and |
| + `KillMode=control-group` ends the step namespaces. On the next start a |
| + step that had not committed reports `failed / runner_restarted` |
| + (`internal/runner/thin/step.go:413-414`). A coordinator turn is retried |
| + once, then fails `runner_restarted` (`thin/state.go:571-584`). Merges, |
| + publishes and hosted checks reconcile instead of failing |
| + (`step.go:397-410`). Triage gives a `runner_restarted` stop one |
| + automatic retry (`internal/equipo/triage/triage.go:79-82`), so the work |
| + usually runs again, but the time spent is lost and a second restart |
| + inside one step is a real failure. |
| +- The only guard is staging's idle check: a SQL count of queued and |
| + running steps through `carlos db query`, waiting up to 40 minutes |
| + (`staging-thin.py:498-547`). It reads a replica copy, so a step can be |
| + dispatched between the check and the restart. Production has no guard. |
| + The cutover comment says the runner "finishes or releases in-flight work |
| + on SIGTERM" (`cutover-thin.sh:175`). The code above shows that is true |
| + only for merges, publishes and hosted checks. |
| +- The Mac updater already does this correctly: it swaps "between steps" |
| + by holding new attempts while it renames the binary (`mac.go:937-943`). |
| + |
| +### 3.5 Procedures that live only in reports |
| + |
| +- Ordinary production runner upgrade: |
| + `CONTROLLER-REPORT-connection-available.md:147-235`, |
| + `CONTROLLER-REPORT-runner-start.md:146-208`. |
| +- First production runner install by hand: |
| + `CONTROLLER-REPORT-enable-execution.md:250-380`. |
| +- Stopping the unit to debug: `CODEX-BRIEF-connection-available.md:28-35`. |
| +- "Install runners right after the instance": `CONN1-PROGRESS.md:260`. |
| +- The README's Deploying section is out of date (file name, no |
| + `--swap hold` in the example, no runner step). |
| + |
| +I found no written record of how the recent Codex connection fix was |
| +deployed. The connection-available report is the closest example of the |
| +same kind of change: a fix in the runner, needing both parts upgraded. |
| + |
| +### 3.6 Bug: the installer's unit restarts a superseded runner |
| + |
| +`main.go:203-205` says systemd must not restart a runner that lost its |
| +lease, and exits 3 for that. Staging's unit and the cutover's `sed` add |
| +`RestartPreventExitStatus=3`. The unit the installer writes |
| +(`internal/runner/setup/service.go:14`) and the packaged unit |
| +(`packaging/equipo-runner.service`) do not. A runner installed through the |
| +normal one-line installer is therefore restarted 5 seconds after it is |
| +superseded, and the two processes take turns holding the lease. This is a |
| +one-line fix, separate from the upgrade work. |
| + |
| +## 4. Accidental complexity |
| + |
| +1. **The unit is defined in five places.** `packaging/equipo-runner.service` |
| + (copied into every release, never used by the installer, and pointing |
| + at `~/.config/equipo-runner/runner.env` and `~/.local/lib`, which is the |
| + Mac layout); `serviceUnit()` in `setup/service.go`; the Python string |
| + in `staging-thin.py:383-386`; the `sed` in `cutover-thin.sh:223`; the |
| + heredoc in the enable-execution report. They disagree (3.6). |
| +2. **Two names for the env file.** The installer and Mac write |
| + `runner.env`. Staging, the cutover and production now use |
| + `service.env`. Reports from different dates source either. |
| +3. **`ExecStart` points into a versioned directory**, so every upgrade |
| + edits the unit and reloads systemd. A stable path (a `current` symlink |
| + to `releases/<sha>`) would make an upgrade "flip the link, restart". |
| + `os.Executable()` resolves the link, so the runner still finds its own |
| + tool proxy. |
| +4. **`EQUIPO_TOOL_PROXY_PATH` does not need to be set.** Unset, the runner |
| + uses the `equipo-tool-proxy` beside its own executable |
| + (`config.go:197-202`), which is where every install puts it. Every |
| + upgrade rewrites a line that could be deleted. |
| +5. **`EQUIPO_INSTANCE_ID` is required after enrolment, but nothing new |
| + comes from it.** Validation requires it (`config.go:70-74, 104-106`). The thin runner's |
| + only other use is to compare it with `enrolment.json`, which already |
| + holds it (`enrol.go:56`). It matters when enrolling, and the installer |
| + one-liner already carries it (`internal/release/install.go:113`). |
| + Looking it up in the database is needed only when the database changes. |
| +6. **Production has drifted off the installer's layout, so the installer |
| + cannot upgrade it.** The installer replaces only files it stamped with |
| + its own extended attribute (`setup/install.go:198-222`). Hand-copied |
| + binaries and a hand-edited unit are refused. It writes `runner.env` |
| + while production reads `service.env`. On Linux it does not stop the |
| + running unit first, so enrolment's state lock fails (`enrol.go:43-47`). |
| + The Mac installer handles that case. |
| +7. **Two upgrade models for one binary.** The Mac worker follows the |
| + instance. The Linux primary waits for a person with a shell. |
| +8. **The release build reads the production runner's config.** `make |
| + release` checks the pinned CLIs on the build machine, so the build is |
| + run after sourcing the runner's env file. Staging also copies provider |
| + paths out of the production env file. Building is tied to the runner host. |
| +9. **Order and idle logic live in a staging script.** The product does not |
| + know how to drain itself. A Python script approximates it with SQL on a |
| + replica copy. |
| +10. **Version facts are read in four ways:** `/api/version`, `carlos db |
| + query` on `connections`, `systemctl show -p MainPID` with a hash of |
| + `/proc/<pid>/exe`, and the Machines page. The instance already knows |
| + the answer from each runner's hello. |
| + |
| +## 5. Proposal: one upgrade path |
| + |
| +The target, from the operator's side: |
| + |
| +```sh |
| +make release # unchanged |
| +scripts/staging-thin.py release # unchanged gate, then suite |
| +scripts/upgrade.sh <sha> # production: instance, then runners follow |
| +scripts/upgrade.sh rollback # promote the previous build; runners follow |
| +``` |
| + |
| +There is no `systemctl` and no instance ID. The operator does not touch the |
| +runner host. The pieces below are ranked by payoff for the effort. Each one |
| +is useful on its own. |
| + |
| +| # | Change | Effort | Payoff | |
| +|---|---|---|---| |
| +| 1 | One unit generator, fixed | hours | high (fixes 3.6, ends unit drift) | |
| +| 2 | `equipo-runner upgrade` / `rollback` / `adopt` on Linux | 1 to 2 days | high (removes every hand edit) | |
| +| 3 | Linux primary follows the instance's release | 2 to 3 days | highest (instance upgrade becomes the whole upgrade) | |
| +| 4 | Instance shows and gates skew, and holds dispatch to an upgrading runner | 1 day | medium (makes skew visible, replaces SQL idle polling) | |
| +| 5 | `scripts/upgrade.sh` for production, sharing pieces with staging | 1 day | medium (one written procedure, recorded rollback) | |
| +| 6 | Provider CLIs installed from pins, like Pi and OpenCode | 2 days | medium (pin bumps stop needing a person on the host) | |
| + |
| +### 1. One unit generator, fixed (hours) |
| + |
| +- Add `RestartPreventExitStatus=3` to `serviceUnit()` (`setup/service.go:14`) |
| + with a test that fails first, and make `ExecStart` a stable path |
| + (`<root>/current/equipo-runner run`). |
| +- Stop writing `EQUIPO_TOOL_PROXY_PATH` in `installConfig` |
| + (`cmd/equipo-runner/install_config.go:16`). The default already covers it. |
| +- Delete `packaging/equipo-runner.service` or generate it from |
| + `serviceUnit()`. Have `staging-thin.py` call the runner to write the unit |
| + instead of carrying its own copy. |
| + |
| +### 2. `equipo-runner upgrade`, `rollback` and `adopt` (1 to 2 days) |
| + |
| +A subcommand that owns the runner's unit, env file and release directory, |
| +reusing `setup.installUser`'s fetch and digest checks: |
| + |
| +- `equipo-runner upgrade [--release <sha>]`: by default, the release the |
| + instance serves (`welcome.release`, or a small `GET` beside |
| + `/api/runner/protocol`). Download `install-manifest.json`, the runner |
| + and the tool proxy from `<origin>/releases/<sha>/` and verify them as the |
| + installer does. Write them to `releases/<sha>/`, then run |
| + `<new>/equipo-runner verify-installed` with the current env. If the |
| + release pins a claude or codex that is not installed, stop here with |
| + that message and leave the running runner alone. Wait until the runner |
| + is idle (2.1). Flip `current` atomically, `systemctl --user restart`, |
| + and wait for the instance to report the new version for this runner. If |
| + it does not within a bound, flip back and restart. That is the automatic |
| + rollback. |
| +- `equipo-runner rollback`: flip `current` to the previous release and |
| + restart, after the same checks. |
| +- `equipo-runner adopt`: a one-time move of an existing hand-made install |
| + (production today) onto the owned layout. It reads the current unit and |
| + env file, writes them back through the one generator with the installer's |
| + ownership stamp, renames `service.env` to the one chosen name or points |
| + the unit at it, creates `current`, and keeps the old files as a dated |
| + backup. After this, `install` and `upgrade` can both manage the host. |
| +- The env file stays the person's for settings (provider paths, preview |
| + host, Pi root). The command edits only the lines it owns, and with |
| + change 1 no line needs to change on upgrade at all. |
| + |
| +2.1 Idle: the runner itself knows what it is running (its journal). The |
| +upgrade asks the running process, through a local socket or the state |
| +directory, to hold new attempts, as the Mac updater's `hold` does, and to |
| +report when nothing is running. The upgrade waits, with a bound, then |
| +restarts. This replaces the replica SQL check and closes its race. |
| + |
| +### 3. The Linux primary follows the instance's release (2 to 3 days) |
| + |
| +Reuse `macUpdater` (`mac.go:872-945`) for the primary: on a `welcome` |
| +whose release differs, do what `upgrade` does (download, verify, then |
| +`verify-installed` on the new binary, hold and wait for idle, flip |
| +`current`), and exit `mac.ExitUpdated` (75). `Restart=on-failure` restarts |
| +on 75, since only 3 is excluded. Put it behind a runner setting at first, |
| +for example `EQUIPO_RUNNER_FOLLOW_INSTANCE=1`, and turn it on for staging |
| +before production. |
| + |
| +With this, the spec's order (instance, then runners) holds by |
| +construction. Each runner restarts only between steps, so the staging |
| +script's reason for going runners-first goes away. Rolling the instance |
| +back rolls every runner back the same way, as Mac workers already do. A |
| +runner whose pins do not match the new release stays on the old one and |
| +says so (4). |
| + |
| +### 4. The instance shows and gates skew (1 day) |
| + |
| +- The Machines page compares each runner's reported `runner` version with |
| + the instance's `BuildVersion`: "Runs <a>; this instance is <b>." If a |
| + runner is still behind some minutes after a deploy, show a needs-you item. |
| +- A runner that cannot follow (pins, disk, digest) reports why in its |
| + hello, and the page shows it. |
| +- Optionally, the instance stops placing new steps on a runner that said it |
| + is upgrading, so the idle wait is short and certain. |
| + |
| +### 5. `scripts/upgrade.sh` for production (1 day) |
| + |
| +One script in place of the README section and the reports, in the style of |
| +`cutover-thin.sh` (plan by default, `--execute` for a person, resumable |
| +state file): |
| + |
| +1. `make staged-check RELEASE_VERSION=<sha>`. |
| +2. Record the served version from `/api/version` (the rollback target). |
| +3. `carlos deploy ... --swap hold --version <sha>`, wait for `/api/version`. |
| +4. Until change 3 lands: run `equipo-runner upgrade --release <sha>` on the |
| + runner host. After change 3: watch the instance's runner versions |
| + converge, with a bound. |
| +5. `rollback`: `carlos promote <recorded>`, then runners follow (or |
| + `equipo-runner rollback`). |
| + |
| +`staging-thin.py release` should call the same steps, so staging tests the |
| +production path rather than a parallel one. |
| + |
| +### 6. Provider CLIs from pins (2 days, later) |
| + |
| +`install-pi` and `install-opencode` already install a pinned tree |
| +idempotently and verify it. Doing the same for claude and codex under the |
| +runner root would let `upgrade` install the CLI a release needs, instead of |
| +refusing and waiting for a person. It would also stop the release build |
| +from reading the runner host's env file (section 4, item 8). This is the |
| +largest change and the least urgent. |
| + |
| +## What I could not check |
| + |
| +- The production runner host's actual unit and env file. The layout above |
| + comes from the scripts and reports that change them. |
| +- Whether the Mac self-update has run on a real Mac (`DARWIN-PROGRESS.md` |
| + lists it among things only a Mac can show). |
| +- How the Codex connection fix was deployed. No report of it is in the |
| + repository. |