oficina / equipo Public

render_page: writes within the deadline; records on every attempt end

Branch review round 2 (Astra), findings 5 and 8.

- F5 renderpage/tool.go: writeCaptures takes the call's ctx: it writes
  nothing once the deadline has passed, checks before each file and
  again before returning success, and on expiry removes this call's
  files (the existing failure cleanup). The call then ends timeout.
  Seam: captureWritten (after each file).
- F8 runner thin/step.go: every report that ends or advances an
  attempt carries the row's render records: the advance after a
  provider refusal (advanceStep), the restart's settling report
  (RecoverSteps) and the termination proof (proveTermination), as well
  as ReportStep's final report.
- F8 instance chat/design_renders.go: keepRenders takes a report of the
  step's current attempt or the advance from it (same task, person,
  placed runner, maker-bound step) and keeps each record under its own
  attempt, never one the step has not reached. So at the autonomy
  limit the third attempt's records arrive with its advance, before
  the instance holds the replacement off the runner. The voided
  failover's later end changes nothing.
- Budgets: thin, chat.

Tests:
  go test ./internal/runner/renderpage/ -count=3
  go test ./internal/runner/thin/ -run 'Design|Render|Snapshot|WorkSite|
    Recorded|Step|State|Restart|Recover|Preview|ToolHealth|Schedule|
    Failover'
  go test ./internal/equipo/chat/ ./internal/equipo/ ./internal/wire/
    ./internal/runner/render/ ./internal/runner/designstep/
  go test ./internal/thintest/ -run 'Design|Held|Specialist'
  darwin/arm64 build and vet; make budget; runner-dead-references.py
RED:
  TestCallDeadlineCoversWriting: code "" (<nil>), both captures kept
    after a write ran past a 150 ms bound.
  TestRenderAuditOnEveryEnd: the advance report had no renders.
  TestDesignRenderRecordsAcrossFailovers: "the ending attempt's records
    []" (advance not taken).
GREEN: all of the above ok.
Mutations (11, all caught): final ctx check in writeCaptures removed;
  per-file check removed (caught: a file written past the deadline);
  written files not removed; advance, restart and proof reports
  without records; instance refusing advances; instance taking any
  attempt; keyed by the report's attempt; keeping an unreached
  attempt's records; any runner.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev eb8739648d182d9763d9d38987f8b14a3f9c6cfb parent cd24163
7 files changed, +230 −26
  • .rastrillo/budgets.txt +2 −2
  • internal/equipo/chat/design_renders.go +32 −11
  • internal/equipo/chat/design_renders_test.go +74 −2
  • internal/runner/renderpage/tool.go +17 −9
  • internal/runner/renderpage/tool_test.go +38 −1
  • internal/runner/thin/render_page_test.go +50 −0
  • internal/runner/thin/step.go +17 −1

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/specialists-slice-1: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.8s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.9s
ci-box: clone deepened in 6.4s
ci-box: file times set from content: 3406 files, 222 directories
ci-box: ready in 20.1s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.153s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  6.5s
+ go list -export -test -tags testbuild -f  ./...
  6.1s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.8s
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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless
=== RUN   TestHeadless
--- FAIL: TestHeadless (74.03s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless/4c_rebase
=== RUN   TestHeadless/4c_rebase
time=2026-11-29T03:41:37.568Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T03:41:37.568Z level=INFO msg="startup phase done" phase=state_lock took=280µs
time=2026-11-29T03:41:37.568Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T03:41:37.569Z level=INFO msg="startup phase done" phase=claim_roots took=133µs
time=2026-11-29T03:41:37.569Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T03:41:37.627Z level=INFO msg="startup phase done" phase=sweep took=58.501ms
time=2026-11-29T03:41:37.627Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T03:41:37.627Z level=INFO msg="startup phase done" phase=credentials took=131µs
time=2026-11-29T03:41:37.627Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T03:41:37.686Z level=INFO msg="startup phase done" phase=open_state took=58.231ms
time=2026-11-29T03:41:37.687Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T03:41:37.688Z level=INFO msg=connecting host=127.0.0.1:45867 protocol=36
time=2026-11-29T03:41:37.690Z level=INFO msg=connected host=127.0.0.1:45867 took=1.177ms
time=2026-11-29T03:41:37.691Z level=INFO msg="capabilities gathering"
time=2026-11-29T03:41:37.692Z level=INFO msg="capabilities gathered" took=1.26ms tags=linux,claude,go
time=2026-11-29T03:41:37.692Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T03:41:37.700Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T03:41:38.780Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-29T03:41:43.429Z level=INFO msg="kept sessions" kept=1 bytes=2939 expired=0
time=2026-11-29T03:41:49.648Z 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-29T03:41:49.783Z level=WARN msg="step clone" err="signal: killed"
--- FAIL: TestHeadless/4c_rebase (12.74s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m14.03s
FAIL	amadan.net/oficina/equipo/internal/headless	74.295s


receipt: test step 1m16.886s 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 1m14.03s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m14.03s amadan.net/oficina/equipo/internal/headless TestHeadless
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 eb8739648d182d9763d9d38987f8b14a3f9c6cfb 12.74s 72.02
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 68.43, cpu waiting 45.86%, memory waiting 0.00%, io waiting 0.25%
--- 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 1m27.847s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m24.72s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m24.72s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 75.52, cpu waiting 48.40%, memory waiting 0.00%, io waiting 0.30%
--- 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 1m27.87s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m24.929s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.78s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.95s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.2s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 74.60, cpu waiting 48.40%, memory waiting 0.00%, io waiting 0.30%
--- 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 1m23.981s 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 1m20.869s amadan.net/oficina/equipo/internal/headless
receipt: slow test 40.54s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 21.9s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.22s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.21s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 75.52, cpu waiting 47.98%, memory waiting 0.00%, io waiting 0.33%
--- 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 1m43.08s 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 1m40.558s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.47s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.05s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.54s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.43s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.06s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 65.59, cpu waiting 44.58%, memory waiting 0.00%, io waiting 0.23%
--- 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 3m7.387s 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 3m4.095s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m46.1s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 20.73s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.41s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.28s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 26.73, cpu waiting 11.70%, memory waiting 0.00%, io waiting 0.05%
--- 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 2m22.029s 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 2m18.646s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.17s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 4.12s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.92s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 45.37, cpu waiting 24.82%, memory waiting 0.00%, io waiting 0.12%
--- 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 2m4.754s 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 2m1.885s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.79s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.12s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.99s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 4.98s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.02s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 51.68, cpu waiting 31.87%, memory waiting 0.00%, io waiting 0.16%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/runner/thin TestSnapshotRefusesASelfResumingWriter
=== RUN   TestSnapshotRefusesASelfResumingWriter
    worksnap_adversary_linux_test.go:233: 0 of 5 copies saw the page change; 0 refused busy
    worksnap_adversary_linux_test.go:235: the self-resuming writer never wrote during a copy: the test proves nothing
--- FAIL: TestSnapshotRefusesASelfResumingWriter (0.77s)

--- FAIL amadan.net/oficina/equipo/internal/runner/thin (package output)
FAIL
rastrillo-budget/v1 ran 5m33.566s
FAIL	amadan.net/oficina/equipo/internal/runner/thin	333.651s


receipt: test step 5m35.396s 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 5m33.566s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.12s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.94s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.54s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.96s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestSnapshotRefusesASelfResumingWriter$' -count=1 ./internal/runner/thin   (retry, once)
FAILED TWICE ./internal/runner/thin:TestSnapshotRefusesASelfResumingWriter runner-thin
=== RUN   TestSnapshotRefusesASelfResumingWriter
    worksnap_adversary_linux_test.go:233: 0 of 5 copies saw the page change; 0 refused busy
    worksnap_adversary_linux_test.go:235: the self-resuming writer never wrote during a copy: the test proves nothing
--- FAIL: TestSnapshotRefusesASelfResumingWriter (0.78s)
FAIL
rastrillo-budget/v1 ran 776ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.787s
FAIL
machine: 32 CPUs, load 4.10, cpu waiting 0.95%, memory waiting 0.00%, io waiting 0.00%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 8 of 29 failed: exit status 2
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 51.636s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 50.423s amadan.net/oficina/equipo/internal/runner
receipt: slow test 30.39s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 57.03, cpu waiting 35.34%, memory waiting 0.00%, io waiting 0.57%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 1m5.555s 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 1m4.093s amadan.net/oficina/equipo/internal/runner
receipt: slow test 54.02s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 46.66s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.42s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 70.68, cpu waiting 44.27%, memory waiting 0.00%, io waiting 0.43%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 36.978s 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.987s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.4s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.22s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 33.05, cpu waiting 23.72%, memory waiting 0.00%, io waiting 0.72%
--- 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.1%, load 26.44
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 1m13.201s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m10.997s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 30.96s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 30.91s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 28.38s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 25.38s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
receipt: slow test 25.34s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 65.59, cpu waiting 44.58%, memory waiting 0.00%, io waiting 0.23%
--- 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.1%, load 26.44
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 2m18.79s 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 2m16.529s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 21.81s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 21.79s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 21.76s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
receipt: slow test 21.76s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 21.75s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
machine: 32 CPUs, load 31.61, cpu waiting 16.32%, memory waiting 0.00%, io waiting 0.07%
--- 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.1%, load 26.44
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
budget note: internal/equipotest took 5m36.856s, over the 5m0s its record on line 15 allows; reported only, timing fails on CI

receipt: test step 5m42.962s 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 5m36.856s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m43.56s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.38s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.32s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.27s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.22s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 2.71, cpu waiting 0.54%, memory waiting 0.00%, io waiting 0.00%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 40.1%, load 26.44
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 1m12.193s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m9.973s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.86s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 27.86s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 27.47s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.78s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsConcurrentRevision
receipt: slow test 25.65s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 68.43, cpu waiting 45.37%, memory waiting 0.00%, io waiting 0.24%
--- 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.1%, load 26.44
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test
--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries
--- FAIL: TestPlan3ReleaseBoundaries (0.38s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test TestPlan3ReleaseBoundaries/inventory
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance chat.specialist.capability.branch.edit
--- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)

--- FAIL amadan.net/oficina/equipo/internal/plan3test (package output)
FAIL
rastrillo: budget test: go test failed
rastrillo-budget/v1 ran 56.985s
FAIL	amadan.net/oficina/equipo/internal/plan3test	57.361s


receipt: test step 59.207s 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 56.985s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.02s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.65s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.8s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.41s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestPlan3ReleaseBoundaries$/^inventory$' -count=1 ./internal/plan3test   (retry, once)
FAILED TWICE ./internal/plan3test:TestPlan3ReleaseBoundaries/inventory plan3test
=== RUN   TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance chat.specialist.capability.branch.edit
--- FAIL: TestPlan3ReleaseBoundaries (0.02s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)
FAIL
rastrillo-budget/v1 ran 19ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.205s
FAIL
machine: 32 CPUs, load 74.60, cpu waiting 48.42%, memory waiting 0.00%, io waiting 0.29%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 16 of 29 failed: exit status 2
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 40.1%, load 26.44
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/render ./internal/runner/renderpage ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/render ./internal/runner/renderpage ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/chatmarkdown: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldStopsEveryWriter
=== RUN   TestHoldStopsEveryWriter
    pause_linux_test.go:238: Hold: sandbox could not be paused in time (called false)
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsEveryWriter (0.11s)

--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldResumesAfterPanic
=== RUN   TestHoldResumesAfterPanic
    pause_linux_test.go:270: Hold returned past the panic
    pause_linux_test.go:263: recovered <nil>
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldResumesAfterPanic (0.99s)

--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldResumesAtTheBound
=== RUN   TestHoldResumesAtTheBound
    pause_linux_test.go:298: writers not resumed at the bound while the work ran on: moved []
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldResumesAtTheBound (0.89s)

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

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

--- FAIL amadan.net/oficina/equipo/internal/runner/renderpage TestCallHasOneDeadline
=== RUN   TestCallHasOneDeadline
    tool_test.go:669: sites [2026-11-29 03:41:43.2479503 +0000 UTC m=+5.236842949 2026-11-29 03:41:43.2479503 +0000 UTC m=+5.236842949], renders [2026-11-29 03:41:43.2479503 +0000 UTC m=+5.236842949]
--- FAIL: TestCallHasOneDeadline (0.33s)

--- FAIL amadan.net/oficina/equipo/internal/runner/renderpage TestCallDeadlineCoversWriting
=== RUN   TestCallDeadlineCoversWriting
--- FAIL: TestCallDeadlineCoversWriting (0.19s)
panic: runtime error: index out of range [-1] [recovered, repanicked]

goroutine 60 [running]:
testing.tRunner.func1.2({0x3b1480, 0x213fa10d3530})
	/usr/local/go/src/testing/testing.go:1974 +0x1a0
testing.tRunner.func1()
	/usr/local/go/src/testing/testing.go:1977 +0x318
panic({0x3b1480?, 0x213fa10d3530?})
	/usr/local/go/src/runtime/panic.go:860 +0x12c
amadan.net/oficina/equipo/internal/runner/renderpage.TestCallDeadlineCoversWriting.func2(0x213fa1194248)
	/work/equipo/internal/runner/renderpage/tool_test.go:808 +0x37c
testing.tRunner(0x213fa1194248, 0x213fa1196020)
	/usr/local/go/src/testing/testing.go:2036 +0xc4
created by testing.(*T).Run in goroutine 59
	/usr/local/go/src/testing/testing.go:2101 +0x3a8

--- FAIL amadan.net/oficina/equipo/internal/runner/renderpage TestCallDeadlineCoversWriting/1-work-1.png
=== RUN   TestCallDeadlineCoversWriting/1-work-1.png
--- FAIL: TestCallDeadlineCoversWriting/1-work-1.png (0.19s)

--- FAIL amadan.net/oficina/equipo/internal/runner/renderpage (package output)
FAIL	amadan.net/oficina/equipo/internal/runner/renderpage	6.823s

--- FAIL amadan.net/oficina/equipo/internal/testci TestBudgetRecordsAreShort
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:17: reason is 302 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 321 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:29: reason is 223 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:41: record is 625 bytes, over 500: keep the reason to the measured value and a short why
    budgets_file_test.go:33: .rastrillo/budgets.txt:59: record is 678 bytes, over 500: keep the reason to the measured value and a short why
    budgets_file_test.go:37: .rastrillo/budgets.txt:74: reason is 308 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)

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

budget: amadan.net/oficina/equipo/internal/runner/designstep ran tests but printed no time: add func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
budget note: internal/equipo took 2m41.544s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 44.256s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 41.776s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 14.116s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m6.68s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 52.696s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m8.315s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 30.103s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 16.63s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m21.549s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/render took 1m29.713s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m47.792s against a 60s target (the gate's other steps are not in this figure)
receipt: 53 packages ran, 17 cached, 17 without tests, 3 failed
receipt: slow package 2m41.544s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m6.68s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m29.713s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 1m21.549s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m11.586s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 58.08s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 50.59s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 50.33s amadan.net/oficina/equipo/internal/runner/render TestLaunchNeverClaimsAnUnprovenEnd
receipt: slow test 50.3s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 50.27s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestHoldResumesAfterPanic$|^TestHoldResumesAtTheBound$|^TestHoldStopsAReparentedDaemon$|^TestHoldStopsEveryWriter$' -count=1 ./internal/runner/pause   (retry, once)
FAILED TWICE ./internal/runner/pause:TestHoldResumesAfterPanic rest
FAILED TWICE ./internal/runner/pause:TestHoldResumesAtTheBound rest
FAILED TWICE ./internal/runner/pause:TestHoldStopsAReparentedDaemon rest
FAILED TWICE ./internal/runner/pause:TestHoldStopsEveryWriter rest
=== RUN   TestHoldStopsEveryWriter
--- PASS: TestHoldStopsEveryWriter (0.32s)
=== RUN   TestHoldResumesAfterPanic
--- PASS: TestHoldResumesAfterPanic (0.12s)
=== RUN   TestHoldResumesAtTheBound
--- PASS: TestHoldResumesAtTheBound (1.21s)
=== RUN   TestHoldStopsAReparentedDaemon
    pause_linux_test.go:603: daemon made no progress in 2s
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsAReparentedDaemon (2.31s)
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/pause	3.960s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestCallDeadlineCoversWriting$/^1\-work\-1\.png$|^TestCallHasOneDeadline$' -count=1 ./internal/runner/renderpage   (retry, once)
##############################################################################
FLAKE ./internal/runner/renderpage:TestCallDeadlineCoversWriting/1-work-1.png rest eb8739648d182d9763d9d38987f8b14a3f9c6cfb 0.19s 21.88
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/runner/renderpage:TestCallHasOneDeadline rest eb8739648d182d9763d9d38987f8b14a3f9c6cfb 0.33s 21.88
##############################################################################
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 '^TestBudgetRecordsAreShort$' -count=1 ./internal/testci   (retry, once)
FAILED TWICE ./internal/testci:TestBudgetRecordsAreShort rest
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:17: reason is 302 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 321 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:29: reason is 223 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:41: record is 625 bytes, over 500: keep the reason to the measured value and a short why
    budgets_file_test.go:33: .rastrillo/budgets.txt:59: record is 678 bytes, over 500: keep the reason to the measured value and a short why
    budgets_file_test.go:37: .rastrillo/budgets.txt:74: reason is 308 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/testci	0.004s
FAIL
machine: 32 CPUs, load 20.29, cpu waiting 8.96%, memory waiting 0.00%, io waiting 0.03%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 17 of 29 failed: exit status 2
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m27.763s 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 1m25.596s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.33s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.08s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.98s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.66s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 7.02s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 74.60, cpu waiting 48.42%, memory waiting 0.00%, io waiting 0.29%
--- 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 1m41.519s 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 1m39.212s amadan.net/oficina/equipo/internal/headless
receipt: slow test 31.18s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 25s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.35s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.93s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.87s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 68.43, cpu waiting 44.58%, memory waiting 0.00%, io waiting 0.23%
--- 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 1m57.969s 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 1m55.621s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.1s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.4s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 13.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.4s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
machine: 32 CPUs, load 54.70, cpu waiting 35.04%, memory waiting 0.00%, io waiting 0.17%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-29T03:41:24.457Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T03:41:24.457Z level=INFO msg="startup phase done" phase=state_lock took=228µs
time=2026-11-29T03:41:24.458Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T03:41:24.458Z level=INFO msg="startup phase done" phase=claim_roots took=206µs
time=2026-11-29T03:41:24.458Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T03:41:24.516Z level=INFO msg="startup phase done" phase=sweep took=58.062ms
time=2026-11-29T03:41:24.516Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T03:41:24.516Z level=INFO msg="startup phase done" phase=credentials took=196µs
time=2026-11-29T03:41:24.519Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T03:41:24.573Z level=INFO msg="startup phase done" phase=open_state took=54.398ms
time=2026-11-29T03:41:24.574Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T03:41:24.575Z level=INFO msg=connecting host=127.0.0.1:35235 protocol=36
time=2026-11-29T03:41:24.578Z level=INFO msg=connected host=127.0.0.1:35235 took=1.033ms
time=2026-11-29T03:41:24.578Z level=INFO msg="capabilities gathering"
time=2026-11-29T03:41:24.578Z level=INFO msg="capabilities gathered" took=448µs tags=linux,claude,go
time=2026-11-29T03:41:24.583Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T03:41:24.588Z level=INFO msg=welcome protocol=36 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.41s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m46.012s
FAIL	amadan.net/oficina/equipo/internal/headless	106.237s


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

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

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

receipt: test step 12.189s 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.685s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.31s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.37s 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 4.309s 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.554s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.55s 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 3m43.568s 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 3m40.669s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 28.07s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.75s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.2s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.82, cpu waiting 3.77%, memory waiting 0.00%, io waiting 0.01%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (54s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.70s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.25s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.50s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.92s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.80s
+ 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   (71s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 17.18s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 15.27s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.76s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.57s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.61s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 72.02, cpu waiting 45.94%, memory waiting 0.00%, io waiting 0.39%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 14.708s 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.729s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 219ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 77ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.56s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.73s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 340ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms 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 4.245s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.228s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 330ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 21.68, cpu waiting 12.52%, memory waiting 0.00%, io waiting 0.97%
--- 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 43.0%, load 26.44
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 3118 text files, 3333 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 99 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.651s
machine: 32 CPUs, load 74.60, cpu waiting 47.78%, memory waiting 0.00%, io waiting 0.28%
--- 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.1%, load 26.44
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
internal/runner/thin/render_page_test.go:210:48: error should be returned as the last argument (ST1008)
internal/wire/design_test.go:245:76: string literal contains the Unicode format character U+202E, consider using the '\u202e' escape sequence instead (ST1018)
exit status 1
make[1]: *** [Makefile:195: staticcheck] Error 1
machine: 32 CPUs, load 66.65, cpu waiting 41.31%, memory waiting 0.00%, io waiting 0.48%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 26 of 29 failed: exit status 2
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 40.1%, load 26.44
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 60.87, cpu waiting 37.84%, memory waiting 0.00%, io waiting 0.53%
--- 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.1%, load 26.44
shard 28: make gitleaks
3:41AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
3:41AM INF 1304 commits scanned.
3:41AM INF scanned ~70174380 bytes (70.17 MB) in 27.6s
3:41AM INF no leaks found
machine: 32 CPUs, load 60.87, cpu waiting 39.02%, memory waiting 0.00%, io waiting 0.51%

amadan: job failed at step check shards 8, 16, 17, 26 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 809f735a..61b2cd52 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 31775 27884 Protocol 31 facts, 35 diffs, merge credential, publication guards, kept work, CI units, 34 places publish, GitHub token scans, waiting cards in the Assistant opening, the page renderer health, the paused work snapshot and render_page's step (sites, counts), 36 project proposals answered on older links and the Design step glue and its re-authorized launches, the Design prompt's exploration and brief and the bound continuation's framing, render_page's records on the step and its report, the snapshot within the call's deadline; measured 31775/27884.
+size internal/runner/thin 31791 27934 Protocol 31 facts, 35 diffs, merge credential, publication guards, kept work, CI units, 34 places publish, GitHub token scans, waiting cards in the Assistant opening, the page renderer health, the paused work snapshot and render_page's step (sites, counts), 36 project proposals answered on older links and the Design step glue and its re-authorized launches, the Design prompt's exploration and brief and the bound continuation's framing, render_page's records on the step and every report that ends or advances an attempt, the snapshot within the call's deadline; measured 31791/27934.
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 40021 15780 File facts/diffs, previews, merge authority, unfinished work, CI feedback, notification receipts, Assistant files, places and where their cards land, waiting cards, 36 proposal project and Build's note, scoped specialists and their continuation, grants and step bindings, Design routing, the autonomy limit and the recovery card (any maker that stops resolving), Design's captures kept by the final report and Build's note, failovers within the autonomy limit, only the creator's acts reset it, and held Design work settled when its maker stops resolving, Design's render records kept on the step; measured 40021/15780.
+size internal/equipo/chat 40042 15852 File facts/diffs, previews, merge authority, unfinished work, CI feedback, notification receipts, Assistant files, places and where their cards land, waiting cards, 36 proposal project and Build's note, scoped specialists and their continuation, grants and step bindings, Design routing, the autonomy limit and the recovery card (any maker that stops resolving), Design's captures kept by the final report and Build's note, failovers within the autonomy limit, only the creator's acts reset it, and held Design work settled when its maker stops resolving, Design's render records kept on the step by their own attempt; measured 40042/15852.
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.
diff --git a/internal/equipo/chat/design_renders.go b/internal/equipo/chat/design_renders.go
index 49c512f8..d54c498a 100644
--- a/internal/equipo/chat/design_renders.go
+++ b/internal/equipo/chat/design_renders.go
@@ -29,12 +29,17 @@ type stepRenderRecord struct {
func (stepRenderRecord) TableName() string { return "chat_step_renders" }
-// keepRenders keeps a step report's render records, replacing the ones
-// kept before for its attempt, when the report is of a step of its task
-// bound to a specialist, for the step's current attempt, from the runner
-// it is placed on, its person's, and the wire takes them
-// (wire.ValidRenderAudits). Anything else keeps nothing and refuses
-// nothing: the report goes on as it would without them.
+// keepRenders keeps a step report's render records, each for the attempt
+// it belongs to (its own Attempt), replacing what was kept for that
+// attempt before. The report must be of a step of its task bound to a
+// specialist, its person's, from the runner it is placed on, for the
+// step's current attempt or the one that advances it (a failover: the
+// runner's row carries the ending attempt's records, and at the autonomy
+// limit nothing more of that attempt is taken), and the wire must take
+// the records (wire.ValidRenderAudits). Only records of attempts the
+// step has reached are kept: none of an attempt that never ran. Anything
+// else keeps nothing and refuses nothing: the report goes on as it would
+// without them.
func (t *txn) keepRenders(l Lease, v *wire.StepReport) error {
if len(v.Renders) == 0 || wire.ValidRenderAudits(v.Renders, v.Attempt) != nil {
return nil
@@ -47,14 +52,30 @@ func (t *txn) keepRenders(l Lease, v *wire.StepReport) error {
if err != nil {
return err
}
- if s.SpecialistID == "" || s.Person != l.Runner.Person || s.RunnerID != l.Runner.RunnerID || s.Attempt != v.Attempt {
+ if s.SpecialistID == "" || s.Person != l.Runner.Person || s.RunnerID != l.Runner.RunnerID || v.Attempt != s.Attempt && v.Attempt != s.Attempt+1 {
return nil
}
- raw, err := json.Marshal(v.Renders)
- if err != nil {
- return err
+ byAttempt := map[int64][]wire.RenderAudit{}
+ var attempts []int64
+ for _, rec := range v.Renders {
+ if rec.Attempt > s.Attempt {
+ continue
+ }
+ if _, ok := byAttempt[rec.Attempt]; !ok {
+ attempts = append(attempts, rec.Attempt)
+ }
+ byAttempt[rec.Attempt] = append(byAttempt[rec.Attempt], rec)
+ }
+ for _, a := range attempts {
+ raw, err := json.Marshal(byAttempt[a])
+ if err != nil {
+ return err
+ }
+ if err := t.db.Save(&stepRenderRecord{StepID: s.ID, Attempt: a, Renders: string(raw), UpdatedAt: t.now()}).Error; err != nil {
+ return err
+ }
}
- return t.db.Save(&stepRenderRecord{StepID: s.ID, Attempt: s.Attempt, Renders: string(raw), UpdatedAt: t.now()}).Error
+ return nil
}
// stepRenders are the render records kept for a step's attempt.
diff --git a/internal/equipo/chat/design_renders_test.go b/internal/equipo/chat/design_renders_test.go
index 45a40c36..19b1778c 100644
--- a/internal/equipo/chat/design_renders_test.go
+++ b/internal/equipo/chat/design_renders_test.go
@@ -1,6 +1,7 @@
package chat
import (
+ "errors"
"slices"
"strings"
"testing"
@@ -17,6 +18,9 @@ func designRenders() []wire.RenderAudit {
}
}
+// stepFrames numbers applyStep's frames: each frame id once.
+var stepFrames int64
+
// applyStep sends a step report through the runner frame's own path.
func (r *hkRig) applyStep(l Lease, s stepRecord, v wire.StepReport) {
r.t.Helper()
@@ -27,7 +31,8 @@ func (r *hkRig) applyStep(l Lease, s stepRecord, v wire.StepReport) {
if v.Findings == nil {
v.Findings = []wire.Finding{}
}
- f, err := wire.NewFrame("sr-"+s.ID+"-"+itoa64(int64(len(v.Renders)))+v.State, wire.FrameStep, v)
+ stepFrames++
+ f, err := wire.NewFrame("sr-"+itoa64(stepFrames), wire.FrameStep, v)
r.must(err)
r.must(r.s.Apply(r.ctx, l, f, &v))
}
@@ -55,7 +60,7 @@ func TestDesignRenderRecordsKept(t *testing.T) {
return tx.keepRenders(other, &wire.StepReport{TaskID: s.TaskID, StepID: s.ID, Attempt: s.Attempt, Renders: designRenders()})
}))
r.must(r.tx(func(tx *txn) error {
- return tx.keepRenders(l, &wire.StepReport{TaskID: s.TaskID, StepID: s.ID, Attempt: s.Attempt + 1, Renders: designRenders()})
+ return tx.keepRenders(l, &wire.StepReport{TaskID: s.TaskID, StepID: s.ID, Attempt: s.Attempt + 2, Renders: designRenders()})
}))
r.must(r.tx(func(tx *txn) error {
return tx.keepRenders(l, &wire.StepReport{TaskID: "tk-other", StepID: s.ID, Attempt: s.Attempt, Renders: designRenders()})
@@ -83,3 +88,70 @@ func (r *hkRig) stepRenders(step string, attempt int64) []wire.RenderAudit {
r.must(err)
return got
}
+
+// TestDesignRenderRecordsAcrossFailovers (branch review round 2, finding
+// 8): records are kept by the attempt they belong to. A failover under
+// the limit carries the ending attempt's records, kept for it while the
+// step runs on; its final report then carries both attempts', each kept
+// for its own. A failover at the autonomy limit carries the third
+// attempt's records: they are kept for it, though the instance then
+// holds the replacement off the runner, and the failover attempt's
+// cancelled end, which the instance no longer takes from that runner,
+// changes nothing.
+func TestDesignRenderRecordsAcrossFailovers(t *testing.T) {
+ r, l, _ := grantRig(t)
+ sp := r.active(l, "Patrix", "p_patrix")
+ task, s := r.runningDesign(l, sp, wire.KindChange)
+ first := wire.RenderAudit{Call: 1, Attempt: s.Attempt, Tree: wire.RenderTreeWork, Pages: 1, Captures: 1, Files: 1, DurationMS: 800, Outcome: wire.RenderRendered}
+ // A record of the attempt the advance starts is of one that has not
+ // run: not kept.
+ early := wire.RenderAudit{Call: 2, Attempt: s.Attempt + 1, Tree: wire.RenderTreeWork, Pages: 1, Captures: 1, Outcome: "busy"}
+ r.applyStep(l, s, wire.StepReport{Attempt: s.Attempt + 1, State: wire.StepRunning, Renders: []wire.RenderAudit{first, early}})
+ moved := r.stepNow(s.ID)
+ if moved.Attempt != s.Attempt+1 || moved.State != wire.StepRunning {
+ t.Fatalf("the failover %+v", moved)
+ }
+ if got := r.stepRenders(s.ID, s.Attempt); !slices.Equal(got, []wire.RenderAudit{first}) {
+ t.Fatalf("the ending attempt's records %+v", got)
+ }
+ if got := r.stepRenders(s.ID, moved.Attempt); got != nil {
+ t.Fatalf("the starting attempt's records %+v", got)
+ }
+ second := wire.RenderAudit{Call: 2, Attempt: moved.Attempt, Tree: wire.RenderTreeBase, Pages: 1, Captures: 1, DurationMS: 30, Outcome: "no_site"}
+ r.applyStep(l, moved, wire.StepReport{State: wire.StepFailed, Reason: "model_failed", Termination: true, Renders: []wire.RenderAudit{first, second}})
+ if got := r.stepRenders(s.ID, s.Attempt); !slices.Equal(got, []wire.RenderAudit{first}) {
+ t.Fatalf("the first attempt's after the end %+v", got)
+ }
+ if got := r.stepRenders(s.ID, moved.Attempt); !slices.Equal(got, []wire.RenderAudit{second}) {
+ t.Fatalf("the second attempt's %+v", got)
+ }
+ // At the limit.
+ third := r.failAndRetry(l, task)
+ r.ackDispatches(third.ID)
+ if refused := r.authorize(l, third, ""); refused != "" {
+ t.Fatalf("third start %q", refused)
+ }
+ third = r.stepNow(third.ID)
+ r.exec("UPDATE chat_tasks SET design_runs = ? WHERE id = ?", wire.DesignRunLimit, task)
+ rendered := wire.RenderAudit{Call: 1, Attempt: third.Attempt, Tree: wire.RenderTreeCompare, Pages: 1, Captures: 2, Files: 3, DurationMS: 5000, Outcome: wire.RenderRendered}
+ r.applyStep(l, third, wire.StepReport{Attempt: third.Attempt + 1, State: wire.StepRunning, Renders: []wire.RenderAudit{rendered}})
+ held := r.stepNow(third.ID)
+ if held.State != wire.StepQueued || held.Placement != wire.PlacementDesignLimit || held.RunnerID != "" {
+ t.Fatalf("not held at the limit %+v", held)
+ }
+ if got := r.stepRenders(third.ID, third.Attempt); !slices.Equal(got, []wire.RenderAudit{rendered}) {
+ t.Fatalf("the held step's ending attempt's records %+v", got)
+ }
+ end := wire.StepReport{TaskID: task, StepID: third.ID, Attempt: third.Attempt + 1, State: wire.StepCancelled, Reason: "withdrawn", Termination: true, Findings: []wire.Finding{}, Renders: []wire.RenderAudit{{Call: 1, Attempt: third.Attempt + 1, Tree: wire.RenderTreeWork, Pages: 1, Captures: 1, Outcome: "busy"}}}
+ f, err := wire.NewFrame("sr-end", wire.FrameStep, end)
+ r.must(err)
+ if err := r.s.Apply(r.ctx, l, f, &end); err != nil && !errors.Is(err, ErrRefused) {
+ t.Fatal(err)
+ }
+ if got := r.stepRenders(third.ID, third.Attempt+1); got != nil {
+ t.Fatalf("the voided attempt's records %+v", got)
+ }
+ if got := r.stepRenders(third.ID, third.Attempt); !slices.Equal(got, []wire.RenderAudit{rendered}) {
+ t.Fatalf("after the voided attempt's end %+v", got)
+ }
+}
diff --git a/internal/runner/renderpage/tool.go b/internal/runner/renderpage/tool.go
index 6b934bdb..8b44a95b 100644
--- a/internal/runner/renderpage/tool.go
+++ b/internal/runner/renderpage/tool.go
@@ -229,11 +229,8 @@ func (t *Tool) accepted(ctx context.Context, step Step, req Request, usage Usage
caps, pngs = append(caps, r.captures...), append(pngs, r.pngs...)
}
caps, pngs = append(caps, diffs...), append(pngs, diffPNGs...)
- // Nothing past the deadline is written.
- if err := ctx.Err(); err != nil {
- return "", nil, err
- }
- if err := writeCaptures(step.Dir(), caps, pngs); err != nil {
+ // Nothing past the deadline is written, or kept (writeCaptures).
+ if err := writeCaptures(ctx, step.Dir(), caps, pngs); err != nil {
return "", nil, err
}
return reply(req, usage, done, diffs), caps, nil
@@ -339,10 +336,16 @@ func diffPage(base, work *rendered, i int, p render.Page, call int) (Capture, []
return Capture{File: fmt.Sprintf("%d-diff-%d.png", call, i+1), Tree: "diff", Digest: work.digest, Page: p, Width: w, Height: h, Bytes: int64(len(png)), Diff: true, Changed: ratio}, png, nil
}
+// captureWritten runs after each capture is in place (a seam for the
+// tests: a slow write).
+var captureWritten = func(name string) {}
+
// writeCaptures writes each PNG to dir (made private) under its name,
-// each through a temporary file renamed into place, never over another;
-// on any failure the ones written are removed.
-func writeCaptures(dir string, caps []Capture, pngs [][]byte) (err error) {
+// each through a temporary file renamed into place, never over another,
+// within ctx (the call's deadline): nothing is written once it has
+// ended, and a write that ends past it is not kept. On any failure, the
+// deadline's included, the ones written are removed.
+func writeCaptures(ctx context.Context, dir string, caps []Capture, pngs [][]byte) (err error) {
if err := privateDir(dir); err != nil {
return err
}
@@ -360,6 +363,9 @@ func writeCaptures(dir string, caps []Capture, pngs [][]byte) (err error) {
}
}()
for i, c := range caps {
+ if err := ctx.Err(); err != nil {
+ return err
+ }
tmp := "." + c.File + ".tmp"
root.Remove(tmp)
f, err := root.OpenFile(tmp, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0o600)
@@ -380,8 +386,10 @@ func writeCaptures(dir string, caps []Capture, pngs [][]byte) (err error) {
return err
}
written = append(written, c.File)
+ captureWritten(c.File)
}
- return nil
+ // Written, but only kept within the deadline.
+ return ctx.Err()
}
// privateDir makes dir (and its parents) if need be and checks it is a
diff --git a/internal/runner/renderpage/tool_test.go b/internal/runner/renderpage/tool_test.go
index 70b22890..d698503f 100644
--- a/internal/runner/renderpage/tool_test.go
+++ b/internal/runner/renderpage/tool_test.go
@@ -564,7 +564,7 @@ func TestWriteCapturesNeverReplaces(t *testing.T) {
t.Fatal(err)
}
caps := []Capture{{File: "1-work-1.png"}, {File: "1-work-2.png"}}
- if err := writeCaptures(dir, caps, [][]byte{[]byte("one"), []byte("two")}); err == nil {
+ if err := writeCaptures(context.Background(), dir, caps, [][]byte{[]byte("one"), []byte("two")}); err == nil {
t.Fatal("wrote over a file")
}
if raw, _ := os.ReadFile(filepath.Join(dir, "1-work-2.png")); string(raw) != "earlier" {
@@ -782,3 +782,40 @@ func TestCallIsAudited(t *testing.T) {
}
}
}
+
+// TestCallDeadlineCoversWriting (branch review round 2, finding 5): the
+// call's deadline holds through writing its captures. A write that runs
+// past it ends the call timeout, and this call's files are removed: none
+// is left for the model to read or for submit_candidate to name.
+func TestCallDeadlineCoversWriting(t *testing.T) {
+ before := captureWritten
+ t.Cleanup(func() { captureWritten = before })
+ // Slow after the first file (the next is never written) and after
+ // the last (all are written, then removed).
+ for _, slow := range []string{"1-work-1.png", "1-work-2.png"} {
+ t.Run(slow, func(t *testing.T) {
+ shortCall(t, 150*time.Millisecond)
+ var wrote []string
+ captureWritten = func(name string) {
+ wrote = append(wrote, name)
+ if name == slow {
+ time.Sleep(250 * time.Millisecond)
+ }
+ }
+ r := newRig(t)
+ text, caps, err := r.call(t, workTwo)
+ timedOut(t, r, text, caps, err)
+ if wrote[len(wrote)-1] != slow {
+ t.Fatalf("written past the deadline: %v", wrote)
+ }
+ if len(r.step.audits) != 1 || r.step.audits[0].Outcome != CodeTimeout || r.step.audits[0].Files != 0 {
+ t.Fatalf("records %+v", r.step.audits)
+ }
+ // A write within the deadline keeps every file.
+ captureWritten = before
+ if _, caps, err := r.call(t, workTwo); err != nil || len(caps) != 2 || len(dirNames(t, r.step.dir)) != 2 {
+ t.Fatalf("a call within its deadline: %+v %v %v", caps, err, dirNames(t, r.step.dir))
+ }
+ })
+ }
+}
diff --git a/internal/runner/thin/render_page_test.go b/internal/runner/thin/render_page_test.go
index 223cc7b6..bd882409 100644
--- a/internal/runner/thin/render_page_test.go
+++ b/internal/runner/thin/render_page_test.go
@@ -336,3 +336,53 @@ func TestRenderAuditOnTheStep(t *testing.T) {
t.Fatalf("a step without renders %+v", reps)
}
}
+
+// TestRenderAuditOnEveryEnd (branch review round 2, finding 8): every
+// report that ends or advances an attempt carries the step's render
+// records: the advance after a provider refusal (the instance may hold
+// the next attempt at the autonomy limit, and never hear from this one
+// again), the restart's settling of an attempt left running, and the
+// follow-up that proves an attempt's end.
+func TestRenderAuditOnEveryEnd(t *testing.T) {
+ ctx := context.Background()
+ e, r := renderEngineer(t, t.TempDir())
+ s := e.O.State
+ one := wire.RenderAudit{Call: 1, Tree: wire.RenderTreeWork, Pages: 1, Captures: 1, Files: 1, DurationMS: 900, Outcome: wire.RenderRendered}
+ if err := s.recordRender(ctx, r, one); err != nil {
+ t.Fatal(err)
+ }
+ one.Attempt = 1
+ if err := s.advanceStep(ctx, &r, nil, wire.StepReport{TaskID: r.TaskID, StepID: r.StepID, Attempt: 1, Findings: []wire.Finding{}}); err != nil || r.Attempt != 2 {
+ t.Fatal(err)
+ }
+ reps := outbox(t, s)
+ if len(reps) != 1 || reps[0].Attempt != 2 || reps[0].State != wire.StepRunning || len(reps[0].Renders) != 1 || reps[0].Renders[0] != one {
+ t.Fatalf("the advance %+v", reps)
+ }
+ // The next attempt renders, and the runner restarts with it running:
+ // its settling report carries both attempts' records; its end is not
+ // proven yet, and the proof carries them again.
+ two := wire.RenderAudit{Call: 2, Tree: wire.RenderTreeBase, Pages: 1, Captures: 1, DurationMS: 40, Outcome: renderpage.CodeNoSite}
+ if err := s.recordRender(ctx, r, two); err != nil {
+ t.Fatal(err)
+ }
+ two.Attempt = 2
+ if err := s.RecoverSteps(ctx, func(context.Context, string) bool { return false }); err != nil {
+ t.Fatal(err)
+ }
+ reps = outbox(t, s)
+ if len(reps) != 2 || reps[1].State != wire.StepFailed || reps[1].Termination || len(reps[1].Renders) != 2 || reps[1].Renders[1] != two {
+ t.Fatalf("the restart's report %+v", reps[1:])
+ }
+ pending, err := s.pendingSteps(ctx)
+ if err != nil || len(pending) != 1 {
+ t.Fatalf("pending %+v %v", pending, err)
+ }
+ if err := s.proveTermination(ctx, pending[0]); err != nil {
+ t.Fatal(err)
+ }
+ reps = outbox(t, s)
+ if len(reps) != 3 || !reps[2].Termination || len(reps[2].Renders) != 2 || reps[2].Renders[0] != one {
+ t.Fatalf("the proof %+v", reps[2:])
+ }
+}
diff --git a/internal/runner/thin/step.go b/internal/runner/thin/step.go
index 3055a79b..4b5390b9 100644
--- a/internal/runner/thin/step.go
+++ b/internal/runner/thin/step.go
@@ -294,6 +294,14 @@ func (s *State) advanceStep(ctx context.Context, r *stepRow, used []wire.Usage,
return err
}
err = s.tx(ctx, func(t *sql.Tx) error {
+ // The ending attempt's render records go with the advance: at the
+ // autonomy limit the instance holds the next attempt instead, and
+ // this one reports nothing more it would take.
+ if rep.Renders == nil {
+ if rep.Renders, err = reportRenders(t, r.StepID, r.Attempt); err != nil {
+ return err
+ }
+ }
res, err := t.Exec("UPDATE steps SET attempt=attempt+1, body=?, phase='', ns_id='' WHERE step_id=? AND attempt=? AND state=?", string(body), r.StepID, r.Attempt, runRunning)
if err != nil {
return err
@@ -404,7 +412,11 @@ func (s *State) proveTermination(ctx context.Context, p pendingStep) error {
if n, _ := res.RowsAffected(); n != 1 {
return nil
}
- return s.enqueue(t, wire.FrameStep, "", wire.StepReport{TaskID: p.task, StepID: p.step, Attempt: p.attempt, State: p.state, Reason: p.reason, Termination: true, TerminationKind: terminationKind(p.ns)})
+ renders, err := reportRenders(t, p.step, p.attempt)
+ if err != nil {
+ return err
+ }
+ return s.enqueue(t, wire.FrameStep, "", wire.StepReport{TaskID: p.task, StepID: p.step, Attempt: p.attempt, State: p.state, Reason: p.reason, Termination: true, TerminationKind: terminationKind(p.ns), Renders: renders})
})
}
@@ -497,6 +509,10 @@ func (s *State) RecoverSteps(ctx context.Context, verify func(context.Context, s
if _, err := t.Exec("UPDATE steps SET state=?, final_state=?, final_reason=? WHERE step_id=? AND attempt=?", next, rep.State, rep.Reason, r.StepID, r.Attempt); err != nil {
return err
}
+ var err error
+ if rep.Renders, err = reportRenders(t, r.StepID, r.Attempt); err != nil {
+ return err
+ }
if err := s.enqueue(t, wire.FrameStep, "", rep); err != nil {
return err
}