oficina / equipo Public

equipo: Design limit covers failovers; only the creator resets it

Astra's whole-branch review, round 1, wave A (findings 1, 2, 6, 7).

F1. A failover the runner makes (stepReport accepting attempt+1) is a
new Design attempt: counted once there (a replay is no longer an
advance), and at wire.DesignRunLimit it is not launched. The failover
attempt is voided and the step moves to the next attempt, queued and
held through the existing held-step card (replace -> dispatchStep ->
designGate). The runner's start of the failover attempt is refused
(withdrawn) and its end is ignored. Engineering's own failovers are
untouched. This replaces task 17's dispatch-only counting ruling.

F2. personActed(id, person) resets the count only for the task's
creator, an owner now (isOwner, in the transaction); PostThread,
AnswerDevice and release dispatch held Design work only when it did.
Another member's message or card answer, or the creator's once no
longer an owner, does neither.

F6. offerRecovery: when the maker no longer resolves (makerGone, split
out of recoverable), Engineering steps never given to a runner (queued,
no runner, never started) are settled first as never started:
cancelled specialist_no_grant, terminated (nothing ran), hold cleared,
held cards closed; then the recovery card is offered. A step placed on
a runner, started or only sent, still needs its termination proof.

F7 (native; Swift NOT compiled, no Xcode on docs-t1). EquipoSession
.answer handles the direction_note card conflict explicitly: the card
is merged and the answer fails with api.direction_note's text, not
"This item has changed". HeldLead returns chat.held.design_limit
formatted with 3 for a design_limit hold. Both keys added to
strings.json with copy.go's pending text, catalogs rewritten by
check-strings.py --write.

Budget: internal/equipo/chat 39944/15695.

Tests: CGO_ENABLED=0 go test ./internal/equipo/chat/ -run
  'TestDesignLimitHoldsAFailover|TestDesignLimitOnlyTheCreatorActs|
  TestDesignRecoveryHeldAfterDemotion'
RED (before the code):
  TestDesignLimitHoldsAFailover: "a failover under the limit ... runs 1"
  TestDesignLimitOnlyTheCreatorActs: "another member's message: step
    ... Attempt:4 RunnerID:RUNNER1 ..., runs 1" (nora's note released it)
  TestDesignRecoveryHeldAfterDemotion: "the held attempt ...
    State:queued Reason:design_limit" (never settled, no card)
GREEN: the three; whole internal/equipo/chat and internal/equipo;
  thintest -run 'TestContractDesign|Design|Held|Specialist|Explore|
  Direction|Build|Thread|RunNow|Card'; headless -run 'Research|
  Specialist|Design|Held|Explore|Direction'; plan3test -run 'Contract|
  Protocol|Specialist|Lease|Copy|Explore|Direction|Held'; go vet,
  gofmt; darwin/arm64 runner build. native: check-strings.py ok;
  check-parity.py shows only the 8 missing work.reason.* keys it shows
  at HEAD (none of them mine).

Mutations (break, run, restore), 17 applied:
  Killed (TestDesignLimitHoldsAFailover): F1a no hold at the limit;
  F1b > for >=; F1c failover not counted; F1d attempt not moved past
  the failover; F1e maker condition dropped (killed by the Engineering
  failover case added for it).
  Killed (TestDesignLimitOnlyTheCreatorActs): F2a creator check; F2b
  owner check; F2c PostThread ignores acted (F2a, F2c redone to
  compile).
  Killed (TestDesignRecoveryHeldAfterDemotion): F6a settle not called;
  F6b settle before the maker check; F6c runner condition (killed by
  the dispatched, unstarted case); F6e held cards left open; F6f hold
  left on the step; F6g queued-state condition.
  Survived, layered: F2d AnswerDevice and F2e release ignoring acted
  (with no reset, releaseDesignHeld re-gates through designGate and
  holds again; release's callers already require creator and owner);
  F6d started_at condition (every path that clears a step's runner
  also clears started_at).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 13c98ceda6cb9e6876a5cc346621977c1b85d9e1 parent bf21f19
12 files changed, +385 −26
  • .rastrillo/budgets.txt +1 −1
  • internal/equipo/chat/design_routing.go +72 −14
  • internal/equipo/chat/design_routing_test.go +199 −0
  • internal/equipo/chat/projects.go +10 −6
  • internal/equipo/chat/schedule.go +2 −1
  • internal/equipo/chat/tasks.go +22 −3
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +22 −0
  • native/apple/Sources/EquipoKit/Presentation/HeldLead.swift +3 −0
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +22 −0
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +8 −1
  • native/scripts/strings.json +2 −0
  • native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings +22 −0

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/specialists-slice-1: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.2s
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.8s
ci-box: clone deepened in 5.2s
ci-box: file times set from content: 3403 files, 222 directories
ci-box: ready in 18.8s
=== 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.3s
+ go list -export -test -tags testbuild -f  ./...
  6.2s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.7s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

receipt: test step 1m21.589s 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 1m18.914s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.91s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 61.67, cpu waiting 42.81%, memory waiting 0.00%, io waiting 0.40%
--- 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 1m22.558s 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 1m19.593s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.59s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 61.67, cpu waiting 42.81%, memory waiting 0.00%, io waiting 0.40%
--- 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 1m23.414s 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.551s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m10.27s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.47s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.82s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 61.67, cpu waiting 42.52%, memory waiting 0.00%, io waiting 0.39%
--- 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 1m20.631s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.83s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.14s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.23s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.27s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.19s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 61.67, cpu waiting 42.64%, memory waiting 0.00%, io waiting 0.41%
--- 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 1m39.039s 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 1m36.598s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.41s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.67s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.65s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.57s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.3s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 54.56, cpu waiting 39.52%, memory waiting 0.00%, io waiting 0.29%
--- 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 2m59.708s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m57.34s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m40.56s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 20.28s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.23s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.2s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 21.19, cpu waiting 10.98%, memory waiting 0.00%, io waiting 0.07%
--- 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 2m18.691s 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.553s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.23s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.89s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.82s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 33.58, cpu waiting 21.26%, memory waiting 0.00%, io waiting 0.14%
--- 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 2m1.188s 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 1m59.127s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.54s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.1s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.95s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.61s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.04s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 42.61, cpu waiting 28.38%, memory waiting 0.00%, io waiting 0.20%
--- 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:232: 0 of 5 copies saw the page change; 0 refused busy
    worksnap_adversary_linux_test.go:234: the self-resuming writer never wrote during a copy: the test proves nothing
--- FAIL: TestSnapshotRefusesASelfResumingWriter (0.77s)

--- FAIL amadan.net/oficina/equipo/internal/runner/thin (package output)
FAIL
rastrillo-budget/v1 ran 5m27.303s
FAIL	amadan.net/oficina/equipo/internal/runner/thin	327.385s


receipt: test step 5m28.981s against a 60s target (the gate's other steps are not in this figure)
rastrillo: budget test: go test failed
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 5m27.303s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.04s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.87s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.85s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.5s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.93s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestSnapshotRefusesASelfResumingWriter$' -count=1 ./internal/runner/thin   (retry, once)
FAILED TWICE ./internal/runner/thin:TestSnapshotRefusesASelfResumingWriter runner-thin
=== RUN   TestSnapshotRefusesASelfResumingWriter
    worksnap_adversary_linux_test.go:232: 0 of 5 copies saw the page change; 0 refused busy
    worksnap_adversary_linux_test.go:234: the self-resuming writer never wrote during a copy: the test proves nothing
--- FAIL: TestSnapshotRefusesASelfResumingWriter (0.78s)
FAIL
rastrillo-budget/v1 ran 779ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.792s
FAIL
machine: 32 CPUs, load 3.32, cpu waiting 0.87%, 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 52.255s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 51.284s amadan.net/oficina/equipo/internal/runner
receipt: slow test 31.25s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 54.18, cpu waiting 35.06%, memory waiting 0.00%, io waiting 0.67%
--- 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 1m2.668s 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 1m1.313s amadan.net/oficina/equipo/internal/runner
receipt: slow test 51.41s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 45.1s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.47s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 59.06, cpu waiting 40.34%, memory waiting 0.00%, io waiting 0.56%
--- 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.655s 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.846s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.58s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.15s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.92s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 31.26, cpu waiting 22.66%, memory waiting 0.00%, io waiting 0.87%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 41.9%, load 26.32
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
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        internal/thintest/design_contract_test.go:47:92: unclassified equipo-runner
        reference scan: 3115 text files, 3333 matches, 1 failures
--- FAIL: TestDirectDeadReferencesRepository (2.40s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m10.003s
FAIL	amadan.net/oficina/equipo/internal/equipotest	70.300s


receipt: test step 1m11.909s 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 1m10.003s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 30.79s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 30.75s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 28.34s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 25.26s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 25.18s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectOwnershipIsLocal
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        internal/thintest/design_contract_test.go:47:92: unclassified equipo-runner
        reference scan: 3115 text files, 3333 matches, 1 failures
--- FAIL: TestDirectDeadReferencesRepository (2.35s)
FAIL
rastrillo-budget/v1 ran 2.349s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.513s
FAIL
machine: 32 CPUs, load 51.39, cpu waiting 36.24%, memory waiting 0.00%, io waiting 0.26%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 12 of 29 failed: exit status 2
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 41.9%, load 26.32
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 2m16.714s 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 2m14.508s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 21.03s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 21.02s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 21s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 21s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 21s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
machine: 32 CPUs, load 25.72, cpu waiting 13.41%, memory waiting 0.00%, io waiting 0.09%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 41.9%, load 26.32
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 5m35.779s, over the 5m0s its record on line 15 allows; reported only, timing fails on CI

receipt: test step 5m41.515s 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 5m35.779s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m42.21s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 14.02s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.96s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.94s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.89s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 2.44, cpu waiting 0.44%, 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 41.9%, load 26.32
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 1m11.591s 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.516s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.08s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 27.96s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 27.92s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.83s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
receipt: slow test 25.8s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
machine: 32 CPUs, load 54.56, cpu waiting 38.46%, memory waiting 0.00%, io waiting 0.28%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 41.9%, load 26.32
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.33s)

--- 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/v1 ran 54.949s
FAIL	amadan.net/oficina/equipo/internal/plan3test	55.349s


receipt: test step 57.214s 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 54.949s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.01s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.53s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.71s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.58s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.42s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestPlan3ReleaseBoundaries$/^inventory$' -count=1 ./internal/plan3test   (retry, once)
FAILED TWICE ./internal/plan3test:TestPlan3ReleaseBoundaries/inventory plan3test
=== RUN   TestPlan3ReleaseBoundaries
=== RUN   TestPlan3ReleaseBoundaries/inventory
    plan3_release_test.go:22: entry has no copy review status or applicable acceptance chat.specialist.capability.branch.edit
--- FAIL: TestPlan3ReleaseBoundaries (0.02s)
    --- FAIL: TestPlan3ReleaseBoundaries/inventory (0.02s)
FAIL
rastrillo-budget/v1 ran 18ms
FAIL	amadan.net/oficina/equipo/internal/plan3test	0.208s
FAIL
machine: 32 CPUs, load 59.06, cpu waiting 41.49%, memory waiting 0.00%, io waiting 0.35%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 16 of 29 failed: exit status 2
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 41.9%, load 26.32
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 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 (6.39s)

--- FAIL amadan.net/oficina/equipo/internal/runner/pause TestHoldStopsAReparentedDaemon
=== RUN   TestHoldStopsAReparentedDaemon
    pause_linux_test.go:577: placing 8334: sandbox could not be paused in time
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsAReparentedDaemon (0.08s)

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

--- 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 283 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:29: reason is 223 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:41: reason is 461 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:59: record is 615 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 285 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)

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

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 2m33.819s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 34.507s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 36.18s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 11.415s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m57.798s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 43.121s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m0.888s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 24.842s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 14.372s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m16.229s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/render took 1m28.242s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m41.13s against a 60s target (the gate's other steps are not in this figure)
receipt: 54 packages ran, 17 cached, 17 without tests, 2 failed
receipt: slow package 2m33.819s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m57.798s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m28.242s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 1m16.229s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m3.389s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 58s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 50.29s amadan.net/oficina/equipo/internal/runner/render TestLaunchNeverClaimsAnUnprovenEnd
receipt: slow test 49.51s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 49.28s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 49.26s 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$|^TestHoldStopsAReparentedDaemon$' -count=1 ./internal/runner/pause   (retry, once)
FAILED TWICE ./internal/runner/pause:TestHoldResumesAfterPanic rest
FAILED TWICE ./internal/runner/pause:TestHoldStopsAReparentedDaemon rest
=== RUN   TestHoldResumesAfterPanic
--- PASS: TestHoldResumesAfterPanic (0.12s)
=== RUN   TestHoldStopsAReparentedDaemon
    pause_linux_test.go:603: daemon made no progress in 2s
    pause_linux_test.go:69: sandbox stderr: 
--- FAIL: TestHoldStopsAReparentedDaemon (2.31s)
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/pause	2.433s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestBudgetRecordsAreShort$' -count=1 ./internal/testci   (retry, once)
FAILED TWICE ./internal/testci:TestBudgetRecordsAreShort rest
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:17: reason is 302 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 283 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:29: reason is 223 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:41: reason is 461 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:59: record is 615 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 285 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 17.08, cpu waiting 8.42%, memory waiting 0.00%, io waiting 0.05%
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.651s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m25.512s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.93s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.65s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.92s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.57s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 7.03s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 58.89, cpu waiting 41.91%, memory waiting 0.00%, io waiting 0.36%
--- 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 1m35.863s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m33.828s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.04s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.44s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.99s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.78s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 57.22, cpu waiting 40.39%, memory waiting 0.00%, io waiting 0.30%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m54.835s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m52.772s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.35s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 13.04s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.4s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.08s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 45.19, cpu waiting 30.96%, memory waiting 0.00%, io waiting 0.22%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m41.789s 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.518s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.34s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 13.29s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.35s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.7s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 54.56, cpu waiting 38.46%, memory waiting 0.00%, io waiting 0.28%
--- 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.558s 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.642s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 2.09s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 550ms 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.109s 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.41s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.41s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.683s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 13.378s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 11.683s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.53s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.15s 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.439s 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.526s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.52s 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 3m36.133s 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 3m33.466s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 25.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.42s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.66s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 7.62, cpu waiting 3.42%, 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   (56s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.79s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.19s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.79s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.21s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 28.49s
+ 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   (60s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 14.26s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.40s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.71s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 19.56s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 19.97s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.98s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 59.06, cpu waiting 39.44%, memory waiting 0.00%, io waiting 0.58%
--- 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.886s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 8.272s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 162ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 65ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.9s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 530ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 160ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 4.428s 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.031s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 230ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
machine: 32 CPUs, load 19.99, cpu waiting 13.26%, memory waiting 0.00%, io waiting 1.14%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 41.9%, load 26.32
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
internal/thintest/design_contract_test.go:47:92: unclassified equipo-runner
reference scan: 3115 text files, 3333 matches, 1 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 26.32, cpu waiting 19.23%, memory waiting 0.00%, io waiting 0.93%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 25 of 29 failed: exit status 2
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 41.9%, load 26.32
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:244: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 59.06, cpu waiting 40.34%, memory waiting 0.00%, io waiting 0.56%
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 41.9%, load 26.32
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 54.18, cpu waiting 36.33%, memory waiting 0.00%, io waiting 0.64%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 41.9%, load 26.32
shard 28: make gitleaks
3:11AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
3:11AM INF 1301 commits scanned.
3:11AM INF scanned ~70111235 bytes (70.11 MB) in 25s
3:11AM INF no leaks found
machine: 32 CPUs, load 57.85, cpu waiting 36.33%, memory waiting 0.00%, io waiting 0.64%

amadan: job failed at step check shards 8, 12, 16, 17, 25, 26 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index d1725a16..17dc2f6f 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -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 39862 15496 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; measured 39862/15496.
+size internal/equipo/chat 39944 15695 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; measured 39944/15695.
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_routing.go b/internal/equipo/chat/design_routing.go
index 361d1e60..2bed5192 100644
--- a/internal/equipo/chat/design_routing.go
+++ b/internal/equipo/chat/design_routing.go
@@ -2,6 +2,7 @@ package chat
import (
"encoding/json"
+ "errors"
"slices"
"strings"
@@ -155,11 +156,27 @@ func (t *txn) designRan(k *taskRecord) error {
return t.db.Model(&taskRecord{}).Where("id = ?", k.ID).UpdateColumn("design_runs", gorm.Expr("design_runs + 1")).Error
}
-// personActed is the person acting on task id (a message in its thread,
-// an answer on one of its cards): its Design attempts count from none
-// again. It dispatches nothing (releaseDesignHeld does, after the act).
-func (t *txn) personActed(id string) error {
- return t.db.Model(&taskRecord{}).Where("id = ? AND design_runs <> 0", id).UpdateColumn("design_runs", 0).Error
+// personActed is person (the session's) acting on task id (a message in
+// its thread, an answer on one of its cards, Run it now): when they are
+// the task's creator and an owner now, read in this transaction, its
+// Design attempts count from none again and acted is true. Anyone else's
+// act (a teammate following the thread) resets nothing, and the caller
+// releases nothing: held Design work spends the creator's connections.
+// It dispatches nothing (releaseDesignHeld does, after the act).
+func (t *txn) personActed(id, person string) (acted bool, err error) {
+ k, err := t.loadTask(id)
+ if errors.Is(err, ErrNotFound) {
+ return false, nil
+ }
+ if err != nil || person == "" || k.Creator != person {
+ return false, err
+ }
+ if err := t.isOwner(person); errors.Is(err, ErrForbidden) {
+ return false, nil
+ } else if err != nil {
+ return false, err
+ }
+ return true, t.db.Model(&taskRecord{}).Where("id = ? AND design_runs <> 0", id).UpdateColumn("design_runs", 0).Error
}
// releaseDesignHeld dispatches the task's steps the autonomy limit held,
@@ -201,6 +218,27 @@ func recoveryName(maker string) string { return "maker:" + maker }
// whatever its state, done included); and nothing of the task at work
// (busy).
func (t *txn) recoverable(k taskRecord) (bool, error) {
+ gone, err := t.makerGone(k)
+ if err != nil || !gone {
+ return false, err
+ }
+ steps, err := t.steps(k.ID)
+ if err != nil {
+ return false, err
+ }
+ for _, s := range steps {
+ // Terminated is the end's proof; an attempt still at work has none.
+ if s.Specialist == wire.SpecialistEngineering && !s.Terminated {
+ return false, nil
+ }
+ }
+ return !busy(steps, false), nil
+}
+
+// makerGone reports whether the task is open (not cancel-requested, not
+// moving) and its maker no longer acts for its project: grantFor no
+// longer finds the maker's row there.
+func (t *txn) makerGone(k taskRecord) (bool, error) {
if k.MakerSpecialistID == "" || wire.FinalStage(k.Stage) || k.CancelRequested || k.MoveProject != "" {
return false, nil
}
@@ -214,26 +252,46 @@ func (t *txn) recoverable(k taskRecord) (bool, error) {
return false, err
}
}
- steps, err := t.steps(k.ID)
- if err != nil {
- return false, err
+ return true, nil
+}
+
+// settleUndispatched ends, as never started, the Engineering steps of a
+// task whose maker is gone that were never given to a runner: queued, no
+// runner, no attempt started (held by the autonomy limit, or waiting for
+// a runner that can run Design). Nothing of them ran, so no termination
+// proof is owed; their holds and held cards close. A step placed on a
+// runner could have run and is left to its proof.
+func (t *txn) settleUndispatched(k *taskRecord) error {
+ var rows []stepRecord
+ if err := t.db.Where("task_id = ? AND specialist = ? AND state = ? AND coalesce(runner_id, '') = '' AND started_at IS NULL AND coalesce(retired, 0) = 0", k.ID, wire.SpecialistEngineering, wire.StepQueued).Order("idx").Find(&rows).Error; err != nil || len(rows) == 0 {
+ return err
}
- for _, s := range steps {
- // Terminated is the end's proof; an attempt still at work has none.
- if s.Specialist == wire.SpecialistEngineering && !s.Terminated {
- return false, nil
+ now := t.now()
+ for i := range rows {
+ s := &rows[i]
+ s.State, s.Reason, s.Terminated, s.FinishedAt, s.Placement, s.WaitingSince, s.Hold, s.HeldAt = wire.StepCancelled, reasonSpecialistNoGrant, true, &now, "", nil, "", nil
+ if err := t.saveStep(s, k); err != nil {
+ return err
}
}
- return !busy(steps, false), nil
+ return t.closeHeldCards(k.ID, "")
}
// offerRecovery asks the task's creator, once, whether to hand the task
-// to Engineering, when it is recoverable.
+// to Engineering, when it is recoverable: first its steps that never
+// reached a runner are settled (settleUndispatched).
func (t *txn) offerRecovery(id string) error {
k, err := t.loadTask(id)
if err != nil {
return err
}
+ gone, err := t.makerGone(k)
+ if err != nil || !gone {
+ return err
+ }
+ if err := t.settleUndispatched(&k); err != nil {
+ return err
+ }
ok, err := t.recoverable(k)
if err != nil || !ok {
return err
diff --git a/internal/equipo/chat/design_routing_test.go b/internal/equipo/chat/design_routing_test.go
index ee78f0dc..6ee0a438 100644
--- a/internal/equipo/chat/design_routing_test.go
+++ b/internal/equipo/chat/design_routing_test.go
@@ -825,3 +825,202 @@ func TestDesignRecoverySweep(t *testing.T) {
return err
}))
}
+
+// TestDesignLimitHoldsAFailover: a failover the runner makes (the
+// provider refused an attempt, so it moves the step to its next one) is a
+// new Design attempt. Under the limit it counts once, however often its
+// report arrives; at the limit it is not launched: the step is held for
+// the person through the held-step card, and the runner's start of the
+// failover attempt is refused.
+func TestDesignLimitHoldsAFailover(t *testing.T) {
+ r, l, _ := grantRig(t)
+ sp := r.active(l, "Patrix", "p_patrix")
+ task, s := r.runningDesign(l, sp, wire.KindChange)
+ if k := r.load(task); k.DesignRuns != 1 {
+ t.Fatalf("runs %d", k.DesignRuns)
+ }
+ failover := wire.StepReport{Attempt: s.Attempt + 1, State: wire.StepRunning}
+ r.report(l, s, failover)
+ r.report(l, s, failover)
+ moved := r.stepNow(s.ID)
+ if moved.Attempt != s.Attempt+1 || moved.State != wire.StepRunning || moved.RunnerID != "RUNNER1" || r.load(task).DesignRuns != 2 {
+ t.Fatalf("a failover under the limit %+v, runs %d", moved, r.load(task).DesignRuns)
+ }
+ if refused := r.authorize(l, moved, ""); refused != "" {
+ t.Fatalf("its start %q", refused)
+ }
+ third := r.failAndRetry(l, task)
+ if !r.attemptSent(third) || r.load(task).DesignRuns != 3 {
+ t.Fatalf("third attempt %+v runs %d", third, r.load(task).DesignRuns)
+ }
+ r.ackDispatches(third.ID)
+ if refused := r.authorize(l, third, ""); refused != "" {
+ t.Fatalf("third start %q", refused)
+ }
+ third = r.stepNow(third.ID)
+ r.report(l, third, wire.StepReport{Attempt: third.Attempt + 1, State: wire.StepRunning})
+ held := r.stepNow(third.ID)
+ if held.Attempt <= third.Attempt+1 || held.State != wire.StepQueued || held.RunnerID != "" || held.Placement != wire.PlacementDesignLimit || held.Reason != reasonDesignLimit || held.StartedAt != nil || r.attemptSent(held) {
+ t.Fatalf("a failover at the limit %+v", held)
+ }
+ if h := stepHold(held); h == nil || h.Reason != wire.HoldDesignLimit || h.StepRevision != held.Attempt {
+ t.Fatalf("hold %+v", h)
+ }
+ if k := r.load(task); k.DesignRuns != 3 {
+ t.Fatalf("runs at the limit %d", k.DesignRuns)
+ }
+ cards := r.heldCards(task)
+ if len(cards) != 1 || cards[0].State != wire.CardOpen || cards[0].Options != `["run_now"]` {
+ t.Fatalf("held cards %+v", cards)
+ }
+ // The runner's start of the failover attempt is refused, and its end
+ // changes nothing.
+ refused, err := r.s.Authorize(r.ctx, l, held.ID, third.Attempt+1, "", "", "")
+ if err != nil || refused != "withdrawn" {
+ t.Fatalf("the failover's start %q %v", refused, err)
+ }
+ end := wire.StepReport{TaskID: task, StepID: held.ID, Attempt: third.Attempt + 1, State: wire.StepCancelled, Reason: "withdrawn", Termination: true}
+ if err := r.tx(func(tx *txn) error { return tx.stepReport(l, &end) }); err != nil && !errors.Is(err, ErrRefused) {
+ t.Fatal(err)
+ }
+ if got := r.stepNow(held.ID); got.State != wire.StepQueued || got.Placement != wire.PlacementDesignLimit || got.Attempt != held.Attempt {
+ t.Fatalf("after the failover's end %+v", got)
+ }
+ // Run it now sends it, counted from there.
+ if _, _, err := r.s.Answer(r.ctx, paul, cards[0].ID, wire.AnswerCard{Choice: ChoiceRunNow, Revision: cards[0].Revision}); err != nil {
+ t.Fatal(err)
+ }
+ if got := r.stepNow(held.ID); !r.attemptSent(got) || got.RunnerID != "RUNNER1" || r.load(task).DesignRuns != 1 {
+ t.Fatalf("after Run it now %+v, runs %d", got, r.load(task).DesignRuns)
+ }
+ // Engineering's own failovers are not Design's: never counted, never
+ // held.
+ turn, plain := r.personTask(l, "Patrix", wire.KindChange)
+ if res := r.call(l, turn.ID, wire.ToolStartTask, map[string]any{"task": plain, "brief": "b"}); res.IsError {
+ t.Fatal(res)
+ }
+ e := r.makerStep(plain)
+ r.ackDispatches(e.ID)
+ if refused := r.authorize(l, e, ""); refused != "" {
+ t.Fatalf("Engineering's start %q", refused)
+ }
+ for i := int64(1); i <= wire.DesignRunLimit+1; i++ {
+ r.report(l, e, wire.StepReport{Attempt: e.Attempt + i, State: wire.StepRunning})
+ }
+ if got := r.stepNow(e.ID); got.Attempt != e.Attempt+wire.DesignRunLimit+1 || got.State != wire.StepRunning || got.RunnerID != "RUNNER1" || got.Hold != "" || r.load(plain).DesignRuns != 0 {
+ t.Fatalf("Engineering's failovers %+v, runs %d", got, r.load(plain).DesignRuns)
+ }
+}
+
+// TestDesignLimitOnlyTheCreatorActs: only the task's creator, an owner
+// now, resets Design's count and releases a held attempt. Another
+// member's message in the thread, or their answer on a card of the
+// task, does neither; nor does the creator's once they are no longer an
+// owner.
+func TestDesignLimitOnlyTheCreatorActs(t *testing.T) {
+ r, l, _ := grantRig(t)
+ const nora = "nora@tito.io"
+ r.exec("INSERT INTO members(address, active, role) VALUES (?, 1, 'owner')", nora)
+ sp := r.active(l, "Patrix", "p_patrix")
+ task := r.designTask(l, sp, wire.KindChange)
+ r.failAndRetry(l, task)
+ r.failAndRetry(l, task)
+ held := r.failAndRetry(l, task)
+ still := func(what string) {
+ t.Helper()
+ got := r.stepNow(held.ID)
+ if r.attemptSent(got) || got.State != wire.StepQueued || got.Placement != wire.PlacementDesignLimit || r.load(task).DesignRuns != 3 {
+ t.Fatalf("%s: step %+v, runs %d", what, got, r.load(task).DesignRuns)
+ }
+ if c := r.heldCards(task); len(c) != 1 || c[0].State != wire.CardOpen {
+ t.Fatalf("%s: held cards %+v", what, c)
+ }
+ }
+ still("the fourth attempt")
+ post := func(who, text string) {
+ t.Helper()
+ if _, err := r.s.PostThread(r.ctx, who, task, wire.PostThread{Text: text, IdempotencyKey: newID("k")}); err != nil {
+ t.Fatal(err)
+ }
+ }
+ post(nora, "Following this.")
+ still("another member's message")
+ q := cardRecord{ID: "c_nora", Person: nora, Kind: wire.CardQuestion, State: wire.CardOpen, TaskID: task, Question: "Which logo?", Options: `["The old one"]`, Revision: 1, CreatedAt: r.now, UpdatedAt: r.now, Lane: wire.LaneCoordinator}
+ r.must(r.s.db.G.Create(&q).Error)
+ if _, _, err := r.s.Answer(r.ctx, nora, q.ID, wire.AnswerCard{Choice: "The old one", Revision: 1}); err != nil {
+ t.Fatal(err)
+ }
+ still("another member's answer on the task's card")
+ r.exec("UPDATE members SET role = 'member' WHERE address = ?", paul)
+ post(paul, "Go on.")
+ still("the creator's message, no longer an owner")
+ r.exec("UPDATE members SET role = 'owner' WHERE address = ?", paul)
+ post(paul, "Go on now.")
+ if got := r.stepNow(held.ID); !r.attemptSent(got) || got.Placement != "" || r.load(task).DesignRuns != 1 {
+ t.Fatalf("the creator's message %+v, runs %d", got, r.load(task).DesignRuns)
+ }
+}
+
+// TestDesignRecoveryHeldAfterDemotion: a fourth attempt the limit held
+// was never given to a runner. When the task's maker stops resolving
+// (its approver demoted), the placement pass settles it as never started
+// (no proof is owed: nothing ran), closes its hold, and offers the
+// recovery card, which the creator can tap. An attempt its runner holds
+// still waits for its proof.
+func TestDesignRecoveryHeldAfterDemotion(t *testing.T) {
+ r, l, _ := grantRig(t)
+ r.exec("CREATE TABLE IF NOT EXISTS runners (id text PRIMARY KEY, person text, role text, label text, removing_at datetime, tainted_at datetime, revoked_at datetime)")
+ r.exec("INSERT OR IGNORE INTO members(address, active, role) VALUES (?, 1, 'owner')", hkOwner)
+ r.exec("UPDATE members SET active = 1, role = 'owner' WHERE address = ?", hkOwner)
+ sp := r.active(l, "Patrix", "p_patrix")
+ r.exec("UPDATE chat_specialists SET approver = ? WHERE id = ?", hkOwner, sp.ID)
+ r.exec("UPDATE chat_capability_grants SET granted_by = ? WHERE specialist_id = ?", hkOwner, sp.ID)
+ task := r.designTask(l, sp, wire.KindChange)
+ r.failAndRetry(l, task)
+ r.failAndRetry(l, task)
+ held := r.failAndRetry(l, task)
+ if r.attemptSent(held) || held.Placement != wire.PlacementDesignLimit || held.RunnerID != "" {
+ t.Fatalf("not held %+v", held)
+ }
+ other, o := r.runningDesign(l, sp, wire.KindChange)
+ // And one whose dispatch went to its runner, not yet started.
+ sent := r.designTask(l, sp, wire.KindChange)
+ d := r.makerStep(sent)
+ if !r.attemptSent(d) || d.RunnerID != "RUNNER1" || d.StartedAt != nil || d.State != wire.StepQueued {
+ t.Fatalf("a dispatched attempt %+v", d)
+ }
+ r.must(r.s.Place(r.ctx))
+ if n := len(r.recoveryCards(task)) + len(r.recoveryCards(other)); n != 0 {
+ t.Fatalf("%d cards while the maker resolves", n)
+ }
+ if got := r.stepNow(held.ID); got.State != wire.StepQueued || got.Placement != wire.PlacementDesignLimit {
+ t.Fatalf("settled while the maker resolves %+v", got)
+ }
+ r.exec("UPDATE members SET role = 'member' WHERE address = ?", hkOwner)
+ r.must(r.s.Place(r.ctx))
+ r.must(r.s.Place(r.ctx))
+ got := r.stepNow(held.ID)
+ if got.State != wire.StepCancelled || !got.Terminated || got.Reason != reasonSpecialistNoGrant || got.Hold != "" || got.Placement != "" || got.RunnerID != "" || r.attemptSent(got) {
+ t.Fatalf("the held attempt %+v", got)
+ }
+ if c := r.heldCards(task); len(c) != 1 || c[0].State != wire.CardResolved {
+ t.Fatalf("held cards %+v", c)
+ }
+ cards := r.recoveryCards(task)
+ if len(cards) != 1 || cards[0].State != wire.CardOpen || cards[0].Person != paul {
+ t.Fatalf("recovery cards %+v", cards)
+ }
+ // The attempts their runner holds, started or only sent, keep
+ // waiting for their proof.
+ for task, id := range map[string]string{other: o.ID, sent: d.ID} {
+ if got := r.stepNow(id); got.Terminated || wire.StepTerminal(got.State) || len(r.recoveryCards(task)) != 0 {
+ t.Fatalf("an attempt that could have run %+v, %d cards", got, len(r.recoveryCards(task)))
+ }
+ }
+ if _, _, err := r.s.Answer(r.ctx, paul, cards[0].ID, wire.AnswerCard{Choice: wire.ChoiceToEngineering, Revision: cards[0].Revision}); err != nil {
+ t.Fatal(err)
+ }
+ if k := r.load(task); k.MakerSpecialistID != "" {
+ t.Fatalf("after the tap %+v", k)
+ }
+}
diff --git a/internal/equipo/chat/projects.go b/internal/equipo/chat/projects.go
index 4a3ee789..ae60a1f8 100644
--- a/internal/equipo/chat/projects.go
+++ b/internal/equipo/chat/projects.go
@@ -717,14 +717,18 @@ func (s *Store) AnswerDevice(ctx context.Context, person, credential, id string,
return err
}
if c.TaskID != "" {
- // An answer on one of a task's cards is its person acting
- // on it: Design's attempts count from none (before the
- // answer, so work it starts counts), and one the limit
- // held goes after it.
- acted = c.TaskID
- if err := t.personActed(c.TaskID); err != nil {
+ // An answer on one of a task's cards by its creator is its
+ // person acting on it: Design's attempts count from none
+ // (before the answer, so work it starts counts), and one
+ // the limit held goes after it. Another member's answer
+ // does neither.
+ ok, err := t.personActed(c.TaskID, person)
+ if err != nil {
return err
}
+ if ok {
+ acted = c.TaskID
+ }
}
if c.Kind == wire.CardMakerRemoved {
card, cur, e := t.answerMakerRemoved(person, c, in)
diff --git a/internal/equipo/chat/schedule.go b/internal/equipo/chat/schedule.go
index 80fdf3f0..2c5774fb 100644
--- a/internal/equipo/chat/schedule.go
+++ b/internal/equipo/chat/schedule.go
@@ -321,7 +321,8 @@ func (t *txn) release(k taskRecord, person, step string, revision int64, shown *
if err := t.audit(person, "task.design_go_ahead", st.ID+"@"+itoa64(revision)); err != nil {
return "", err
}
- if err := t.personActed(k.ID); err != nil {
+ acted, err := t.personActed(k.ID, person)
+ if err != nil || !acted {
return "", err
}
return "", t.releaseDesignHeld(k.ID)
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index a83c52bd..be812103 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -1531,6 +1531,23 @@ func (t *txn) stepReport(l Lease, v *wire.StepReport) error {
}
return t.withdrawnEnded(&k, &s)
}
+ if advanced && s.Specialist == wire.SpecialistEngineering && k.MakerSpecialistID != "" {
+ // A failover the runner made is a new Design attempt, counted
+ // here once (a replay is no longer an advance). At the autonomy
+ // limit it is not launched: the runner's start of it is refused
+ // (the attempt moves on), and the step is held for the person
+ // through the held-step card (designGate, via the dispatch).
+ if k.DesignRuns >= wire.DesignRunLimit {
+ s.Attempt = v.Attempt
+ if err := t.replace(&k, &s); err != nil {
+ return err
+ }
+ return t.saveStep(&s, &k)
+ }
+ if err := t.designRan(&k); err != nil {
+ return err
+ }
+ }
if !wire.StepTerminal(s.State) && wire.StepTerminal(v.State) && v.State != wire.StepDone && v.Termination {
switch {
case v.State == wire.StepFailed && v.Reason == "placement_refused":
@@ -2392,9 +2409,11 @@ func (s *Store) PostThread(ctx context.Context, person, id string, in wire.PostT
if err := t.saveTask(&k); err != nil {
return err
}
- // A message in its thread is its person acting on it: Design's
- // attempts count from none, and one the limit held goes now.
- if err := t.personActed(k.ID); err != nil {
+ // A message in its thread from its creator is its person acting on
+ // it: Design's attempts count from none, and one the limit held
+ // goes now. Another member's message does neither.
+ acted, err := t.personActed(k.ID, person)
+ if err != nil || !acted {
return err
}
return t.releaseDesignHeld(k.ID)
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index 1f768f72..3536b927 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -244,6 +244,17 @@
}
}
},
+ "api.direction_note": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Say which option to build. Open this card on the web to add your note."
+ }
+ }
+ }
+ },
"api.hold_bar": {
"extractionState": "manual",
"localizations": {
@@ -928,6 +939,17 @@
}
}
},
+ "chat.held.design_limit": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Design has tried this %d times since you last responded, so I’ve paused it. Run it again?"
+ }
+ }
+ }
+ },
"chat.held.run.after_by": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift b/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift
index b9a7da29..7802d7a5 100644
--- a/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift
@@ -10,6 +10,9 @@ enum HeldLead {
formatter.dateFormat = "EEEE d MMM"
return formatter.string(from: date)
}
+ // The autonomy limit's hold: Design ran wire.DesignRunLimit (3)
+ // attempts since the person last acted on the task.
+ if hold.reason == "design_limit" { return String(format: EquipoStrings.text("chat.held.design_limit"), Int32(3)) }
if let reset = hold.resetsAt, let due, reset < due {
return String(format: EquipoStrings.text("chat.held.wait.before"), name, when(reset), day(due))
}
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index 1f768f72..3536b927 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -244,6 +244,17 @@
}
}
},
+ "api.direction_note": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Say which option to build. Open this card on the web to add your note."
+ }
+ }
+ }
+ },
"api.hold_bar": {
"extractionState": "manual",
"localizations": {
@@ -928,6 +939,17 @@
}
}
},
+ "chat.held.design_limit": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Design has tried this %d times since you last responded, so I’ve paused it. Run it again?"
+ }
+ }
+ }
+ },
"chat.held.run.after_by": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index a6b1a793..b9cc21a2 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -457,7 +457,14 @@ public final class EquipoSession {
// Offline: it may have landed; keep it to send again as itself.
if error != .offline { unsettledAnswers[slot] = nil }
if error.endsSession { endSession(); return .failed }
- if case .card(_, _, let current) = error { cards = Self.merge(cards, [current]); return .changed }
+ if case .card(_, let code, let current) = error {
+ cards = Self.merge(cards, [current])
+ // Build with several options needs the person's note on
+ // which one: the card is still open, so say so (the
+ // instance's api.direction_note), never that it changed.
+ if code == "direction_note" { answerNotices[card.id] = EquipoStrings.text("api.direction_note"); return .failed }
+ return .changed
+ }
if error.isStale { await refresh(); return .changed }
answerNotices[card.id] = ProjectNotice.text(error)
return error == .offline ? .offline : .failed
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index 84f806c7..2086e841 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -21,6 +21,7 @@
"api.card_stale": "This item has changed. Check it before trying again.",
"api.confirmation_required": "Confirm the spending limit and check both budget amounts before continuing.",
"api.coordinator_busy": "Your coordinator is working. Wait for its reply, then try again.",
+ "api.direction_note": "Say which option to build. Open this card on the web to add your note.",
"api.hold_bar": "This work is on hold because of a spending limit or unconfirmed spend. Check the hold, then raise the limit or check provider spend before resuming.",
"api.idempotency_conflict": "The latest details are different. Refresh, check them, then try again.",
"api.invalid_input": "Check the request fields and try again.",
@@ -79,6 +80,7 @@
"chat.card.wait_mac": "Wait for a Mac",
"chat.connections.connected": "%@ connected",
"chat.held.budget": "%@ has reached its budget. Raise it, or wait for the budget to reset.",
+ "chat.held.design_limit": "Design has tried this %d times since you last responded, so I’ve paused it. Run it again?",
"chat.held.run.after_by": "I’d run it now: %@ resets %@, after %@.",
"chat.held.run.no_connection": "I’d run it now: it needs a connection billed per token.",
"chat.held.run.no_reset": "I’d run it now: %@ has no reported reset in the next three days.",
diff --git a/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings b/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
index 1f768f72..3536b927 100644
--- a/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
+++ b/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
@@ -244,6 +244,17 @@
}
}
},
+ "api.direction_note": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Say which option to build. Open this card on the web to add your note."
+ }
+ }
+ }
+ },
"api.hold_bar": {
"extractionState": "manual",
"localizations": {
@@ -928,6 +939,17 @@
}
}
},
+ "chat.held.design_limit": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Design has tried this %d times since you last responded, so I’ve paused it. Run it again?"
+ }
+ }
+ }
+ },
"chat.held.run.after_by": {
"extractionState": "manual",
"localizations": {