oficina / equipo Public

Install gitleaks beside production runners; verify it

Previews failed with preview_scanner in production: the runner looks
for the pinned gitleaks beside its own executable and holds it to the
hash linked into its build, but upgrade-thin.sh, cutover-thin.sh and
cutover-finish-thin.sh copied only equipo-runner and equipo-tool-proxy,
and verify-installed never checked the scanner.

- The three scripts install gitleaks beside the runner (0700, like the
  others). Their preflight prints the check and, with --execute, refuses
  unless the staged gitleaks is a regular executable file whose sha256
  is linked into the staged equipo-runner. cutover-finish also holds it
  to the staged record's hash.
- verifyInstalled (equipo-runner verify-installed, and the installer
  before enrolment) refuses unless gitleaks beside the runner matches
  the linked hash. The installer checks the installed runner's directory,
  not the downloaded copy's. install.sh (InstallUser), the Mac installer
  and staging-thin.py already installed gitleaks; unchanged.

Tests: TestVerifyInstalledHoldsTheScannerBesideTheRunner (missing,
other bytes, not executable, no linked pin);
TestThinScriptsInstallTheScannerBesideTheRunner (plan lists the check
and the install; --execute installs it 0700, same bytes) and
TestThinScriptsRefuseWithoutTheLinkedScanner (missing, other bytes,
not executable: refused before any change) for all three scripts; an
unstaged scanner case in TestCutoverFinishRefusesBeforeChangingAnything.
bash -n on all three scripts; a real -X linked build's hash is found by
the grep, another hash is not.

Mutation checks, each failing the named test, then restored:
- install line without gitleaks (each script): Install test fails
- hash not compared: Refuse/other_bytes fails (upgrade, cutover;
  cutover-finish still refuses through its staged-record check)
- executable bit not checked: Refuse/not_executable fails (all three)
- preflight scanner call removed: Refuse fails (all three)
- staged gitleaks check removed (finish): unstaged scanner case fails
- verifyInstalled without the scanner: "verified with another scanner"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 26391f504833878d4c84120ff33b9c4de06fc369 parent 927a031
9 files changed, +269 −29
  • cmd/equipo-runner/install.go +18 −2
  • cmd/equipo-runner/verify_installed_test.go +62 −12
  • internal/release/cutover_finish_test.go +6 −2
  • internal/release/cutover_test.go +2 −1
  • internal/release/scanner_install_test.go +111 −0
  • internal/release/upgrade_test.go +2 −1
  • scripts/cutover-finish-thin.sh +20 −2
  • scripts/cutover-thin.sh +24 −4
  • scripts/upgrade-thin.sh +24 −5

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/install-gitleaks: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.4s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 2.1s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 3.8s
ci-box: file times set from content: 2988 files, 193 directories
ci-box: ready in 17.3s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.144s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.3s
+ go list -export -test -tags testbuild -f  ./...
  0.9s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless/4c_rebase
=== RUN   TestHeadless/4c_rebase
time=2026-11-25T19:42:25.608Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-25T19:42:25.608Z level=INFO msg="startup phase done" phase=state_lock took=92µs
time=2026-11-25T19:42:25.608Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-25T19:42:25.608Z level=INFO msg="startup phase done" phase=claim_roots took=81µs
time=2026-11-25T19:42:25.608Z level=INFO msg="startup phase" phase=sweep
time=2026-11-25T19:42:25.638Z level=INFO msg="startup phase done" phase=sweep took=29.508ms
time=2026-11-25T19:42:25.638Z level=INFO msg="startup phase" phase=credentials
time=2026-11-25T19:42:25.638Z level=INFO msg="startup phase done" phase=credentials took=97µs
time=2026-11-25T19:42:25.638Z level=INFO msg="startup phase" phase=open_state
time=2026-11-25T19:42:25.679Z level=INFO msg="startup phase done" phase=open_state took=40.984ms
time=2026-11-25T19:42:25.679Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-25T19:42:25.681Z level=INFO msg=connecting host=127.0.0.1:41479 protocol=29
time=2026-11-25T19:42:25.682Z level=INFO msg=connected host=127.0.0.1:41479 took=937µs
time=2026-11-25T19:42:25.682Z level=INFO msg="capabilities gathering"
time=2026-11-25T19:42:25.683Z level=INFO msg="capabilities gathered" took=1.325ms tags=linux,claude,go
time=2026-11-25T19:42:25.684Z level=INFO msg="hello sent" protocol=29
time=2026-11-25T19:42:25.688Z level=INFO msg=welcome protocol=29 role=primary generation=1
time=2026-11-25T19:42:26.326Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-25T19:42:29.697Z level=INFO msg="kept sessions" kept=1 bytes=2824 expired=0
time=2026-11-25T19:42:35.029Z level=INFO msg="kept sessions" kept=2 bytes=5030 expired=0
    merge_test.go:245: steps [engineering:done checks:passed review:approve merge:merge_conflict engineering:queued], want [engineering:done checks:passed review:approve merge:merge_conflict engineering:done checks:passed review:approve merge:done] (in_progress )
time=2026-11-25T19:42:35.105Z level=WARN msg="step clone" err="signal: killed"
time=2026-11-25T19:42:35.105Z level=WARN msg="step sweep" err=cancelled
time=2026-11-25T19:42:35.105Z level=WARN msg="kept sessions" err=cancelled
--- FAIL: TestHeadless/4c_rebase (9.91s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 59.418s
FAIL	amadan.net/oficina/equipo/internal/headless	59.613s


receipt: test step 1m0.877s 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 59.418s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.42s amadan.net/oficina/equipo/internal/headless TestHeadless
exit status 1
+ go test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' -v -run '^TestHeadless$/^4c_rebase$' -count=1 ./internal/headless   (retry, once)
FAILED TWICE ./internal/headless:TestHeadless/4c_rebase headless-work
=== RUN   TestHeadless
=== RUN   TestHeadless/4c_rebase
time=2026-11-25T19:42:38.036Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-25T19:42:38.036Z level=INFO msg="startup phase done" phase=state_lock took=66µs
time=2026-11-25T19:42:38.036Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-25T19:42:38.036Z level=INFO msg="startup phase done" phase=claim_roots took=104µs
time=2026-11-25T19:42:38.036Z level=INFO msg="startup phase" phase=sweep
time=2026-11-25T19:42:38.071Z level=INFO msg="startup phase done" phase=sweep took=34.971ms
time=2026-11-25T19:42:38.071Z level=INFO msg="startup phase" phase=credentials
time=2026-11-25T19:42:38.071Z level=INFO msg="startup phase done" phase=credentials took=150µs
time=2026-11-25T19:42:38.071Z level=INFO msg="startup phase" phase=open_state
time=2026-11-25T19:42:38.114Z level=INFO msg="startup phase done" phase=open_state took=42.741ms
time=2026-11-25T19:42:38.115Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-25T19:42:38.115Z level=INFO msg=connecting host=127.0.0.1:44849 protocol=29
time=2026-11-25T19:42:38.118Z level=INFO msg=connected host=127.0.0.1:44849 took=2.519ms
time=2026-11-25T19:42:38.118Z level=INFO msg="capabilities gathering"
time=2026-11-25T19:42:38.119Z level=INFO msg="capabilities gathered" took=437µs tags=linux,claude,go
time=2026-11-25T19:42:38.119Z level=INFO msg="hello sent" protocol=29
time=2026-11-25T19:42:38.125Z level=INFO msg=welcome protocol=29 role=primary generation=1
time=2026-11-25T19:42:38.749Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-25T19:42:41.700Z level=INFO msg="kept sessions" kept=1 bytes=2824 expired=0
time=2026-11-25T19:42:46.936Z level=INFO msg="kept sessions" kept=2 bytes=5030 expired=0
    merge_test.go:245: steps [engineering:done checks:passed review:approve merge:merge_conflict engineering:queued], want [engineering:done checks:passed review:approve merge:merge_conflict engineering:done checks:passed review:approve merge:done] (in_progress )
time=2026-11-25T19:42:47.030Z level=WARN msg="step clone" err="signal: killed"
time=2026-11-25T19:42:47.030Z level=WARN msg="step sweep" err=cancelled
time=2026-11-25T19:42:47.031Z level=WARN msg="kept sessions" err=cancelled
--- FAIL: TestHeadless (10.58s)
    --- FAIL: TestHeadless/4c_rebase (10.58s)
FAIL
rastrillo-budget/v1 ran 10.579s
FAIL	amadan.net/oficina/equipo/internal/headless	10.810s
FAIL
machine: 32 CPUs, load 30.77, cpu waiting 24.18%, memory waiting 0.00%, io waiting 0.57%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 0 of 29 failed: exit status 2
--- 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 1m7.43s 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 1m5.844s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.84s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 29.45, cpu waiting 23.78%, memory waiting 0.00%, io waiting 0.61%
--- 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 1m6.715s 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 1m4.829s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.33s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.5s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 29.45, cpu waiting 24.04%, memory waiting 0.00%, io waiting 0.64%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m6.244s 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 1m4.641s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.78s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 17.81s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.64s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 29.45, cpu waiting 24.04%, memory waiting 0.00%, io waiting 0.64%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.79s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.078s amadan.net/oficina/equipo/internal/headless
receipt: slow test 52.48s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.91s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.52s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.7s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.46s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 30.34, cpu waiting 22.50%, memory waiting 0.00%, io waiting 0.48%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 2m42.836s 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 2m40.796s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m27.16s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.36s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 17.58s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.54s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.32s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 14.17, cpu waiting 6.18%, memory waiting 0.00%, io waiting 0.12%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 357ms 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 2m9.515s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.22s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.76s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.89s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.63s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.54s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 1.41, cpu waiting 0.09%, memory waiting 0.00%, io waiting 1.90%
--- 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 303ms 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 1m30.765s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.51s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotNow
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 1.41, cpu waiting 0.09%, memory waiting 0.00%, io waiting 1.90%
--- 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 4m37.355s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m51.244s 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 4m37.355s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.99s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.85s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.8s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.88s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.44, cpu waiting 0.72%, memory waiting 0.00%, io waiting 0.01%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

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

receipt: test step 47.774s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 45.894s amadan.net/oficina/equipo/internal/runner
receipt: slow test 35.98s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.36s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.51s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 26.02, cpu waiting 22.08%, memory waiting 0.00%, io waiting 0.86%
--- 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.958s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.117s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.37s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.07s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 20.61, cpu waiting 14.95%, memory waiting 0.00%, io waiting 1.09%
--- 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 29.1%, load 16.75
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        internal/release/cutover_finish_test.go:41:70: unclassified equipo-runner
        internal/release/cutover_finish_test.go:41:162: unclassified equipo-runner
        internal/release/cutover_test.go:42:34: unclassified equipo-runner
        internal/release/cutover_test.go:42:109: unclassified equipo-runner
        internal/release/cutover_test.go:42:245: unclassified equipo-runner
        internal/release/scanner_install_test.go:13:48: unclassified equipo-runner
        internal/release/scanner_install_test.go:33:72: unclassified equipo-runner
        internal/release/scanner_install_test.go:39:72: unclassified equipo-runner
        internal/release/scanner_install_test.go:45:50: unclassified equipo-runner
        internal/release/scanner_install_test.go:64:137: unclassified equipo-runner
        internal/release/scanner_install_test.go:65:50: unclassified equipo-runner
        internal/release/upgrade_test.go:44:70: unclassified equipo-runner
        internal/release/upgrade_test.go:44:214: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:114:60: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:119:23: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:122:68: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:124:66: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:263:39: unclassified equipo-runner
        scripts/cutover-thin.sh:96:60: unclassified equipo-runner
        scripts/cutover-thin.sh:101:23: unclassified equipo-runner
        scripts/cutover-thin.sh:104:68: unclassified equipo-runner
        scripts/cutover-thin.sh:106:66: unclassified equipo-runner
        scripts/cutover-thin.sh:265:39: unclassified equipo-runner
        scripts/upgrade-thin.sh:121:60: unclassified equipo-runner
        scripts/upgrade-thin.sh:126:23: unclassified equipo-runner
        scripts/upgrade-thin.sh:129:68: unclassified equipo-runner
        scripts/upgrade-thin.sh:131:66: unclassified equipo-runner
        scripts/upgrade-thin.sh:305:39: unclassified equipo-runner
        stale allowance: ('scripts/cutover-thin.sh', '1bf6248dd394a8bb04dec59f76c334585405a1c7bf3daf9e06026c96291a7749', 'equipo-runner')
        stale allowance: ('internal/release/cutover_test.go', 'a7ed104d1e654b92f78e48f6c92e96f05cadc9dc19cdeaae5235350d664ee071', 'equipo-runner')
        stale allowance: ('scripts/upgrade-thin.sh', 'ac3606fcb3f775c9331866cb07186b1d07dba5956b6536db392b27cc7330e1af', 'equipo-runner')
        stale allowance: ('internal/release/upgrade_test.go', '329e99fc3702f97467353f012e01fcb1b56c4ace3d1a64b3a55920f5e0f378a8', 'equipo-runner')
        stale allowance: ('scripts/cutover-finish-thin.sh', 'ac3606fcb3f775c9331866cb07186b1d07dba5956b6536db392b27cc7330e1af', 'equipo-runner')
        stale allowance: ('internal/release/cutover_finish_test.go', 'ac3af06bcf42f6e0653809e9ed7edcb4ef999a46f17942de9047424321d60058', 'equipo-runner')
        reference scan: 2701 text files, 3228 matches, 34 failures
--- FAIL: TestDirectDeadReferencesRepository (2.07s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m5.042s
FAIL	amadan.net/oficina/equipo/internal/equipotest	65.294s


receipt: test step 1m6.706s 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 1m5.042s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.28s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.2s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.24s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.53s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.42s amadan.net/oficina/equipo/internal/equipotest TestBudgetLoweringBelowUsage
rastrillo: budget test: go test failed
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
        internal/release/cutover_finish_test.go:41:70: unclassified equipo-runner
        internal/release/cutover_finish_test.go:41:162: unclassified equipo-runner
        internal/release/cutover_test.go:42:34: unclassified equipo-runner
        internal/release/cutover_test.go:42:109: unclassified equipo-runner
        internal/release/cutover_test.go:42:245: unclassified equipo-runner
        internal/release/scanner_install_test.go:13:48: unclassified equipo-runner
        internal/release/scanner_install_test.go:33:72: unclassified equipo-runner
        internal/release/scanner_install_test.go:39:72: unclassified equipo-runner
        internal/release/scanner_install_test.go:45:50: unclassified equipo-runner
        internal/release/scanner_install_test.go:64:137: unclassified equipo-runner
        internal/release/scanner_install_test.go:65:50: unclassified equipo-runner
        internal/release/upgrade_test.go:44:70: unclassified equipo-runner
        internal/release/upgrade_test.go:44:214: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:114:60: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:119:23: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:122:68: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:124:66: unclassified equipo-runner
        scripts/cutover-finish-thin.sh:263:39: unclassified equipo-runner
        scripts/cutover-thin.sh:96:60: unclassified equipo-runner
        scripts/cutover-thin.sh:101:23: unclassified equipo-runner
        scripts/cutover-thin.sh:104:68: unclassified equipo-runner
        scripts/cutover-thin.sh:106:66: unclassified equipo-runner
        scripts/cutover-thin.sh:265:39: unclassified equipo-runner
        scripts/upgrade-thin.sh:121:60: unclassified equipo-runner
        scripts/upgrade-thin.sh:126:23: unclassified equipo-runner
        scripts/upgrade-thin.sh:129:68: unclassified equipo-runner
        scripts/upgrade-thin.sh:131:66: unclassified equipo-runner
        scripts/upgrade-thin.sh:305:39: unclassified equipo-runner
        stale allowance: ('scripts/cutover-thin.sh', '1bf6248dd394a8bb04dec59f76c334585405a1c7bf3daf9e06026c96291a7749', 'equipo-runner')
        stale allowance: ('internal/release/cutover_test.go', 'a7ed104d1e654b92f78e48f6c92e96f05cadc9dc19cdeaae5235350d664ee071', 'equipo-runner')
        stale allowance: ('scripts/upgrade-thin.sh', 'ac3606fcb3f775c9331866cb07186b1d07dba5956b6536db392b27cc7330e1af', 'equipo-runner')
        stale allowance: ('internal/release/upgrade_test.go', '329e99fc3702f97467353f012e01fcb1b56c4ace3d1a64b3a55920f5e0f378a8', 'equipo-runner')
        stale allowance: ('scripts/cutover-finish-thin.sh', 'ac3606fcb3f775c9331866cb07186b1d07dba5956b6536db392b27cc7330e1af', 'equipo-runner')
        stale allowance: ('internal/release/cutover_finish_test.go', 'ac3af06bcf42f6e0653809e9ed7edcb4ef999a46f17942de9047424321d60058', 'equipo-runner')
        reference scan: 2701 text files, 3228 matches, 34 failures
--- FAIL: TestDirectDeadReferencesRepository (2.04s)
FAIL
rastrillo-budget/v1 ran 2.038s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.190s
FAIL
machine: 32 CPUs, load 25.78, cpu waiting 17.06%, memory waiting 0.00%, io waiting 0.36%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 12 of 29 failed: exit status 2
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 29.1%, load 16.75
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 424ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m17.402s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.53s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 20.51s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
receipt: slow test 20.5s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 20.47s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.36s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
machine: 32 CPUs, load 16.75, cpu waiting 12.30%, memory waiting 0.00%, io waiting 1.17%
--- 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 29.1%, load 16.75
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 1m18.226s 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 1m5.828s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.39s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.3s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.21s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 23.12, cpu waiting 15.06%, memory waiting 0.00%, io waiting 0.31%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 29.1%, load 16.75
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 412ms 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 1m7.801s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.31s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.62s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.56s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.74s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 23.55s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 16.75, cpu waiting 12.30%, memory waiting 0.00%, io waiting 1.17%
--- 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 29.1%, load 16.75
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 519ms 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 53.915s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.9s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.57s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.39s amadan.net/oficina/equipo/internal/plan3test TestOnboardingAccountMigration
machine: 32 CPUs, load 16.75, cpu waiting 12.30%, memory waiting 0.00%, io waiting 1.17%
--- 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 29.1%, load 16.75
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/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 41.779s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 21.406s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 11.688s, 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 1m41.081s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 22.047s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 40.76s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.185s against a 60s target (the gate's other steps are not in this figure)
receipt: 17 packages ran, 49 cached, 17 without tests, 0 failed
receipt: slow package 1m41.081s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 54.143s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.681s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 41.779s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 40.76s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 54.8s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.76s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.75s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.42s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 44.92s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
machine: 32 CPUs, load 13.12, cpu waiting 5.78%, memory waiting 0.00%, io waiting 0.11%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m19.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 1m17.794s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.05s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.52s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.21s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.04s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 30.34, cpu waiting 22.95%, memory waiting 0.00%, io waiting 0.50%
--- 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 1m18.331s 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 1m16.744s amadan.net/oficina/equipo/internal/headless
receipt: slow test 22.47s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 18.71s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.18s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.32s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.81s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 30.34, cpu waiting 22.95%, memory waiting 0.00%, io waiting 0.50%
--- 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 1m45.077s 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 1m43.47s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.2s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.09s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.68s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.27s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 24.35, cpu waiting 15.54%, memory waiting 0.00%, io waiting 0.32%
--- 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|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-25T19:42:09.573Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-25T19:42:09.573Z level=INFO msg="startup phase done" phase=state_lock took=61µs
time=2026-11-25T19:42:09.573Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-25T19:42:09.573Z level=INFO msg="startup phase done" phase=claim_roots took=83µs
time=2026-11-25T19:42:09.573Z level=INFO msg="startup phase" phase=sweep
time=2026-11-25T19:42:09.618Z level=INFO msg="startup phase done" phase=sweep took=44.328ms
time=2026-11-25T19:42:09.618Z level=INFO msg="startup phase" phase=credentials
time=2026-11-25T19:42:09.618Z level=INFO msg="startup phase done" phase=credentials took=132µs
time=2026-11-25T19:42:09.618Z level=INFO msg="startup phase" phase=open_state
time=2026-11-25T19:42:09.681Z level=INFO msg="startup phase done" phase=open_state took=63.074ms
time=2026-11-25T19:42:09.682Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-25T19:42:09.683Z level=INFO msg=connecting host=127.0.0.1:33189 protocol=29
time=2026-11-25T19:42:09.684Z level=INFO msg=connected host=127.0.0.1:33189 took=1.852ms
time=2026-11-25T19:42:09.685Z level=INFO msg="capabilities gathering"
time=2026-11-25T19:42:09.687Z level=INFO msg="capabilities gathered" took=2.498ms tags=linux,claude,go
time=2026-11-25T19:42:09.690Z level=INFO msg="hello sent" protocol=29
time=2026-11-25T19:42:09.696Z level=INFO msg=welcome protocol=29 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.86s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m20.006s
FAIL	amadan.net/oficina/equipo/internal/headless	80.233s


receipt: test step 1m21.559s 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 1m20.006s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.38s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.14s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.07s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 7.2s 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|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 26391f504833878d4c84120ff33b9c4de06fc369 1.86s 30.34
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 28.95, cpu waiting 21.24%, memory waiting 0.00%, io waiting 0.45%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

receipt: test step 368ms 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 638ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 640ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.008s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

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

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

receipt: test step 306ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m40.772s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 24.63s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.05s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.14s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 1.41, cpu waiting 1.27%, memory waiting 0.00%, io waiting 1.87%
--- 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   (46s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.75s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.23s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 6.87s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.91s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 23.84s
+ 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   (61s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 20.07s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 18.97s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.15s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 10.88s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (19s)
ok ./internal/headless TestMixedVersions 16.85s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.79s
+ 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 29.14, cpu waiting 24.16%, memory waiting 0.00%, io waiting 0.68%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 8.31s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.107s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 190ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 101ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.06s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.17s 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.872s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 6.64, cpu waiting 5.16%, memory waiting 0.00%, io waiting 1.58%
--- 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 29.1%, load 16.75
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
internal/release/cutover_finish_test.go:41:70: unclassified equipo-runner
internal/release/cutover_finish_test.go:41:162: unclassified equipo-runner
internal/release/cutover_test.go:42:34: unclassified equipo-runner
internal/release/cutover_test.go:42:109: unclassified equipo-runner
internal/release/cutover_test.go:42:245: unclassified equipo-runner
internal/release/scanner_install_test.go:13:48: unclassified equipo-runner
internal/release/scanner_install_test.go:33:72: unclassified equipo-runner
internal/release/scanner_install_test.go:39:72: unclassified equipo-runner
internal/release/scanner_install_test.go:45:50: unclassified equipo-runner
internal/release/scanner_install_test.go:64:137: unclassified equipo-runner
internal/release/scanner_install_test.go:65:50: unclassified equipo-runner
internal/release/upgrade_test.go:44:70: unclassified equipo-runner
internal/release/upgrade_test.go:44:214: unclassified equipo-runner
scripts/cutover-finish-thin.sh:114:60: unclassified equipo-runner
scripts/cutover-finish-thin.sh:119:23: unclassified equipo-runner
scripts/cutover-finish-thin.sh:122:68: unclassified equipo-runner
scripts/cutover-finish-thin.sh:124:66: unclassified equipo-runner
scripts/cutover-finish-thin.sh:263:39: unclassified equipo-runner
scripts/cutover-thin.sh:96:60: unclassified equipo-runner
scripts/cutover-thin.sh:101:23: unclassified equipo-runner
scripts/cutover-thin.sh:104:68: unclassified equipo-runner
scripts/cutover-thin.sh:106:66: unclassified equipo-runner
scripts/cutover-thin.sh:265:39: unclassified equipo-runner
scripts/upgrade-thin.sh:121:60: unclassified equipo-runner
scripts/upgrade-thin.sh:126:23: unclassified equipo-runner
scripts/upgrade-thin.sh:129:68: unclassified equipo-runner
scripts/upgrade-thin.sh:131:66: unclassified equipo-runner
scripts/upgrade-thin.sh:305:39: unclassified equipo-runner
stale allowance: ('scripts/cutover-thin.sh', '1bf6248dd394a8bb04dec59f76c334585405a1c7bf3daf9e06026c96291a7749', 'equipo-runner')
stale allowance: ('internal/release/cutover_test.go', 'a7ed104d1e654b92f78e48f6c92e96f05cadc9dc19cdeaae5235350d664ee071', 'equipo-runner')
stale allowance: ('scripts/upgrade-thin.sh', 'ac3606fcb3f775c9331866cb07186b1d07dba5956b6536db392b27cc7330e1af', 'equipo-runner')
stale allowance: ('internal/release/upgrade_test.go', '329e99fc3702f97467353f012e01fcb1b56c4ace3d1a64b3a55920f5e0f378a8', 'equipo-runner')
stale allowance: ('scripts/cutover-finish-thin.sh', 'ac3606fcb3f775c9331866cb07186b1d07dba5956b6536db392b27cc7330e1af', 'equipo-runner')
stale allowance: ('internal/release/cutover_finish_test.go', 'ac3af06bcf42f6e0653809e9ed7edcb4ef999a46f17942de9047424321d60058', 'equipo-runner')
reference scan: 2701 text files, 3228 matches, 34 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 16.75, cpu waiting 13.63%, memory waiting 0.00%, io waiting 1.13%
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 29.1%, load 16.75
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 16.75, cpu waiting 13.63%, memory waiting 0.00%, io waiting 1.13%
--- 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 29.1%, load 16.75
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 3
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 20.61, cpu waiting 16.13%, memory waiting 0.00%, io waiting 1.06%
--- 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 29.1%, load 16.75
shard 28: make gitleaks
7:42PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
7:42PM INF 1152 commits scanned.
7:42PM INF scanned ~65808695 bytes (65.81 MB) in 13.3s
7:42PM INF no leaks found
machine: 32 CPUs, load 22.88, cpu waiting 19.83%, memory waiting 0.00%, io waiting 0.95%

amadan: job failed at step check shards 0, 12, 25 of 29 — its output is above, not at the tail of this log
diff --git a/cmd/equipo-runner/install.go b/cmd/equipo-runner/install.go
index ba373244..02540126 100644
--- a/cmd/equipo-runner/install.go
+++ b/cmd/equipo-runner/install.go
@@ -6,6 +6,7 @@ import (
"bufio"
"context"
"encoding/json"
+ "errors"
"flag"
"fmt"
"io"
@@ -61,7 +62,11 @@ func installRunner(ctx context.Context, args []string, input io.Reader, out, err
if cfg.Origin != *origin || cfg.StateDir != filepath.Join(*root, "state") {
return fail("runner.install.config")
}
- if verifyInstalled(release.BuildManifest(), cfg) != nil {
+ // The service starts the installed runner, not this one, and that
+ // runner looks for the scanner beside itself.
+ installed := cfg
+ installed.Executable = result.BinaryPath
+ if result.BinaryPath == "" || verifyInstalled(release.BuildManifest(), installed) != nil {
return fail("runner.install.release")
}
cfg.MachineLabel = label
@@ -87,12 +92,23 @@ func installRunner(ctx context.Context, args []string, input io.Reader, out, err
return 0
}
+// scannerPin is the gitleaks hash linked into this build; tests replace it.
+var scannerPin = release.GitleaksSHA256
+
+var errScanner = errors.New("preview_scanner_unverified")
+
// verifyInstalled holds every program this runner starts, at the paths in
// its configuration, to the digests of this release: bubblewrap, claude,
-// codex, its code mode host and the tool proxy built with this runner.
+// codex, its code mode host and the tool proxy built with this runner,
+// and the preview scanner (gitleaks) beside the runner's executable, where
+// the runner looks for it, to the hash linked into this build. Without
+// that scanner every preview fails (preview_scanner).
// The installer runs it before enrolling, and staging and the production
// cutover run it (equipo-runner verify-installed) before starting a unit.
func verifyInstalled(m release.Manifest, cfg runner.Config) error {
+ if !release.VerifyGitleaks(filepath.Join(filepath.Dir(cfg.Executable), "gitleaks"), scannerPin()) {
+ return errScanner
+ }
// The pinned Pi and OpenCode, where this runner has them, are held
// to their pins too.
if cfg.PiRoot != "" {
diff --git a/cmd/equipo-runner/verify_installed_test.go b/cmd/equipo-runner/verify_installed_test.go
index ad95021f..07f7b733 100644
--- a/cmd/equipo-runner/verify_installed_test.go
+++ b/cmd/equipo-runner/verify_installed_test.go
@@ -17,18 +17,7 @@ import (
// changed program, one missing, or a build that recorded no tool proxy
// refuses.
func TestVerifyInstalledHoldsEveryProgramToTheRelease(t *testing.T) {
- dir := t.TempDir()
- m := release.BuildManifest()
- m.Binaries = nil
- cfg := runner.Config{Executable: filepath.Join(dir, "equipo-runner")}
- paths := map[string]*string{"bwrap": &cfg.BwrapPath, "claude": &cfg.ClaudePath, "codex": &cfg.CodexPath, "codex-code-mode-host": &cfg.CodexCodeModeHostPath, "equipo-tool-proxy": &cfg.ToolProxyPath}
- for name, version := range map[string]string{"bwrap": m.BwrapVersion, "claude": m.Claude, "codex": m.Codex, "codex-code-mode-host": m.Codex, "equipo-tool-proxy": m.LauncherVersion} {
- *paths[name] = filepath.Join(dir, name)
- if err := os.WriteFile(*paths[name], []byte(name), 0700); err != nil {
- t.Fatal(err)
- }
- m.Binaries = append(m.Binaries, release.BinaryDigest{Name: name, Version: version, SHA256: fmt.Sprintf("%x", sha256.Sum256([]byte(name)))})
- }
+ m, cfg, paths := installedFixture(t)
if err := verifyInstalled(m, cfg); err != nil {
t.Fatalf("the release's own programs refused: %v", err)
}
@@ -67,3 +56,64 @@ func TestVerifyInstalledHoldsEveryProgramToTheRelease(t *testing.T) {
t.Fatal("a build that recorded no tool proxy verified an installation")
}
}
+
+// installedFixture is a release's programs, each its own bytes, and the
+// preview scanner beside the runner with the pin linked into this build.
+func installedFixture(t *testing.T) (release.Manifest, runner.Config, map[string]*string) {
+ t.Helper()
+ dir := t.TempDir()
+ m := release.BuildManifest()
+ m.Binaries = nil
+ cfg := runner.Config{Executable: filepath.Join(dir, "equipo-runner")}
+ paths := map[string]*string{"bwrap": &cfg.BwrapPath, "claude": &cfg.ClaudePath, "codex": &cfg.CodexPath, "codex-code-mode-host": &cfg.CodexCodeModeHostPath, "equipo-tool-proxy": &cfg.ToolProxyPath}
+ for name, version := range map[string]string{"bwrap": m.BwrapVersion, "claude": m.Claude, "codex": m.Codex, "codex-code-mode-host": m.Codex, "equipo-tool-proxy": m.LauncherVersion} {
+ *paths[name] = filepath.Join(dir, name)
+ if err := os.WriteFile(*paths[name], []byte(name), 0700); err != nil {
+ t.Fatal(err)
+ }
+ m.Binaries = append(m.Binaries, release.BinaryDigest{Name: name, Version: version, SHA256: fmt.Sprintf("%x", sha256.Sum256([]byte(name)))})
+ }
+ if err := os.WriteFile(filepath.Join(dir, "gitleaks"), []byte("scanner"), 0700); err != nil {
+ t.Fatal(err)
+ }
+ old := scannerPin
+ scannerPin = func() string { return fmt.Sprintf("%x", sha256.Sum256([]byte("scanner"))) }
+ t.Cleanup(func() { scannerPin = old })
+ return m, cfg, paths
+}
+
+// The runner scans every preview with the gitleaks beside its own
+// executable, held to the hash linked into its build; without it every
+// preview fails (preview_scanner). An installation without that scanner,
+// with another one, or one that cannot run, does not verify; nor does a
+// build that linked no scanner hash.
+func TestVerifyInstalledHoldsTheScannerBesideTheRunner(t *testing.T) {
+ m, cfg, _ := installedFixture(t)
+ scanner := filepath.Join(filepath.Dir(cfg.Executable), "gitleaks")
+ if err := verifyInstalled(m, cfg); err != nil {
+ t.Fatalf("the release's own scanner refused: %v", err)
+ }
+ for name, change := range map[string]func() error{
+ "no scanner": func() error { return os.Remove(scanner) },
+ "another scanner": func() error { return os.WriteFile(scanner, []byte("another scanner"), 0700) },
+ "not executable": func() error { return os.Chmod(scanner, 0600) },
+ } {
+ if err := change(); err != nil {
+ t.Fatal(err)
+ }
+ if verifyInstalled(m, cfg) == nil {
+ t.Fatal("verified with", name)
+ }
+ _ = os.Remove(scanner)
+ if err := os.WriteFile(scanner, []byte("scanner"), 0700); err != nil {
+ t.Fatal(err)
+ }
+ if err := verifyInstalled(m, cfg); err != nil {
+ t.Fatalf("after %s, the restored scanner refused: %v", name, err)
+ }
+ }
+ scannerPin = func() string { return "" }
+ if verifyInstalled(m, cfg) == nil {
+ t.Fatal("a build that linked no scanner hash verified an installation")
+ }
+}
diff --git a/internal/release/cutover_finish_test.go b/internal/release/cutover_finish_test.go
index b971d84f..81c86987 100644
--- a/internal/release/cutover_finish_test.go
+++ b/internal/release/cutover_finish_test.go
@@ -38,11 +38,12 @@ func newFinishRig(t *testing.T) *finishRig {
r.write(filepath.Join(r.repo, "scripts", name), string(src), 0700)
}
release := filepath.Join(r.repo, "releases", "equipo-runner-linux-amd64-"+finishVersion)
- runner := "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> " + r.log + "; exit; fi\necho \"equipo-runner $1 $EQUIPO_INSTANCE_ID $EQUIPO_ORIGIN\" >> " + r.log + "\n[ -e " + filepath.Join(root, "enrolfail") + " ] && exit 1\n# The running runner holds the state lock enrol needs.\n[ -e " + filepath.Join(root, "active") + " ] && { echo state locked >&2; exit 1; }\necho new > \"$EQUIPO_RUNNER_STATE_DIR/credentials.json\"\n"
+ runner := "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> " + r.log + "; exit; fi\necho \"equipo-runner $1 $EQUIPO_INSTANCE_ID $EQUIPO_ORIGIN\" >> " + r.log + "\n[ -e " + filepath.Join(root, "enrolfail") + " ] && exit 1\n# The running runner holds the state lock enrol needs.\n[ -e " + filepath.Join(root, "active") + " ] && { echo state locked >&2; exit 1; }\necho new > \"$EQUIPO_RUNNER_STATE_DIR/credentials.json\"\n" + linkedScanner
r.write(filepath.Join(release, "equipo-runner"), runner, 0700)
r.write(filepath.Join(release, "equipo-tool-proxy"), "proxy", 0700)
+ r.write(filepath.Join(release, "gitleaks"), scannerBytes, 0700)
sum := func(s string) string { h := sha256.Sum256([]byte(s)); return hex.EncodeToString(h[:]) }
- r.write(filepath.Join(r.repo, "releases", "staged", finishVersion+".json"), `{"staging": "PASS", "sha256": {"runner": "`+sum(runner)+`", "tool_proxy": "`+sum("proxy")+`"}}`, 0600)
+ r.write(filepath.Join(r.repo, "releases", "staged", finishVersion+".json"), `{"staging": "PASS", "sha256": {"runner": "`+sum(runner)+`", "tool_proxy": "`+sum("proxy")+`", "gitleaks": "`+sum(scannerBytes)+`"}}`, 0600)
r.serviceEnv = "EQUIPO_ORIGIN=\"https://equipo.bds.oncarlos.com\"\nEQUIPO_INSTANCE_ID=\"" + keptID + "\"\nEQUIPO_TOOL_PROXY_PATH=\"/old/equipo-tool-proxy\"\nEQUIPO_RUNNER_STATE_DIR=\"" + filepath.Join(r.runner, "state") + "\"\n"
r.unit = "[Service]\nEnvironmentFile=" + filepath.Join(r.runner, "service.env") + "\nExecStart=/old/equipo-runner run\nRestart=on-failure\nRestartSec=5\n"
r.write(filepath.Join(r.runner, "service.env"), r.serviceEnv, 0600)
@@ -181,6 +182,9 @@ func TestCutoverFinishRefusesBeforeChangingAnything(t *testing.T) {
"other runner bytes": func(r *finishRig) {
r.write(filepath.Join(r.repo, "releases", "equipo-runner-linux-amd64-"+finishVersion, "equipo-runner"), "#!/bin/sh\n", 0700)
},
+ "unstaged scanner": func(r *finishRig) {
+ r.write(filepath.Join(r.repo, "releases", "staged", finishVersion+".json"), strings.Replace(r.read(filepath.Join(r.repo, "releases", "staged", finishVersion+".json")), `"gitleaks": "`, `"gitleaks": "0`, 1), 0600)
+ },
"unstaged version": func(r *finishRig) {
r.write(filepath.Join(r.repo, "releases", "staged", finishVersion+".json"), `{"staging": "FAIL"}`, 0600)
},
diff --git a/internal/release/cutover_test.go b/internal/release/cutover_test.go
index 1cda7d80..2e268c53 100644
--- a/internal/release/cutover_test.go
+++ b/internal/release/cutover_test.go
@@ -39,8 +39,9 @@ func newCutoverRig(t *testing.T) *cutoverRig {
release := filepath.Join(repo, "releases", "equipo-runner-linux-amd64-"+cutoverVersion)
// The staged runner's enrol records the instance id it was given.
// It also answers verify-installed, with the tool proxy it was told to use.
- r.write(filepath.Join(release, "equipo-runner"), "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> "+r.log+"; [ ! -e "+filepath.Join(root, "verifyfail")+" ]; exit; fi\necho \"equipo-runner $1\" >> "+r.log+"\necho \"$EQUIPO_INSTANCE_ID\" > "+filepath.Join(root, "enrolled")+"\necho new > \"$EQUIPO_RUNNER_STATE_DIR/credentials.json\"\n", 0700)
+ r.write(filepath.Join(release, "equipo-runner"), "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> "+r.log+"; [ ! -e "+filepath.Join(root, "verifyfail")+" ]; exit; fi\necho \"equipo-runner $1\" >> "+r.log+"\necho \"$EQUIPO_INSTANCE_ID\" > "+filepath.Join(root, "enrolled")+"\necho new > \"$EQUIPO_RUNNER_STATE_DIR/credentials.json\"\n"+linkedScanner, 0700)
r.write(filepath.Join(release, "equipo-tool-proxy"), "proxy", 0700)
+ r.write(filepath.Join(release, "gitleaks"), scannerBytes, 0700)
r.serviceEnv = []byte("EQUIPO_ORIGIN=\"https://equipo.bds.oncarlos.com\"\nEQUIPO_INSTANCE_ID=\"" + oldInstanceID + "\"\nEQUIPO_TOOL_PROXY_PATH=\"/old/equipo-tool-proxy\"\nEQUIPO_RUNNER_STATE_DIR=\"" + filepath.Join(r.runner, "state") + "\"\nEQUIPO_SCRATCH_ROOT=\"/old/scratch\"\nEQUIPO_WORKSPACE_ROOT=\"/old/work\"\n")
r.unit = []byte("[Service]\nExecStart=/old/equipo-runner run\nRestart=on-failure\nRestartSec=5\n")
r.write(filepath.Join(r.runner, "service.env"), string(r.serviceEnv), 0600)
diff --git a/internal/release/scanner_install_test.go b/internal/release/scanner_install_test.go
new file mode 100644
index 00000000..8167f3fe
--- /dev/null
+++ b/internal/release/scanner_install_test.go
@@ -0,0 +1,111 @@
+package release
+
+import (
+ "crypto/sha256"
+ "encoding/hex"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+)
+
+// The rigs' gitleaks, and the line that links its hash into their stub
+// runners, as the release build links it into equipo-runner.
+const scannerBytes = "scanner"
+
+var linkedScanner = func() string {
+ sum := sha256.Sum256([]byte(scannerBytes))
+ return "# gitleaks " + hex.EncodeToString(sum[:]) + "\n"
+}()
+
+// scriptRig is one production script's rig, seen the same way: where the
+// staged runner release is, where the script installs it, and how to plan
+// and run it.
+type scriptRig struct {
+ release, installed, log string
+ plan, execute func() (string, error)
+}
+
+func scannerRigs(t *testing.T) map[string]func() scriptRig {
+ return map[string]func() scriptRig{
+ "upgrade-thin.sh": func() scriptRig {
+ r := newUpgradeRig(t)
+ release := filepath.Join(filepath.Dir(r.script), "..", "releases", "equipo-runner-linux-amd64-"+upgradeTo)
+ return scriptRig{release, filepath.Join(r.runner, "releases", upgradeTo), r.log,
+ func() (string, error) { return r.run(upgradeTo) }, func() (string, error) { return r.run(upgradeTo, "--execute") }}
+ },
+ "cutover-thin.sh": func() scriptRig {
+ r := newCutoverRig(t)
+ release := filepath.Join(filepath.Dir(r.script), "..", "releases", "equipo-runner-linux-amd64-"+cutoverVersion)
+ return scriptRig{release, filepath.Join(r.runner, "releases", cutoverVersion), r.log,
+ func() (string, error) { return r.run(cutoverVersion) }, func() (string, error) { return r.run(cutoverVersion, "--execute") }}
+ },
+ "cutover-finish-thin.sh": func() scriptRig {
+ r := newFinishRig(t)
+ release := filepath.Join(r.repo, "releases", "equipo-runner-linux-amd64-"+finishVersion)
+ return scriptRig{release, filepath.Join(r.runner, "releases", finishVersion), r.log,
+ func() (string, error) { return r.run("cutover-finish-thin.sh") }, func() (string, error) { return r.run("cutover-finish-thin.sh", "--execute") }}
+ },
+ }
+}
+
+// The runner scans every preview with the gitleaks beside its own
+// executable; without it every preview fails (preview_scanner). Each
+// script that installs a production runner checks the staged scanner in
+// its preflight and installs it beside the runner, 0700 like the others.
+func TestThinScriptsInstallTheScannerBesideTheRunner(t *testing.T) {
+ for name, rig := range scannerRigs(t) {
+ t.Run(name, func(t *testing.T) {
+ r := rig()
+ out, err := r.plan()
+ if err != nil {
+ t.Fatalf("plan: %v\n%s", err, out)
+ }
+ inOrder(t, out, "== ", filepath.Join(r.release, "gitleaks")+": executable, and its sha256 is linked into "+filepath.Join(r.release, "equipo-runner"),
+ "install -m 0700 "+filepath.Join(r.release, "equipo-runner")+" "+filepath.Join(r.release, "equipo-tool-proxy")+" "+filepath.Join(r.release, "gitleaks")+" "+r.installed+"/",
+ "verify-installed")
+ if out, err = r.execute(); err != nil {
+ t.Fatalf("execute: %v\n%s", err, out)
+ }
+ info, err := os.Stat(filepath.Join(r.installed, "gitleaks"))
+ if err != nil || info.Mode().Perm() != 0700 {
+ t.Fatalf("gitleaks not installed 0700 beside the runner: %v %v", info, err)
+ }
+ if raw, _ := os.ReadFile(filepath.Join(r.installed, "gitleaks")); string(raw) != scannerBytes {
+ t.Fatalf("installed another scanner: %q", raw)
+ }
+ })
+ }
+}
+
+// A staged release without the scanner, with another one, or with one
+// that cannot run, is refused in the preflight, before anything changes.
+func TestThinScriptsRefuseWithoutTheLinkedScanner(t *testing.T) {
+ for name, rig := range scannerRigs(t) {
+ for fault, set := range map[string]func(scanner string) error{
+ "missing": os.Remove,
+ "other bytes": func(s string) error { return os.WriteFile(s, []byte("another scanner"), 0700) },
+ "not executable": func(s string) error { return os.Chmod(s, 0600) },
+ } {
+ t.Run(name+"/"+fault, func(t *testing.T) {
+ r := rig()
+ if err := set(filepath.Join(r.release, "gitleaks")); err != nil {
+ t.Fatal(err)
+ }
+ out, err := r.execute()
+ if err == nil || !strings.Contains(out, "refused: ") || !strings.Contains(out, "gitleaks") {
+ t.Fatalf("not refused for the scanner: %v\n%s", err, out)
+ }
+ raw, _ := os.ReadFile(r.log)
+ for _, change := range []string{"db pull", "env set", "env unset", "daemon-reload", "deploy", "enrol", "restart", "stop"} {
+ if strings.Contains(string(raw), change) {
+ t.Fatalf("changed something (%s) before refusing:\n%s", change, raw)
+ }
+ }
+ if _, err := os.Stat(r.installed); !os.IsNotExist(err) {
+ t.Fatalf("installed something before refusing: %v", err)
+ }
+ })
+ }
+ }
+}
diff --git a/internal/release/upgrade_test.go b/internal/release/upgrade_test.go
index 6d0f4d80..5c25ee7f 100644
--- a/internal/release/upgrade_test.go
+++ b/internal/release/upgrade_test.go
@@ -41,9 +41,10 @@ func newUpgradeRig(t *testing.T) *upgradeRig {
r.write(filepath.Join(repo, "scripts", "runner-config.py"), string(helper), 0700)
r.write(filepath.Join(repo, "releases", "equipo-linux-arm64-"+upgradeTo), "instance", 0600)
release := filepath.Join(repo, "releases", "equipo-runner-linux-amd64-"+upgradeTo)
- runner := "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> " + r.log + "; [ ! -e " + filepath.Join(root, "verifyfail") + " ]; exit; fi\necho \"equipo-runner $1\" >> " + r.log + "\n"
+ runner := "#!/bin/sh\nif [ \"$1\" = verify-installed ]; then echo \"equipo-runner verify-installed $EQUIPO_TOOL_PROXY_PATH\" >> " + r.log + "; [ ! -e " + filepath.Join(root, "verifyfail") + " ]; exit; fi\necho \"equipo-runner $1\" >> " + r.log + "\n" + linkedScanner
r.write(filepath.Join(release, "equipo-runner"), runner, 0700)
r.write(filepath.Join(release, "equipo-tool-proxy"), "proxy", 0700)
+ r.write(filepath.Join(release, "gitleaks"), scannerBytes, 0700)
sum := sha256.Sum256([]byte(runner))
r.write(filepath.Join(repo, "releases", "staged", upgradeTo+".json"), `{"staging": "PASS", "sha256": {"runner": "`+hex.EncodeToString(sum[:])+`"}}`, 0600)
old := filepath.Join(r.runner, "releases", upgradeFrom)
diff --git a/scripts/cutover-finish-thin.sh b/scripts/cutover-finish-thin.sh
index 66c1d9b5..310f927b 100755
--- a/scripts/cutover-finish-thin.sh
+++ b/scripts/cutover-finish-thin.sh
@@ -108,6 +108,22 @@ identity() {
done
}
+# The runner scans every preview with the gitleaks beside its own
+# executable, held to the hash linked into the runner; without it every
+# preview fails (preview_scanner). $1 is a runner release directory: its
+# gitleaks runs, and its sha256 is the one linked into its equipo-runner.
+scanner_linked() {
+ local sum
+ [[ -f $1/gitleaks && ! -L $1/gitleaks && -x $1/gitleaks ]] || return 1
+ sum=$(sha256sum "$1/gitleaks" | cut -d ' ' -f 1) || return 1
+ grep -qaF "$sum" "$1/equipo-runner"
+}
+scanner() {
+ echo " $1/gitleaks: executable, and its sha256 is linked into $1/equipo-runner"
+ if ((execute)) && ! scanner_linked "$1"; then
+ die "$1/gitleaks is missing, cannot run, or is not the scanner equipo-runner was built with"
+ fi
+}
# A hash from the green staging record of $version (empty if there is none).
staged_sha() { python3 -c 'import json,sys; d=json.load(open(sys.argv[1])); print(d["sha256"][sys.argv[2]] if d.get("staging") == "PASS" else "")' "$RELEASES/staged/$version.json" "$1" 2>/dev/null || true; }
@@ -203,12 +219,14 @@ echo "Finish the cutover to ${version:--unknown-} on the kept database, instance
step "6 identity: the instance names the kept database's id (no replica)"
run curl -fsS "$ORIGIN/api/version"
echo " $ORIGIN/install.sh and $PUBLIC_ORIGIN/install.sh must end: sh -s -- '$PUBLIC_ORIGIN' '$version' '$old_id'"
-echo " the staged runner and tool proxy must have the hashes in $RELEASES/staged/$version.json"
+echo " the staged runner, tool proxy and gitleaks must have the hashes in $RELEASES/staged/$version.json"
+scanner "$runner_release"
if ((execute)) && ! done_step identity; then
[[ $(curl -fsS "$ORIGIN/api/version") == "$version" ]] || die "production does not serve $version"
identity
[[ $(sha256sum "$runner_release/equipo-runner" | cut -d ' ' -f 1) == "$(staged_sha runner)" ]] || die "equipo-runner is not the one staging passed for $version"
[[ $(sha256sum "$runner_release/equipo-tool-proxy" | cut -d ' ' -f 1) == "$(staged_sha tool_proxy)" ]] || die "equipo-tool-proxy is not the one staging passed for $version"
+ [[ $(sha256sum "$runner_release/gitleaks" | cut -d ' ' -f 1) == "$(staged_sha gitleaks)" ]] || die "gitleaks is not the one staging passed for $version"
put new_instance_id "$old_id"
put kept_database 1
finish identity
@@ -242,7 +260,7 @@ if ! done_step runner; then
fi
echo " $UNIT is $RUNNER_ROOT/equipo-runner.service with state $RUNNER_ROOT/state; its files recorded once in $snap"
run install -d -m 0700 "$new"
- run install -m 0700 "$runner_release/equipo-runner" "$runner_release/equipo-tool-proxy" "$new/"
+ run install -m 0700 "$runner_release/equipo-runner" "$runner_release/equipo-tool-proxy" "$runner_release/gitleaks" "$new/"
run python3 "$REPO/scripts/runner-config.py" render "$snap" "$RUNNER_ROOT" "${config[@]}"
if ((execute)); then move_state; else
run mv "$RUNNER_ROOT/state" "$kept"
diff --git a/scripts/cutover-thin.sh b/scripts/cutover-thin.sh
index 06dcc0f3..d529a3ba 100755
--- a/scripts/cutover-thin.sh
+++ b/scripts/cutover-thin.sh
@@ -26,7 +26,8 @@
# platform replica; it must exist and differ from the old one.
# Nothing on the runner has changed yet, so a failure here
# still rolls back cleanly.
-# 7 runner install the staged runner beside the old one, new service.env
+# 7 runner install the staged runner, tool proxy and gitleaks (the
+# preview scanner) beside the old one, new service.env
# (tool proxy path, new instance id) and unit
# (RestartPreventExitStatus=3), old state moved aside
# 8 enrol the runner enrols with the new instance, the owner approves
@@ -63,7 +64,7 @@ version=${1:-}
execute=0
[[ ${2:-} == --execute ]] && execute=1
if [[ $mode == cutover && ! $version =~ ^[0-9a-f]{7,12}$ ]]; then
- sed -n '2,40p' "$0"
+ sed -n '2,41p' "$0"
exit 2
fi
@@ -89,6 +90,22 @@ done_step() { [[ $(get "done_$1") == 1 ]]; }
finish() { put "done_$1" 1; }
# env_value reads one key from a `carlos env list` listing on stdin.
env_value() { awk -v k="$1" '$1 == k { print $2; found = 1 } END { if (!found) print "-unset-" }'; }
+# The runner scans every preview with the gitleaks beside its own
+# executable, held to the hash linked into the runner; without it every
+# preview fails (preview_scanner). $1 is a runner release directory: its
+# gitleaks runs, and its sha256 is the one linked into its equipo-runner.
+scanner_linked() {
+ local sum
+ [[ -f $1/gitleaks && ! -L $1/gitleaks && -x $1/gitleaks ]] || return 1
+ sum=$(sha256sum "$1/gitleaks" | cut -d ' ' -f 1) || return 1
+ grep -qaF "$sum" "$1/equipo-runner"
+}
+scanner() {
+ echo " $1/gitleaks: executable, and its sha256 is linked into $1/equipo-runner"
+ if ((execute)) && ! scanner_linked "$1"; then
+ die "$1/gitleaks is missing, cannot run, or is not the scanner equipo-runner was built with"
+ fi
+}
overlaps() { case "$1/" in "$2"/*) return 0 ;; esac; case "$2/" in "$1"/*) return 0 ;; esac; return 1; }
if [[ $mode == rollback ]]; then
@@ -144,6 +161,8 @@ step "1 preflight"
run make -C "$REPO" staged-check RELEASE_VERSION="$version"
run test -f "$instance"
run test -x "$runner_release/equipo-runner"
+run test -x "$runner_release/equipo-tool-proxy"
+scanner "$runner_release"
run test -f "$RUNNER_ROOT/equipo-runner.service"
run test -f "$RUNNER_ROOT/service.env"
run carlos apps list --account "$ACCOUNT" --console "$CONSOLE"
@@ -243,7 +262,7 @@ new_id=$(get new_instance_id)
step "7 install the staged runner beside the old one"
if ! done_step runner; then
run install -d -m 0700 "$RUNNER_ROOT/releases/$version"
- run install -m 0700 "$runner_release/equipo-runner" "$runner_release/equipo-tool-proxy" "$RUNNER_ROOT/releases/$version/"
+ run install -m 0700 "$runner_release/equipo-runner" "$runner_release/equipo-tool-proxy" "$runner_release/gitleaks" "$RUNNER_ROOT/releases/$version/"
run sed -i -e "s|^EQUIPO_TOOL_PROXY_PATH=.*|EQUIPO_TOOL_PROXY_PATH=\"$RUNNER_ROOT/releases/$version/equipo-tool-proxy\"|" -e "s|^EQUIPO_INSTANCE_ID=.*|EQUIPO_INSTANCE_ID=\"${new_id:-NEW_INSTANCE_ID}\"|" -e "s|^EQUIPO_ORIGIN=.*|EQUIPO_ORIGIN=\"$PUBLIC_ORIGIN\"|" "$RUNNER_ROOT/service.env"
run sed -i -e "s|^ExecStart=.*|ExecStart=$RUNNER_ROOT/releases/$version/equipo-runner run|" -e '/^RestartPreventExitStatus=/d' -e '/^RestartSec=/a RestartPreventExitStatus=3' "$RUNNER_ROOT/equipo-runner.service"
if ((execute)); then
@@ -260,7 +279,8 @@ step "8 enrol the runner with the new instance: open the printed link as the own
if ! done_step enrol; then
# Before anything of the new runner starts, it holds every program in
# its new configuration (bubblewrap, claude, codex and its code mode
- # host, the staged tool proxy) to the digests of its release.
+ # host, the staged tool proxy) and the gitleaks beside it to the
+ # digests of its release.
run bash -c "set -a; . '$RUNNER_ROOT/service.env'; set +a; '$RUNNER_ROOT/releases/$version/equipo-runner' verify-installed"
run bash -c "set -a; . '$RUNNER_ROOT/service.env'; set +a; '$RUNNER_ROOT/releases/$version/equipo-runner' enrol"
run systemctl --user start "$UNIT"
diff --git a/scripts/upgrade-thin.sh b/scripts/upgrade-thin.sh
index d53bcaf8..0d984158 100755
--- a/scripts/upgrade-thin.sh
+++ b/scripts/upgrade-thin.sh
@@ -26,7 +26,8 @@
# state (served version, runner service.env and unit)
# 2 backup carlos db pull, integrity-checked, counted, hashed, read-only.
# The upgrade changes no configuration: the same database.
-# 3 runner the staged runner beside the current one, checked by
+# 3 runner the staged runner, tool proxy and gitleaks (the preview
+# scanner) beside the current one, checked by
# verify-installed; service.env and unit written from the
# preflight's record (scripts/runner-config.py); nothing in
# flight on a reading just before the restart (a short window,
@@ -69,7 +70,7 @@ version=${1:-}
execute=0
[[ ${2:-} == --execute ]] && execute=1
if [[ $mode == upgrade && ! $version =~ ^[0-9a-f]{7,12}$ ]]; then
- sed -n '2,42p' "$0"
+ sed -n '2,43p' "$0"
exit 2
fi
@@ -114,6 +115,22 @@ idle() {
[[ $out =~ ^[0-9]+/[0-9]+/[0-9]+$ ]] || die "could not read the work in flight. $REPLICA"
[[ $out == 0/0/0 ]] || die "in flight (steps/merges/turns): $out; run again when nothing runs"
}
+# The runner scans every preview with the gitleaks beside its own
+# executable, held to the hash linked into the runner; without it every
+# preview fails (preview_scanner). $1 is a runner release directory: its
+# gitleaks runs, and its sha256 is the one linked into its equipo-runner.
+scanner_linked() {
+ local sum
+ [[ -f $1/gitleaks && ! -L $1/gitleaks && -x $1/gitleaks ]] || return 1
+ sum=$(sha256sum "$1/gitleaks" | cut -d ' ' -f 1) || return 1
+ grep -qaF "$sum" "$1/equipo-runner"
+}
+scanner() {
+ echo " $1/gitleaks: executable, and its sha256 is linked into $1/equipo-runner"
+ if ((execute)) && ! scanner_linked "$1"; then
+ die "$1/gitleaks is missing, cannot run, or is not the scanner equipo-runner was built with"
+ fi
+}
# The unit's main process runs the binary with sha256 $1.
runs() {
local pid
@@ -220,6 +237,7 @@ run make -C "$RELEASE_REPO" staged-check RELEASE_VERSION="$version"
run test -f "$instance"
run test -x "$runner_release/equipo-runner"
run test -x "$runner_release/equipo-tool-proxy"
+scanner "$runner_release"
run test -f "$RUNNER_ROOT/equipo-runner.service"
run test -f "$RUNNER_ROOT/service.env"
run carlos apps list --account "$ACCOUNT" --console "$CONSOLE"
@@ -284,9 +302,10 @@ new=$RUNNER_ROOT/releases/$version
config=(--exec "$new/equipo-runner" "EQUIPO_TOOL_PROXY_PATH=$new/equipo-tool-proxy")
if ! done_step runner; then
run install -d -m 0700 "$new"
- run install -m 0700 "$runner_release/equipo-runner" "$runner_release/equipo-tool-proxy" "$new/"
- # The staged runner holds every program its configuration names, and
- # its own tool proxy, to its release's digests before anything switches.
+ run install -m 0700 "$runner_release/equipo-runner" "$runner_release/equipo-tool-proxy" "$runner_release/gitleaks" "$new/"
+ # The staged runner holds every program its configuration names, its
+ # own tool proxy and the gitleaks beside it, to its release's digests
+ # before anything switches.
run bash -c "set -a; . '$RUNNER_ROOT/service.env'; set +a; EQUIPO_TOOL_PROXY_PATH='$new/equipo-tool-proxy' '$new/equipo-runner' verify-installed"
# Written from the preflight's record, never the live files, so a retry
# gives the same files; each key, ExecStart and RestartSec exactly once.