oficina / equipo Public

Merge review round 2: hub outage is not denial; reconcile first

Astra round 2 on d7db326e: two Important findings from the fail-closed
write check.

1 A failed hub list (no answer, 5xx, unreadable) was refused like a
  confirmed denial: the merge ended policy_rejected at once and a push
  asked for a git password. workspace.ErrHubUnavailable now marks write
  access unconfirmed: writable returns (listed, confirmed); unconfirmed
  merges are NotSent(ErrHubUnavailable), pushes return it instead of
  ErrGitPassword, and PushBranch treats it as retryable, not refused
  (the engineer's push loop tries again). The merge step retries it in
  place, then defers (the queue moves on) for up to mergeHubWait (10
  min), then ends with the fixed reason amadan_unreachable (new wire
  reason; copy work.reason.amadan_unreachable pending review), log tail
  naming the repository. A 401/403 list is the hub refusing the
  credential: an empty, confirmed list, so a denial (policy_rejected).
2 The write-scope preflight ran before Inspect, so after a lost answer a
  revoked grant or failing list blocked reconciliation. For a requested
  record MergeBranch now reads the default branch first (landed settles
  as merged) and runs the write check only before sending another
  request (failure stays uncertain). Records with no prior request keep
  the preflight before Inspect (merge_credential, round 1).

TestMergeFallbackNeedsCurrentWriteScope/list_fails now expects
ErrHubUnavailable for a 500 and the policy refusal for a 401. Budgets:
equipo 22566, wire 6965, thin 28672/23155.

Fail first (stubs: workspace.ErrHubUnavailable, mergeHubWait,
wire.ReasonAmadanUnreachable; go test -run on the new tests):
  forge TestMergeBranchReconcilesBeforeTheWriteCheck FAIL: "merge outcome
    unknown: merge refused by validation", 1 preflight, not settled
  forge TestPushRemoteUnavailableIsNotRefused FAIL: "push refused by
    validation: resolving the remote"
  thin TestWriteScopeUnavailableRecovers FAIL: merge "not a repository
    this runner's agent may write now" while the list failed
  thin TestMergeStepHubUnavailable FAIL: merge_failed, no recovery

Mutation checks (python script: one edit, go test -run, restore):
R1 write check before reconciling an unresolved request ->
   TestMergeBranchReconcilesBeforeTheWriteCheck FAIL
R2 no write check before re-sending after an unresolved request ->
   TestMergeBranchLocalRefusalAfterAnUnresolvedRequest FAIL
R3 unconfirmed scope reported as denial -> TestWriteScopeUnavailableRecovers FAIL
R4 push says git password when the hub is unavailable ->
   TestWriteScopeUnavailableRecovers FAIL
R5 PushBranch refuses on an unavailable hub ->
   TestPushRemoteUnavailableIsNotRefused FAIL
R6 merge step does not retry an unavailable hub -> TestMergeStepHubUnavailable FAIL
R7 merge step fails at once instead of deferring -> TestMergeStepHubUnavailable
   FAIL (first form did not build; redone as "if _ = since; false")
R8 a 401 list taken as unavailable ->
   TestMergeFallbackNeedsCurrentWriteScope/list_fails FAIL

Local: go test ./internal/runner/forge ./internal/runner/workspace
./internal/wire (ok); ./internal/runner/thin -run 'Merge|Forge|Access|
Remote|Push|CIHosted|CIStatus|Create|Adopt|Clone|Catalog|Index|Reach|
Credential|WriteScope|Engineer|Publish' (ok); ./internal/thintest -run
'Merge|Review|Create|Push' (ok); ./internal/equipo -run 'StepReasons|Copy'
(ok); gofmt, vet, make staticcheck, make budget, TestBudgetRecordsAreShort
clean. TestOpenCodeStartupCancellable flakes under load (load avg 56):
alternating runs, previous head ok/ok, this head ok/FAIL (start not begun
by the 500 ms cancel); it touches no forge code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev ed4480cc3dabf76793ed179da1c33475eff401b8 parent d7db326
11 files changed, +214 −23
  • .rastrillo/budgets.txt +3 −3
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +1 −0
  • internal/equipo/copy.go +1 −0
  • internal/runner/forge/branch.go +4 −0
  • internal/runner/forge/merge.go +15 −5
  • internal/runner/forge/merge_notsent_test.go +50 −0
  • internal/runner/thin/forge.go +22 −7
  • internal/runner/thin/merge_credential_test.go +85 −4
  • internal/runner/thin/mergestep.go +19 −4
  • internal/runner/workspace/workspace.go +5 −0
  • internal/wire/tasks.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/merge-credential-fallback: 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 2.4s
ci-box: codex: fetched and verified in 3.7s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
ci-box: pi: installed and verified in 7.5s
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 8.8s
ci-box: clone deepened in 4.5s
ci-box: file times set from content: 2989 files, 193 directories
ci-box: ready in 18.4s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.146s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.3s
+ go list -export -test -tags testbuild -f  ./...
  4.8s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-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 1m18.2s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.21s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.21s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 61.75, cpu waiting 40.76%, memory waiting 0.00%, io waiting 0.47%
--- 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 1m18.83s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.562s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.56s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 61.75, cpu waiting 40.76%, memory waiting 0.00%, io waiting 0.47%
--- 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 1m18.513s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.126s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m6.41s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.18s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.54s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 61.75, cpu waiting 40.76%, memory waiting 0.00%, io waiting 0.47%
--- 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 1m15.771s 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.947s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.63s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.41s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.87s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 61.75, cpu waiting 40.71%, memory waiting 0.00%, io waiting 0.48%
--- 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 1m33.995s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m31.865s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m2.84s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.12s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.21s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.01s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.69s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 56.92, cpu waiting 39.96%, memory waiting 0.00%, io waiting 0.36%
--- 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 2m44.894s 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 2m42.744s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m37.19s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.68s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.6s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.48s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 22.62, cpu waiting 13.49%, memory waiting 0.00%, io waiting 0.10%
--- 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 2m9.514s 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 2m7.684s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.34s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.72s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.48s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 36.55, cpu waiting 23.62%, memory waiting 0.00%, io waiting 0.19%
--- 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 1m31.455s 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.591s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.06s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.49s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.41s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 56.92, cpu waiting 40.10%, memory waiting 0.00%, io waiting 0.37%
--- 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 4m49.636s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m55.304s 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 4m49.636s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.04s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.94s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.83s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7.02s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.55, cpu waiting 1.49%, memory waiting 0.00%, io waiting 0.00%
--- 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 52.126s 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 50.876s amadan.net/oficina/equipo/internal/runner
receipt: slow test 30.84s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 47.54, cpu waiting 34.72%, memory waiting 0.00%, io waiting 0.73%
--- 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 1m1.944s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m0.635s amadan.net/oficina/equipo/internal/runner
receipt: slow test 50.43s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 46.11s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 55.19, cpu waiting 39.29%, memory waiting 0.00%, io waiting 0.61%
--- 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 36.301s 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 35.318s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.43s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.77s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 33.70, cpu waiting 22.27%, memory waiting 0.00%, io waiting 0.95%
--- 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 40.4%, load 24.97
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 1m9.583s 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.531s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.44s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.41s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.17s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.41s amadan.net/oficina/equipo/internal/equipotest TestAuthorityRejectsMismatchedTarget
receipt: slow test 23.36s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 54.48, cpu waiting 37.77%, memory waiting 0.00%, io waiting 0.32%
--- 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 40.4%, load 24.97
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 1m18.836s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.007s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.77s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 20.75s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.69s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.65s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 20.61s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
machine: 32 CPUs, load 51.56, cpu waiting 33.58%, memory waiting 0.00%, io waiting 0.28%
--- 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 40.4%, load 24.97
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

receipt: test step 1m15.411s 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.141s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.65s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.55s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 7.38s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 51.56, cpu waiting 34.68%, memory waiting 0.00%, io waiting 0.29%
--- 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 40.4%, load 24.97
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 1m9.062s 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.141s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.29s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.29s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.13s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.31s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 23.17s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 55.57, cpu waiting 38.54%, memory waiting 0.00%, io waiting 0.33%
--- 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 40.4%, load 24.97
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.32s)

--- 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 work.reason.merge_credential
--- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)

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


receipt: test step 54.831s 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.832s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.73s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.57s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.7s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
rastrillo: budget test: go test failed
receipt: slow test 1.29s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorDefinitiveRefusalReleasesQueue
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 work.reason.merge_credential
--- FAIL: TestPlan3ReleaseBoundaries (0.02s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)
FAIL
rastrillo-budget/v1 ran 16ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.213s
FAIL
machine: 32 CPUs, load 58.74, cpu waiting 39.65%, memory waiting 0.00%, io waiting 0.41%
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 40.4%, load 24.97
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/chatmarkdown: its inputs changed
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/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:312 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.64s)

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

budget note: internal/equipo took 56.469s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 20.723s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 11.919s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m52.677s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 37.921s, 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 47.694s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 20.677s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 13.795s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 14.464s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m16.26s against a 60s target (the gate's other steps are not in this figure)
receipt: 25 packages ran, 40 cached, 17 without tests, 1 failed
receipt: slow package 1m52.677s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m8.009s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 58.272s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 56.81s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 56.469s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 54.55s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.84s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 44.57s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 44.02s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 43.52s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest ed4480cc3dabf76793ed179da1c33475eff401b8 0.64s 22.62
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 22.62, cpu waiting 12.62%, 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 1m25.72s 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 1m24.148s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.17s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.87s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.17s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.65s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 58.74, cpu waiting 39.86%, memory waiting 0.00%, io waiting 0.39%
--- 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 1m31.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 1m29.486s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.66s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.54s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.01s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.26s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 56.92, cpu waiting 40.10%, memory waiting 0.00%, io waiting 0.37%
--- 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 1m53.86s 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 1m52.107s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.26s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.32s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.66s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.35s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.32s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
machine: 32 CPUs, load 44.86, cpu waiting 30.52%, memory waiting 0.00%, io waiting 0.25%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m32.798s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m30.837s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.68s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.13s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 11.33s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.6s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.42s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 56.92, cpu waiting 39.96%, 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)$' ./internal/equipo

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

receipt: test step 11.976s 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 10.714s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.53s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.19s 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.638s 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.162s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.16s 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 3m39.72s 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 3m38.131s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.38s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.39s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.06s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.69s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 8.18, cpu waiting 3.93%, memory waiting 0.00%, io waiting 0.02%
--- 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   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.61s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.20s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.82s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.87s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.32s
+ 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   (62s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 22.48s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.46s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.30s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.11s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 19.10s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 55.19, cpu waiting 39.74%, memory waiting 0.00%, io waiting 0.59%
--- 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.762s 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.997s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 204ms 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.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.79s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 340ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms 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.653s 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.228s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 230ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
machine: 32 CPUs, load 11.46, cpu waiting 11.30%, memory waiting 0.00%, io waiting 1.29%
--- 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 40.4%, load 24.97
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2702 text files, 3210 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.465s
machine: 32 CPUs, load 61.75, cpu waiting 40.37%, memory waiting 0.00%, io waiting 0.50%
--- 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 40.4%, load 24.97
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 47.54, cpu waiting 34.72%, memory waiting 0.00%, io waiting 0.73%
--- 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 40.4%, load 24.97
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 3
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 33.70, cpu waiting 23.97%, memory waiting 0.00%, io waiting 0.92%
--- 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 40.4%, load 24.97
shard 28: make gitleaks
9:20PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
9:21PM INF 1156 commits scanned.
9:21PM INF scanned ~65847682 bytes (65.85 MB) in 25.3s
9:21PM INF no leaks found
machine: 32 CPUs, load 52.94, cpu waiting 36.13%, memory waiting 0.00%, io waiting 0.70%

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 c649b7d9..e2381c9f 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
-size internal/equipo 22565 - Paused work and Run now (2026-11-24), work.reason.merge_credential (2026-11-25); measured 22565 source lines.
-size internal/wire 6956 - Paused work and protocol 29 (2026-11-24), ReasonMergeCredential (2026-11-25); measured 6956 source lines.
+size internal/equipo 22566 - Paused work and Run now (2026-11-24), merge_credential and amadan_unreachable copy (2026-11-25); measured 22566 source lines.
+size internal/wire 6965 - Paused work and protocol 29 (2026-11-24), merge_credential and amadan_unreachable (2026-11-25); measured 6965 source lines.
size internal/equipotest - 12017 Task 21 repairs historical migration and conversation fixtures after Plan 3, and the Rastrillo upgrade contract comparing served assets with what Assets serves; measured 0/12017 source/test lines.
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).
@@ -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 28642 23074 Forge fixes and protocol 29 (2026-11-24), merge credential fallback and write scope (2026-11-25); measured 28642/23074.
+size internal/runner/thin 28672 23155 Forge fixes and protocol 29 (2026-11-24), merge credential fallback and write scope (2026-11-25); measured 28672/23155.
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/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 7157310e..5745a160 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6905,6 +6905,7 @@ records remain unchanged.
| `api.offer_changed` | The option to run this work has changed. Check the current option, then try again. | A Run now tap whose offer changed since the page was drawn (paused work re-review R1) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
| `work.pause.run_now_may_bill` | This may use a plan that bills per use. | Under plain Run it now anyway, for an older runner, when a pay-per-use connection could take it (re-review R1) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
| `work.reason.merge_credential` | the runner has no Amadan credential for this repository | Copy specialist | COPY REVIEW PENDING |
+| `work.reason.amadan_unreachable` | Amadan could not be reached to confirm Equipo may merge here | Copy specialist | COPY REVIEW PENDING |
## Task 21
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index f87a4799..3fe44241 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -1058,6 +1058,7 @@ var pageCopy = map[string]string{
"work.reason.merge_failed": "Amadan did not merge it", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"work.reason.merge_unborn_default": "the first merge into this empty repository needs an Amadan update", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
"work.reason.merge_credential": "the runner has no Amadan credential for this repository", // COPY REVIEW PENDING
+ "work.reason.amadan_unreachable": "Amadan could not be reached to confirm Equipo may merge here", // COPY REVIEW PENDING
"chat.card.merge_question": "Merge %s without checks?", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.card.merge": "Merge", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.card.wait": "Wait for checks", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
diff --git a/internal/runner/forge/branch.go b/internal/runner/forge/branch.go
index c6f46358..0314b22a 100644
--- a/internal/runner/forge/branch.go
+++ b/internal/runner/forge/branch.go
@@ -200,6 +200,10 @@ func (b BranchPush) head(ctx context.Context, remote workspace.Remote) (string,
// remote resolves the repository's remote and checks it is that one.
func (b BranchPush) remote(ctx context.Context) (workspace.Remote, error) {
remote, err := b.Remote(ctx)
+ if errors.Is(err, workspace.ErrHubUnavailable) {
+ // Write access could not be confirmed: worth trying again.
+ return workspace.Remote{}, fmt.Errorf("resolving the remote: %w", err)
+ }
if err != nil {
return workspace.Remote{}, fmt.Errorf("%w: resolving the remote: %v", ErrPushRefused, err)
}
diff --git a/internal/runner/forge/merge.go b/internal/runner/forge/merge.go
index 239ca94a..46941bf2 100644
--- a/internal/runner/forge/merge.go
+++ b/internal/runner/forge/merge.go
@@ -417,14 +417,17 @@ func MergeBranch(ctx context.Context, m BranchMerge) (MergeOutcome, error) {
if found && rec.Phase == mergeMerged {
return MergeOutcome{SHA: rec.SHA, Into: rec.Into, Strategy: rec.Strategy, Source: SourceCached}, nil
}
- if m.Preflight != nil {
+ // An earlier request may still land: reconcile from the default branch
+ // (a read) before the runner's write check, which then gates only a
+ // new request.
+ unresolved := found && rec.Phase == mergeRequested
+ if m.Preflight != nil && !unresolved {
// The runner's own refusals come before the remote is read (that
- // read needs the same credential). Definite only when no request
- // was ever sent: an earlier one may still land, and only the
- // default branch, unreadable now, can settle it.
+ // read needs the same credential): definite, as no request was
+ // ever sent.
if err := m.Preflight(ctx); err != nil {
var ns *NotSentError
- if found && rec.Phase == mergeRequested || !errors.As(err, &ns) {
+ if !errors.As(err, &ns) {
return MergeOutcome{}, uncertain(MergeResult{}, err)
}
return MergeOutcome{}, err
@@ -457,6 +460,13 @@ func MergeBranch(ctx context.Context, m BranchMerge) (MergeOutcome, error) {
}
}
before := rec.Phase
+ if m.Preflight != nil && unresolved {
+ // Not landed, and the earlier request is unresolved: a new one only
+ // with write access confirmed; without it, still unknown.
+ if err := m.Preflight(ctx); err != nil {
+ return MergeOutcome{}, uncertain(MergeResult{}, err)
+ }
+ }
if err := m.Confirm(ctx); err != nil {
return MergeOutcome{}, fmt.Errorf("%w: confirming the lease: %v", ErrMergeUncertain, err)
}
diff --git a/internal/runner/forge/merge_notsent_test.go b/internal/runner/forge/merge_notsent_test.go
index b82df158..3dc31c3d 100644
--- a/internal/runner/forge/merge_notsent_test.go
+++ b/internal/runner/forge/merge_notsent_test.go
@@ -8,6 +8,8 @@ import (
"strings"
"sync/atomic"
"testing"
+
+ "amadan.net/oficina/equipo/internal/runner/workspace"
)
// TestMergeBranchLocalRefusalIsDefinite: a merge Equipo refuses itself
@@ -156,3 +158,51 @@ func TestMergeBranchPreflight(t *testing.T) {
t.Fatalf("after %+v %v", out, err)
}
}
+
+// TestMergeBranchReconcilesBeforeTheWriteCheck: an earlier request whose
+// answer was lost landed meanwhile. The write check fails now (a revoked
+// grant, a hub list that cannot be fetched), yet the default branch reads
+// fine: the merge settles from it, and the write check is never asked.
+func TestMergeBranchReconcilesBeforeTheWriteCheck(t *testing.T) {
+ for _, refusal := range []error{ErrMergeRefused, workspace.ErrHubUnavailable} {
+ h := &fakeHub{head: strings.Repeat("a", 40), answer: mergeNow}
+ m := newMerge(t, h)
+ lost := m
+ lost.Request = func(_ context.Context, req MergeRequest) (MergeResult, error) {
+ mergeNow(h, req) // landed; the answer is lost
+ return MergeResult{}, errors.New("answer lost")
+ }
+ lost.Inspect = func(context.Context) (RemoteState, error) {
+ if rec, ok, _ := m.load(); ok && rec.Phase == mergeRequested {
+ return RemoteState{}, errors.New("process killed")
+ }
+ return h.inspect(context.Background())
+ }
+ if _, err := MergeBranch(context.Background(), lost); !errors.Is(err, ErrMergeUncertain) {
+ t.Fatalf("lost: %v", err)
+ }
+ var preflights atomic.Int32
+ m.Preflight = func(context.Context) error { preflights.Add(1); return NotSent(m.Repo, refusal) }
+ out, err := MergeBranch(context.Background(), m)
+ if err != nil || !out.Reconciled || out.SHA != strings.Repeat("8", 40) || preflights.Load() != 0 || len(h.requests) != 0 {
+ t.Fatalf("%v: settled %+v %v (%d preflights, %d requests)", refusal, out, err, preflights.Load(), len(h.requests))
+ }
+ }
+}
+
+// TestPushRemoteUnavailableIsNotRefused: a remote the hub could not be
+// asked about (write access unconfirmed) is a failure to try again, never
+// the definite refusal a missing credential is.
+func TestPushRemoteUnavailableIsNotRefused(t *testing.T) {
+ b := BranchPush{Repo: "amadan.net/oficina/sample", Remote: func(context.Context) (workspace.Remote, error) {
+ return workspace.Remote{}, workspace.ErrHubUnavailable
+ }}
+ _, err := b.remote(context.Background())
+ if !errors.Is(err, workspace.ErrHubUnavailable) || errors.Is(err, ErrPushRefused) {
+ t.Fatalf("unavailable: %v", err)
+ }
+ b.Remote = func(context.Context) (workspace.Remote, error) { return workspace.Remote{}, workspace.ErrGitPassword }
+ if _, err := b.remote(context.Background()); !errors.Is(err, ErrPushRefused) {
+ t.Fatalf("no credential: %v", err)
+ }
+}
diff --git a/internal/runner/thin/forge.go b/internal/runner/thin/forge.go
index bf9b4ff2..f917ecee 100644
--- a/internal/runner/thin/forge.go
+++ b/internal/runner/thin/forge.go
@@ -169,6 +169,9 @@ func (f *fileForge) Remote(ctx context.Context, repo string, use Use) (workspace
return f.creds.Resolve(ctx, repo)
}
c, err := f.writeCredential(ctx, repo)
+ if errors.Is(err, workspace.ErrHubUnavailable) {
+ return workspace.Remote{}, workspace.ErrHubUnavailable
+ }
if err != nil || c.GitPassword == "" {
return workspace.Remote{}, workspace.ErrGitPassword
}
@@ -239,7 +242,11 @@ func (f *fileForge) writeCredential(ctx context.Context, repo string) (forge.Cre
if err != nil {
return forge.Credential{}, forge.NotSent(repo, forge.ErrMergeNoCredential)
}
- if !f.writable(ctx, repo, scopeKey(c)) {
+ listed, confirmed := f.writable(ctx, repo, scopeKey(c))
+ if !confirmed {
+ return forge.Credential{}, forge.NotSent(repo, workspace.ErrHubUnavailable)
+ }
+ if !listed {
return forge.Credential{}, forge.NotSent(repo, errOutOfScope)
}
c.Remote = "https://" + repo
@@ -253,18 +260,20 @@ func scopeKey(c forge.Credential) string {
return hex.EncodeToString(sum[:])
}
-// writable is whether the hub, asked now, lists repo as writable with the
-// credential key names. A write is rare, so it never trusts the cached
-// list: the request is conditional (a 304 when nothing changed), and a
-// failed one leaves the list unconfirmed, so it fails closed.
-func (f *fileForge) writable(ctx context.Context, repo, key string) bool {
+// writable asks the hub now whether it lists repo as writable with the
+// credential key names: confirmed is whether it answered (a list fetched
+// just now with that credential), listed whether the repository is in it.
+// A write is rare, so it never trusts the cached list; the request is
+// conditional (a 304 when nothing changed). Unconfirmed, the write waits.
+func (f *fileForge) writable(ctx context.Context, repo, key string) (listed, confirmed bool) {
f.mu.Lock()
f.nsAt = time.Time{}
f.mu.Unlock()
f.list(ctx)
f.mu.Lock()
defer f.mu.Unlock()
- return f.listKey == key && !f.nsAt.IsZero() && slices.Contains(f.listed, repo)
+ confirmed = f.listKey == key && !f.nsAt.IsZero()
+ return confirmed && slices.Contains(f.listed, repo), confirmed
}
// MergePreflight refuses, before anything is read or sent, a merge this
@@ -336,6 +345,12 @@ func (f *fileForge) list(ctx context.Context) ([]string, []string) {
f.nsAt = time.Now()
return slices.Clone(f.ns), slices.Clone(f.listed)
}
+ if res.StatusCode == http.StatusUnauthorized || res.StatusCode == http.StatusForbidden {
+ // The hub answered: this credential reaches nothing (revoked, or
+ // another's). A denial, not an outage.
+ f.ns, f.listed, f.nsAt, f.etag = []string{}, []string{}, time.Now(), ""
+ return []string{}, []string{}
+ }
var out struct {
Repos []struct {
NS string `json:"ns"`
diff --git a/internal/runner/thin/merge_credential_test.go b/internal/runner/thin/merge_credential_test.go
index 03111c3f..ad5c437c 100644
--- a/internal/runner/thin/merge_credential_test.go
+++ b/internal/runner/thin/merge_credential_test.go
@@ -16,6 +16,7 @@ import (
"time"
"amadan.net/oficina/equipo/internal/runner/forge"
+ "amadan.net/oficina/equipo/internal/runner/workspace"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -228,18 +229,22 @@ func TestCheckCreatedCredentials(t *testing.T) {
func TestMergeFallbackNeedsCurrentWriteScope(t *testing.T) {
ctx := context.Background()
repo := "amadan.net/paulca/nearys"
- refused := func(t *testing.T, rig *mergeCredRig, what string) {
+ blocked := func(t *testing.T, rig *mergeCredRig, what string, want error) {
t.Helper()
before := len(rig.requests())
_, err := rig.f.Merge(ctx, repo, "equipo/tk1-x", mergeReq)
var ns *forge.NotSentError
- if !errors.Is(err, forge.ErrMergeRefused) || !errors.As(err, &ns) || len(rig.requests()) != before {
+ if !errors.Is(err, want) || !errors.As(err, &ns) || len(rig.requests()) != before {
t.Fatalf("%s: merge %v (%d requests)", what, err, len(rig.requests())-before)
}
if _, err := rig.f.Remote(ctx, repo, Push); err == nil {
t.Fatalf("%s: push credential", what)
}
}
+ refused := func(t *testing.T, rig *mergeCredRig, what string) {
+ t.Helper()
+ blocked(t, rig, what, forge.ErrMergeRefused)
+ }
t.Run("revoked", func(t *testing.T) {
rig := newMergeCredRig(t, perRepoOnly, []string{repo}, []string{repo})
if _, err := rig.f.Merge(ctx, repo, "equipo/tk1-x", mergeReq); err != nil {
@@ -258,9 +263,12 @@ func TestMergeFallbackNeedsCurrentWriteScope(t *testing.T) {
rig.f.mu.Lock()
rig.f.nsAt = time.Now().Add(-2 * reachEvery)
rig.f.mu.Unlock()
- for _, status := range []int{http.StatusInternalServerError, http.StatusUnauthorized} {
+ // A 500 is not a denial: write access is unconfirmed (it recovers,
+ // see TestWriteScopeUnavailableRecovers), and nothing is sent. A 401
+ // is the hub refusing the credential: a denial.
+ for status, want := range map[int]error{http.StatusInternalServerError: workspace.ErrHubUnavailable, http.StatusUnauthorized: forge.ErrMergeRefused} {
rig.set(func() { rig.listStatus = status })
- refused(t, rig, fmt.Sprint("list ", status))
+ blocked(t, rig, fmt.Sprint("list ", status), want)
}
})
t.Run("credential replaced", func(t *testing.T) {
@@ -357,3 +365,76 @@ func TestCheckCredentialsWarnsOnLegacyFiles(t *testing.T) {
t.Fatalf("warned with an agent-wide entry: %s", buf.String())
}
}
+
+// TestWriteScopeUnavailableRecovers: a hub list that fails (a 500, a 502)
+// is not a denial: the merge is refused as "hub
+// unavailable", the push says so rather than asking for a git password,
+// and both go through once the hub answers again. A list that answers
+// without the repository is the denial.
+func TestWriteScopeUnavailableRecovers(t *testing.T) {
+ ctx := context.Background()
+ repo := "amadan.net/paulca/nearys"
+ rig := newMergeCredRig(t, perRepoOnly, []string{repo}, []string{repo})
+ for _, fail := range []func(){
+ func() { rig.listStatus = http.StatusInternalServerError },
+ func() { rig.listStatus = http.StatusBadGateway },
+ } {
+ rig.set(fail)
+ _, err := rig.f.Merge(ctx, repo, "equipo/tk1-x", mergeReq)
+ var ns *forge.NotSentError
+ if !errors.Is(err, workspace.ErrHubUnavailable) || errors.Is(err, forge.ErrMergeRefused) || !errors.As(err, &ns) {
+ t.Fatalf("merge while the list fails: %v", err)
+ }
+ if _, err := rig.f.Remote(ctx, repo, Push); !errors.Is(err, workspace.ErrHubUnavailable) || errors.Is(err, workspace.ErrGitPassword) {
+ t.Fatalf("push while the list fails: %v", err)
+ }
+ }
+ rig.set(func() { rig.listStatus = 0 })
+ if _, err := rig.f.Merge(ctx, repo, "equipo/tk1-x", mergeReq); err != nil {
+ t.Fatalf("merge after recovery: %v", err)
+ }
+ if remote, err := rig.f.Remote(ctx, repo, Push); err != nil || remote.GitPassword != "git-first" {
+ t.Fatalf("push after recovery: %v", err)
+ }
+ // Answered, without the repository: a denial.
+ rig.set(func() { rig.lists["api-first"] = nil })
+ if _, err := rig.f.Merge(ctx, repo, "equipo/tk1-x", mergeReq); !errors.Is(err, forge.ErrMergeRefused) || errors.Is(err, workspace.ErrHubUnavailable) {
+ t.Fatalf("denied: %v", err)
+ }
+}
+
+// TestMergeStepHubUnavailable: the hub cannot confirm write access. The
+// step tries again in place, and goes through once the hub answers; still
+// unavailable, it is deferred (the queue moves on), and past the wait it
+// ends amadan_unreachable, naming the repository.
+func TestMergeStepHubUnavailable(t *testing.T) {
+ old := []time.Duration{mergeBackoff, mergeHubWait}
+ mergeBackoff, mergeHubWait = time.Millisecond, 50*time.Millisecond
+ t.Cleanup(func() { mergeBackoff, mergeHubWait = old[0], old[1] })
+ e, f, r, _ := hubRig(t)
+ f.answer = func(n int, merge func() (forge.MergeResult, error)) (forge.MergeResult, error) {
+ if n == 1 {
+ return forge.MergeResult{}, forge.NotSent(r.Repo, workspace.ErrHubUnavailable)
+ }
+ return merge()
+ }
+ if rep := e.Exec(context.Background(), r, func(wire.StepReport) {}); rep.State != wire.StepDone || f.requests != 2 {
+ t.Fatalf("recovered %+v (%d requests)", rep, f.requests)
+ }
+ e, f, r, _ = hubRig(t)
+ f.answer = func(int, func() (forge.MergeResult, error)) (forge.MergeResult, error) {
+ return forge.MergeResult{}, forge.NotSent(r.Repo, workspace.ErrHubUnavailable)
+ }
+ if err := e.O.State.AcceptDispatch(context.Background(), "d1", r.DispatchCommand); err != nil {
+ t.Fatal(err)
+ }
+ if rep := e.Exec(context.Background(), r, func(wire.StepReport) {}); rep.State != stepDeferred || f.requests != mergeAttempts {
+ t.Fatalf("unavailable %+v (%d requests)", rep, f.requests)
+ }
+ e.O.State.deferStep(context.Background(), r, time.Millisecond)
+ e.O.State.db.Exec("UPDATE steps SET deferred_since=? WHERE step_id=?", stamp(time.Now().Add(-time.Hour)), r.StepID)
+ rep := e.Exec(context.Background(), r, func(wire.StepReport) {})
+ if rep.State != wire.StepFailed || rep.Reason != wire.ReasonAmadanUnreachable || !strings.Contains(rep.LogTail, r.Repo) {
+ t.Fatalf("after the wait %+v", rep)
+ }
+}
diff --git a/internal/runner/thin/mergestep.go b/internal/runner/thin/mergestep.go
index 98af62a0..7a2aabd8 100644
--- a/internal/runner/thin/mergestep.go
+++ b/internal/runner/thin/mergestep.go
@@ -35,6 +35,9 @@ var (
mergeBackoff = 3 * time.Second
mergeCIWait = 10 * time.Minute
mergeCIPoll = 15 * time.Second
+ // mergeHubWait: how long a merge waits, deferred, for the hub to
+ // confirm write access again (workspace.ErrHubUnavailable).
+ mergeHubWait = 10 * time.Minute
)
// MergeAgentHarness names the runner to the hub in the merge's agent block.
@@ -109,10 +112,11 @@ func (e *Engineer) mergeStep(ctx context.Context, r stepRow, progress func(wire.
cctx, cancel := context.WithTimeout(mctx, 3*time.Minute)
out, err = forge.MergeBranch(cctx, m)
cancel()
- // Only an outcome the hub may have acted on is tried again: a
- // refusal made here before contacting it (forge.NotSentError) is
- // not uncertain and ends the step.
- if maskDetail != "" || notAuthorized || !errors.Is(err, forge.ErrMergeUncertain) || uncertain+1 >= mergeAttempts {
+ // Tried again: an outcome the hub may have acted on, and a hub that
+ // could not confirm write access. Any other refusal made here
+ // before contacting it (forge.NotSentError) ends the step.
+ again := errors.Is(err, forge.ErrMergeUncertain) || errors.Is(err, workspace.ErrHubUnavailable)
+ if maskDetail != "" || notAuthorized || !again || uncertain+1 >= mergeAttempts {
break
}
time.Sleep(time.Duration(uncertain+1) * mergeBackoff)
@@ -136,6 +140,17 @@ func (e *Engineer) mergeStep(ctx context.Context, r stepRow, progress func(wire.
return rep
}
}
+ if errors.Is(err, workspace.ErrHubUnavailable) {
+ // Nothing was sent: held for later, releasing the queue, until the
+ // hub answers or the wait is over.
+ e.logDetail("merge", err)
+ since := e.O.State.deferredSince(mctx, r)
+ if since.IsZero() || time.Since(since) < mergeHubWait {
+ rep.State = stepDeferred
+ return rep
+ }
+ return fail(wire.ReasonAmadanUnreachable)
+ }
switch {
case err == nil:
// Done: the merge watch for this candidate ends here, so only this
diff --git a/internal/runner/workspace/workspace.go b/internal/runner/workspace/workspace.go
index 301f2628..f4823cfa 100644
--- a/internal/runner/workspace/workspace.go
+++ b/internal/runner/workspace/workspace.go
@@ -39,6 +39,11 @@ func (r Remote) Username() string {
var ErrGitPassword = errors.New("configure a repository git password (PAT) in EQUIPO_AMADAN_CREDENTIAL_PATH")
+// ErrHubUnavailable: the forge could not be asked whether the agent may
+// write to the repository now (no answer, an error status, an unreadable
+// list). Nothing was sent; unlike a denial, it is worth trying again.
+var ErrHubUnavailable = errors.New("the forge could not be reached to confirm write access; nothing was sent")
+
type ForgeRead interface {
Resolve(context.Context, string) (Remote, error)
}
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go
index a9b474df..1f554fa1 100644
--- a/internal/wire/tasks.go
+++ b/internal/wire/tasks.go
@@ -1050,6 +1050,9 @@ var StepReasons = map[string]bool{
// refused the merge itself; nothing was sent to the hub
// (ReasonMergeCredential).
ReasonMergeCredential: true,
+ // The hub could not confirm write access in time; nothing was sent
+ // (ReasonAmadanUnreachable).
+ ReasonAmadanUnreachable: true,
// Previews (protocol 9): the runner is too old (settled at its
// connection); the account's 20 temporary apps are taken; the task's
// preview expired and its name is still in the Trash; the config is
@@ -1136,3 +1139,9 @@ const ReasonMergeUnbornDefault = "merge_unborn_default"
// definite refusal: nothing was sent, and a later Merge may try again
// once the credential is there. An older instance records it as unknown.
const ReasonMergeCredential = "merge_credential"
+
+// ReasonAmadanUnreachable: the hub could not be asked whether the runner
+// may still write to the repository, for longer than the merge waits.
+// Nothing was sent; a later Merge may try again. An older instance records
+// it as unknown.
+const ReasonAmadanUnreachable = "amadan_unreachable"