oficina / equipo Public

installer: direct enrol waits on installs; keep a published credential

Astra round 2 on mac-install-safe: 7 of 9 round 1 findings fixed; two
majors partly open, both closed here, and its two minors.

- R1.2: a direct enrolment (equipo-runner enrol) takes the same install
  lock (enrolAlone) and is refused, runner.install.busy, while an
  install holds it, so an install that then fails cannot put its
  earlier configuration back beside a credential the direct enrolment
  added.
- R1.3: an enrolment that answers an error after its credential was
  published (JournalCredentials renamed it, then the directory sync
  failed) is enrolled: when the credential file changed during the
  enrolment and is a live one for this origin and instance
  (runner.EnrolledWith), both installers go on with the new
  configuration instead of putting the old one back beside it.
- Minors: putting the agent back (bootstrap) and the check after a
  bootout that errs each get their own bounded, uncancelled context.

Tests first (red: failed to build, then failed):
TestInstallMacEnrolledDespiteAnError,
TestInstallLinuxEnrolledDespiteAnError, TestEnrolAloneWhileInstalling.

Mutation checks (each broke one guard, ran the test, restored):
N12 never enrolled anyway: both ...EnrolledDespiteAnError FAIL
N13 any live credential counts, changed or not:
    TestInstallMacPutsBackThePreviousRunner FAIL
N14 direct enrol without the lock: TestEnrolAloneWhileInstalling FAIL

Local: go test -race ./cmd/equipo-runner ok; ./internal/runner -run
Enrol|Budget ok; darwin/arm64 vet ok; staticcheck clean; budget size
(internal/runner 9986/9323), fmt-check, runner-dead-references ok.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 25a9ad8a6d9212d7146a431d8c25b4f7bfaec0ea parent d55c2fb
9 files changed, +178 −8
  • .rastrillo/budgets.txt +1 −1
  • cmd/equipo-runner/install.go +4 −1
  • cmd/equipo-runner/install_backup.go +35 −0
  • cmd/equipo-runner/install_linux_safe_test.go +21 −0
  • cmd/equipo-runner/install_mac.go +15 −5
  • cmd/equipo-runner/install_safe_test.go +55 −0
  • cmd/equipo-runner/main.go +5 −1
  • internal/runner/enrol.go +14 −0
  • scripts/runner-reference-allowlist.json +28 −0

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/mac-install-safe: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.3s
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.9s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 5.9s
ci-box: file times set from content: 3286 files, 213 directories
ci-box: ready in 19.1s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.147s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  3.5s
+ go list -export -test -tags testbuild -f  ./...
  4.7s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.7s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

receipt: test step 1m15.356s 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 1m13.386s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.39s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 49.26, cpu waiting 30.22%, memory waiting 0.00%, io waiting 0.58%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m15.193s 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 1m13s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 49.26, cpu waiting 30.22%, memory waiting 0.00%, io waiting 0.58%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m14.412s 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 1m12.447s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m3.76s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.68s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.01s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 49.26, cpu waiting 30.22%, memory waiting 0.00%, io waiting 0.58%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless

receipt: test step 1m12.631s 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 1m10.636s amadan.net/oficina/equipo/internal/headless
receipt: slow test 34.35s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 18.14s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.15s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 48.50, cpu waiting 30.53%, memory waiting 0.00%, io waiting 0.60%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

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

receipt: test step 2m52.065s 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 2m49.904s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m34.54s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 19.93s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.06s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.22s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 16.13, cpu waiting 7.61%, memory waiting 0.00%, io waiting 0.11%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 1.728s 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 2m14.601s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.93s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.16s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.68s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 1.45, cpu waiting 1.48%, memory waiting 0.00%, io waiting 2.03%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 1.638s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m56.319s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.57s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.95s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.66s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.01s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 1.45, cpu waiting 1.48%, memory waiting 0.00%, io waiting 2.03%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 5m8.369s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m14.37s 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 5m8.369s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.86s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 2.24, cpu waiting 0.71%, memory waiting 0.00%, io waiting 0.04%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 49.037s 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 48.083s amadan.net/oficina/equipo/internal/runner
receipt: slow test 28.05s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 48.13, cpu waiting 28.41%, memory waiting 0.00%, io waiting 0.91%
--- 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

receipt: test step 52.887s 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 51.65s amadan.net/oficina/equipo/internal/runner
receipt: slow test 41.55s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 35.81s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 48.13, cpu waiting 29.69%, memory waiting 0.00%, io waiting 0.85%
--- 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

receipt: test step 41.056s 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 40.087s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.2s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.83s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 33.57, cpu waiting 22.87%, memory waiting 0.00%, io waiting 1.04%
--- 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 34.2%, load 20.18
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m9.252s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.055s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.05s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 28.96s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.83s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.94s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.8s amadan.net/oficina/equipo/internal/equipotest TestAuthorityFailureIsNotRevocation
machine: 32 CPUs, load 40.63, cpu waiting 24.68%, memory waiting 0.00%, io waiting 0.39%
--- 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 33.0%, load 20.18
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1.372s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m12.416s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.99s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.97s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.96s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.94s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 20.94s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
machine: 32 CPUs, load 20.18, cpu waiting 14.89%, memory waiting 0.00%, io waiting 1.23%
--- 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 34.2%, load 20.18
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 1m19.449s 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 1m9.396s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16.34s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.52s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.48s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.45s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.4s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 35.37, cpu waiting 21.05%, memory waiting 0.00%, io waiting 0.33%
--- 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 33.0%, load 20.18
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1.699s 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 1m6.898s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.16s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.28s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.25s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.3s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
receipt: slow test 23.26s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 20.18, cpu waiting 14.89%, memory waiting 0.00%, io waiting 1.23%
--- 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 33.0%, load 20.18
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
--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries
--- FAIL: TestPlan3ReleaseBoundaries (0.30s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries/inventory
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance runner.mac.other_instance
--- FAIL: TestPlan3ReleaseBoundaries/inventory (0.01s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test (package output)
FAIL
rastrillo-budget/v1 ran 52.167s
FAIL	amadan.net/oficina/equipo/internal/plan3test	52.429s


receipt: test step 54.031s 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 52.167s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.83s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.44s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.3s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestPlan3ReleaseBoundaries$/^inventory$' -count=1 ./internal/plan3test   (retry, once)
FAILED TWICE ./internal/plan3test:TestPlan3ReleaseBoundaries/inventory plan3test
=== RUN   TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance runner.mac.other_instance
--- FAIL: TestPlan3ReleaseBoundaries (0.02s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)
FAIL
rastrillo-budget/v1 ran 17ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.199s
FAIL
machine: 32 CPUs, load 47.06, cpu waiting 29.19%, memory waiting 0.00%, io waiting 0.49%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 16 of 29 failed: exit status 2
--- 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 33.0%, load 20.18
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo: 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/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/provider/pi: its inputs changed
budget note: internal/equipo took 2m15.768s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 29.303s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/github took 40.581s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 10.401s, 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 1m48.737s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 24.619s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 42.824s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 10.889s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m25.798s against a 60s target (the gate's other steps are not in this figure)
receipt: 18 packages ran, 51 cached, 16 without tests, 0 failed
receipt: slow package 2m15.768s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m48.737s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 59.69s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.37s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 44.982s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 56.32s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 48.02s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 47.86s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 47.54s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 47.28s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
machine: 32 CPUs, load 14.91, cpu waiting 7.12%, memory waiting 0.00%, io waiting 0.10%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

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

receipt: test step 1m25.384s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.776s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.3s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 19.67s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.89s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.34s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 47.06, cpu waiting 28.79%, memory waiting 0.00%, io waiting 0.48%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m49.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 1m48.176s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.38s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 11.88s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.2s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.95s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 35.37, cpu waiting 20.46%, 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|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-28T17:53:46.440Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T17:53:46.441Z level=INFO msg="startup phase done" phase=state_lock took=227µs
time=2026-11-28T17:53:46.441Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T17:53:46.441Z level=INFO msg="startup phase done" phase=claim_roots took=240µs
time=2026-11-28T17:53:46.441Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T17:53:46.490Z level=INFO msg="startup phase done" phase=sweep took=49.29ms
time=2026-11-28T17:53:46.490Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T17:53:46.491Z level=INFO msg="startup phase done" phase=credentials took=238µs
time=2026-11-28T17:53:46.491Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T17:53:46.540Z level=INFO msg="startup phase done" phase=open_state took=49.035ms
time=2026-11-28T17:53:46.540Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T17:53:46.542Z level=INFO msg=connecting host=127.0.0.1:36293 protocol=35
time=2026-11-28T17:53:46.544Z level=INFO msg=connected host=127.0.0.1:36293 took=908µs
time=2026-11-28T17:53:46.544Z level=INFO msg="capabilities gathering"
time=2026-11-28T17:53:46.545Z level=INFO msg="capabilities gathered" took=1.105ms tags=linux,claude,go
time=2026-11-28T17:53:46.545Z level=INFO msg="hello sent" protocol=35
time=2026-11-28T17:53:46.550Z level=INFO msg=welcome protocol=35 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.36s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m35.945s
FAIL	amadan.net/oficina/equipo/internal/headless	96.140s


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

receipt: test step 1.58s 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.416s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 650ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/equipotest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserGitHubManifestCSP)$' ./internal/equipotest

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

receipt: test step 1.294s 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 10.816s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.53s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.29s 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 3.689s 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.035s 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 1.588s 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 3m32.68s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 25.91s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.4s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.09s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.62s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.24s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 7.82, cpu waiting 6.37%, memory waiting 0.00%, io waiting 1.72%
--- 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   (50s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.60s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.23s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.40s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.84s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.06s
+ 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   (68s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 23.30s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.40s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.42s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 11.87s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (20s)
ok ./internal/headless TestMixedVersions 17.65s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.87s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 49.15, cpu waiting 31.35%, memory waiting 0.00%, io waiting 0.67%
--- 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 13.259s 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.772s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 214ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 110ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.55s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.81s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 110ms 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.44s 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 3.061s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 10.40, cpu waiting 9.56%, memory waiting 0.00%, io waiting 1.55%
--- 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 34.2%, load 20.18
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2998 text files, 3281 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 94 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.485s
machine: 32 CPUs, load 49.15, cpu waiting 31.50%, memory waiting 0.00%, io waiting 0.69%
--- 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 33.0%, load 20.18
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 38.65, cpu waiting 26.06%, memory waiting 0.00%, io waiting 0.97%
--- 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 33.0%, load 20.18
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 48.13, cpu waiting 29.41%, memory waiting 0.00%, io waiting 0.88%
--- 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 33.0%, load 20.18
shard 28: make gitleaks
5:53PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
5:53PM INF 1267 commits scanned.
5:53PM INF scanned ~68845167 bytes (68.85 MB) in 20.1s
5:53PM INF no leaks found
machine: 32 CPUs, load 48.13, cpu waiting 28.41%, memory waiting 0.00%, io waiting 0.91%

amadan: job failed at step check shard 16 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 0720e48b..5f780887 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -21,7 +21,7 @@ time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
perf GET /api/runner/v2/artifacts/{assignment}/{artifact} skip Authenticated runner artifact download, not a browser GET screen. Runner long-poll and blob downloads use POST and are outside the screen inventory.
-size internal/runner 9972 9323 Injection defences, current authority and provenance guards, installer enrolment check, credential written last; measured 9972/9323.
+size internal/runner 9986 9323 Injection defences, current authority and provenance guards, installer enrolment check, credential written last; measured 9986/9323.
time internal/runner/provider/claude 45s Task 5 measured 32.430s for fake CLI sessions and fsynced account, policy, capture and refresh checks; 45s gives 38 percent headroom on the shared runner.
time internal/runner/provider/codex 35s Plan 3 CI repair measured 24.464s for the full package (controller CI 27.908s).
time internal/runner/provider/pi 60s The real pinned Pi in bubblewrap against a fake TensorX: probes P1 to P5 (a hundred RPC turns), the hostile repository, and the pinned tree checked whole (about 160 MB); measured 22s locally.
diff --git a/cmd/equipo-runner/install.go b/cmd/equipo-runner/install.go
index d31cc477..bc61a8d0 100644
--- a/cmd/equipo-runner/install.go
+++ b/cmd/equipo-runner/install.go
@@ -142,7 +142,10 @@ func installLinux(ctx context.Context, args []string, input io.Reader, out, erro
cfg.MachineLabel = label
report := enrolReport{errout: errout, log: filepath.Join(*root, "install.log")}
cfg.EnrolNotify = report.notify
- if e = h.enrol(ctx, cfg, out); e != nil {
+ // An error after the credential was published (its directory sync)
+ // is still an enrolment: what was kept aside is not put back beside it.
+ before := credentialBefore(cfg.StateDir)
+ if e = h.enrol(ctx, cfg, out); e != nil && !enrolledAnyway(cfg.StateDir, *origin, *instance, before) {
report.failed(e)
return putBack()
}
diff --git a/cmd/equipo-runner/install_backup.go b/cmd/equipo-runner/install_backup.go
index 8709407c..6f8def47 100644
--- a/cmd/equipo-runner/install_backup.go
+++ b/cmd/equipo-runner/install_backup.go
@@ -8,7 +8,9 @@ import (
"os"
"path/filepath"
"strconv"
+ "time"
+ "amadan.net/oficina/equipo/internal/runner"
"golang.org/x/sys/unix"
)
@@ -128,6 +130,39 @@ func installLock(state string) (*os.File, error) {
return f, nil
}
+// enrolAlone is a direct enrolment (equipo-runner enrol): refused while
+// an install holds the install lock, so an install that then fails
+// cannot put its earlier configuration back beside what this added.
+func enrolAlone(ctx context.Context, cfg runner.Config, out io.Writer, enrol func(context.Context, runner.Config, io.Writer) error) error {
+ lock, err := installLock(cfg.StateDir)
+ if err != nil {
+ return err
+ }
+ defer lock.Close()
+ return enrol(ctx, cfg, out)
+}
+
+// credentialBefore is the runner's credential file as it is before an
+// enrolment ("" when there is none).
+func credentialBefore(state string) string {
+ raw, _ := os.ReadFile(filepath.Join(state, "credentials.json"))
+ return string(raw)
+}
+
+// enrolledAnyway reports whether an enrolment that answered an error
+// published a new credential for origin and instance all the same (the
+// directory sync after its rename failed): it is enrolled, and what an
+// install kept aside must not be put back beside that credential.
+func enrolledAnyway(state, origin, instance, before string) bool {
+ return credentialBefore(state) != before && runner.EnrolledWith(state, origin, instance)
+}
+
+// detached is a context for putting things back: not ended by the
+// person's Ctrl-C, but bounded.
+func detached(ctx context.Context) (context.Context, context.CancelFunc) {
+ return context.WithTimeout(context.WithoutCancel(ctx), time.Minute)
+}
+
// lockKey is the line for an install lock that could not be taken.
func lockKey(err error) string {
if errors.Is(err, errInstallBusy) {
diff --git a/cmd/equipo-runner/install_linux_safe_test.go b/cmd/equipo-runner/install_linux_safe_test.go
index 8c4286ba..fa0ccdce 100644
--- a/cmd/equipo-runner/install_linux_safe_test.go
+++ b/cmd/equipo-runner/install_linux_safe_test.go
@@ -3,6 +3,7 @@ package main
import (
"bytes"
"context"
+ "errors"
"fmt"
"io"
"os"
@@ -284,3 +285,23 @@ func TestInstallLinuxPutsBackItsConfig(t *testing.T) {
t.Fatalf("left behind %v", entries)
}
}
+
+// As on a Mac: an enrolment that published its credential, then
+// answered an error, is enrolled and its configuration kept.
+func TestInstallLinuxEnrolledDespiteAnError(t *testing.T) {
+ x := newLinuxRig(t)
+ x.before(t, stagingOrigin)
+ expiredEnrolment(t, filepath.Join(x.root, "state"), stagingOrigin)
+ x.h.enrol = func(_ context.Context, cfg runner.Config, _ io.Writer) error {
+ liveEnrolment(t, cfg.StateDir, cfg.Origin, cfg.InstanceID)
+ x.enrolled = true
+ return errors.New("sync state: input/output error")
+ }
+ code, errout := x.install("https://equipo.example", "yes")
+ if code != 0 || !x.enrolled {
+ t.Fatalf("%d %q", code, errout)
+ }
+ if got := x.files(t); got["runner.env"] != "EQUIPO_ORIGIN=\"https://equipo.example\"\n" {
+ t.Fatalf("configuration put back beside the new credential: %v", got)
+ }
+}
diff --git a/cmd/equipo-runner/install_mac.go b/cmd/equipo-runner/install_mac.go
index fed1514e..7fd2105b 100644
--- a/cmd/equipo-runner/install_mac.go
+++ b/cmd/equipo-runner/install_mac.go
@@ -205,7 +205,9 @@ func installMac(ctx context.Context, args []string, h macInstallHost, out, errou
if tookDown {
// Taken out of launchd but still holding its lock: launchd
// gets it back as it was, or the person is told it is not.
- if h.launchctl(context.WithoutCancel(ctx), "bootstrap", domain, plist) != nil {
+ back, cancel := detached(ctx)
+ defer cancel()
+ if h.launchctl(back, "bootstrap", domain, plist) != nil {
say("runner.mac.still_running")
return fail("runner.mac.not_restored")
}
@@ -228,7 +230,9 @@ func installMac(ctx context.Context, args []string, h macInstallHost, out, errou
kept := backup != nil && backup.kept()
restored := backup == nil || backup.restore()
if restored && tookDown {
- restored = h.launchctl(context.WithoutCancel(ctx), "bootstrap", domain, plist) == nil
+ back, cancel := detached(ctx)
+ defer cancel()
+ restored = h.launchctl(back, "bootstrap", domain, plist) == nil
}
switch {
case !restored:
@@ -319,7 +323,10 @@ func installMac(ctx context.Context, args []string, h macInstallHost, out, errou
// when there is one: a valid enrolment is kept and said so instead.
report := macEnrolReport(errout, filepath.Join(logs, "install.log"))
cfg.EnrolNotify = report.notify
- if err := h.enrol(ctx, cfg, out); err != nil {
+ // An error after the credential was published (its directory sync)
+ // is still an enrolment: what was kept aside is not put back beside it.
+ before := credentialBefore(cfg.StateDir)
+ if err := h.enrol(ctx, cfg, out); err != nil && !enrolledAnyway(cfg.StateDir, *origin, *instance, before) {
if errors.Is(err, runner.ErrEnrolledAsPrimary) {
return abort("runner.needs_primary")
}
@@ -431,9 +438,12 @@ func stopRunner(ctx context.Context, h macInstallHost, service, state string) (s
}
// The bootout is not cut short by Ctrl-C: launchd may have taken the
// agent out before it answers, and whether it did is checked below.
- stop, cancel := context.WithTimeout(context.WithoutCancel(ctx), time.Minute)
+ stop, cancel := detached(ctx)
defer cancel()
- if h.launchctl(stop, "bootout", service) != nil && h.launchctl(stop, "print", service) == nil {
+ refused := h.launchctl(stop, "bootout", service) != nil
+ check, cancelCheck := detached(ctx)
+ defer cancelCheck()
+ if refused && h.launchctl(check, "print", service) == nil {
// Refused, and the agent is still there: nothing was taken down.
return false, false
}
diff --git a/cmd/equipo-runner/install_safe_test.go b/cmd/equipo-runner/install_safe_test.go
index a5ea46ba..b3794874 100644
--- a/cmd/equipo-runner/install_safe_test.go
+++ b/cmd/equipo-runner/install_safe_test.go
@@ -16,6 +16,7 @@ import (
"amadan.net/oficina/equipo/internal/equipo"
"amadan.net/oficina/equipo/internal/runner"
"amadan.net/oficina/equipo/internal/runner/provider"
+ runnersetup "amadan.net/oficina/equipo/internal/runner/setup"
"amadan.net/oficina/equipo/internal/runnerproto"
)
@@ -361,3 +362,57 @@ func TestInstallMacStopThatTookTheAgentDown(t *testing.T) {
t.Fatalf("a failed give-back not said: %d %q", code, errout)
}
}
+
+// expiredEnrolment is a runner enrolled with origin once, its credential
+// now expired: an install for another Equipo may replace it.
+func expiredEnrolment(t *testing.T, state, origin string) {
+ t.Helper()
+ if err := runnerproto.JournalCredentials(filepath.Join(state, "credentials.json"), runnerproto.CredentialRotation{Bearer: runnerproto.RunnerCredential{Version: 1, RunnerID: "r0", Token: "old", ExpiresAt: time.Now().Add(-time.Hour)}}); err != nil {
+ t.Fatal(err)
+ }
+ record := map[string]any{"origin": origin, "label": "Tito Studio", "code": map[string]string{"instance_id": "team1"}}
+ if err := runnerproto.JournalCredentials(filepath.Join(state, "enrolment.json"), record); err != nil {
+ t.Fatal(err)
+ }
+}
+
+// An enrolment that published its credential and then answered an error
+// (the directory sync after the rename failed) is enrolled: the install
+// goes on with the new configuration rather than putting the earlier
+// one back beside the new credential (Astra round 2, mac-install-safe).
+func TestInstallMacEnrolledDespiteAnError(t *testing.T) {
+ x := installedBefore(t, stagingOrigin)
+ state := filepath.Join(x.home, ".local/share/equipo-runner/state")
+ expiredEnrolment(t, state, stagingOrigin)
+ x.h.enrol = func(_ context.Context, cfg runner.Config, _ io.Writer) error {
+ liveEnrolment(t, cfg.StateDir, cfg.Origin, cfg.InstanceID)
+ return errors.New("sync state: input/output error")
+ }
+ code, errout := x.installAt(context.Background(), "https://equipo.example", "team1")
+ if code != 0 || !strings.Contains(errout, equipo.RunnerSetupCopy("runner.mac.installed")) {
+ t.Fatalf("%d %q", code, errout)
+ }
+ if env, _ := runnersetup.ReadEnvFile(filepath.Join(x.home, ".config/equipo-runner/runner.env")); env["EQUIPO_ORIGIN"] != "https://equipo.example" {
+ t.Fatalf("configuration put back beside the new credential: %v", env)
+ }
+}
+
+// A direct enrolment (equipo-runner enrol) waits for no install and
+// never runs beside one: while an install holds the lock it is refused
+// before it enrols, so the install cannot put back over what it added.
+func TestEnrolAloneWhileInstalling(t *testing.T) {
+ state := filepath.Join(t.TempDir(), "state")
+ calls := 0
+ enrol := func(context.Context, runner.Config, io.Writer) error { calls++; return nil }
+ lock, err := installLock(state)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := enrolAlone(context.Background(), runner.Config{StateDir: state}, io.Discard, enrol); !errors.Is(err, errInstallBusy) || calls != 0 {
+ t.Fatalf("enrolled during an install: %v %d", err, calls)
+ }
+ lock.Close()
+ if err := enrolAlone(context.Background(), runner.Config{StateDir: state}, io.Discard, enrol); err != nil || calls != 1 {
+ t.Fatalf("not enrolled: %v %d", err, calls)
+ }
+}
diff --git a/cmd/equipo-runner/main.go b/cmd/equipo-runner/main.go
index 6f714040..90a4a167 100644
--- a/cmd/equipo-runner/main.go
+++ b/cmd/equipo-runner/main.go
@@ -117,7 +117,11 @@ func run(ctx context.Context, args []string, input io.Reader, output, errorOutpu
}
switch args[0] {
case "enrol":
- err = runner.Enrol(ctx, cfg, output)
+ err = enrolAlone(ctx, cfg, output, runner.Enrol)
+ if errors.Is(err, errInstallBusy) {
+ _, _ = fmt.Fprintln(errorOutput, equipo.RunnerSetupCopy("runner.install.busy"))
+ return 1
+ }
case "reset":
err = runner.Reset(ctx, cfg)
case "run":
diff --git a/internal/runner/enrol.go b/internal/runner/enrol.go
index b88a3761..99daf645 100644
--- a/internal/runner/enrol.go
+++ b/internal/runner/enrol.go
@@ -365,6 +365,20 @@ func EnrolledElsewhere(stateDir, origin, instanceID string) (other string, elsew
return other, elsewhere, nil
}
+// EnrolledWith reports whether stateDir holds a live credential from an
+// enrolment with origin and instanceID. An Enrol that answers an error
+// after it published the credential (the directory sync after the rename
+// failed) leaves this; an installer asks it before it puts back its
+// earlier configuration, which would not go with that credential.
+func EnrolledWith(stateDir, origin, instanceID string) bool {
+ cred, err := readCredentials(filepath.Join(stateDir, "credentials.json"))
+ if err != nil || !time.Now().Before(cred.Bearer.ExpiresAt) {
+ return false
+ }
+ _, other := otherEnrolment(stateDir, origin, instanceID)
+ return !other
+}
+
// otherEnrolment: whether the enrolment saved beside live credentials is
// not for origin and instanceID (or cannot be read), and its origin.
func otherEnrolment(stateDir, origin, instanceID string) (string, bool) {
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index e4722cc8..4ac55b60 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -18625,5 +18625,33 @@
"match": "equipo-runner",
"count": 1,
"reason": "Installer safety (2026-11-28): the runner's install paths and the pinned srt npm install, kept aside and put back, and their tests."
+ },
+ {
+ "path": "cmd/equipo-runner/install_backup.go",
+ "line_sha256": "ed7513370211ed05f53ad626c98a71b1fee39aef02177939e9db0952560b52af",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Installer safety (2026-11-28): the runner's install paths and the pinned srt npm install, kept aside and put back, and their tests."
+ },
+ {
+ "path": "cmd/equipo-runner/install_safe_test.go",
+ "line_sha256": "692588f6fae47f7c0040a7ce28773296800a75ac6815122ab53d37973f5940ff",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Installer safety (2026-11-28): the runner's install paths and the pinned srt npm install, kept aside and put back, and their tests."
+ },
+ {
+ "path": "cmd/equipo-runner/install_safe_test.go",
+ "line_sha256": "a4d31f0a2f45b6a662b35d8f7b97800d729fa571697f64659b5d54e703950c73",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Installer safety (2026-11-28): the runner's install paths and the pinned srt npm install, kept aside and put back, and their tests."
+ },
+ {
+ "path": "cmd/equipo-runner/install_safe_test.go",
+ "line_sha256": "34957e9fc56f4266f4c55e828fd4d973f3cddf5e974004017c7e4fa5aeaa958f",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Installer safety (2026-11-28): the runner's install paths and the pinned srt npm install, kept aside and put back, and their tests."
}
]