oficina / equipo Public

Build a merged task's preview only from a proven merge commit

Astra round 1 on 2543d6d9.

1. An unverified merged_sha was publication authority: a reconciled
   landing names what inspectMerge found, and past its 200-commit
   first-parent search (or for a nested merge) the default branch's tip,
   which may hold later, unreviewed work. Now verifiedMerge proves it: the
   merged commit is the approved candidate itself, or the hub's own answer
   to the merge request (MergeVerified, source hub) whose recorded parents
   are [other, candidate]. Otherwise a preview of the done task builds the
   approved candidate, which Review approved, and read_task's retry and
   retry_step's result say merge_unverified. No tree is recorded today, so
   the hub's own merge answer is the proof of the merge's content.

2-5. The devbox expiry I added unasked is cut: no 7-day expiry, no hourly
   sweep, no migration 0111 (preview_down_at); nothing else used it. A
   devbox link that came up after its task was done (FinishedAt after
   DoneAt) shows on the task and is replaced by the task's next preview,
   which may run while it is up. Known gap: until replaced or unshared by
   the existing paths it stays up on the tailnet. read_task's retry says
   so (note devbox_stays_up, model-facing; no new copy).

Tests first: TestContractRetryPreviewUnverifiedMerge (far tip, nested,
cached, first-parent-only landings) and the reworked devbox contract;
runner/thin merge_identity_test.go shows in real git that inspectMerge
names the merge commit after later commits, and the tip (not the
candidate's merge) for a nested merge and past 200 commits.

Mutation checks (each made the named test fail, then restored):
N1 merged commit trusted as before: RetryPreviewUnverifiedMerge
N2 parents and MergeVerified unchecked: ...UnverifiedMerge/nested,
   first_only (parents alone: MergeVerified still holds it)
N3 source unchecked: ...UnverifiedMerge/cached
N4 no fallback to the approved commit: ...UnverifiedMerge
N5 verified merge unused: RetryPreviewOnMergedTask
N6 up devbox link refuses the next run: RetryDevboxPreviewOnMergedTask
N7 devbox link on any done task: TestReviewStateChangesBetweenWrapperReads
N8 no merge_unverified note: ...UnverifiedMerge
M1 M2 M4 M6 M9 M15 from 7ce5cfbc rerun: still fail as recorded there.

Runs: thintest -run 'Retry|Preview|Stuck|Publish|Merge';
./internal/equipo; ./internal/equipo/chat; ./internal/wire; runner/thin
-run TestMerge; vet, fmt, staticcheck, migration-check, budget size,
lanes check, testci. Size exemptions follow the measured lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 7256e57bd1b156de536f802ddaf1f1a0db8ddde7 parent 2543d6d
11 files changed, +321 −133
  • .rastrillo/budgets.txt +3 −3
  • internal/equipo/chat/preview_retry.go +89 −64
  • internal/equipo/chat/store.go +0 −5
  • internal/equipo/chat/stuck.go +11 −4
  • internal/equipo/chat/tasks.go +1 −11
  • internal/equipo/migrations/0111_preview_down_at.sql +0 −3
  • internal/equipo/migrations/schema.sql +0 −4
  • internal/equipo/preview_pass_store.go +1 −1
  • internal/equipo/work_views.go +11 −12
  • internal/runner/thin/merge_identity_test.go +95 −0
  • internal/thintest/preview_retry_done_contract_test.go +110 −26

CI passed — 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/preview-retry-done: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.6s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 4.2s
ci-box: file times set from content: 3129 files, 200 directories
ci-box: ready in 17.3s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.144s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.0s
+ go list -export -test -tags testbuild -f  ./...
  4.1s
+ 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless
=== RUN   TestHeadless
--- FAIL: TestHeadless (69.07s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless/4c_rebase
=== RUN   TestHeadless/4c_rebase
time=2026-11-26T22:15:10.336Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T22:15:10.336Z level=INFO msg="startup phase done" phase=state_lock took=65µs
time=2026-11-26T22:15:10.336Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T22:15:10.336Z level=INFO msg="startup phase done" phase=claim_roots took=94µs
time=2026-11-26T22:15:10.336Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T22:15:10.371Z level=INFO msg="startup phase done" phase=sweep took=34.73ms
time=2026-11-26T22:15:10.372Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T22:15:10.372Z level=INFO msg="startup phase done" phase=credentials took=152µs
time=2026-11-26T22:15:10.372Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T22:15:10.427Z level=INFO msg="startup phase done" phase=open_state took=54.67ms
time=2026-11-26T22:15:10.428Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T22:15:10.428Z level=INFO msg=connecting host=127.0.0.1:35819 protocol=32
time=2026-11-26T22:15:10.432Z level=INFO msg=connected host=127.0.0.1:35819 took=4.215ms
time=2026-11-26T22:15:10.433Z level=INFO msg="capabilities gathering"
time=2026-11-26T22:15:10.437Z level=INFO msg="capabilities gathered" took=4.331ms tags=linux,claude,go
time=2026-11-26T22:15:10.443Z level=INFO msg="hello sent" protocol=32
time=2026-11-26T22:15:10.448Z level=INFO msg=welcome protocol=32 role=primary generation=1
time=2026-11-26T22:15:11.349Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-26T22:15:15.407Z level=INFO msg="kept sessions" kept=1 bytes=2939 expired=0
time=2026-11-26T22:15:21.048Z level=INFO msg="kept sessions" kept=2 bytes=5145 expired=0
    merge_test.go:245: steps [engineering:done checks:passed review:approve merge:merge_conflict engineering:queued], want [engineering:done checks:passed review:approve merge:merge_conflict engineering:done checks:passed review:approve merge:done] (in_progress )
time=2026-11-26T22:15:21.165Z level=WARN msg="step base" err=*fmt.wrapError
--- FAIL: TestHeadless/4c_rebase (11.28s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m9.066s
FAIL	amadan.net/oficina/equipo/internal/headless	69.314s


receipt: test step 1m10.806s 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 1m9.066s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.07s amadan.net/oficina/equipo/internal/headless TestHeadless
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' -v -run '^TestHeadless$/^4c_rebase$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestHeadless/4c_rebase headless-work 7256e57bd1b156de536f802ddaf1f1a0db8ddde7 11.28s 67.45
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 67.02, cpu waiting 41.25%, memory waiting 0.00%, io waiting 0.35%
--- 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 1m17.078s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.314s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m15.31s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 68.95, cpu waiting 40.87%, memory waiting 0.00%, io waiting 0.45%
--- 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 1m16.898s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.158s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.4s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.4s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.36s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 68.95, cpu waiting 40.87%, memory waiting 0.00%, io waiting 0.45%
--- 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.325s 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.492s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.12s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.95s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.58s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 67.81, cpu waiting 40.87%, memory waiting 0.00%, io waiting 0.45%
--- 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 1m34.46s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m32.788s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m3.74s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.21s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.13s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.99s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.72s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 68.22, cpu waiting 41.72%, memory waiting 0.00%, io waiting 0.33%
--- 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 2m43.017s 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 2m41.365s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m36.58s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.33s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.58s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.45s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 27.51, cpu waiting 14.69%, 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 2m12.829s 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 2m11.094s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.7s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.76s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.94s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.87s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.71s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 41.66, cpu waiting 23.99%, memory waiting 0.00%, io waiting 0.17%
--- 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 1m56.147s 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 1m54.497s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.57s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.2s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.95s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.52s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.98s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 54.48, cpu waiting 30.82%, memory waiting 0.00%, io waiting 0.23%
--- 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 5m7.038s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m12.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 5m7.038s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.92s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.47s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 10.07s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 3.09, cpu waiting 1.20%, 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

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

receipt: test step 1m2.573s 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.631s amadan.net/oficina/equipo/internal/runner
receipt: slow test 50.63s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 44.09s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 67.14, cpu waiting 39.28%, memory waiting 0.00%, io waiting 0.57%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 36.127s 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.235s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.36s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.83s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 36.46, cpu waiting 19.77%, memory waiting 0.00%, io waiting 0.92%
--- 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.0%, load 28.84
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 1m8.531s 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 1m6.8s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.63s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.56s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.25s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.6s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.59s amadan.net/oficina/equipo/internal/equipotest TestAuthorityRejectsMismatchedTarget
machine: 32 CPUs, load 65.24, cpu waiting 40.34%, memory waiting 0.00%, io waiting 0.31%
--- 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.5%, load 28.84
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 1m19.09s 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.233s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.36s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.33s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 20.31s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 20.26s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.25s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
machine: 32 CPUs, load 58.00, cpu waiting 34.96%, memory waiting 0.00%, io waiting 0.26%
--- 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.0%, load 28.84
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 1m17.382s 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.03s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16.92s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.64s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.54s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.51s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 58.00, cpu waiting 36.08%, memory waiting 0.00%, io waiting 0.27%
--- 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.5%, load 28.84
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.547s 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.68s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.84s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.62s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.6s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.73s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 23.7s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 65.24, cpu waiting 40.34%, memory waiting 0.00%, io waiting 0.31%
--- 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.5%, load 28.84
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 55.367s 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 53.427s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.53s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.87s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.36s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 68.15, cpu waiting 41.49%, memory waiting 0.00%, io waiting 0.39%
--- 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.5%, load 28.84
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/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeTerminalErrors
=== RUN   TestClaudeTerminalErrors
--- FAIL: TestClaudeTerminalErrors (1.76s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeTerminalErrors/rate
=== RUN   TestClaudeTerminalErrors/rate
    launcher_test.go:556: claude_turn_uncertain
--- FAIL: TestClaudeTerminalErrors/rate (0.24s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude (package output)
FAIL
rastrillo-budget/v1 ran 29.065s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/claude	30.176s

--- 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:304 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.62s)

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

budget note: internal/equipo took 2m21.036s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 21.313s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m0.188s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 41.44s, 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 50.665s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 22.212s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 13.069s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m35.05s against a 60s target (the gate's other steps are not in this figure)
receipt: 21 packages ran, 43 cached, 17 without tests, 2 failed
receipt: slow package 2m21.036s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m0.188s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m10.481s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 57.084s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 52.475s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 55.44s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.25s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 46.18s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 46.12s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.86s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestClaudeTerminalErrors$/^rate$' -count=1 ./internal/runner/provider/claude   (retry, once)
##############################################################################
FLAKE ./internal/runner/provider/claude:TestClaudeTerminalErrors/rate rest 7256e57bd1b156de536f802ddaf1f1a0db8ddde7 0.24s 20.62
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest 7256e57bd1b156de536f802ddaf1f1a0db8ddde7 0.62s 20.62
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 19.28, cpu waiting 9.85%, memory waiting 0.00%, io waiting 0.06%
--- 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 1m24.787s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.271s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.81s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.96s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.35s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.27s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.36s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 68.15, cpu waiting 41.41%, memory waiting 0.00%, io waiting 0.38%
--- 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.539s 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.949s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.67s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.8s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.91s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.79s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 68.22, cpu waiting 41.50%, memory waiting 0.00%, io waiting 0.34%
--- 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.147s 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 1m51.598s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.51s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.24s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.17s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.44s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 54.48, cpu waiting 31.80%, memory waiting 0.00%, io waiting 0.23%
--- 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-26T22:14:49.232Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T22:14:49.232Z level=INFO msg="startup phase done" phase=state_lock took=98µs
time=2026-11-26T22:14:49.232Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T22:14:49.232Z level=INFO msg="startup phase done" phase=claim_roots took=117µs
time=2026-11-26T22:14:49.232Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T22:14:49.268Z level=INFO msg="startup phase done" phase=sweep took=35.703ms
time=2026-11-26T22:14:49.268Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T22:14:49.268Z level=INFO msg="startup phase done" phase=credentials took=189µs
time=2026-11-26T22:14:49.268Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T22:14:49.312Z level=INFO msg="startup phase done" phase=open_state took=43.573ms
time=2026-11-26T22:14:49.312Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T22:14:49.313Z level=INFO msg=connecting host=127.0.0.1:46727 protocol=32
time=2026-11-26T22:14:49.315Z level=INFO msg=connected host=127.0.0.1:46727 took=2.373ms
time=2026-11-26T22:14:49.316Z level=INFO msg="capabilities gathering"
time=2026-11-26T22:14:49.316Z level=INFO msg="capabilities gathered" took=559µs tags=linux,claude,go
time=2026-11-26T22:14:49.317Z level=INFO msg="hello sent" protocol=32
time=2026-11-26T22:14:49.321Z level=INFO msg=welcome protocol=32 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserCopyContinue (6.55s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m33.549s
FAIL	amadan.net/oficina/equipo/internal/headless	93.747s


receipt: test step 1m35.168s 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 1m33.549s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.66s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.36s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.11s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.59s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
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 7256e57bd1b156de536f802ddaf1f1a0db8ddde7 6.55s 68.22
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 65.24, cpu waiting 40.34%, memory waiting 0.00%, io waiting 0.31%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

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

receipt: test step 12.045s 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.664s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.28s 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.705s 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.127s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.13s 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 3m38.171s 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 3m36.596s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.29s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.4s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.67s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.06s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.06, cpu waiting 4.14%, memory waiting 0.00%, io waiting 0.03%
--- 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   (51s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.57s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.13s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.24s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.64s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.82s
+ 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   (54s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.06s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.45s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.51s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 19.02s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (20s)
ok ./internal/headless TestMixedVersions 18.44s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ 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 63.45, cpu waiting 35.11%, memory waiting 0.00%, io waiting 0.65%
--- 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 11.331s 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.461s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 195ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 139ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.16s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 350ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 140ms 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.366s 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.968s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceStartingThreadExit
machine: 32 CPUs, load 16.80, cpu waiting 8.00%, memory waiting 0.00%, io waiting 1.28%
--- 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.5%, load 28.84
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2841 text files, 3229 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.545s
machine: 32 CPUs, load 67.45, cpu waiting 39.80%, 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.5%, load 28.84
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 56.00, cpu waiting 29.15%, memory waiting 0.00%, io waiting 0.75%
--- 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.5%, load 28.84
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 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 45.00, cpu waiting 21.65%, memory waiting 0.00%, io waiting 0.89%
--- 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.5%, load 28.84
shard 28: make gitleaks
10:14PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:15PM INF 1207 commits scanned.
10:15PM INF scanned ~67113919 bytes (67.11 MB) in 23.6s
10:15PM INF no leaks found
machine: 32 CPUs, load 63.45, cpu waiting 33.86%, memory waiting 0.00%, io waiting 0.68%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.065ms, worst 1.116ms, budget 150ms
perf: GET /api/runner/protocol: median 82µs, worst 127µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 599µs, worst 624µs, budget 150ms
perf: GET /api/v1/accounts: median 406µs, worst 442µs, budget 150ms
perf: GET /api/v1/auth/devices: median 462µs, worst 490µs, budget 150ms
perf: GET /api/v1/budgets: median 500µs, worst 518µs, budget 150ms
perf: GET /api/v1/capabilities: median 258µs, worst 290µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.29ms, worst 1.347ms, budget 150ms
perf: GET /api/v1/connections: median 557µs, worst 600µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 552µs, worst 572µs, budget 150ms
perf: GET /api/v1/conversation: median 900µs, worst 995µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.48ms, worst 1.542ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.778ms, worst 1.966ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 467µs, worst 511µs, budget 150ms
perf: GET /api/v1/journey: median 8.865ms, worst 9.159ms, budget 150ms
perf: GET /api/v1/me: median 498µs, worst 519µs, budget 150ms
perf: GET /api/v1/me/settings: median 584µs, worst 617µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.724ms, worst 8.935ms, budget 150ms
perf: GET /api/v1/notifications: median 1.66ms, worst 1.74ms, budget 150ms
perf: GET /api/v1/onboarding: median 401µs, worst 440µs, budget 150ms
perf: GET /api/v1/people: median 449µs, worst 498µs, budget 150ms
perf: GET /api/v1/playbooks: median 585µs, worst 636µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 531µs, worst 556µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 847µs, worst 890µs, budget 150ms
perf: GET /api/v1/preferences: median 757µs, worst 781µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 466µs, worst 483µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 587µs, worst 608µs, budget 150ms
perf: GET /api/v1/roster: median 495µs, worst 520µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 437µs, worst 487µs, budget 150ms
perf: GET /api/v1/specialists: median 8.066ms, worst 8.278ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.962ms, worst 8.068ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 884µs, worst 950µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.182ms, worst 1.315ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 797µs, worst 847µs, budget 150ms
perf: GET /api/v1/teams: median 456µs, worst 485µs, budget 150ms
perf: GET /api/v1/templates: median 617µs, worst 664µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 497µs, worst 859µs, budget 150ms
perf: GET /auth/callback: median 141µs, worst 309µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.849ms, worst 3.955ms, budget 150ms
perf: GET /auth/verify: median 77µs, worst 99µs, budget 150ms
perf: GET /connections: median 4.099ms, worst 4.243ms, budget 150ms
perf: GET /conversation: median 8.084ms, worst 8.557ms, budget 150ms
perf: GET /conversation/connections: median 244µs, worst 267µs, budget 150ms
perf: GET /conversation/notebook: median 247µs, worst 261µs, budget 150ms
perf: GET /conversation/settings: median 4.392ms, worst 4.407ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.37ms, worst 4.524ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.815ms, worst 7.13ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.934ms, worst 7.228ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.669ms, worst 6.449ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.841ms, worst 5.003ms, budget 150ms
perf: GET /conversation/settings/machines: median 5.047ms, worst 5.369ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.928ms, worst 5.053ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.984ms, worst 4.08ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.558ms, worst 4.648ms, budget 150ms
perf: GET /housekeeping: median 4.314ms, worst 4.431ms, budget 150ms
perf: GET /invites/new: median 649µs, worst 697µs, budget 150ms
perf: GET /invites/{id}: median 677µs, worst 696µs, budget 150ms
perf: GET /jobs: median 3.994ms, worst 4.182ms, budget 150ms
perf: GET /jobs/{id}: median 5.293ms, worst 5.476ms, budget 150ms
perf: GET /journey: median 11.316ms, worst 13.638ms, budget 150ms
perf: GET /nav/rail: median 3.442ms, worst 3.691ms, budget 150ms
perf: GET /needs-you: median 10.558ms, worst 10.817ms, budget 150ms
perf: GET /onboarding: median 4.351ms, worst 4.394ms, budget 150ms
perf: GET /people: median 3.759ms, worst 3.927ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.892ms, worst 4.964ms, budget 150ms
perf: GET /playbooks: median 4.432ms, worst 4.509ms, budget 150ms
perf: GET /playbooks/new: median 4.604ms, worst 4.724ms, budget 150ms
perf: GET /playbooks/{id}: median 5.227ms, worst 5.495ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.436ms, worst 8.593ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.614ms, worst 4.701ms, budget 150ms
perf: GET /preferences: median 4.81ms, worst 4.974ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.679ms, worst 4.909ms, budget 150ms
perf: GET /projects: median 6.247ms, worst 6.633ms, budget 150ms
perf: GET /projects/accounts: median 4.089ms, worst 4.245ms, budget 150ms
perf: GET /projects/new: median 4.064ms, worst 4.315ms, budget 150ms
perf: GET /projects/{id}: median 13.015ms, worst 13.415ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.485ms, worst 4.668ms, budget 150ms
perf: GET /runners/enrol: median 4.833ms, worst 4.936ms, budget 150ms
perf: GET /settings: median 4.056ms, worst 6.598ms, budget 150ms
perf: GET /settings/coordinator: median 5.976ms, worst 6.155ms, budget 150ms
perf: GET /settings/devices: median 3.716ms, worst 3.822ms, budget 150ms
perf: GET /settings/recovery: median 3.872ms, worst 4.004ms, budget 150ms
perf: GET /settings/recovery/release: median 3.863ms, worst 4.065ms, budget 150ms
perf: GET /settings/thinking: median 246µs, worst 268µs, budget 150ms
perf: GET /signed-out: median 269µs, worst 305µs, budget 150ms
perf: GET /signin: median 279µs, worst 292µs, budget 150ms
perf: GET /specialists/new: median 3.774ms, worst 3.944ms, budget 150ms
perf: GET /specialists/{key}: median 12.317ms, worst 12.471ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.223ms, worst 4.355ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.332ms, worst 4.379ms, budget 150ms
perf: GET /tasks: median 6.307ms, worst 6.362ms, budget 150ms
perf: GET /tasks/new: median 4.016ms, worst 6.684ms, budget 150ms
perf: GET /tasks/{id}: median 6.747ms, worst 6.855ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.844ms, worst 5.942ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.365ms, worst 5.585ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.293ms, worst 6.378ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.656ms, worst 1.711ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 6.605ms, worst 6.709ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.219ms, worst 5.38ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.801ms, worst 4.948ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.575ms, worst 8.818ms, budget 150ms
perf: GET /team/{specialist}: median 5.064ms, worst 7.712ms, budget 150ms
perf: GET /teams: median 12.032ms, worst 12.307ms, budget 150ms
perf: GET /templates: median 4.092ms, worst 4.318ms, budget 150ms
perf: GET /usage: median 4.924ms, worst 5.026ms, budget 150ms
perf: GET /work: median 3.665ms, worst 3.797ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 161ms of [159.09608ms 160.541297ms 161.580814ms], budget 500ms

receipt: test step 45.679s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 88 without tests, 0 failed
receipt: slow package 10.579s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/stagingtest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow test 10.04s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 540ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.76 GiB in 24682 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index b62e8502..e5ae5dc7 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -38,7 +38,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full
perf GET /releases/* skip Verified runner release file downloads, not browser GET screens.
perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen.
time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s;
-size internal/runner/thin 29062 23966 Protocol 31 facts, merge credential, publication guards; step limit, kept timed-out work, shell use, CI unit shares (2026-11-26); measured 29062/23966.
+size internal/runner/thin 29062 24061 Protocol 31 facts, merge credential, publication guards; step limit, kept timed-out work, shell use, CI units, merge identity (2026-11-26); measured 29062/24061.
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 35456 9910 File facts, hosted projection, no-access merges, preview reads; unfinished work, shell-less rounds, CI feedback; previews on done tasks (2026-11-26); measured 35456/9910.
+size internal/equipo/chat 35473 9910 File facts, hosted projection, no-access merges, preview reads; unfinished work, shell-less rounds, CI feedback; previews on done tasks (2026-11-26); measured 35473/9910.
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 - 11437 Grant scenarios for a named repository (hub #48); the sign-in's account email at 1280 and 390; measured 11437 test lines.
-size internal/thintest - 35859 Protocol 31 and detail-only contracts, stuck tasks, no-access merges; held retries, unfinished work, shard feedback, free rounds; previews on done tasks (2026-11-26); measured 35859 test lines.
+size internal/thintest - 35943 Protocol 31 and detail-only contracts, stuck tasks, no-access merges; held retries, unfinished work, shard feedback, free rounds; previews on done tasks (2026-11-26); measured 35943 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/preview_retry.go b/internal/equipo/chat/preview_retry.go
index 9c48f93f..6c58449c 100644
--- a/internal/equipo/chat/preview_retry.go
+++ b/internal/equipo/chat/preview_retry.go
@@ -33,6 +33,13 @@ const (
retryNotYours = "not_yours"
retryNotOwner = "not_owner"
retryNoStep = "no_step"
+ // Notes beside a retry that can run (read_task's retry, retry_step's
+ // result): the merged commit could not be proven to be the merge of
+ // the approved candidate, so the approved candidate is built instead;
+ // a devbox link brought up after the task was done stays up until the
+ // next run replaces it.
+ retryMergeUnverified = "merge_unverified"
+ retryDevboxStaysUp = "devbox_stays_up"
// previewHostAuthority's reasons are used as they are:
// wire.ReasonRunnerOutdated, preview_host, preview_public_disabled.
)
@@ -51,6 +58,8 @@ var retryNotes = map[string]string{
retryNotYours: "That task is another person's: only the person who asked for it can run its steps again.",
retryNotOwner: "Only an owner's runner can run work.",
retryNoStep: "That task has no step of that kind yet.",
+ retryMergeUnverified: "Equipo could not prove the merged commit is exactly the merge of the approved commit, so a preview builds the approved commit itself, which Review approved, not the merged one.",
+ retryDevboxStaysUp: "Its preview link on the person's tailnet came up after the task was done; it stays up until the next preview of the task replaces it.",
wire.ReasonRunnerOutdated: "The person's primary runner is too old to make previews: it needs an update first.",
"preview_host": "The person's primary runner has no preview host now.",
"preview_public_disabled": "This project does not allow public previews now; an owner can turn them on in Settings.",
@@ -88,35 +97,58 @@ func refusedRetry(code, reason string) wire.ToolResult {
return refused(code, string(raw))
}
-// previewRerunUp is how long a devbox link a preview brought up after its
-// task ended stays up: as long as a temporary site lives (the runner's
-// previewTTL). A devbox link has no expiry of its own and otherwise
-// comes down when its task ends, which this one already did.
-const previewRerunUp = 7 * 24 * time.Hour
-
// approvedCandidate reports whether Review approved the task's candidate.
func approvedCandidate(p progress) bool {
return p.candidate != "" && p.review != nil && p.review.State == wire.StepDone && p.review.Verdict == wire.VerdictApprove
}
// previewTarget is the commit a new preview of the task builds now: on a
-// done task Equipo merged, the merged commit of its approved candidate;
+// done task Equipo merged, its merged commit when that is proven to be the
+// merge of the approved candidate (verifiedMerge), else the approved
+// candidate itself, which Review approved (note says merge_unverified);
// otherwise the approved candidate while the branch is at it. "" when
// there is none.
-func previewTarget(k taskRecord, p progress) string {
+func previewTarget(k taskRecord, p progress) (sha, note string) {
if !approvedCandidate(p) {
- return ""
+ return "", ""
}
if k.Stage == wire.StageDone && k.MergedSHA != "" {
- if p.merge != nil && p.merge.State == wire.StepDone && p.merge.MergeSHA == k.MergedSHA {
- return k.MergedSHA
+ if m := verifiedMerge(k, p); m != "" {
+ return m, ""
}
- return ""
+ // The candidate landed (the hub or the runner said so), so it is
+ // on the default branch's history whatever the branch did since.
+ return p.candidate, retryMergeUnverified
}
if p.moved {
+ return "", ""
+ }
+ return p.candidate, ""
+}
+
+// verifiedMerge is the task's merged commit when it is proven to bring in
+// exactly the approved candidate: the candidate itself (it landed as it
+// is), or the hub's own answer to this merge request, a merge commit whose
+// second parent is the candidate (MergeVerified, its parents recorded on
+// the merge step). "" otherwise: a reconciled or cached landing names the
+// commit the runner found, and past its 200-commit search the default
+// branch's tip, which may hold later work that nobody reviewed here.
+func verifiedMerge(k taskRecord, p progress) string {
+ m := p.merge
+ if k.Stage != wire.StageDone || k.MergedSHA == "" || m == nil || m.State != wire.StepDone || m.MergeSHA != k.MergedSHA || m.CandidateSHA != p.candidate {
return ""
}
- return p.candidate
+ if k.MergedSHA == p.candidate {
+ return k.MergedSHA
+ }
+ var parents []string
+ if json.Unmarshal([]byte(m.MergeParents), &parents) != nil {
+ return ""
+ }
+ if !k.MergeVerified || m.MergeSource != wire.MergeSourceHub || len(parents) != 2 || parents[1] != p.candidate || parents[0] == p.candidate || parents[0] == k.MergedSHA {
+ return ""
+ }
+ return k.MergedSHA
}
// previewMayBuild reports whether a preview of sha may run and publish
@@ -126,20 +158,21 @@ func previewMayBuild(k taskRecord, p progress, sha string) bool {
if sha == "" || !approvedCandidate(p) {
return false
}
- return sha == p.candidate && !p.moved || k.Stage == wire.StageDone && sha == previewTarget(k, p)
+ target, _ := previewTarget(k, p)
+ return sha == p.candidate && !p.moved || k.Stage == wire.StageDone && sha == target
}
// previewOfTask reports whether a preview of sha stands for the task: of
-// its candidate cand, or of its merged commit once done.
+// its candidate cand, or of its merged commit once done (a preview of it
+// is only ever placed when verifiedMerge proved it).
func previewOfTask(k taskRecord, cand, sha string) bool {
return sha != "" && (sha == cand || k.Stage == wire.StageDone && k.MergedSHA != "" && sha == k.MergedSHA)
}
// previewUp reports whether a preview step's link is served now:
// deployed, before any expiry, and a devbox link only while its task runs
-// or is held for Publish (previewHeld), or, one that came up after its
-// task was done, until the expiry the instance gave it
-// (boundDevboxPreview).
+// or is held for Publish (previewHeld), or one that came up after its task
+// was done (devboxAfterDone).
func previewUp(k taskRecord, s stepRecord, now time.Time, held bool) bool {
r := decodePreview(s.Preview)
if s.State != wire.StepDone || r == nil || r.Outcome != wire.PreviewDeployed || r.URL == "" {
@@ -149,11 +182,20 @@ func previewUp(k taskRecord, s stepRecord, now time.Time, held bool) bool {
return false
}
if strings.HasPrefix(r.App, "eq-") && wire.FinalStage(k.Stage) && !held {
- return r.ExpiresAt != nil && k.Stage == wire.StageDone && k.DoneAt != nil && s.FinishedAt != nil && s.FinishedAt.After(*k.DoneAt)
+ return devboxAfterDone(k, s)
}
return true
}
+// devboxAfterDone: a devbox link that came up after its task was done (a
+// preview run again on a merged task). Nothing takes it down by itself:
+// the task's next preview replaces it, or the existing paths unshare it
+// (a known gap, retryDevboxStaysUp).
+func devboxAfterDone(k taskRecord, s stepRecord) bool {
+ r := decodePreview(s.Preview)
+ return r != nil && strings.HasPrefix(r.App, "eq-") && k.Stage == wire.StageDone && k.DoneAt != nil && s.FinishedAt != nil && s.FinishedAt.After(*k.DoneAt)
+}
+
// previewRetryCheck is why a preview step cannot run again for person
// now ("" when it can), and the commit it would build: the person's, on a
// task not cancelled, the task's newest preview, ended and not up (failed,
@@ -185,14 +227,16 @@ func (t *txn) previewRetryCheck(k taskRecord, st stepRecord, person string) (rea
return "", "", err
}
}
- if previewUp(k, st, t.now(), held) {
+ // Up: nothing to run again, except a devbox link brought up after the
+ // task was done, which only the next run replaces.
+ if previewUp(k, st, t.now(), held) && !devboxAfterDone(k, st) {
return retryCompleted, "", nil
}
p := progressFor(k, steps)
if !approvedCandidate(p) {
return retryNotApproved, "", nil
}
- target = previewTarget(k, p)
+ target, _ = previewTarget(k, p)
if target == "" || k.Stage != wire.StageDone && st.CandidateSHA != target {
return retryCommitChanged, "", nil
}
@@ -277,6 +321,10 @@ type retryView struct {
StepID string `json:"step_id"`
Retryable bool `json:"retryable"`
Reason string `json:"reason,omitempty"`
+ // Note is a fixed note beside it (retryMergeUnverified,
+ // retryDevboxStaysUp), NoteText what it means.
+ Note string `json:"note,omitempty"`
+ NoteText string `json:"note_text,omitempty"`
}
func (t *txn) retryViews(k taskRecord, person string) ([]retryView, error) {
@@ -294,7 +342,14 @@ func (t *txn) retryViews(k taskRecord, person string) ([]retryView, error) {
if err != nil {
return nil, err
}
- out = append(out, retryView{Step: kind, StepID: st.ID, Retryable: reason == "", Reason: reason})
+ v := retryView{Step: kind, StepID: st.ID, Retryable: reason == "", Reason: reason}
+ if kind == wire.SpecialistPreview {
+ if v.Note, err = t.previewNote(k, st); err != nil {
+ return nil, err
+ }
+ v.NoteText = retryNotes[v.Note]
+ }
+ out = append(out, v)
}
return out, nil
}
@@ -317,47 +372,17 @@ func (t *txn) rerunPreview(k *taskRecord, st *stepRecord, target string, coordin
return 1, nil
}
-// boundDevboxPreview: a devbox link deployed after its task ended (a
-// re-run, or a preview that finished after the merge) would stay up with
-// nothing to take it down. It gets an expiry, previewRerunUp from now, and
-// the sweep takes it down then (sweepPreviews); any earlier such link of
-// the task is the same link, so only this one's time counts.
-func (t *txn) boundDevboxPreview(k taskRecord, s *stepRecord) error {
- r := decodePreview(s.Preview)
- if !wire.FinalStage(k.Stage) || r == nil || r.Outcome != wire.PreviewDeployed || !strings.HasPrefix(r.App, "eq-") {
- return nil
- }
- at := t.now().Add(previewRerunUp).UTC()
- r.ExpiresAt = &at
- raw, _ := json.Marshal(r)
- s.Preview, s.PreviewDownAt = string(raw), &at
- return t.db.Model(&stepRecord{}).Where("task_id = ? AND id <> ? AND preview_down_at IS NOT NULL", k.ID, s.ID).Update("preview_down_at", nil).Error
-}
-
-// sweepPreviews takes down each devbox link boundDevboxPreview bounded
-// once its time came: the task's forget_task again (releasePreview), once.
-func (t *txn) sweepPreviews() error {
- var due []stepRecord
- if err := t.db.Where("preview_down_at IS NOT NULL AND preview_down_at <= ?", t.now()).Find(&due).Error; err != nil {
- return err
- }
- for _, s := range due {
- if err := t.db.Model(&stepRecord{}).Where("id = ?", s.ID).Update("preview_down_at", nil).Error; err != nil {
- return err
- }
- k, err := t.loadTask(s.TaskID)
- if errors.Is(err, ErrNotFound) {
- continue
- }
- if err != nil {
- return err
- }
- if !wire.FinalStage(k.Stage) {
- continue
- }
- if err := t.releasePreview(k); err != nil {
- return err
- }
+// previewNote is the fixed note beside a task's newest preview: its link
+// on a done task stays up until replaced, or a new preview would build the
+// approved commit because the merged one is not proven.
+func (t *txn) previewNote(k taskRecord, st stepRecord) (string, error) {
+ if devboxAfterDone(k, st) && previewUp(k, st, t.now(), false) {
+ return retryDevboxStaysUp, nil
+ }
+ steps, err := t.steps(k.ID)
+ if err != nil {
+ return "", err
}
- return nil
+ _, note := previewTarget(k, progressFor(k, steps))
+ return note, nil
}
diff --git a/internal/equipo/chat/store.go b/internal/equipo/chat/store.go
index 498b4327..7baa640e 100644
--- a/internal/equipo/chat/store.go
+++ b/internal/equipo/chat/store.go
@@ -1126,11 +1126,6 @@ func (s *Store) Cursor(ctx context.Context) (top int64, err error) {
// Sweep removes events past retention, keeping the newest row so ids are
// never reused, and old acked commands and inbox records.
func (s *Store) Sweep(ctx context.Context) error {
- // Devbox links brought up after their task ended, past their time: in
- // a transaction of its own, so the runners hear it at once.
- if err := s.tx(ctx, func(t *txn) error { return t.sweepPreviews() }); err != nil {
- return err
- }
cut := s.now().Add(-wire.EventRetention)
return s.db.G.WithContext(ctx).Clauses(dbresolver.Write).Transaction(func(tx *gorm.DB) error {
if err := tx.Exec("DELETE FROM chat_events WHERE created_at < ? AND id < (SELECT max(id) FROM chat_events)", cut).Error; err != nil {
diff --git a/internal/equipo/chat/stuck.go b/internal/equipo/chat/stuck.go
index 422e77c3..507e2b9f 100644
--- a/internal/equipo/chat/stuck.go
+++ b/internal/equipo/chat/stuck.go
@@ -128,7 +128,7 @@ func (t *txn) retryPreview(k *taskRecord, st *stepRecord, person string, coordin
st.Attempt++
st.State, st.Reason, st.Terminated, st.Summary, st.LogTail, st.StartedAt, st.FinishedAt, st.Headline, st.Activity = wire.StepQueued, "", false, "", "", nil, nil, "", ""
// Recomputed: no export recorded until this attempt reports one.
- st.Preview, st.Withdrawn, st.RefusedBy, st.PreviewDownAt = "", false, "", nil
+ st.Preview, st.Withdrawn, st.RefusedBy = "", false, ""
if coordinator {
st.CoordinatorAttempt = st.Attempt
}
@@ -143,8 +143,11 @@ const (
toolRetryKinds = "retry_step runs again only a failed preview, checks or review (step: preview, checks or review). A merge is the person's: use offer_retry. Engineering's work is theirs to ask for."
toolRetryStarted = "Started again as attempt %d. Tell the person in one line; the task shows it."
// A done task's preview runs again as a new step.
- toolRetryNewPreview = "Started a new preview of the task's merged commit (or its approved commit when Equipo did not merge it); the task stays done and merged. Tell the person in one line; the task shows it."
- toolStepNotRetried = "Not started: that step has not failed and ended, is not the task's newest (a preview may be behind a merge), or its candidate is no longer the one to judge. read_task shows where it stands."
+ toolRetryNewPreview = "Started a new preview of the task's merged commit; the task stays done and merged. Tell the person in one line; the task shows it."
+ // The merged commit is not proven (merge_unverified), or Equipo did
+ // not merge it: the approved commit is built.
+ toolRetryApprovedPreview = "Started a new preview of the commit Review approved (Equipo could not prove the merged commit is exactly its merge, or did not merge it); the task stays done. Tell the person in one line; the task shows it."
+ toolStepNotRetried = "Not started: that step has not failed and ended, is not the task's newest (a preview may be behind a merge), or its candidate is no longer the one to judge. read_task shows where it stands."
)
// retryStepTool is the coordinator's retry_step: the person's Retry
@@ -196,8 +199,12 @@ func (t *txn) retryStepTool(r turnRecord, args json.RawMessage) (wire.ToolResult
return wire.ToolResult{}, err
}
if now.ID != st.ID {
- // A done task's preview: a new step of the merged commit.
+ // A done task's preview: a new step of the merged commit, or of the
+ // approved commit when the merged one is not proven.
text = toolRetryNewPreview
+ if now.CandidateSHA != k.MergedSHA {
+ text = toolRetryApprovedPreview
+ }
}
if t.s.authority.Audit != nil {
if err := t.s.authority.Audit(t.db, "coordinator:"+r.Person, "task.retry", k.ID+"/"+now.ID+"/"+itoa64(attempt)); err != nil {
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index f5019926..2e798c0e 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -285,10 +285,6 @@ type stepRecord struct {
// HeldAt is when the runner first held the step without a break (nil
// while it is not held): advice's "waited a week".
HeldAt *time.Time
- // PreviewDownAt is when the sweep takes down a devbox link this
- // preview brought up after its task ended (boundDevboxPreview); nil
- // when there is none, or once it was taken down.
- PreviewDownAt *time.Time
}
func (stepRecord) TableName() string { return "chat_steps" }
@@ -795,7 +791,7 @@ func (t *txn) writeStep(s *stepRecord) error {
}
s.Revision++
s.UpdatedAt = t.now()
- if err := t.db.Model(&stepRecord{}).Where("id = ?", s.ID).Select("base_checks", "base_checks_sha", "copy_owner", "copy_revision", "copy_result", "failure_signature", "state", "reason", "attempt", "base_sha", "candidate_sha", "pushed", "terminated", "summary", "log_tail", "started_at", "finished_at", "revision", "updated_at", "headline", "family", "account", "verdict", "review_label", "findings", "checks", "gate", "exit_code", "output", "republish", "from_attempt", "askable", "rebase", "from_base", "from_candidate", "merge_sha", "merge_into", "merge_strategy", "without_checks", "switched", "activity", "runner_id", "needs", "placement", "waiting_since", "refused_by", "withdrawn", "termination_kind", "publication", "publication_id", "apple", "checks_sandbox", "change_files", "change_facts", "decided_by", "merge_source", "merge_parents", "hosted_ci", "kind", "note", "sandbox_runner", "unsandboxed_by", "unsandboxed_at", "unsandboxed_attempt", "unsandboxed_runner", "has_preview", "preview", "boundary", "question", "request_turn", "sources_card", "sources_hash", "research_grant", "research_grant_revision", "hold", "housekeeping_attempt", "coordinator_attempt", "held_at", "publish", "model", "preview_down_at").Updates(s).Error; err != nil {
+ if err := t.db.Model(&stepRecord{}).Where("id = ?", s.ID).Select("base_checks", "base_checks_sha", "copy_owner", "copy_revision", "copy_result", "failure_signature", "state", "reason", "attempt", "base_sha", "candidate_sha", "pushed", "terminated", "summary", "log_tail", "started_at", "finished_at", "revision", "updated_at", "headline", "family", "account", "verdict", "review_label", "findings", "checks", "gate", "exit_code", "output", "republish", "from_attempt", "askable", "rebase", "from_base", "from_candidate", "merge_sha", "merge_into", "merge_strategy", "without_checks", "switched", "activity", "runner_id", "needs", "placement", "waiting_since", "refused_by", "withdrawn", "termination_kind", "publication", "publication_id", "apple", "checks_sandbox", "change_files", "change_facts", "decided_by", "merge_source", "merge_parents", "hosted_ci", "kind", "note", "sandbox_runner", "unsandboxed_by", "unsandboxed_at", "unsandboxed_attempt", "unsandboxed_runner", "has_preview", "preview", "boundary", "question", "request_turn", "sources_card", "sources_hash", "research_grant", "research_grant_revision", "hold", "housekeeping_attempt", "coordinator_attempt", "held_at", "publish", "model").Updates(s).Error; err != nil {
return err
}
if s.Retired {
@@ -1412,9 +1408,6 @@ func (t *txn) stepReport(l Lease, v *wire.StepReport) error {
if err := t.auditPreview(l.Runner.RunnerID, "preview."+decodePreview(done).Outcome, &s, "withdrawn"); err != nil {
return err
}
- if err := t.boundDevboxPreview(k, &s); err != nil {
- return err
- }
if err := t.saveStep(&s, &k); err != nil {
return err
}
@@ -1562,9 +1555,6 @@ func (t *txn) stepReport(l Lease, v *wire.StepReport) error {
if err := t.auditPreview(l.Runner.RunnerID, kind, &s, s.Reason); err != nil {
return err
}
- if err := t.boundDevboxPreview(k, &s); err != nil {
- return err
- }
previewed = kind == "preview.deployed"
case wire.SpecialistPublish:
// Done only for the step's app and the export recorded as
diff --git a/internal/equipo/migrations/0111_preview_down_at.sql b/internal/equipo/migrations/0111_preview_down_at.sql
deleted file mode 100644
index 242dfa6b..00000000
--- a/internal/equipo/migrations/0111_preview_down_at.sql
+++ /dev/null
@@ -1,3 +0,0 @@
--- When the sweep takes down a devbox preview link brought up after its
--- task ended (a preview run again on a merged task); NULL is none.
-ALTER TABLE chat_steps ADD COLUMN preview_down_at datetime;
diff --git a/internal/equipo/migrations/schema.sql b/internal/equipo/migrations/schema.sql
index 272dcaa0..fdf32512 100644
--- a/internal/equipo/migrations/schema.sql
+++ b/internal/equipo/migrations/schema.sql
@@ -799,7 +799,3 @@ CREATE INDEX preview_grant_expiry ON preview_grants(expires_at);
-- Replace pending passes and active grants by indexed device/task identity.
CREATE INDEX idx_preview_passes_device_task ON preview_passes(credential, task_id);
CREATE INDEX idx_preview_grants_device_task ON preview_grants(credential, task_id);
-
--- When the sweep takes down a devbox preview link brought up after its
--- task ended (a preview run again on a merged task); NULL is none.
-ALTER TABLE chat_steps ADD COLUMN preview_down_at datetime;
diff --git a/internal/equipo/preview_pass_store.go b/internal/equipo/preview_pass_store.go
index dbcbc5a4..f236fe96 100644
--- a/internal/equipo/preview_pass_store.go
+++ b/internal/equipo/preview_pass_store.go
@@ -121,7 +121,7 @@ func (s *Store) validatePreview(task wire.Task, b previewBinding) error {
return ErrPreviewChanged
}
// A devbox link comes down with its task, unless it came up after the
- // task was done, with the expiry the instance gave it.
+ // task was done (a preview run again on a merged task).
if (step.Preview.ExpiresAt != nil && !s.runnerClock.Now().Before(*step.Preview.ExpiresAt)) || (strings.HasPrefix(step.Preview.App, "eq-") && wire.FinalStage(task.Stage) && !devboxAfterDone(task, step)) {
return ErrPreviewExpired
}
diff --git a/internal/equipo/work_views.go b/internal/equipo/work_views.go
index a35944e5..e865b8e3 100644
--- a/internal/equipo/work_views.go
+++ b/internal/equipo/work_views.go
@@ -1280,7 +1280,7 @@ func timelineOf(t wire.Task, v taskLine) []timelineItem {
// any (it builds the merged commit), the task not cancelled. The store
// decides again (previewRetryCheck).
func previewRetry(t wire.Task, s wire.Step, mine bool) bool {
- if !mine || s.Specialist != wire.SpecialistPreview || !wire.StepTerminal(s.State) || !s.Terminated || t.Stage == wire.StageCancelled || previewShown(t, s, time.Now()) {
+ if !mine || s.Specialist != wire.SpecialistPreview || !wire.StepTerminal(s.State) || !s.Terminated || t.Stage == wire.StageCancelled || previewShown(t, s, time.Now()) && !devboxAfterDone(t, s) {
return false
}
if t.Stage != wire.StageDone && (t.CandidateSHA == "" || s.CandidateSHA != t.CandidateSHA) {
@@ -1295,10 +1295,9 @@ func previewRetry(t wire.Task, s wire.Step, mine bool) bool {
}
// previewShown reports whether a preview step's link is up now: deployed,
-// before any expiry, and a devbox link only while its task runs or, one
-// that came up after its task was done, until the expiry the instance
-// gave it (the store's previewUp, without a Publish hold, which only
-// keeps a link up longer).
+// before any expiry, and a devbox link only while its task runs or one
+// that came up after its task was done (the store's previewUp, without a
+// Publish hold, which only keeps a link up longer).
func previewShown(t wire.Task, s wire.Step, now time.Time) bool {
p := s.Preview
if s.State != wire.StepDone || p == nil || p.Outcome != wire.PreviewDeployed || p.URL == "" {
@@ -1313,11 +1312,11 @@ func previewShown(t wire.Task, s wire.Step, now time.Time) bool {
return true
}
-// devboxAfterDone: a devbox link that came up after its task was done,
-// with the expiry the instance gave it; any other comes down with the
-// task.
+// devboxAfterDone: a devbox link that came up after its task was done (a
+// preview run again on a merged task); any other comes down with the
+// task. It stays up until the task's next preview replaces it.
func devboxAfterDone(t wire.Task, s wire.Step) bool {
- return s.Preview != nil && s.Preview.ExpiresAt != nil && t.Stage == wire.StageDone && t.DoneAt != nil && s.FinishedAt != nil && s.FinishedAt.After(*t.DoneAt)
+ return s.Preview != nil && strings.HasPrefix(s.Preview.App, "eq-") && t.Stage == wire.StageDone && t.DoneAt != nil && s.FinishedAt != nil && s.FinishedAt.After(*t.DoneAt)
}
// sentenceCase capitalises a reason fragment for a line of its own.
@@ -1584,9 +1583,9 @@ func previewCard(t wire.Task, now time.Time) (url, line string) {
p := s.Preview
if strings.HasPrefix(p.App, "eq-") {
// A CARLOS devbox link: no expiry; it comes down when the task
- // ends, and so does the line. One run again after the task
- // ended has an expiry the instance gave it.
- if wire.FinalStage(t.Stage) && (!devboxAfterDone(t, s) || !p.ExpiresAt.After(now)) {
+ // ends, and so does the line; one run again after the task was
+ // done stays until the next run replaces it.
+ if wire.FinalStage(t.Stage) && (!devboxAfterDone(t, s) || p.ExpiresAt != nil && !p.ExpiresAt.After(now)) {
return "", ""
}
return "/tasks/" + t.ID + "/preview", fmt.Sprintf(copyText("work.card.preview_tailnet"), previewHostLabel(p.URL))
diff --git a/internal/runner/thin/merge_identity_test.go b/internal/runner/thin/merge_identity_test.go
new file mode 100644
index 00000000..f04f18d4
--- /dev/null
+++ b/internal/runner/thin/merge_identity_test.go
@@ -0,0 +1,95 @@
+package thin
+
+import (
+ "context"
+ "os"
+ "path/filepath"
+ "strconv"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+// Merge identity (Astra, previews on done tasks): the commit a landing
+// names is publication authority only when it is proven to be the merge
+// of the approved candidate. These are the shapes, in real git, where the
+// runner's reconciled landing (inspectMerge) names something else: a
+// nested merge, or a merge more than 200 first-parent commits back, are
+// named by the default branch's tip, which holds later work. The
+// instance builds the approved candidate then (chat.verifiedMerge); only
+// the hub's own answer, with the candidate as second parent, is the merge.
+
+// landedThenMoved merges the candidate through the hub, then lets main
+// move on with work in a clone of the remote.
+func landedThenMoved(t *testing.T, more func(work string)) (*Engineer, *hubForge, stepRow, string, string) {
+ t.Helper()
+ e, f, r, cand := hubRig(t)
+ rep := e.Exec(context.Background(), r, func(wire.StepReport) {})
+ if rep.State != wire.StepDone || rep.MergeSource != wire.MergeSourceHub || len(rep.MergeParents) != 2 || rep.MergeParents[1] != cand {
+ t.Fatalf("hub merge %+v", rep)
+ }
+ work := filepath.Join(t.TempDir(), "later")
+ gitOut(t, filepath.Dir(work), "clone", "-q", f.dir, work)
+ more(work)
+ gitOut(t, work, "push", "-q", "-f", "origin", "HEAD:main")
+ return e, f, r, cand, rep.MergeSHA
+}
+
+func commitFile(t *testing.T, work, name, body string) {
+ t.Helper()
+ if err := os.WriteFile(filepath.Join(work, name), []byte(body), 0o644); err != nil {
+ t.Fatal(err)
+ }
+ gitOut(t, work, "add", "-A")
+ gitOut(t, work, "commit", "-q", "-m", name)
+}
+
+// TestMergeIdentityLaterCommits: later commits after the merge leave the
+// merge commit itself the one that brought the candidate in.
+func TestMergeIdentityLaterCommits(t *testing.T) {
+ e, f, r, cand, merge := landedThenMoved(t, func(work string) {
+ for i := range 3 {
+ commitFile(t, work, "later-"+strconv.Itoa(i), "later\n")
+ }
+ })
+ st, err := e.inspectMerge(context.Background(), r.Repo, r.Branch, cand)
+ tip := gitOut(t, f.dir, "rev-parse", "main")
+ if err != nil || !st.Landed || st.MergeSHA != merge || tip == merge {
+ t.Fatalf("inspect %+v %v (merge %s, tip %s)", st, err, merge, tip)
+ }
+}
+
+// TestMergeIdentityFallsBackToTheTip: a nested merge (the candidate came
+// in through another branch's merge) and a merge more than 200
+// first-parent commits back are both named by the tip, whose parents do
+// not have the candidate second: never proof of the merge.
+func TestMergeIdentityFallsBackToTheTip(t *testing.T) {
+ for name, more := range map[string]func(string){
+ "nested": func(work string) {
+ // The candidate reaches main only through another branch's
+ // merge: integration merges it, then main merges integration.
+ gitOut(t, work, "checkout", "-q", "-b", "integration", "main~1")
+ gitOut(t, work, "merge", "-q", "--no-ff", "-m", "integration", "main^2")
+ commitFile(t, work, "integration-only", "x\n")
+ gitOut(t, work, "checkout", "-q", "-B", "main", "origin/main~1")
+ gitOut(t, work, "merge", "-q", "--no-ff", "-m", "bring integration", "integration")
+ },
+ "far": func(work string) {
+ for i := range 201 {
+ commitFile(t, work, "far", strconv.Itoa(i)+"\n")
+ }
+ },
+ } {
+ t.Run(name, func(t *testing.T) {
+ e, f, r, cand, _ := landedThenMoved(t, more)
+ st, err := e.inspectMerge(context.Background(), r.Repo, r.Branch, cand)
+ tip := gitOut(t, f.dir, "rev-parse", "main")
+ if err != nil || !st.Landed || st.MergeSHA != tip {
+ t.Fatalf("inspect %+v %v (tip %s)", st, err, tip)
+ }
+ if parents := e.mergeParents(context.Background(), r.Repo, tip); len(parents) == 2 && parents[1] == cand {
+ t.Fatalf("the tip reads as the candidate's merge: %v", parents)
+ }
+ })
+ }
+}
diff --git a/internal/thintest/preview_retry_done_contract_test.go b/internal/thintest/preview_retry_done_contract_test.go
index 8e01c9d4..369c925d 100644
--- a/internal/thintest/preview_retry_done_contract_test.go
+++ b/internal/thintest/preview_retry_done_contract_test.go
@@ -25,8 +25,25 @@ import (
var mergedSHA = strings.Repeat("9", 40)
// previewedThenMerged is previewedAndMerging with the preview ended by
-// end and the merge confirmed as mergedSHA: the task is done.
+// end and the merge confirmed as mergedSHA, the hub's own merge commit
+// with the candidate as second parent: the task is done.
func (r *toolRig) previewedThenMerged(key, base, cand string, end func(id string, pv *wire.DispatchCommand)) (string, *wire.DispatchCommand, *wire.DispatchCommand) {
+ r.t.Helper()
+ return r.previewedThenLanded(key, base, cand, end, func(m *wire.DispatchCommand) {
+ r.landed(key+"-m", m, mergedSHA, wire.MergeSourceHub, []string{base, cand})
+ })
+}
+
+// landed reports a merge step done as sha, from source with parents.
+func (r *toolRig) landed(key string, d *wire.DispatchCommand, sha, source string, parents []string) {
+ r.t.Helper()
+ r.step(key+"-run", wire.StepReport{TaskID: d.TaskID, StepID: d.StepID, Attempt: d.Attempt, State: wire.StepRunning, BaseSHA: d.BaseSHA, CandidateSHA: d.CandidateSHA})
+ r.step(key, wire.StepReport{TaskID: d.TaskID, StepID: d.StepID, Attempt: d.Attempt, State: wire.StepDone, BaseSHA: d.BaseSHA, CandidateSHA: d.CandidateSHA, Termination: true, Findings: []wire.Finding{}, MergeSHA: sha, Into: "main", Strategy: wire.MergeCommit, MergeSource: source, MergeParents: parents})
+}
+
+// previewedThenLanded is previewedThenMerged with the merge reported by
+// land.
+func (r *toolRig) previewedThenLanded(key, base, cand string, end func(id string, pv *wire.DispatchCommand), land func(m *wire.DispatchCommand)) (string, *wire.DispatchCommand, *wire.DispatchCommand) {
r.t.Helper()
r.asksBeforeMerging()
id, _ := r.pushed(key, "Barber mockups", base, cand)
@@ -63,7 +80,7 @@ func (r *toolRig) previewedThenMerged(key, base, cand string, end func(id string
seen = card.Revision
}
m := r.dispatched(wire.SpecialistMerge, base, cand, 0)
- r.mergedStep(key+"-m", m, mergedSHA)
+ land(m)
r.wait("done", func(c *Conversation) bool { return c.Tasks[id].Stage == wire.StageDone })
return id, pv, m
}
@@ -352,8 +369,9 @@ func TestContractRetryRefusalReasons(t *testing.T) {
// TestContractRetryDevboxPreviewOnMergedTask: a devbox link comes down
// when its task ends, so a done task's deployed devbox preview counts as
-// one to run again. The re-run's link shows for a bounded time, and the
-// hourly sweep then takes it down, once.
+// one to run again. The re-run's link shows on the task, with no expiry:
+// it stays up until the next run replaces it (read_task says so), and
+// that next run may go ahead while it is up.
func TestContractRetryDevboxPreviewOnMergedTask(t *testing.T) {
r := newToolRigAt(t, wire.ProtocolCurrent)
r.pairedWith(&wire.PreviewHost{Kind: wire.PreviewHostDevbox, Domain: "devbox.dev.example"})
@@ -381,35 +399,101 @@ func TestContractRetryDevboxPreviewOnMergedTask(t *testing.T) {
t.Fatal("the preview page does not open the re-run")
}
k, _ := r.client.Task(r.ctx, id)
- up := k.Steps[len(k.Steps)-1].Preview
- if up == nil || up.ExpiresAt == nil || up.ExpiresAt.Before(time.Now().Add(6*24*time.Hour)) || up.ExpiresAt.After(time.Now().Add(8*24*time.Hour)) {
- t.Fatalf("the re-run's link is not bounded %+v", up)
+ if up := k.Steps[len(k.Steps)-1].Preview; up == nil || up.ExpiresAt != nil {
+ t.Fatalf("the re-run's link %+v", up)
}
- if res := r.call("dd2", wire.ToolRetryStep, map[string]string{"task": id, "step": wire.SpecialistPreview}); !res.Replayed {
- t.Fatalf("a second retry in the turn %+v", res)
+ if reason, note := r.retryNote("dd-read", id); reason != "" || note != "devbox_stays_up" {
+ t.Fatalf("read_task %q %q", reason, note)
}
- forgets := r.commandsLike(wire.FrameForgetTask, `"task_id":"`+id+`"`)
- if err := r.inst.Store.Chat().Sweep(r.ctx); err != nil {
- t.Fatal(err)
+ // The next run replaces it: the person's Retry while it is up.
+ if status, _ := r.post(r.inst.Cookie(), "/conversation/tasks/"+id+"/retry", url.Values{"from": {"task"}, "step": {again.StepID}}); status != http.StatusSeeOther {
+ t.Fatalf("Retry %d", status)
}
- if n := r.commandsLike(wire.FrameForgetTask, `"task_id":"`+id+`"`); n != forgets {
- t.Fatal("the sweep took the link down early")
+ if next := r.previewDispatch(mergedSHA); next == nil || next.StepID == again.StepID {
+ t.Fatalf("the next run %+v", next)
}
- if err := r.inst.DB.G.Exec("UPDATE chat_steps SET preview_down_at = ? WHERE id = ?", time.Now().Add(-time.Minute).UTC(), again.StepID).Error; err != nil {
- t.Fatal(err)
+ if k2, _ := r.client.Task(r.ctx, id); k2.Stage != wire.StageDone || *k2.Merged != *k.Merged {
+ t.Fatalf("the re-run moved the task %+v", k2)
}
- for range 2 {
- if err := r.inst.Store.Chat().Sweep(r.ctx); err != nil {
- t.Fatal(err)
- }
+}
+
+// retryNote is read_task's retry for the preview: its reason and note.
+func (r *toolRig) retryNote(key, id string) (string, string) {
+ r.t.Helper()
+ res := r.call(key, wire.ToolReadTask, map[string]string{"task": id})
+ var out struct {
+ Retry []struct {
+ Step string `json:"step"`
+ Reason string `json:"reason"`
+ Note string `json:"note"`
+ NoteText string `json:"note_text"`
+ } `json:"retry"`
}
- if n := r.commandsLike(wire.FrameForgetTask, `"task_id":"`+id+`"`); n != forgets+1 {
- t.Fatalf("forget_task %d times after the link's time (was %d)", n, forgets)
+ if res.IsError || json.Unmarshal([]byte(res.Text), &out) != nil {
+ r.t.Fatalf("read_task %+v", res)
}
- if n := r.commandsLike(wire.FrameForgetTask, `"keep_preview":true`); n != 0 {
- t.Fatal("the sweep kept the preview")
+ for _, x := range out.Retry {
+ if x.Step == wire.SpecialistPreview {
+ if x.Note != "" && x.NoteText == "" {
+ r.t.Fatalf("a note without its words %+v", x)
+ }
+ return x.Reason, x.Note
+ }
}
- if k2, _ := r.client.Task(r.ctx, id); k2.Stage != wire.StageDone || *k2.Merged != *k.Merged {
- t.Fatalf("the sweep moved the task %+v", k2)
+ r.t.Fatal("no preview in read_task's retry")
+ return "", ""
+}
+
+// TestContractRetryPreviewUnverifiedMerge (Astra round 1): a merged
+// commit is publication authority only when proven to be the merge of
+// the approved candidate (the hub's own answer, the candidate its second
+// parent). A reconciled landing past the runner's 200-commit search names
+// the default branch's tip; a nested merge's commit has another second
+// parent; a cached landing says nothing of parents. In each, a preview of
+// the done task builds the approved candidate itself, never the named
+// commit, and read_task and the result say why (merge_unverified).
+func TestContractRetryPreviewUnverifiedMerge(t *testing.T) {
+ later := strings.Repeat("7", 40)
+ for name, landing := range map[string]struct {
+ source string
+ parents func(base, cand string) []string
+ }{
+ "far tip": {wire.MergeSourceReconciled, func(string, string) []string { return nil }},
+ "nested": {wire.MergeSourceHub, func(base, _ string) []string { return []string{base, strings.Repeat("6", 40)} }},
+ "cached": {wire.MergeSourceCached, func(base, cand string) []string { return []string{base, cand} }},
+ "first only": {wire.MergeSourceHub, func(_, cand string) []string { return []string{cand, strings.Repeat("6", 40)} }},
+ } {
+ t.Run(name, func(t *testing.T) {
+ r := publicPreviewRig(t)
+ base, cand := strings.Repeat("1", 40), strings.Repeat("2", 40)
+ id, pv, _ := r.previewedThenLanded("um", base, cand, r.failedPreview("preview_scanner"), func(m *wire.DispatchCommand) {
+ r.landed("um-m", m, later, landing.source, landing.parents(base, cand))
+ })
+ before, _ := r.client.Task(r.ctx, id)
+ if before.Stage != wire.StageDone || before.Merged == nil || before.Merged.SHA != later {
+ t.Fatalf("not merged as the landing said %+v", before.Merged)
+ }
+ if reason, note := r.retryNote("um-read", id); reason != "" || note != "merge_unverified" {
+ t.Fatalf("read_task %q %q", reason, note)
+ }
+ res := r.call("um1", wire.ToolRetryStep, map[string]string{"task": id, "step": wire.SpecialistPreview})
+ if res.IsError || res.Code != "retrying" || !strings.Contains(res.Text, "Review approved") {
+ t.Fatalf("retry_step %+v", res)
+ }
+ if wrong := r.previewDispatch(later); wrong != nil {
+ t.Fatalf("a preview of the unproven commit %+v", wrong)
+ }
+ again := r.previewDispatch(cand)
+ if again == nil || again.StepID == pv.StepID || again.Attempt != 1 {
+ t.Fatalf("the preview of the approved commit %+v", again)
+ }
+ r.built("um-built", again, digestB)
+ if refused := r.lease(r.runner, "um-pub", wire.LeaseCheck{StepID: again.StepID, Attempt: 1, Purpose: wire.LeasePurposePreview, Digest: digestB}); refused != "" {
+ t.Fatalf("publish of the approved commit refused %q", refused)
+ }
+ if k, _ := r.client.Task(r.ctx, id); k.Stage != wire.StageDone || *k.Merged != *before.Merged {
+ t.Fatalf("the preview moved the task %+v", k)
+ }
+ })
}
}