oficina / equipo Public

runner: re-authorize a bound step's attempt after provider failover

Astra's task 16 review, round 1: when the provider refused a
specialist-bound attempt on quota or its credential, Exec advanced the
step to a new attempt and launched it on another connection without
asking the instance again, so a grant that no longer held (approver
demoted, a project row superseding the team's) could still start a
process and edit files.

Now, after refused() advances a step that carries any part of a
specialist binding, Exec waits until the instance has acked every step
report queued for the step (the advance included, so it knows the new
attempt; Authorize refuses an attempt it has not heard of), then runs
the same start authorization as the first attempt (e.lease, which
checks the grant again). A refusal ends the step cancelled with the
lease's reason and termination proven; nothing more launches.
Engineering steps without a binding keep today's failover. Research has
no provider failover; Review's carries no binding. The fake CLI's
steplimit:<email> now also refuses Design steps, and any of several
such words may name the account.

Test: TMPDIR=<short> CGO_ENABLED=0 go test ./internal/runner/thin/
  -run 'TestBoundFailover|TestDesign'
TestBoundFailoverIsAuthorizedAgain: two Claude connections, both
refused on quota; the instance acks reports and withdraws attempt 2.
RED (without the fix): attempt 2 launched on claude-b and the step went
on to attempt 3, deferred (asked only ds7/1).
GREEN: ok; thin -run 'Step|Engineer|Pi|Copy|Fix|Limit|Refus|Failover|
Switch|Schedule|Hold|Kept|Design|Render|Lease|Link' ok (146 s);
fakeclaude ok; darwin build and vet gates ok; budget: thin 31591/27557.

Mutations (each restored), all killed by TestBoundFailoverIsAuthorized
Again: no re-authorization; no wait for the instance's ack ("asked
before the instance acked"); every step re-authorized (Engineering
asked en7/2); the refusal ignored; the ack check ignoring the step id
(first survived because the test probed through the same function; the
probe now reads the outbox).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev af97845bcebadb7d8a53d4af7d8ecc0e64685841 parent eacc6d9
5 files changed, +187 −4
  • .rastrillo/budgets.txt +1 −1
  • internal/fakeclaude/fake.go +17 −3
  • internal/runner/thin/design_step.go +59 −0
  • internal/runner/thin/design_step_test.go +101 −0
  • internal/runner/thin/engineer.go +9 −0

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/specialists-slice-1: Type  Size Avail | ext4   96G   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.4s
ci-box: codex: fetched and verified in 3.6s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.1s
ci-box: pi: installed and verified in 8.0s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.0s
ci-box: clone deepened in 4.9s
ci-box: file times set from content: 3393 files, 222 directories
ci-box: ready in 19.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.170s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  7.0s
+ go list -export -test -tags testbuild -f  ./...
  6.4s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  4.0s
rastrillo: budget size: 3 problem(s)
exit status 1
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 1m30.516s 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.042s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m27.04s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 83.84, cpu waiting 51.22%, memory waiting 0.00%, io waiting 0.28%
--- 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 1m33.01s 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 1m29.812s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m29.81s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 81.29, cpu waiting 51.09%, memory waiting 0.00%, io waiting 0.27%
--- 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 1m33.566s 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 1m29.845s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.67s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.8s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.37s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 81.29, cpu waiting 51.09%, memory waiting 0.00%, io waiting 0.27%
--- 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 1m29.481s 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 1m26.934s amadan.net/oficina/equipo/internal/headless
receipt: slow test 44.9s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 23.03s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.57s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 81.29, cpu waiting 51.22%, memory waiting 0.00%, io waiting 0.28%
--- 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 1m50.106s 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 1m46.494s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.09s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.81s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.02s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.99s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.57s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 72.79, cpu waiting 44.84%, memory waiting 0.00%, io waiting 0.20%
--- 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 3m15.965s 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 3m13.236s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m52.09s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 21.6s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.15s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.51s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.98s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 23.50, cpu waiting 11.46%, memory waiting 0.00%, io waiting 0.04%
--- 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 2m27.31s 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 2m24.244s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.75s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.89s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.29s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 4.13s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.1s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 45.18, cpu waiting 25.23%, memory waiting 0.00%, io waiting 0.10%
--- 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 2m7.334s 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 2m3.823s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.76s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.15s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.94s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.05s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 57.62, cpu waiting 35.56%, memory waiting 0.00%, io waiting 0.15%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/runner/thin TestSnapshotRefusesASelfResumingWriter
=== RUN   TestSnapshotRefusesASelfResumingWriter
    worksnap_adversary_linux_test.go:232: 0 of 5 copies saw the page change; 0 refused busy
    worksnap_adversary_linux_test.go:234: the self-resuming writer never wrote during a copy: the test proves nothing
--- FAIL: TestSnapshotRefusesASelfResumingWriter (0.78s)

--- FAIL amadan.net/oficina/equipo/internal/runner/thin (package output)
FAIL
rastrillo-budget/v1 ran 5m40.222s
FAIL	amadan.net/oficina/equipo/internal/runner/thin	340.311s


receipt: test step 5m42.203s 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 5m40.222s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.09s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.95s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.91s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.52s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 10.03s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestSnapshotRefusesASelfResumingWriter$' -count=1 ./internal/runner/thin   (retry, once)
FAILED TWICE ./internal/runner/thin:TestSnapshotRefusesASelfResumingWriter runner-thin
=== RUN   TestSnapshotRefusesASelfResumingWriter
    worksnap_adversary_linux_test.go:232: 0 of 5 copies saw the page change; 0 refused busy
    worksnap_adversary_linux_test.go:234: the self-resuming writer never wrote during a copy: the test proves nothing
--- FAIL: TestSnapshotRefusesASelfResumingWriter (0.78s)
FAIL
rastrillo-budget/v1 ran 776ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.790s
FAIL
machine: 32 CPUs, load 4.66, cpu waiting 0.97%, memory waiting 0.00%, io waiting 0.00%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 8 of 29 failed: exit status 2
--- 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 59.012s 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 57.6s amadan.net/oficina/equipo/internal/runner
receipt: slow test 37.57s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 73.13, cpu waiting 41.46%, memory waiting 0.00%, io waiting 0.49%
--- 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 1m14.165s 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.351s amadan.net/oficina/equipo/internal/runner
receipt: slow test 1m2.27s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 55.48s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.45s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 88.02, cpu waiting 48.78%, memory waiting 0.00%, io waiting 0.37%
--- 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 37.858s 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 36.905s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 3.38s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 46.30, cpu waiting 25.80%, memory waiting 0.00%, io waiting 0.68%
--- 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 42.2%, load 35.28
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

receipt: test step 1m17.553s 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 1m15.041s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 32.93s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 32.9s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 30.36s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 27.08s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 26.99s amadan.net/oficina/equipo/internal/equipotest TestAuthorityRejectsMismatchedTarget
machine: 32 CPUs, load 72.79, cpu waiting 45.89%, memory waiting 0.00%, io waiting 0.20%
--- 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 42.2%, load 35.28
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 2m23.392s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m20.84s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.16s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 23.13s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 23.11s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 23.11s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 23.09s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
machine: 32 CPUs, load 33.15, cpu waiting 17.09%, memory waiting 0.00%, io waiting 0.06%
--- 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 42.2%, load 35.28
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
budget note: internal/equipotest took 5m42.286s, over the 5m0s its record on line 15 allows; reported only, timing fails on CI

receipt: test step 5m48.862s 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 5m42.286s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m46.15s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 14.2s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 11.14s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 11.06s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 8.05s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 3.04, cpu waiting 0.54%, memory waiting 0.00%, io waiting 0.00%
--- 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 42.2%, load 35.28
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 1m14.874s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m12.488s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.86s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 29.83s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 29.6s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 27.42s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
receipt: slow test 27.37s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 72.79, cpu waiting 47.55%, memory waiting 0.00%, io waiting 0.22%
--- 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 42.9%, load 35.28
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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries
--- FAIL: TestPlan3ReleaseBoundaries (0.42s)

--- 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 chat.specialist.capability.branch.edit
--- FAIL: TestPlan3ReleaseBoundaries/inventory (0.03s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test (package output)
FAIL
rastrillo-budget/v1 ran 1m0.273s
FAIL	amadan.net/oficina/equipo/internal/plan3test	60.626s


receipt: test step 1m2.566s 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 1m0.273s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.64s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
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 chat.specialist.capability.branch.edit
--- FAIL: TestPlan3ReleaseBoundaries (0.02s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)
FAIL
rastrillo-budget/v1 ran 18ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.261s
FAIL
machine: 32 CPUs, load 81.29, cpu waiting 50.89%, memory waiting 0.00%, io waiting 0.26%
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 42.2%, load 35.28
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/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./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/render ./internal/runner/renderpage ./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/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./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/render ./internal/runner/renderpage ./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/chatmarkdown: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldLeavesNothingStopped
=== RUN   TestHoldLeavesNothingStopped
    pause_linux_test.go:342: sandbox could not be paused in time
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldLeavesNothingStopped (5.82s)

--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldStopsANamespaceJoiner
=== RUN   TestHoldStopsANamespaceJoiner
    pause_linux_test.go:503: sandbox could not be paused in time
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsANamespaceJoiner (1.14s)

--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldStopsAReparentedDaemon
=== RUN   TestHoldStopsAReparentedDaemon
    pause_linux_test.go:603: daemon made no progress in 2s
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsAReparentedDaemon (2.34s)

--- FAIL amadan.net/oficina/equipo/internal/runner/pause (package output)
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/pause	12.704s

--- FAIL amadan.net/oficina/equipo/internal/testci TestBudgetRecordsAreShort
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:17: reason is 201 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:41: reason is 381 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:59: reason is 293 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:74: reason is 249 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)

--- FAIL amadan.net/oficina/equipo/internal/testci (package output)
FAIL
rastrillo-budget/v1 ran 2.13s
FAIL	amadan.net/oficina/equipo/internal/testci	2.135s

budget: amadan.net/oficina/equipo/internal/runner/designstep ran tests but printed no time: add func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
budget note: internal/equipo took 2m48.949s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 39.61s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 45.112s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 15.572s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m10.279s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 56.064s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m13.6s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 33.28s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 17.358s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m26.103s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/render took 1m29.889s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m55.733s against a 60s target (the gate's other steps are not in this figure)
receipt: 54 packages ran, 17 cached, 17 without tests, 2 failed
receipt: slow package 2m48.949s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m10.279s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m29.889s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 1m26.103s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m13.6s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 59.19s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 51.3s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 51.04s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 50.4s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 50.38s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestHoldLeavesNothingStopped$|^TestHoldStopsANamespaceJoiner$|^TestHoldStopsAReparentedDaemon$' -count=1 ./internal/runner/pause   (retry, once)
FAILED TWICE ./internal/runner/pause:TestHoldLeavesNothingStopped rest
FAILED TWICE ./internal/runner/pause:TestHoldStopsANamespaceJoiner rest
FAILED TWICE ./internal/runner/pause:TestHoldStopsAReparentedDaemon rest
=== RUN   TestHoldLeavesNothingStopped
--- PASS: TestHoldLeavesNothingStopped (0.02s)
=== RUN   TestHoldStopsANamespaceJoiner
--- PASS: TestHoldStopsANamespaceJoiner (0.32s)
=== RUN   TestHoldStopsAReparentedDaemon
    pause_linux_test.go:603: daemon made no progress in 2s
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsAReparentedDaemon (2.31s)
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/pause	2.653s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestBudgetRecordsAreShort$' -count=1 ./internal/testci   (retry, once)
FAILED TWICE ./internal/testci:TestBudgetRecordsAreShort rest
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:17: reason is 201 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:41: reason is 381 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:59: reason is 293 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:74: reason is 249 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/testci	0.004s
FAIL
machine: 32 CPUs, load 20.66, cpu waiting 9.08%, memory waiting 0.00%, io waiting 0.03%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 17 of 29 failed: exit status 2
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChat
=== RUN   TestBrowserChat
time=2026-11-29T00:38:11.263Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T00:38:11.263Z level=INFO msg="startup phase done" phase=state_lock took=86µs
time=2026-11-29T00:38:11.263Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T00:38:11.263Z level=INFO msg="startup phase done" phase=claim_roots took=85µs
time=2026-11-29T00:38:11.263Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T00:38:11.333Z level=INFO msg="startup phase done" phase=sweep took=69.499ms
time=2026-11-29T00:38:11.333Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T00:38:11.333Z level=INFO msg="startup phase done" phase=credentials took=119µs
time=2026-11-29T00:38:11.333Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T00:38:11.423Z level=INFO msg="startup phase done" phase=open_state took=90.69ms
time=2026-11-29T00:38:11.426Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T00:38:11.433Z level=INFO msg=connecting host=127.0.0.1:38965 protocol=36
time=2026-11-29T00:38:11.434Z level=INFO msg=connected host=127.0.0.1:38965 took=1.345ms
time=2026-11-29T00:38:11.434Z level=INFO msg="capabilities gathering"
time=2026-11-29T00:38:11.435Z level=INFO msg="capabilities gathered" took=620µs tags=linux,claude,go
time=2026-11-29T00:38:11.442Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T00:38:11.448Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T00:38:13.934Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:46: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserChat (6.77s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-29T00:38:18.090Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T00:38:18.090Z level=INFO msg="startup phase done" phase=state_lock took=276µs
time=2026-11-29T00:38:18.091Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T00:38:18.091Z level=INFO msg="startup phase done" phase=claim_roots took=198µs
time=2026-11-29T00:38:18.091Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T00:38:18.151Z level=INFO msg="startup phase done" phase=sweep took=59.935ms
time=2026-11-29T00:38:18.151Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T00:38:18.151Z level=INFO msg="startup phase done" phase=credentials took=115µs
time=2026-11-29T00:38:18.151Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T00:38:18.230Z level=INFO msg="startup phase done" phase=open_state took=79.229ms
time=2026-11-29T00:38:18.231Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T00:38:18.235Z level=INFO msg=connecting host=127.0.0.1:33669 protocol=36
time=2026-11-29T00:38:18.236Z level=INFO msg=connected host=127.0.0.1:33669 took=1.128ms
time=2026-11-29T00:38:18.236Z level=INFO msg="capabilities gathering"
time=2026-11-29T00:38:18.239Z level=INFO msg="capabilities gathered" took=3.361ms tags=linux,claude,go
time=2026-11-29T00:38:18.240Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T00:38:18.260Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T00:38:20.472Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:108: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserChatSendStaysOnPage (6.72s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
=== RUN   TestBrowserDraftIsTheMessage
time=2026-11-29T00:38:24.763Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T00:38:24.763Z level=INFO msg="startup phase done" phase=state_lock took=285µs
time=2026-11-29T00:38:24.763Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T00:38:24.765Z level=INFO msg="startup phase done" phase=claim_roots took=1.516ms
time=2026-11-29T00:38:24.765Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T00:38:24.816Z level=INFO msg="startup phase done" phase=sweep took=50.857ms
time=2026-11-29T00:38:24.816Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T00:38:24.816Z level=INFO msg="startup phase done" phase=credentials took=144µs
time=2026-11-29T00:38:24.816Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T00:38:24.871Z level=INFO msg="startup phase done" phase=open_state took=55.053ms
time=2026-11-29T00:38:24.872Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T00:38:24.874Z level=INFO msg=connecting host=127.0.0.1:39145 protocol=36
time=2026-11-29T00:38:24.877Z level=INFO msg=connected host=127.0.0.1:39145 took=1.307ms
time=2026-11-29T00:38:24.877Z level=INFO msg="capabilities gathering"
time=2026-11-29T00:38:24.877Z level=INFO msg="capabilities gathered" took=518µs tags=linux,claude,go
time=2026-11-29T00:38:24.881Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T00:38:24.896Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T00:38:27.019Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_thinking_test.go:106: waiting for !!window.__m: context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserDraftIsTheMessage (8.48s)

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


receipt: test step 54.233s 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 51.473s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.17s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 8.48s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 7.91s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' -v -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserDraftIsTheMessage$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChat browser-headless-chat af97845bcebadb7d8a53d4af7d8ecc0e64685841 6.77s 68.44
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat af97845bcebadb7d8a53d4af7d8ecc0e64685841 6.72s 68.44
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserDraftIsTheMessage browser-headless-chat af97845bcebadb7d8a53d4af7d8ecc0e64685841 8.48s 68.44
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 69.21, cpu waiting 42.59%, memory waiting 0.00%, io waiting 0.18%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
=== RUN   TestBrowserRailFollowsWork
time=2026-11-29T00:38:06.171Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T00:38:06.171Z level=INFO msg="startup phase done" phase=state_lock took=67µs
time=2026-11-29T00:38:06.171Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T00:38:06.172Z level=INFO msg="startup phase done" phase=claim_roots took=89µs
time=2026-11-29T00:38:06.172Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T00:38:06.222Z level=INFO msg="startup phase done" phase=sweep took=50.025ms
time=2026-11-29T00:38:06.222Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T00:38:06.222Z level=INFO msg="startup phase done" phase=credentials took=250µs
time=2026-11-29T00:38:06.222Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T00:38:06.270Z level=INFO msg="startup phase done" phase=open_state took=47.975ms
time=2026-11-29T00:38:06.271Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T00:38:06.272Z level=INFO msg=connecting host=127.0.0.1:33751 protocol=36
time=2026-11-29T00:38:06.274Z level=INFO msg=connected host=127.0.0.1:33751 took=1.934ms
time=2026-11-29T00:38:06.274Z level=INFO msg="capabilities gathering"
time=2026-11-29T00:38:06.274Z level=INFO msg="capabilities gathered" took=450µs tags=linux,claude,go
time=2026-11-29T00:38:06.275Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T00:38:06.280Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T00:38:07.383Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-29T00:38:15.895Z level=INFO msg="kept sessions" kept=1 bytes=2885 expired=0
time=2026-11-29T00:38:21.192Z level=INFO msg="kept sessions" kept=2 bytes=5037 expired=0
time=2026-11-29T00:38:22.300Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T00:38:22.300Z level=INFO msg="startup phase done" phase=state_lock took=204µs
time=2026-11-29T00:38:22.300Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T00:38:22.300Z level=INFO msg="startup phase done" phase=claim_roots took=96µs
time=2026-11-29T00:38:22.300Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T00:38:22.356Z level=INFO msg="startup phase done" phase=sweep took=56.23ms
time=2026-11-29T00:38:22.356Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T00:38:22.356Z level=INFO msg="startup phase done" phase=credentials took=101µs
time=2026-11-29T00:38:22.356Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T00:38:22.417Z level=INFO msg="startup phase done" phase=open_state took=60.912ms
time=2026-11-29T00:38:22.419Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T00:38:22.422Z level=INFO msg=connecting host=127.0.0.1:42435 protocol=36
time=2026-11-29T00:38:22.423Z level=INFO msg=connected host=127.0.0.1:42435 took=1.129ms
time=2026-11-29T00:38:22.423Z level=INFO msg="capabilities gathering"
time=2026-11-29T00:38:22.425Z level=INFO msg="capabilities gathered" took=1.557ms tags=linux,claude,go
time=2026-11-29T00:38:22.434Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T00:38:22.502Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T00:38:24.683Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_review_test.go:57: waiting for document.querySelector('#rail [data-specialist="engineering"]')?.dataset.state==='working' && document.querySelector('#rail [data-specialist="engineering"]').querySelector('[equipo-nav-task]')?.textContent==='Slow sidebar change' && document.querySelector('#nav-tasks [data-count]')?.textContent==='1': context deadline exceeded (last evaluation: context deadline exceeded)
time=2026-11-29T00:38:29.357Z level=WARN msg="step account" err=cancelled
--- FAIL: TestBrowserRailFollowsWork (23.85s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m40.463s
FAIL	amadan.net/oficina/equipo/internal/headless	100.692s


receipt: test step 1m42.743s 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 1m40.463s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.01s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 23.85s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 13.39s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 10.37s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' -v -run '^TestBrowserRailFollowsWork$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserRailFollowsWork browser-headless-work af97845bcebadb7d8a53d4af7d8ecc0e64685841 23.85s 75.82
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 57.62, cpu waiting 35.56%, memory waiting 0.00%, io waiting 0.15%
--- 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 2m3.105s 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 2m0.72s amadan.net/oficina/equipo/internal/headless
receipt: slow test 16.56s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 14.83s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.59s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.63s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.54s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 61.33, cpu waiting 36.66%, memory waiting 0.00%, io waiting 0.15%
--- 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

receipt: test step 1m50.307s 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.358s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.27s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 14.55s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 12.49s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.25s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.54s amadan.net/oficina/equipo/internal/headless TestBrowserCardAnswerSettlesAtBottom
machine: 32 CPUs, load 69.21, cpu waiting 43.93%, memory waiting 0.00%, io waiting 0.19%
--- 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 5.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 2.793s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 2.03s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 760ms 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 8.286s 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 6.487s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.49s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.817s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 13.706s 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 11.817s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.57s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.24s 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 5.263s 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.936s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.94s 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 3m53.869s 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 3m50.835s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 29.51s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 11.03s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 10.08s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.10, cpu waiting 3.45%, memory waiting 0.00%, io waiting 0.00%
--- 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   (58s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.03s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.31s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.22s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.39s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 29.11s
+ 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   (70s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 18.35s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 13.22s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 11.36s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 23.74s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (24s)
ok ./internal/headless TestMixedVersions 21.10s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (3s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.84s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (3s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.07s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 88.02, cpu waiting 47.59%, memory waiting 0.00%, io waiting 0.40%
--- 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 15.815s 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 8.226s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 243ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 95ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.91s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 450ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 240ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
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 4.659s 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.423s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 330ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 29.38, cpu waiting 14.01%, memory waiting 0.00%, io waiting 0.93%
--- 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 42.2%, load 40.14
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 3105 text files, 3332 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
internal/runner/provider: 5792 source lines, over the 5731 its exemption (line 29) allows
internal/thintest: 37005 test lines, over the 37004 its exemption (line 74) allows
internal/wire: 8488 source lines, over the 8481 its exemption (line 18) allows
rastrillo: budget size: 3 problem(s)
exit status 1
make[1]: *** [Makefile:75: budget] Error 1
machine: 32 CPUs, load 83.84, cpu waiting 51.06%, memory waiting 0.00%, io waiting 0.29%
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 42.9%, load 35.28
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
internal/runner/thin/render_page_test.go:210:48: error should be returned as the last argument (ST1008)
internal/wire/design_test.go:238:76: string literal contains the Unicode format character U+202E, consider using the '\u202e' escape sequence instead (ST1018)
exit status 1
make[1]: *** [Makefile:195: staticcheck] Error 1
machine: 32 CPUs, load 82.02, cpu waiting 45.95%, memory waiting 0.00%, io waiting 0.42%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 26 of 29 failed: exit status 2
--- 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 42.2%, load 40.14
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 73.13, cpu waiting 41.46%, memory waiting 0.00%, io waiting 0.49%
--- 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 42.9%, load 35.28
shard 28: make gitleaks
12:38AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
12:38AM INF 1294 commits scanned.
12:38AM INF scanned ~69883609 bytes (69.88 MB) in 31.2s
12:38AM INF no leaks found
machine: 32 CPUs, load 75.92, cpu waiting 42.65%, memory waiting 0.00%, io waiting 0.47%

amadan: job failed at step check shards 8, 16, 17, 25, 26 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index d1da8d62..08a92bec 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -38,7 +38,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full
perf GET /releases/* skip Verified runner release file downloads, not browser GET screens.
perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen.
time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s;
-size internal/runner/thin 31523 27456 Protocol 31 facts, 35 diffs, merge credential, publication guards, kept work, CI units, 34 places publish, GitHub token scans, waiting cards in the Assistant opening, the page renderer health, the paused work snapshot and render_page's step (sites, counts), 36 project proposals answered on older links and the Design step glue; measured 31523/27456.
+size internal/runner/thin 31591 27557 Protocol 31 facts, 35 diffs, merge credential, publication guards, kept work, CI units, 34 places publish, GitHub token scans, waiting cards in the Assistant opening, the page renderer health, the paused work snapshot and render_page's step (sites, counts), 36 project proposals answered on older links and the Design step glue and its re-authorized failover; measured 31591/27557.
time internal/thintest 240s Thin contract and page tests, the Assistant's and the models' included, share one harness. Measured 202s on a shared 16 CPU box (2026-11-13); CI runs two lanes.
time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing.
time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s).
diff --git a/internal/fakeclaude/fake.go b/internal/fakeclaude/fake.go
index 492651b3..e5acfc91 100644
--- a/internal/fakeclaude/fake.go
+++ b/internal/fakeclaude/fake.go
@@ -1144,7 +1144,7 @@ func (f *fake) serve(stdin io.Reader, stdout, stderr io.Writer) int {
reply += " (notebook in context)"
}
// limit:<email> refuses the turn on quota when this home's account
- // is that email (steplimit:<email> does so for an Engineering step):
+ // is that email (steplimit:<email> does so for an Engineering or Design step):
// a rejected rate_limit_event with its reset, then an error result,
// as the CLI reports a spent weekly limit.
refuse := func() {
@@ -1175,7 +1175,7 @@ func (f *fake) serve(stdin io.Reader, stdout, stderr io.Writer) int {
emit(map[string]any{"type": "result", "subtype": "success", "is_error": true, "result": "Invalid API key", "session_id": session, "num_turns": 1, "usage": map[string]int{"input_tokens": 0, "output_tokens": 0}, "terminal_reason": "completed", "result_index": turn - 1, "uuid": fmt.Sprintf("result-%d", turn)})
continue
}
- if m := stepLimitWord.FindStringSubmatch(prompt); m != nil && m[1] == accountEmail() && strings.HasPrefix(prompt, "[Equipo: engineering]") {
+ if stepLimited(prompt) {
refuse()
continue
}
@@ -1499,9 +1499,23 @@ var reviewLimitWord = regexp.MustCompile(`\breviewlimit:([^\s|]+@[^\s|]+[a-z])`)
// reviewAuthWord is reviewauth:<email>, for a Review step only.
var reviewAuthWord = regexp.MustCompile(`\breviewauth:([^\s|]+@[^\s|]+[a-z])`)
-// stepLimitWord is steplimit:<email>, for an Engineering step only.
+// stepLimitWord is steplimit:<email>, for an Engineering or Design step
+// only; any of them may name this account.
var stepLimitWord = regexp.MustCompile(`\bsteplimit:([^\s|]+@[^\s|]+[a-z])`)
+// stepLimited: the step's prompt refuses this account on quota.
+func stepLimited(prompt string) bool {
+ if !strings.HasPrefix(prompt, "[Equipo: engineering]") && !strings.HasPrefix(prompt, "[Equipo: design]") {
+ return false
+ }
+ for _, m := range stepLimitWord.FindAllStringSubmatch(prompt, -1) {
+ if m[1] == accountEmail() {
+ return true
+ }
+ }
+ return false
+}
+
const tokenEnv = "CLAUDE_CODE_OAUTH_TOKEN"
// CheckPrompt is the runner's token check, word for word (thin's
diff --git a/internal/runner/thin/design_step.go b/internal/runner/thin/design_step.go
index ab3de2e1..3312dcd5 100644
--- a/internal/runner/thin/design_step.go
+++ b/internal/runner/thin/design_step.go
@@ -71,6 +71,65 @@ const (
designNotClaude = "Design runs only on a Claude connection, and this step was given %s, so it was refused before anything ran."
)
+// specialistBound reports whether r carries any part of a specialist
+// binding (wire.ValidSpecialistBinding's).
+func specialistBound(r stepRow) bool {
+ return r.SpecialistID != "" || r.SpecialistRevision != 0 || r.SpecialistProject != "" || r.Profile != "" || len(r.Capabilities) > 0
+}
+
+// stepSyncPoll is how often reauthorize looks for the instance's ack.
+var stepSyncPoll = 200 * time.Millisecond
+
+// reauthorize is a specialist-bound attempt's start authorization after
+// a provider refusal moved the step on to it (advanceStep): once the
+// instance has acked every step report queued for the step, the advance
+// included, so it knows this attempt, the attempt is authorized as the
+// first was (e.lease), which checks its grant again. Without an
+// authorizer (no instance) there is nothing to ask.
+func (e *Engineer) reauthorize(ctx context.Context, r stepRow) error {
+ if e.Authorize == nil && e.AuthorizeStep == nil {
+ return nil
+ }
+ for {
+ synced, err := e.O.State.stepReportsAcked(ctx, r.StepID)
+ if err != nil {
+ return err
+ }
+ if synced {
+ return e.lease(ctx, r)
+ }
+ select {
+ case <-ctx.Done():
+ return ctx.Err()
+ case <-time.After(stepSyncPoll):
+ }
+ }
+}
+
+// stepReportsAcked reports whether the instance acked every step report
+// of step queued here.
+func (s *State) stepReportsAcked(ctx context.Context, step string) (bool, error) {
+ rows, err := s.db.QueryContext(ctx, "SELECT body FROM outbox WHERE acked=0 AND kind=?", wire.FrameStep)
+ if err != nil {
+ return false, err
+ }
+ defer rows.Close()
+ for rows.Next() {
+ var body string
+ if err := rows.Scan(&body); err != nil {
+ return false, err
+ }
+ var rep wire.StepReport
+ if err := json.Unmarshal([]byte(body), &rep); err != nil {
+ return false, err
+ }
+ if rep.StepID == step {
+ return false, nil
+ }
+ }
+ return true, rows.Err()
+}
+
// designConnection reports whether b may run a Design attempt.
func designConnection(b runner.AccountBinding) bool { return b.Provider == "claude" && !Metered(b) }
diff --git a/internal/runner/thin/design_step_test.go b/internal/runner/thin/design_step_test.go
index 3f3416f1..bf38d62a 100644
--- a/internal/runner/thin/design_step_test.go
+++ b/internal/runner/thin/design_step_test.go
@@ -3,6 +3,7 @@
package thin
import (
+ "amadan.net/oficina/equipo/internal/fakeclaude"
"context"
"crypto/sha256"
"encoding/base64"
@@ -11,6 +12,7 @@ import (
"errors"
"os"
"path/filepath"
+ "slices"
"strings"
"sync"
"testing"
@@ -474,3 +476,102 @@ func TestDesignPrompt(t *testing.T) {
t.Fatal("Engineering got the pack")
}
}
+
+// addClaude gives the rig's person a second Claude connection.
+func (r *designRig) addClaude(id, email string) {
+ r.t.Helper()
+ home := filepath.Join(r.root, "accounts", id)
+ os.MkdirAll(home, 0o700)
+ identity := map[string]string{"account_id": email, "home_id": "h-" + id, "provider_version": fakeclaude.Version}
+ raw, _ := json.Marshal(identity)
+ os.WriteFile(filepath.Join(home, provider.IdentityFile), raw, 0o600)
+ raw, _ = json.Marshal(map[string]any{"oauthAccount": map[string]string{"emailAddress": email}})
+ os.WriteFile(filepath.Join(home, ".claude.json"), raw, 0o600)
+ if err := fakeclaude.WriteCredentials(home, time.Now().Add(8*time.Hour)); err != nil {
+ r.t.Fatal(err)
+ }
+ var bs []map[string]any
+ raw, _ = os.ReadFile(r.e.O.Runner.AccountBindingsPath)
+ json.Unmarshal(raw, &bs)
+ bs = append(bs, map[string]any{"id": id, "local_id": id, "label": id, "person_id": connPerson, "provider": "claude", "family": "claude", "model": "claude-opus-5-5", "account_id": email, "provider_home": home, "kind": "subscription", "expected_identity": identity})
+ raw, _ = json.Marshal(bs)
+ os.WriteFile(r.e.O.Runner.AccountBindingsPath, raw, 0o600)
+ if got, err := runner.LoadBindings(r.e.O.Runner.AccountBindingsPath); err != nil || len(got) != len(bs) {
+ r.t.Fatalf("bindings %v %v", got, err)
+ }
+ r.conns.Validated(id)
+}
+
+// ackSteps acks the step reports the rig queues, as the instance
+// does, until the test ends.
+func (r *designRig) ackSteps() {
+ ctx, cancel := context.WithCancel(r.ctx)
+ r.t.Cleanup(cancel)
+ go func() {
+ for ctx.Err() == nil {
+ frames, _, _ := r.e.O.State.Unacked(ctx, 0)
+ for _, f := range frames {
+ if f.Type == wire.FrameStep {
+ r.e.O.State.Acked(ctx, f.ID)
+ }
+ }
+ time.Sleep(50 * time.Millisecond)
+ }
+ }()
+}
+
+// TestBoundFailoverIsAuthorizedAgain (task 16 review, round 1): when
+// the provider refuses a specialist-bound attempt and the step moves to
+// a new attempt on another connection, that attempt is authorized again
+// once the instance has acked the advance, before anything launches; a
+// grant that no longer holds cancels it and its process never starts.
+// An Engineering step without a binding fails over as before.
+func TestBoundFailoverIsAuthorizedAgain(t *testing.T) {
+ r := newDesignRig(t)
+ r.addClaude("claude-b", "b@example.com")
+ r.ackSteps()
+ var asked []string
+ r.e.AuthorizeStep = func(ctx context.Context, step string, attempt int64) error {
+ // The instance knows the attempt only once it acked the advance.
+ for _, rep := range outbox(t, r.e.O.State) {
+ if rep.StepID == step {
+ t.Errorf("%s/%d asked before the instance acked %+v", step, attempt, rep)
+ }
+ }
+ asked = append(asked, step+"/"+itoa(attempt))
+ if attempt > 1 {
+ // The approver was demoted between the attempts.
+ return ErrWithdrawn
+ }
+ return nil
+ }
+ r.e.Note = " steplimit:" + connPerson + " steplimit:b@example.com create:mockups/tk1/index.html|<h1>After</h1>;\n"
+ row := stepRow{DispatchCommand: designDispatch("ds7", 1)}
+ rep := r.exec(row)
+ if rep.State != wire.StepCancelled || rep.Reason != "withdrawn" || rep.Attempt != 2 || !rep.Termination {
+ t.Fatalf("report %+v", rep)
+ }
+ if strings.Join(asked, " ") != "ds7/1 ds7/2" {
+ t.Fatalf("asked %v", asked)
+ }
+ var attempt int64
+ var ns string
+ if err := r.e.O.State.db.QueryRow("SELECT attempt, ns_id FROM steps WHERE step_id=?", "ds7").Scan(&attempt, &ns); err != nil || attempt != 2 || ns != "" {
+ t.Fatalf("the second attempt launched: attempt %d namespace %q %v", attempt, ns, err)
+ }
+ // Engineering without a binding: the next attempt launches as today,
+ // without another authorization.
+ asked = nil
+ for _, id := range []string{"claude-a", "claude-b"} {
+ r.conns.Validated(id)
+ }
+ plain := stepRow{DispatchCommand: wire.DispatchCommand{Person: connPerson, TaskID: "tk2", StepID: "en7", Attempt: 1, Specialist: wire.SpecialistEngineering, Repo: "amadan.net/oficina/sample", Branch: "equipo/tk2-x", Title: "x", Findings: []wire.Finding{}}}
+ r.e.Note = " steplimit:" + connPerson + " steplimit:b@example.com\n"
+ r.exec(plain)
+ if len(asked) == 0 || asked[0] != "en7/1" || slices.Contains(asked, "en7/2") {
+ t.Fatalf("Engineering asked %v", asked)
+ }
+ if err := r.e.O.State.db.QueryRow("SELECT attempt FROM steps WHERE step_id=?", "en7").Scan(&attempt); err != nil || attempt != 2 {
+ t.Fatalf("Engineering did not fail over: attempt %d %v", attempt, err)
+ }
+}
diff --git a/internal/runner/thin/engineer.go b/internal/runner/thin/engineer.go
index 24236ea8..7b09ee51 100644
--- a/internal/runner/thin/engineer.go
+++ b/internal/runner/thin/engineer.go
@@ -386,6 +386,15 @@ func (e *Engineer) Exec(ctx context.Context, r stepRow, progress func(wire.StepR
if !e.refused(ctx, &r, &rep, b, res) {
return fail("provider_failed", true)
}
+ if specialistBound(r) {
+ // Its grant may have changed since the first attempt was
+ // authorized: the new attempt is authorized again before it
+ // launches, as the first was.
+ if err := e.reauthorize(ctx, r); err != nil {
+ rep.State, rep.Reason, rep.Termination = wire.StepCancelled, leaseReason(err), true
+ return rep
+ }
+ }
avoid = append(avoid, b.ID)
if prompt, reason = prepare(); reason != "" {
return fail(reason, true)