oficina / equipo Public

places: Astra round 2 fixes (setup again, proof, lost keys, cancel)

1. After a mint finds no app (the attempt cleared), a setup may be asked
   again for the same merged commit; only a plain publish stays blocked
   by a done one.
2. The creation proof is written as soon as the setup's deploy
   succeeded, before the marker is polled; a restart whose own marker
   answers from the app's address restores a missing one.
3. Each mint's intent is kept by its key's name until a key of that name
   is held, so a lost credential is never hidden by a later one; places,
   site_status and the Places page name every lost key.
4. A cancelled site publish in a CARLOS-changing phase still reaches Exec
   to reconcile, after a restart too.

Mutation checks (CGO_ENABLED=0): setup barred after a done step KILLED
SetupAgainAfterMissing:455; proof only after the marker KILLED
CreationProofSurvives:935; reconcile restore off KILLED
CreationProofSurvives:943; one lost file per app KILLED MintLost:510;
cancelled site publish not reconciled KILLED
StepEngineReconcilesCancelledSitePublish.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 8fa19e4aeb152b502b0d1fab5e5478af2246c132 parent 6a71f09
9 files changed, +183 −42
  • .rastrillo/budgets.txt +4 −4
  • internal/equipo/chat/places_tools.go +21 −13
  • internal/equipo/chat/publish.go +6 −4
  • internal/equipo/settings_hub.go +10 −6
  • internal/equipo/templates/settings_hub.html +1 −1
  • internal/runner/thin/site.go +26 −9
  • internal/runner/thin/site_test.go +62 −4
  • internal/runner/thin/step.go +5 −1
  • internal/thintest/places_contract_test.go +48 −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/places-slice-1: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.8s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.2s
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.3s
ci-box: clone deepened in 4.3s
ci-box: file times set from content: 3084 files, 197 directories
ci-box: ready in 17.7s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.144s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.6s
+ go list -export -test -tags testbuild -f  ./...
  5.5s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

receipt: test step 1m18.287s 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.457s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.46s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 73.46, cpu waiting 44.63%, memory waiting 0.00%, io waiting 0.98%
--- 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.838s 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.595s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.59s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 73.46, cpu waiting 44.63%, memory waiting 0.00%, io waiting 0.98%
--- 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 1m19.826s 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.417s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.34s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.65s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.43s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 73.46, cpu waiting 44.63%, memory waiting 0.00%, io waiting 0.98%
--- 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 1m16.708s 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 1m14.736s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.91s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.78s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.26s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.79s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 73.46, cpu waiting 44.11%, memory waiting 0.00%, io waiting 1.02%
--- 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 1m35.331s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m33.224s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m3.9s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.23s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.44s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.65s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 63.80, cpu waiting 42.93%, memory waiting 0.00%, io waiting 0.75%
--- 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 2m48.489s 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 2m45.631s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m39.31s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.76s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.6s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.43s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 24.31, cpu waiting 13.89%, memory waiting 0.00%, io waiting 0.22%
--- 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 2m12.651s 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 2m10.837s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.74s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.92s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 40.95, cpu waiting 24.47%, memory waiting 0.00%, io waiting 0.39%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractRetryAccountActions
=== RUN   TestContractRetryAccountActions
    retry_contract_test.go:296: sign in again
--- FAIL: TestContractRetryAccountActions (0.20s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 1m37.621s
FAIL	amadan.net/oficina/equipo/internal/thintest	97.840s


receipt: test step 1m40.01s 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 1m37.621s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.18s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.07s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.56s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.97s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
receipt: slow test 2.45s amadan.net/oficina/equipo/internal/thintest TestContractPreview
exit status 1
+ go 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)' -v -run '^TestContractRetryAccountActions$' -count=1 ./internal/thintest   (retry, once)
##############################################################################
FLAKE ./internal/thintest:TestContractRetryAccountActions thintest-contract 8fa19e4aeb152b502b0d1fab5e5478af2246c132 0.20s 63.80
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 59.81, cpu waiting 40.53%, memory waiting 0.00%, io waiting 0.68%
--- 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 4m55.247s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m1.056s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 4m55.247s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.08s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 37.04s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.83s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.5s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7.09s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.22, cpu waiting 1.54%, memory waiting 0.00%, io waiting 0.01%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 52.255s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 51.112s amadan.net/oficina/equipo/internal/runner
receipt: slow test 31.08s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 59.94, cpu waiting 35.82%, memory waiting 0.00%, io waiting 1.57%
--- 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 1m3.903s 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 1m2.689s amadan.net/oficina/equipo/internal/runner
receipt: slow test 52.69s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 46.32s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.44s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.54s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 73.15, cpu waiting 42.49%, memory waiting 0.00%, io waiting 1.29%
--- 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.136s 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.291s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.75s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 44.45, cpu waiting 22.88%, memory waiting 0.00%, io waiting 2.06%
--- 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 41.5%, load 32.85
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.096s 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.241s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.46s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.34s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.08s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.24s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
receipt: slow test 23.14s amadan.net/oficina/equipo/internal/equipotest TestBudgetLoweringBelowUsage
machine: 32 CPUs, load 63.80, cpu waiting 41.70%, memory waiting 0.00%, io waiting 0.70%
--- 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 41.5%, load 32.85
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.782s 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.079s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.96s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 19.93s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 19.89s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.87s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 19.83s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
machine: 32 CPUs, load 57.90, cpu waiting 36.90%, memory waiting 0.00%, io waiting 0.61%
--- 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 41.5%, load 32.85
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 1m18.191s 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.957s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 18.13s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.46s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.4s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 10.37s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 7.32s amadan.net/oficina/equipo/internal/equipotest TestRosterAuditFailureRollsBack
machine: 32 CPUs, load 57.90, cpu waiting 36.90%, memory waiting 0.00%, io waiting 0.61%
--- 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 41.5%, load 32.85
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.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.719s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.16s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.45s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.41s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.39s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 23.25s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
machine: 32 CPUs, load 63.80, cpu waiting 41.70%, memory waiting 0.00%, io waiting 0.70%
--- 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 41.5%, load 32.85
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.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 chat.card.place_question
--- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)

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


receipt: test step 55.31s 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 53.588s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.85s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.56s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.34s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
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.card.place_question
--- FAIL: TestPlan3ReleaseBoundaries (0.03s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.03s)
FAIL
rastrillo-budget/v1 ran 30ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.229s
FAIL
machine: 32 CPUs, load 69.32, cpu waiting 43.29%, memory waiting 0.00%, io waiting 0.89%
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 41.5%, load 32.85
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/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
budget note: internal/equipo took 1m0.654s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 19.922s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 13.896s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m1.418s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 23.057s, 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 1m3.942s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 27.011s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 14.511s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m24.926s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 14.792s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m8.937s against a 60s target (the gate's other steps are not in this figure)
receipt: 37 packages ran, 29 cached, 17 without tests, 0 failed
receipt: slow package 2m1.418s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m24.926s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m13.154s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m3.942s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 1m0.654s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 54.03s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.74s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 46.17s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 46.12s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 46.08s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
machine: 32 CPUs, load 28.19, cpu waiting 15.87%, memory waiting 0.00%, io waiting 0.25%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m26.283s 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.442s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.93s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.94s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.59s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.15s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.75s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 69.32, cpu waiting 43.29%, memory waiting 0.00%, io waiting 0.89%
--- 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 1m33.422s 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.478s amadan.net/oficina/equipo/internal/headless
receipt: slow test 28.3s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.14s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.2s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.82s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 66.65, cpu waiting 43.20%, memory waiting 0.00%, io waiting 0.78%
--- 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 1m54.454s 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.271s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.49s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.28s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.6s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.62s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.3s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
machine: 32 CPUs, load 54.07, cpu waiting 33.53%, memory waiting 0.00%, io waiting 0.55%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-26T13:12:33.801Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T13:12:33.801Z level=INFO msg="startup phase done" phase=state_lock took=59µs
time=2026-11-26T13:12:33.801Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T13:12:33.801Z level=INFO msg="startup phase done" phase=claim_roots took=75µs
time=2026-11-26T13:12:33.801Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T13:12:33.841Z level=INFO msg="startup phase done" phase=sweep took=39.718ms
time=2026-11-26T13:12:33.841Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T13:12:33.841Z level=INFO msg="startup phase done" phase=credentials took=158µs
time=2026-11-26T13:12:33.841Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T13:12:33.888Z level=INFO msg="startup phase done" phase=open_state took=47.301ms
time=2026-11-26T13:12:33.889Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T13:12:33.890Z level=INFO msg=connecting host=127.0.0.1:43833 protocol=31
time=2026-11-26T13:12:33.892Z level=INFO msg=connected host=127.0.0.1:43833 took=2.241ms
time=2026-11-26T13:12:33.892Z level=INFO msg="capabilities gathering"
time=2026-11-26T13:12:33.893Z level=INFO msg="capabilities gathered" took=544µs tags=linux,claude,go
time=2026-11-26T13:12:33.897Z level=INFO msg="hello sent" protocol=31
time=2026-11-26T13:12:33.898Z level=INFO msg=welcome protocol=31 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.42s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m34.053s
FAIL	amadan.net/oficina/equipo/internal/headless	94.288s


receipt: test step 1m35.82s 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 1m34.053s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.04s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.62s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.66s amadan.net/oficina/equipo/internal/headless TestBrowserNotebookLook
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 8fa19e4aeb152b502b0d1fab5e5478af2246c132 6.42s 63.80
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 59.81, cpu waiting 41.70%, memory waiting 0.00%, io waiting 0.70%
--- 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.101s 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 526ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 530ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.28s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 12.743s 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.28s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.01s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.27s 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.676s 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.086s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.08s 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 3m41.239s 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 3m39.579s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.04s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.78s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 7.62, cpu waiting 4.05%, memory waiting 0.00%, io waiting 0.05%
--- 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   (54s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.75s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.12s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.91s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.76s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.77s
+ 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   (63s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 21.51s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.47s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.28s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 17.61s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.94s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.81s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 73.15, cpu waiting 42.49%, memory waiting 0.00%, io waiting 1.29%
--- 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 14.199s 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.14s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 169ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 70ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 6.01s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 370ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms 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.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 3.019s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms 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 TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 21.19, cpu waiting 13.10%, memory waiting 0.00%, io waiting 2.69%
--- 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 41.5%, load 38.30
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2796 text files, 3228 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.457s
machine: 32 CPUs, load 71.26, cpu waiting 44.38%, memory waiting 0.00%, io waiting 0.95%
--- 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 41.5%, load 38.30
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 67.15, cpu waiting 39.83%, memory waiting 0.00%, io waiting 1.42%
--- 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 41.5%, load 32.85
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 44.45, cpu waiting 24.59%, memory waiting 0.00%, io waiting 1.99%
--- 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 41.5%, load 32.85
shard 28: make gitleaks
1:12PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
1:12PM INF 1184 commits scanned.
1:12PM INF scanned ~66887484 bytes (66.89 MB) in 24.3s
1:12PM INF no leaks found
machine: 32 CPUs, load 59.94, cpu waiting 37.13%, memory waiting 0.00%, io waiting 1.52%

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 264e5529..db226b1e 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,7 +14,7 @@ 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 22722 - Places slice 1 (2026-11-26): the place card on the web, the read-only Places page and its drafted copy; measured 22722 source lines.
+size internal/equipo 22726 - Places slice 1 (2026-11-26): the place card on the web, the read-only Places page and its drafted copy; measured 22726 source lines.
size internal/wire 7460 - Protocol 31 places (2026-11-26): reach, carlos health, place-bound publish dispatch and checks, place tools and card; measured 7460 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);
@@ -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 29450 23768 Protocol 31 places (2026-11-26): carlos version guard, reach, place-bound setup, mint and key publish with their tests; measured 29450/23768.
+size internal/runner/thin 29471 23826 Protocol 31 places (2026-11-26): carlos version guard, reach, place-bound setup, mint and key publish with their tests; measured 29471/23826.
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).
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 36116 9769 Places slice 1 (2026-11-26): place records, cards, per-phase publish authority and the four place tools; measured 36116/9769.
+size internal/equipo/chat 36126 9769 Places slice 1 (2026-11-26): place records, cards, per-phase publish authority and the four place tools; measured 36126/9769.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
@@ -71,7 +71,7 @@ perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one im
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally).
size internal/headless - 11440 Grant scenarios for a named repository (hub #48); the sign-in's account email at 1280 and 390; the live site run waits for a confirmed place (2026-11-26); measured 11440 test lines.
-size internal/thintest - 35558 Places slice 1 contracts: finish line, mint recovery, refusals (2026-11-26); measured 35558 test lines.
+size internal/thintest - 35606 Places slice 1 contracts: finish line, mint recovery, refusals (2026-11-26); measured 35606 test lines.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
diff --git a/internal/equipo/chat/places_tools.go b/internal/equipo/chat/places_tools.go
index 6887dae7..84cef346 100644
--- a/internal/equipo/chat/places_tools.go
+++ b/internal/equipo/chat/places_tools.go
@@ -85,6 +85,7 @@ type siteLine struct {
Mode string `json:"can,omitempty"`
Missing string `json:"missing,omitempty"`
Deploy string `json:"deploy_key,omitempty"`
+ LostKeys []string `json:"lost_keys,omitempty"`
LastPublish *sitePublish `json:"last_publish,omitempty"`
Candidates []wire.PlaceCandidate `json:"candidates,omitempty"`
}
@@ -127,16 +128,19 @@ func (t *txn) siteLine(person string, pr projectRecord, candidates bool) (siteLi
return line, err
} else if r != nil {
for _, d := range r.Deploys {
- if d.Console == p.Console && d.Account == p.AccountSqid && d.App == b.App {
+ if d.Console != p.Console || d.Account != p.AccountSqid || d.App != b.App {
+ continue
+ }
+ switch {
+ case d.Lost:
+ line.LostKeys = append(line.LostKeys, d.Name)
+ default:
line.Deploy = "held"
- if d.Lost {
- line.Deploy = "lost"
- }
- if !d.Lost {
- break
- }
}
}
+ if line.Deploy == "none" && len(line.LostKeys) > 0 {
+ line.Deploy = "lost"
+ }
}
last, err := t.lastPublish(pr.ID)
line.LastPublish = last
@@ -300,9 +304,11 @@ type SitePlace struct {
Pending, Unplaced bool
State, URL string
At *time.Time
- // Deploy is the runner's key for it: held, lost or "" (none yet), by
- // DeployName.
+ // Deploy is the runner's key for it: held or "" (none yet), by
+ // DeployName; Lost names every key asked for and not held, each of
+ // which may be live on CARLOS.
Deploy, DeployName string
+ Lost []string
}
// Places is the Places page: every project with a site binding or an
@@ -359,11 +365,13 @@ func (s *Store) Places(ctx context.Context, person string) (out []SitePlace, err
return err
} else if r != nil {
for _, d := range r.Deploys {
- if d.Console == p.Console && d.Account == p.AccountSqid && d.App == b.App && (line.Deploy == "" || !d.Lost) {
+ if d.Console != p.Console || d.Account != p.AccountSqid || d.App != b.App {
+ continue
+ }
+ if d.Lost {
+ line.Lost = append(line.Lost, d.Name)
+ } else {
line.Deploy, line.DeployName = "held", d.Name
- if d.Lost {
- line.Deploy = "lost"
- }
}
}
}
diff --git a/internal/equipo/chat/publish.go b/internal/equipo/chat/publish.go
index 4499c660..1cb8be7e 100644
--- a/internal/equipo/chat/publish.go
+++ b/internal/equipo/chat/publish.go
@@ -400,9 +400,11 @@ func (t *txn) answerPublish(person string, c cardRecord, in wire.AnswerCard) (wi
}
// publishBlocked reports whether a publish of sha in mode may not be
-// asked for now: one is under way, or one ended with an outcome (one
-// that failed may be asked for again). A mint is the exception: it may
-// follow a done publish of the commit, which left no deploy key.
+// asked for now: one is under way, or, for a plain publish, one ended
+// with an outcome (one that failed may be asked for again). A mint may
+// follow a done publish of the commit that left no key, and a setup one
+// whose app a mint then found absent (setup is offered only while no
+// creation attempt stands).
func publishBlocked(steps []stepRecord, sha, mode string) bool {
for _, s := range steps {
if s.Specialist != wire.SpecialistPublish || s.CandidateSHA != sha {
@@ -411,7 +413,7 @@ func publishBlocked(steps []stepRecord, sha, mode string) bool {
if !wire.StepTerminal(s.State) {
return true
}
- if (s.State == wire.StepDone || s.Withdrawn) && mode != wire.SiteMint {
+ if (s.State == wire.StepDone || s.Withdrawn) && mode == wire.SitePublish {
return true
}
}
diff --git a/internal/equipo/settings_hub.go b/internal/equipo/settings_hub.go
index b1ef1c52..7096288a 100644
--- a/internal/equipo/settings_hub.go
+++ b/internal/equipo/settings_hub.go
@@ -187,7 +187,10 @@ func deref(n *int) int {
// placeView is one project's lines on the Places page: what it is, then
// where it stands, then its deploy key.
-type placeView struct{ Line, State, Deploy string }
+type placeView struct {
+ Line, State, Deploy string
+ Lost []string
+}
// placeViews says each site in the page's words; names come from CARLOS
// and the repository and are escaped by the template.
@@ -214,14 +217,15 @@ func placeViews(places []chat.SitePlace) []placeView {
default:
v.State = copyText("places.site_not_yet")
}
- switch p.Deploy {
- case "held":
+ switch {
+ case p.Deploy == "held":
v.Deploy = fmt.Sprintf(copyText("places.deploy_held"), p.DeployName)
- case "lost":
- v.Deploy = fmt.Sprintf(copyText("places.deploy_lost"), p.DeployName)
- default:
+ case len(p.Lost) == 0:
v.Deploy = copyText("places.deploy_none")
}
+ for _, name := range p.Lost {
+ v.Lost = append(v.Lost, fmt.Sprintf(copyText("places.deploy_lost"), name))
+ }
}
out = append(out, v)
}
diff --git a/internal/equipo/templates/settings_hub.html b/internal/equipo/templates/settings_hub.html
index b6b1913b..c048c8bc 100644
--- a/internal/equipo/templates/settings_hub.html
+++ b/internal/equipo/templates/settings_hub.html
@@ -27,7 +27,7 @@
<label for="copy-references">{{copy "copy.references"}}</label><textarea rst-input id="copy-references" name="references" maxlength="4000"></textarea>
<button rst-btn type="submit">{{copy "copy.recover"}}</button></form></details>
{{else if eq .Settings.Section "places"}}{{template "settings-head" (dict "Title" "places.title" "Lede" "settings.places_about")}}
-{{with .Settings.Places}}<ul equipo-places>{{range .}}<li equipo-place><p equipo-place-line>{{.Line}}</p>{{with .State}}<p equipo-place-state>{{.}}</p>{{end}}{{with .Deploy}}<p equipo-place-deploy>{{.}}</p>{{end}}</li>{{end}}</ul>{{else}}<p equipo-places-empty>{{copy "places.empty"}}</p>{{end}}
+{{with .Settings.Places}}<ul equipo-places>{{range .}}<li equipo-place><p equipo-place-line>{{.Line}}</p>{{with .State}}<p equipo-place-state>{{.}}</p>{{end}}{{with .Deploy}}<p equipo-place-deploy>{{.}}</p>{{end}}{{range .Lost}}<p equipo-place-lost>{{.}}</p>{{end}}</li>{{end}}</ul>{{else}}<p equipo-places-empty>{{copy "places.empty"}}</p>{{end}}
{{else if eq .Settings.Section "housekeeping"}}{{template "settings-head" (dict "Title" "settings.housekeeping" "Lede" "housekeeping.settings.lede")}}
{{with .HousekeepingSettings}}{{template "housekeeping-settings" .}}{{end}}
{{end}}
diff --git a/internal/runner/thin/site.go b/internal/runner/thin/site.go
index 70946295..d32536ee 100644
--- a/internal/runner/thin/site.go
+++ b/internal/runner/thin/site.go
@@ -367,9 +367,12 @@ func (s *SiteOptions) keyPath(t siteTarget) (string, bool) {
return filepath.Join(d, t.App+".json"), ok && wire.ValidSiteApp(t.App)
}
+// lostPath is the intent of one mint, by its key's name: each stays until
+// a key of that name is held, so a credential whose answer was lost is
+// never hidden by a later one.
func (s *SiteOptions) lostPath(t siteTarget) (string, bool) {
d, ok := destDir(filepath.Join(s.State, "keys"), t.Console, t.Sqid)
- return filepath.Join(d, t.App+".lost"), ok && wire.ValidSiteApp(t.App)
+ return filepath.Join(d, t.App+"."+t.DeployName+".lost"), ok && wire.ValidSiteApp(t.App) && wire.ValidDeployName(t.DeployName)
}
func (s *SiteOptions) createdPath(t siteTarget) (string, bool) {
@@ -519,10 +522,11 @@ func (s *SiteOptions) deploys() []wire.ReachDeploy {
out = append(out, wire.ReachDeploy{Console: t.Console, Account: t.Sqid, App: t.App, Name: k.Name, Fingerprint: k.Fingerprint})
}
case strings.HasSuffix(name, ".lost"):
- t.App = strings.TrimSuffix(name, ".lost")
+ app, keyName, _ := strings.Cut(strings.TrimSuffix(name, ".lost"), ".")
+ t.App = app
raw, err := os.ReadFile(filepath.Join(root, c.Name(), q.Name(), name))
var in struct{ Name string }
- if err != nil || json.Unmarshal(raw, &in) != nil {
+ if err != nil || json.Unmarshal(raw, &in) != nil || in.Name != keyName {
continue
}
if k, ok := s.key(t); ok && k.Name == in.Name {
@@ -770,7 +774,11 @@ func (e *Engineer) publishSite(ctx context.Context, r stepRow, progress func(wir
if err := e.confirmSite(ctx, e.ConfirmPublish, r, ex.Digest, t.Destination); err != nil {
return cancelled(err)
}
- done, deployed := e.siteDeploy(ctx, rep, r, t, runAs{login: true}, version, stage, ex, mark)
+ done, deployed := e.siteDeploy(ctx, rep, r, t, runAs{login: true}, version, stage, ex, mark, func() {
+ if err := site.created(t, r.TaskID); err != nil {
+ e.log("site record", err)
+ }
+ })
if !deployed {
// A deploy that failed half way may have made the app: the
// name was free a moment ago, so an app there now is this
@@ -784,9 +792,6 @@ func (e *Engineer) publishSite(ctx context.Context, r stepRow, progress func(wir
}
return done
}
- if err := site.created(t, r.TaskID); err != nil {
- e.log("site record", err)
- }
// Right after the app exists: its deploy key, behind its own check.
if err := e.confirmSite(ctx, e.ConfirmMint, r, ex.Digest, t.Destination); err == nil {
if e.O.State.setStepPhase(context.WithoutCancel(ctx), r, phaseSiteMinting, r.Base, r.Candidate) == nil {
@@ -823,7 +828,7 @@ func (e *Engineer) publishSite(ctx context.Context, r stepRow, progress func(wir
if err := e.confirmSite(ctx, e.ConfirmPublish, r, ex.Digest, t.Destination); err != nil {
return cancelled(err)
}
- done, _ := e.siteDeploy(ctx, rep, r, t, runAs{key: key}, version, stage, ex, mark)
+ done, _ := e.siteDeploy(ctx, rep, r, t, runAs{key: key}, version, stage, ex, mark, nil)
done.Publish.DeployHeld = true
return done
}
@@ -838,7 +843,7 @@ func (e *Engineer) siteChanged() {
// siteDeploy marks the attempt as one that may change CARLOS, deploys,
// and says whether the marker answers. deployed reports the deploy
// command succeeded.
-func (e *Engineer) siteDeploy(ctx context.Context, rep wire.StepReport, r stepRow, t siteTarget, as runAs, version, stage string, ex previewExport, mark previewMark) (wire.StepReport, bool) {
+func (e *Engineer) siteDeploy(ctx context.Context, rep wire.StepReport, r stepRow, t siteTarget, as runAs, version, stage string, ex previewExport, mark previewMark, deployed func()) (wire.StepReport, bool) {
site := e.Site
if err := e.O.State.setStepPhase(context.WithoutCancel(ctx), r, phaseSitePublishing, r.Base, r.Candidate); err != nil {
rep.State, rep.Reason, rep.Termination = wire.StepFailed, "publish_failed", true
@@ -868,6 +873,11 @@ func (e *Engineer) siteDeploy(ctx context.Context, rep wire.StepReport, r stepRo
done.Reason = "publish_failed"
return done, false
}
+ if deployed != nil {
+ // Before anything slow: a stop while the marker is polled must not
+ // lose what the deploy proved.
+ deployed()
+ }
served := url != "" && e.markerServed(ctx, siteAt{site, url}, t.App, siteMarker, mark)
return e.siteDone(rep, t.App, version, ex, url, served), true
}
@@ -898,6 +908,13 @@ func (e *Engineer) siteReconcile(ctx context.Context, rep wire.StepReport, r ste
}
}
served := url != "" && e.markerServed(context.WithoutCancel(ctx), siteAt{site, url}, t.App, siteMarker, mark)
+ if served && t.Mode == wire.SiteSetup && !site.madeHere(t) {
+ // This attempt's own marker answers from the app's address: the
+ // setup's deploy made it (a stop had come before the record).
+ if err := site.created(t, r.TaskID); err != nil {
+ e.log("site record", err)
+ }
+ }
done := e.siteDone(rep, t.App, version, previewExport{Digest: mark.Digest}, url, served)
done.Publish.DeployHeld = held
return done
diff --git a/internal/runner/thin/site_test.go b/internal/runner/thin/site_test.go
index d0dabb26..0fe44a3d 100644
--- a/internal/runner/thin/site_test.go
+++ b/internal/runner/thin/site_test.go
@@ -512,15 +512,22 @@ func TestSiteMintLost(t *testing.T) {
if err := wire.ValidCapabilities(wire.Capabilities{Reach: reach}); err != nil {
t.Fatalf("reach invalid: %v", err)
}
- // A mint step recovers it: the key held, the lost name gone.
+ // A mint step recovers it with a new key: held, and the first one's
+ // name still said lost (CARLOS may hold it live).
os.Remove(filepath.Join(filepath.Dir(rig.calls), "mintfail"))
- again := rig.e.Exec(context.Background(), rig.step("s_pub2", wire.SiteMint), func(wire.StepReport) {})
+ recovery := rig.step("s_pub2", wire.SiteMint)
+ recovery.Publish.DeployName = "eq-sample-cd34"
+ again := rig.e.Exec(context.Background(), recovery, func(wire.StepReport) {})
if again.State != wire.StepDone || !again.Publish.DeployHeld {
t.Fatalf("recovery %+v %+v", again, again.Publish)
}
- if reach := rig.e.Site.Reach(context.Background()); len(reach.Deploys) != 1 || reach.Deploys[0].Lost {
+ reach = rig.e.Site.Reach(context.Background())
+ if len(reach.Deploys) != 2 || reach.Deploys[0].Name != rigKeyName || !reach.Deploys[0].Lost || reach.Deploys[1].Name != "eq-sample-cd34" || reach.Deploys[1].Lost {
t.Fatalf("after recovery %+v", reach.Deploys)
}
+ if err := wire.ValidCapabilities(wire.Capabilities{Reach: reach}); err != nil {
+ t.Fatalf("reach invalid: %v", err)
+ }
rig = newSiteRig(t, quickSite)
rig.e.ConfirmMint = func(context.Context, string, int64, string, string) error { return ErrWithdrawn }
@@ -873,7 +880,7 @@ func TestSiteLostAndHeld(t *testing.T) {
if rep := rig.e.Exec(context.Background(), rig.r, func(wire.StepReport) {}); !rep.Publish.DeployHeld {
t.Fatalf("setup %+v", rep.Publish)
}
- tg := siteTarget{Console: rigConsole, Sqid: rigSqid, App: rigApp}
+ tg := siteTarget{Console: rigConsole, Sqid: rigSqid, App: rigApp, DeployName: rigKeyName}
lost, _ := rig.e.Site.lostPath(tg)
if err := writeSecret(lost, []byte(`{"name":"`+rigKeyName+`"}`)); err != nil {
t.Fatal(err)
@@ -913,3 +920,54 @@ func TestRecoverStepsKeepsSiteMinting(t *testing.T) {
t.Fatalf("ended as restarted: %+v", reps)
}
}
+
+// TestSiteCreationProofSurvives: the proof is written as soon as the
+// setup's deploy succeeded, before the marker is polled; a restart whose
+// own marker answers from the app's address restores a missing one.
+func TestSiteCreationProofSurvives(t *testing.T) {
+ rig := newSiteRig(t, quickSite)
+ dead := httptest.NewServer(http.NotFoundHandler())
+ t.Cleanup(dead.Close)
+ served := rig.e.Site.URL
+ rig.e.Site.URL = func(string) string { return dead.URL }
+ tg := siteTarget{Console: rigConsole, Sqid: rigSqid, App: rigApp}
+ if rep := rig.e.Exec(context.Background(), rig.r, func(wire.StepReport) {}); rep.State != wire.StepDone || rep.Publish.Outcome != wire.PublishUnconfirmed || !rig.e.Site.madeHere(tg) {
+ t.Fatalf("unconfirmed setup %+v, made here %t", rep.Publish, rig.e.Site.madeHere(tg))
+ }
+ p, _ := rig.e.Site.createdPath(tg)
+ os.Remove(p)
+ rig.e.Site.URL = served
+ again := rig.r
+ again.Phase = phaseSitePublishing
+ if rep := rig.e.Exec(context.Background(), again, func(wire.StepReport) {}); rep.Publish.Outcome != wire.PublishPublished || !rig.e.Site.madeHere(tg) {
+ t.Fatalf("reconcile %+v, made here %t", rep.Publish, rig.e.Site.madeHere(tg))
+ }
+}
+
+// TestStepEngineReconcilesCancelledSitePublish: a cancelled site publish
+// that may have changed CARLOS still reaches Exec, which only
+// reconciles; any other cancelled step is reported cancelled unrun.
+func TestStepEngineReconcilesCancelledSitePublish(t *testing.T) {
+ ctx := context.Background()
+ s, err := OpenState(ctx, t.TempDir())
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer s.Close()
+ var ran []string
+ e := &StepEngine{State: s, Notify: func() {}, Exec: func(_ context.Context, r stepRow, _ func(wire.StepReport)) wire.StepReport {
+ ran = append(ran, r.StepID)
+ return wire.StepReport{TaskID: r.TaskID, StepID: r.StepID, Attempt: r.Attempt, State: wire.StepDone, Termination: true, Findings: []wire.Finding{}}
+ }}
+ for _, c := range []struct {
+ id, specialist, phase string
+ }{{"s_a", wire.SpecialistPublish, phaseSiteMinting}, {"s_b", wire.SpecialistPublish, phaseSitePublishing}, {"s_c", wire.SpecialistPublish, ""}, {"s_d", wire.SpecialistReview, phaseSiteMinting}} {
+ d := dispatchFor("tk", c.id, 1)
+ d.Specialist = c.specialist
+ r := stepRow{DispatchCommand: d, Phase: c.phase, Cancel: true}
+ e.runOne(ctx, r)
+ }
+ if !slices.Equal(ran, []string{"s_a", "s_b"}) {
+ t.Fatalf("ran %v", ran)
+ }
+}
diff --git a/internal/runner/thin/step.go b/internal/runner/thin/step.go
index 83b38558..36d3ad34 100644
--- a/internal/runner/thin/step.go
+++ b/internal/runner/thin/step.go
@@ -725,7 +725,11 @@ func (e *StepEngine) runOne(ctx context.Context, r stepRow) {
e.log("step report", e.State.ReportStep(context.WithoutCancel(ctx), r, rep))
e.Notify()
}
- if r.Cancel {
+ // A site publish that may have changed CARLOS reconciles from its
+ // marker even when cancelled: its outcome is never lost to a plain
+ // "cancelled" (publishSite never sends again in these phases).
+ siteReconciles := r.Specialist == wire.SpecialistPublish && (r.Phase == phaseSitePublishing || r.Phase == phaseSiteMinting)
+ if r.Cancel && !siteReconciles {
report(wire.StepReport{TaskID: r.TaskID, StepID: r.StepID, Attempt: r.Attempt, State: wire.StepCancelled, Reason: "cancelled", BaseSHA: r.Base, Termination: true})
return
}
diff --git a/internal/thintest/places_contract_test.go b/internal/thintest/places_contract_test.go
index d83a4689..cbbc21b1 100644
--- a/internal/thintest/places_contract_test.go
+++ b/internal/thintest/places_contract_test.go
@@ -409,3 +409,51 @@ func TestContractPlaceLegacyPublishCard(t *testing.T) {
t.Fatal("a legacy card placed a publish step")
}
}
+
+// TestContractPlaceSetupAgainAfterMissing: a setup whose deploy failed
+// leaves a creation attempt, so the next card is a mint; the mint finds
+// no app at all (publish_app_missing), which clears the attempt, and the
+// next card is a setup again for the same merged commit.
+func TestContractPlaceSetupAgainAfterMissing(t *testing.T) {
+ r := newToolRigAt(t, wire.ProtocolCurrent)
+ ctx := r.ctx
+ r.reachHello("1", []wire.ReachDeploy{})
+ base, cand, merged := strings.Repeat("1", 40), strings.Repeat("2", 40), strings.Repeat("e", 40)
+ id, _ := r.websiteReady("x", "Quick website", base, cand, true)
+ r.previewDispatch(cand)
+ r.placeOnMerge = true
+ r.mergeFromCard("x-m", id, base, cand, merged)
+ run := func(key string) *wire.DispatchCommand {
+ t.Helper()
+ c, ok := r.cardKind(wire.CardPublish, id)
+ if !ok || c.State != wire.CardOpen {
+ t.Fatalf("%s: no open publish card %+v", key, c)
+ }
+ if _, err := r.client.Answer(ctx, c.ID, wire.ChoicePublish, c.Revision); err != nil {
+ t.Fatal(err)
+ }
+ d := r.publishDispatch()
+ r.lease(r.runner, key+"-start", wire.LeaseCheck{StepID: d.StepID, Attempt: d.Attempt})
+ r.publishReport(key+"-built", d, wire.StepRunning, &wire.PublishResult{Phase: wire.PublishBuilt, Digest: digestA, Files: 2, Bytes: 40})
+ return d
+ }
+ d := run("x1")
+ if d.Publish.Mode != wire.SiteSetup {
+ t.Fatalf("first %+v", d.Publish)
+ }
+ r.lease(r.runner, "x1-deploy", wire.LeaseCheck{StepID: d.StepID, Attempt: d.Attempt, Purpose: wire.LeasePurposePublish, Digest: digestA, Destination: d.Publish.Destination})
+ // The deploy failed: done, unconfirmed, no key.
+ r.publishReport("x1-failed", d, wire.StepDone, &wire.PublishResult{Phase: wire.PublishDone, App: d.Publish.App, Digest: digestA, Outcome: wire.PublishUnconfirmed})
+ m := run("x2")
+ if m.Publish.Mode != wire.SiteMint {
+ t.Fatalf("after a failed setup %+v", m.Publish)
+ }
+ r.step("x2-missing", wire.StepReport{TaskID: m.TaskID, StepID: m.StepID, Attempt: m.Attempt, State: wire.StepFailed, Reason: "publish_app_missing", CandidateSHA: m.CandidateSHA, Termination: true, Findings: []wire.Finding{}})
+ if n := r.rows("SELECT count(*) FROM chat_project_places WHERE app_created_at IS NULL AND app_created_step = ''"); n != 1 {
+ t.Fatal("the creation attempt was not cleared")
+ }
+ again := run("x3")
+ if again.Publish.Mode != wire.SiteSetup || again.CandidateSHA != merged {
+ t.Fatalf("not a setup again %+v", again.Publish)
+ }
+}