oficina / equipo Public

Run now carries what the page showed; one family map with the runner

Human

Prompt

Fable re-reviewed a1f8706a: the runner half of B1 is solid, S1-S5 closed. R1 (blocker): the tap must carry what the page showed (connection, or explicit none for plain) on the web form, wire.RunNow and the native call; predict again and refuse with 409 if it differs; plain Run now to a protocol-29 runner only when the page showed it, and say honestly when it may bill; carry_on also pins the connection behind it and refuses on a change. R2: use the runner's family names (Codex is gpt), one shared mapping, and regress a Codex-engineered Review. Fable's nits: make TestSchedulePinnedReleaseRunsOnlyThere fail when the pin is ignored, and fix other cheap ones.

From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.

Summary

R1: the web form, the native call and wire.RunNow send the offer the person was shown (its connection id, or plain). Run now is predicted again in the same transaction; anything else is refused, 409 offer_changed, nothing written, and the page redraws with the current offer. Plain Run now goes only to a runner below protocol 29 and says when it may bill per use. Base's job card keeps the connection behind carry_on; a change moves its revision and the release is pinned to it. R2: provider.SubscriptionFamily is the one family map for the runner's bindings and the instance's prediction (Codex is gpt), with a Codex-engineered Review regression. Nits: the pinned runner tests fail when the pin is ignored (plus a metered-only case), Research's first pass avoids other-family subscriptions only, stale comments, the send log names the protocol, the sweep's seam is a Store field. Copy: Luna's api.offer_changed and work.pause.run_now_may_bill, accepted by delegation.
Agent notes
The legacy hold block lost its unpinned Run now form: it only showed where no pause does, and would now always be refused. The held card's own Run it now names nothing and keeps its meaning (Fable agreed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev ac7457e2911a7c792315a842c0767782064fa122 parent a1f8706
35 files changed, +418 −100
  • .rastrillo/budgets.txt +6 −6
  • docs/api/equipo-v1.openapi.json +10 −2
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +11 −0
  • docs/superpowers/specs/2026-11-24-paused-work-design.md +18 −1
  • internal/equipo/chat/http.go +2 −0
  • internal/equipo/chat/job_paused.go +17 −8
  • internal/equipo/chat/jobs.go +10 −10
  • internal/equipo/chat/paused.go +15 −6
  • internal/equipo/chat/paused_test.go +126 −6
  • internal/equipo/chat/projects.go +4 −2
  • internal/equipo/chat/schedule.go +39 −16
  • internal/equipo/chat/store.go +3 −0
  • internal/equipo/chat/stream.go +5 −3
  • internal/equipo/copy.go +2 −0
  • internal/equipo/migrations/0105_job_carry_on.sql +3 −1
  • internal/equipo/migrations/schema.sql +1 −0
  • internal/equipo/pause_view.go +11 −3
  • internal/equipo/templates/task_card.html +2 −2
  • internal/equipo/work_pages.go +7 −1
  • internal/plan3test/plan3_release_test.go +1 −1
  • internal/runner/connections.go +1 −1
  • internal/runner/provider/family.go +16 −0
  • internal/runner/setup/account_bindings.go +1 −1
  • internal/runner/thin/pinned_release_test.go +30 −8
  • internal/runner/thin/state.go +3 −3
  • internal/thintest/scheduler_contract_test.go +16 −3
  • internal/wire/schedule.go +15 −5
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +11 −0
  • native/apple/Sources/EquipoKit/API/Client.swift +2 −2
  • native/apple/Sources/EquipoKit/API/Thin.swift +4 −2
  • native/apple/Sources/EquipoKit/Presentation/Pause.swift +7 −2
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +11 −0
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +4 −2
  • native/apple/Tests/EquipoKitTests/PausedTests.swift +3 −3
  • native/scripts/strings.json +1 −0

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/feat__paused-work: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.2s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.2s
ci-box: libwrap: fetched and verified in 0.2s
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 10.0s
ci-box: pi: installed and verified in 7.3s
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 3.6s
ci-box: file times set from content: 2987 files, 193 directories
ci-box: ready in 17.5s
=== 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.148s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.8s
+ go list -export -test -tags testbuild -f  ./...
  5.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-23 20:05:14 +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 1m20.104s 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.662s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.66s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 82.40, cpu waiting 47.63%, memory waiting 0.00%, io waiting 1.16%
--- 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 1m20.725s 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.375s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.37s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 82.40, cpu waiting 47.63%, memory waiting 0.00%, io waiting 1.16%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
=== RUN   TestHeadlessTokenPasteEndToEnd
time=2026-11-24T16:04:12.935Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-24T16:04:12.935Z level=INFO msg="startup phase done" phase=state_lock took=52µs
time=2026-11-24T16:04:12.935Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-24T16:04:12.935Z level=INFO msg="startup phase done" phase=claim_roots took=76µs
time=2026-11-24T16:04:12.935Z level=INFO msg="startup phase" phase=sweep
time=2026-11-24T16:04:12.967Z level=INFO msg="startup phase done" phase=sweep took=32.165ms
time=2026-11-24T16:04:12.967Z level=INFO msg="startup phase" phase=credentials
time=2026-11-24T16:04:12.967Z level=INFO msg="startup phase done" phase=credentials took=243µs
time=2026-11-24T16:04:12.967Z level=INFO msg="startup phase" phase=open_state
time=2026-11-24T16:04:13.019Z level=INFO msg="startup phase done" phase=open_state took=51.645ms
time=2026-11-24T16:04:13.020Z level=INFO msg=connecting host=127.0.0.1:42037 protocol=29
time=2026-11-24T16:04:13.023Z level=INFO msg=connected host=127.0.0.1:42037 took=1.068ms
time=2026-11-24T16:04:13.023Z level=INFO msg="capabilities gathering"
time=2026-11-24T16:04:13.024Z level=INFO msg="capabilities gathered" took=557µs tags=linux,claude,go
time=2026-11-24T16:04:13.025Z level=INFO msg="hello sent" protocol=29
time=2026-11-24T16:04:13.029Z level=INFO msg=welcome protocol=29 role=primary generation=1
time=2026-11-24T16:04:18.175Z level=WARN msg="disconnect logout" err="exit status 2"
    token_test.go:231: the token's home stayed: <nil>
time=2026-11-24T16:04:18.182Z level=WARN msg="research sweep" err=cancelled
time=2026-11-24T16:04:18.183Z level=WARN msg="kept sessions" err=cancelled
--- FAIL: TestHeadlessTokenPasteEndToEnd (5.69s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m19.881s
FAIL	amadan.net/oficina/equipo/internal/headless	80.161s


receipt: test step 1m22.398s 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 1m19.881s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.31s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.69s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.89s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' -v -run '^TestHeadlessTokenPasteEndToEnd$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestHeadlessTokenPasteEndToEnd headless-connections ac7457e2911a7c792315a842c0767782064fa122 5.69s 83.65
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 82.72, cpu waiting 47.72%, memory waiting 0.00%, io waiting 1.02%
--- 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 1m18.121s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.357s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.37s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 22.12s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.78s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 82.40, cpu waiting 47.41%, memory waiting 0.00%, io waiting 1.20%
--- 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 1m37.137s 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 1m35.27s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.99s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.27s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.19s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.57s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 78.24, cpu waiting 46.37%, memory waiting 0.00%, io waiting 0.86%
--- 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 2m47.925s 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 2m46.071s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m40.07s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.56s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.74s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.55s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.44s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 28.57, cpu waiting 15.32%, memory waiting 0.00%, io waiting 0.26%
--- 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 2m10.951s 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 2m8.501s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.16s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.85s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 48.67, cpu waiting 28.73%, memory waiting 0.00%, io waiting 0.50%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractRetryAccountActions
=== RUN   TestContractRetryAccountActions
    retry_contract_test.go:296: sign in again
--- FAIL: TestContractRetryAccountActions (0.18s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 1m30.271s
FAIL	amadan.net/oficina/equipo/internal/thintest	90.514s


receipt: test step 1m32.237s 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 1m30.271s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.2s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.55s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPreview
exit status 1
+ go test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' -v -run '^TestContractRetryAccountActions$' -count=1 ./internal/thintest   (retry, once)
##############################################################################
FLAKE ./internal/thintest:TestContractRetryAccountActions thintest-contract ac7457e2911a7c792315a842c0767782064fa122 0.18s 80.18
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 80.18, cpu waiting 47.09%, memory waiting 0.00%, io waiting 0.92%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 4m49.829s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m55.537s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 4m49.829s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.06s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.98s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.84s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.99s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.21, cpu waiting 1.81%, memory waiting 0.00%, io waiting 0.02%
--- 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.586s 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.545s amadan.net/oficina/equipo/internal/runner
receipt: slow test 31.51s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 65.53, cpu waiting 35.72%, memory waiting 0.00%, io waiting 1.86%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 1m5.099s 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 1m3.732s amadan.net/oficina/equipo/internal/runner
receipt: slow test 53.61s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 47.24s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.47s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 81.43, cpu waiting 44.52%, memory waiting 0.00%, io waiting 1.52%
--- 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.451s 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.563s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.6s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.75s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 43.22, cpu waiting 23.01%, memory waiting 0.00%, io waiting 2.43%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 40.3%, load 32.33
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m9.306s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.435s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.47s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.35s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.13s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.47s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.21s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectOwnershipIsLocal
machine: 32 CPUs, load 78.24, cpu waiting 46.37%, memory waiting 0.00%, io waiting 0.86%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 40.3%, load 32.33
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1m18.347s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.629s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.27s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.24s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 20.24s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.14s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 20.14s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
machine: 32 CPUs, load 68.99, cpu waiting 40.65%, memory waiting 0.00%, io waiting 0.72%
--- 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.3%, load 32.33
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m18.005s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m12.762s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16.98s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.5s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.37s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 10.36s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 7.34s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 68.99, cpu waiting 41.96%, memory waiting 0.00%, io waiting 0.75%
--- 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.3%, load 32.33
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m9.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 1m7.964s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.8s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.92s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.9s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.99s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 23.97s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 78.24, cpu waiting 45.64%, memory waiting 0.00%, io waiting 0.83%
--- 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.3%, load 32.33
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 56.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 54.515s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.6s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.41s amadan.net/oficina/equipo/internal/plan3test TestOnboardingAccountMigration
machine: 32 CPUs, load 82.72, cpu waiting 47.84%, memory waiting 0.00%, io waiting 1.05%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 40.3%, load 32.33
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/chatmarkdown: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/metered TestMeteredRaceAdmitsExactlyOne
=== RUN   TestMeteredRaceAdmitsExactlyOne
    meter_test.go:205: round 5: ran map[], held map[ask:busy review:busy]
--- FAIL: TestMeteredRaceAdmitsExactlyOne (0.05s)

--- FAIL amadan.net/oficina/equipo/internal/runner/metered (package output)
FAIL
rastrillo-budget/v1 ran 951ms
FAIL	amadan.net/oficina/equipo/internal/runner/metered	0.967s

budget note: internal/equipo took 1m2.047s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 22.227s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 10.543s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m58.846s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 41.001s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m7.653s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 29.162s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 15.9s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m26.775s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 13.634s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m6.695s against a 60s target (the gate's other steps are not in this figure)
receipt: 47 packages ran, 18 cached, 17 without tests, 1 failed
receipt: slow package 1m58.846s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m26.775s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m14.403s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m7.653s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 1m5.369s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 54.22s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 51.94s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 45.77s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.59s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.56s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestMeteredRaceAdmitsExactlyOne$' -count=1 ./internal/runner/metered   (retry, once)
##############################################################################
FLAKE ./internal/runner/metered:TestMeteredRaceAdmitsExactlyOne rest ac7457e2911a7c792315a842c0767782064fa122 0.05s 33.40
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 33.40, cpu waiting 18.09%, memory waiting 0.00%, io waiting 0.31%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m25.707s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.838s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.19s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.83s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.1s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.27s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.45s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 82.72, cpu waiting 47.84%, memory waiting 0.00%, io waiting 1.05%
--- 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.394s 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.51s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.02s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 23.84s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.31s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 11.45s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.23s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 78.24, cpu waiting 46.85%, memory waiting 0.00%, io waiting 0.89%
--- 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.349s 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.791s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.18s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.39s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.52s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.46s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.23s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 60.15, cpu waiting 35.74%, memory waiting 0.00%, io waiting 0.63%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-24T16:03:36.178Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-24T16:03:36.178Z level=INFO msg="startup phase done" phase=state_lock took=238µs
time=2026-11-24T16:03:36.179Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-24T16:03:36.179Z level=INFO msg="startup phase done" phase=claim_roots took=169µs
time=2026-11-24T16:03:36.179Z level=INFO msg="startup phase" phase=sweep
time=2026-11-24T16:03:36.225Z level=INFO msg="startup phase done" phase=sweep took=46.521ms
time=2026-11-24T16:03:36.225Z level=INFO msg="startup phase" phase=credentials
time=2026-11-24T16:03:36.225Z level=INFO msg="startup phase done" phase=credentials took=139µs
time=2026-11-24T16:03:36.226Z level=INFO msg="startup phase" phase=open_state
time=2026-11-24T16:03:36.274Z level=INFO msg="startup phase done" phase=open_state took=47.997ms
time=2026-11-24T16:03:36.274Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-24T16:03:36.276Z level=INFO msg=connecting host=127.0.0.1:44149 protocol=29
time=2026-11-24T16:03:36.278Z level=INFO msg=connected host=127.0.0.1:44149 took=860µs
time=2026-11-24T16:03:36.278Z level=INFO msg="capabilities gathering"
time=2026-11-24T16:03:36.279Z level=INFO msg="capabilities gathered" took=423µs tags=linux,claude,go
time=2026-11-24T16:03:36.279Z level=INFO msg="hello sent" protocol=29
time=2026-11-24T16:03:36.287Z level=INFO msg=welcome protocol=29 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.47s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m35.561s
FAIL	amadan.net/oficina/equipo/internal/headless	95.784s


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

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

receipt: test step 11.806s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 10.457s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.32s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.14s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test

receipt: test step 3.678s 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.095s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.09s 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 3m42.23s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m40.477s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 22.59s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.04s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.66s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.12s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.35, cpu waiting 4.62%, memory waiting 0.00%, io waiting 0.07%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (54s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.60s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.20s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.83s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.53s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.23s
+ 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   (65s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 14.32s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 20.92s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.44s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 17.29s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 19.34s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.82s
+ 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 82.76, cpu waiting 44.96%, memory waiting 0.00%, io waiting 1.47%
--- 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.371s 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.007s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 205ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 84ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.84s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 400ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 4.213s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.028s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 23.25, cpu waiting 12.57%, memory waiting 0.00%, io waiting 3.28%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 40.3%, load 32.33
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2700 text files, 3210 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.432s
machine: 32 CPUs, load 83.65, cpu waiting 47.90%, memory waiting 0.00%, io waiting 1.09%
--- 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.3%, load 32.33
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 75.90, cpu waiting 40.24%, memory waiting 0.00%, io waiting 1.68%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 40.3%, load 32.33
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 3
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 43.22, cpu waiting 24.74%, memory waiting 0.00%, io waiting 2.35%
--- 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.3%, load 32.33
shard 28: make gitleaks
4:03PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
4:03PM INF 1151 commits scanned.
4:03PM INF scanned ~65794947 bytes (65.79 MB) in 24.8s
4:03PM INF no leaks found
machine: 32 CPUs, load 65.53, cpu waiting 37.27%, memory waiting 0.00%, io waiting 1.80%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.079ms, worst 1.152ms, budget 150ms
perf: GET /api/runner/protocol: median 76µs, worst 98µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 624µs, worst 665µs, budget 150ms
perf: GET /api/v1/accounts: median 429µs, worst 462µs, budget 150ms
perf: GET /api/v1/auth/devices: median 469µs, worst 569µs, budget 150ms
perf: GET /api/v1/budgets: median 508µs, worst 522µs, budget 150ms
perf: GET /api/v1/capabilities: median 254µs, worst 270µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.293ms, worst 1.307ms, budget 150ms
perf: GET /api/v1/connections: median 596µs, worst 660µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 554µs, worst 575µs, budget 150ms
perf: GET /api/v1/conversation: median 958µs, worst 1.015ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.51ms, worst 1.538ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.964ms, worst 2.022ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 806µs, worst 1.855ms, budget 150ms
perf: GET /api/v1/journey: median 7.519ms, worst 7.796ms, budget 150ms
perf: GET /api/v1/me: median 427µs, worst 434µs, budget 150ms
perf: GET /api/v1/me/settings: median 497µs, worst 538µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.149ms, worst 7.356ms, budget 150ms
perf: GET /api/v1/notifications: median 1.655ms, worst 1.704ms, budget 150ms
perf: GET /api/v1/onboarding: median 390µs, worst 421µs, budget 150ms
perf: GET /api/v1/people: median 451µs, worst 468µs, budget 150ms
perf: GET /api/v1/playbooks: median 579µs, worst 601µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 530µs, worst 611µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 841µs, worst 885µs, budget 150ms
perf: GET /api/v1/preferences: median 747µs, worst 796µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 442µs, worst 468µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 571µs, worst 598µs, budget 150ms
perf: GET /api/v1/roster: median 463µs, worst 491µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 405µs, worst 442µs, budget 150ms
perf: GET /api/v1/specialists: median 8.169ms, worst 8.303ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.134ms, worst 8.344ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 848µs, worst 923µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.139ms, worst 1.199ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 710µs, worst 750µs, budget 150ms
perf: GET /api/v1/teams: median 437µs, worst 456µs, budget 150ms
perf: GET /api/v1/templates: median 595µs, worst 628µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 453µs, worst 509µs, budget 150ms
perf: GET /auth/callback: median 81µs, worst 117µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.876ms, worst 4.021ms, budget 150ms
perf: GET /auth/verify: median 91µs, worst 111µs, budget 150ms
perf: GET /connections: median 4.23ms, worst 4.376ms, budget 150ms
perf: GET /conversation: median 8.359ms, worst 10.808ms, budget 150ms
perf: GET /conversation/connections: median 254µs, worst 310µs, budget 150ms
perf: GET /conversation/notebook: median 245µs, worst 284µs, budget 150ms
perf: GET /conversation/settings: median 4.67ms, worst 4.725ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.496ms, worst 4.551ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.169ms, worst 7.45ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.944ms, worst 7.037ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.427ms, worst 4.476ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.572ms, worst 4.687ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.897ms, worst 5.089ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 5.345ms, worst 8.156ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.986ms, worst 4.198ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.426ms, worst 4.541ms, budget 150ms
perf: GET /housekeeping: median 4.294ms, worst 4.486ms, budget 150ms
perf: GET /invites/new: median 617µs, worst 643µs, budget 150ms
perf: GET /invites/{id}: median 660µs, worst 676µs, budget 150ms
perf: GET /jobs: median 3.779ms, worst 3.975ms, budget 150ms
perf: GET /jobs/{id}: median 5.116ms, worst 5.205ms, budget 150ms
perf: GET /journey: median 14.639ms, worst 15.146ms, budget 150ms
perf: GET /nav/rail: median 4.109ms, worst 4.194ms, budget 150ms
perf: GET /needs-you: median 14.259ms, worst 17.715ms, budget 150ms
perf: GET /onboarding: median 5.388ms, worst 5.676ms, budget 150ms
perf: GET /people: median 4.561ms, worst 4.638ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.103ms, worst 5.331ms, budget 150ms
perf: GET /playbooks: median 4.47ms, worst 4.643ms, budget 150ms
perf: GET /playbooks/new: median 4.625ms, worst 4.776ms, budget 150ms
perf: GET /playbooks/{id}: median 5.07ms, worst 5.213ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.015ms, worst 5.292ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.134ms, worst 4.277ms, budget 150ms
perf: GET /preferences: median 4.817ms, worst 5.045ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.5ms, worst 4.839ms, budget 150ms
perf: GET /projects: median 6.604ms, worst 14.782ms, budget 150ms
perf: GET /projects/accounts: median 4.187ms, worst 4.385ms, budget 150ms
perf: GET /projects/new: median 4.162ms, worst 4.23ms, budget 150ms
perf: GET /projects/{id}: median 12.493ms, worst 12.728ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.284ms, worst 4.466ms, budget 150ms
perf: GET /runners/enrol: median 4.994ms, worst 5.154ms, budget 150ms
perf: GET /settings: median 3.885ms, worst 4.03ms, budget 150ms
perf: GET /settings/coordinator: median 5.997ms, worst 6.118ms, budget 150ms
perf: GET /settings/devices: median 3.733ms, worst 3.853ms, budget 150ms
perf: GET /settings/recovery: median 4.023ms, worst 4.142ms, budget 150ms
perf: GET /settings/recovery/release: median 3.996ms, worst 7.356ms, budget 150ms
perf: GET /settings/thinking: median 252µs, worst 287µs, budget 150ms
perf: GET /signed-out: median 281µs, worst 294µs, budget 150ms
perf: GET /signin: median 282µs, worst 308µs, budget 150ms
perf: GET /specialists/new: median 3.986ms, worst 4.102ms, budget 150ms
perf: GET /specialists/{key}: median 11.538ms, worst 11.618ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.062ms, worst 4.186ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.28ms, worst 4.334ms, budget 150ms
perf: GET /tasks: median 6.214ms, worst 6.398ms, budget 150ms
perf: GET /tasks/new: median 3.692ms, worst 3.766ms, budget 150ms
perf: GET /tasks/{id}: median 5.897ms, worst 6.079ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.17ms, worst 5.253ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.035ms, worst 6.96ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.349ms, worst 6.522ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.554ms, worst 1.604ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.697ms, worst 5.772ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.307ms, worst 5.51ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.718ms, worst 5.014ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.6ms, worst 8.933ms, budget 150ms
perf: GET /team/{specialist}: median 4.834ms, worst 4.947ms, budget 150ms
perf: GET /teams: median 10.526ms, worst 10.734ms, budget 150ms
perf: GET /templates: median 3.906ms, worst 6.063ms, budget 150ms
perf: GET /usage: median 4.852ms, worst 5.06ms, budget 150ms
perf: GET /work: median 3.638ms, worst 3.697ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 159ms of [156.780948ms 159.059304ms 160.372753ms], budget 500ms

receipt: test step 53.702s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 88 without tests, 0 failed
receipt: slow package 10.571s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/wire/wireschema
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow test 10.04s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 530ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.12 GiB in 27664 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
ci-box: build cache over 4.0 GiB: dropped 1.49 GiB this job did not read, kept 2.63 GiB
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 991c57a0..48456cfa 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
-size internal/equipo 22548 - Paused work: the report card and task page lead, stop and Run now, in the person's zone (2026-11-24, review fixes); measured 22548 source lines.
-size internal/wire 6936 - StepPaused, RunNowOffer, the paused job state, CarryOn, TimeZone and protocol 29's pinned release (2026-11-24); measured 6936 source lines.
+size internal/equipo 22564 - Paused work: the report card and task page lead, stop and Run now, in the person's zone (2026-11-24); measured 22564 source lines.
+size internal/wire 6946 - StepPaused, RunNowOffer, the paused job state, CarryOn, TimeZone and protocol 29's pinned release (2026-11-24); measured 6946 source lines.
size internal/equipotest - 12017 Task 21 repairs historical migration and conversation fixtures after Plan 3, and the Rastrillo upgrade contract comparing served assets with what Assets serves; measured 0/12017 source/test lines.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
@@ -26,7 +26,7 @@ time internal/runner/provider/claude 45s Task 5 measured 32.430s for fake CLI se
time internal/runner/provider/codex 35s Plan 3 CI repair measured 24.464s for the full package (controller CI 27.908s).
time internal/runner/provider/pi 60s The real pinned Pi in bubblewrap against a fake TensorX: probes P1 to P5 (a hundred RPC turns), the hostile repository, and the pinned tree checked whole (about 160 MB); measured 22s locally.
time internal/runner/provider/opencode 90s The real pinned OpenCode in bubblewrap against a fake Go: probes, the hostile repository per source, termination, resume; the 260 MB binary hashed per launch. Measured 40s.
-size internal/runner/provider 5715 - Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; measured 5715 source lines (Claude policy stamp and empty managed settings).
+size internal/runner/provider 5731 - Fable follow-up: base and diagnostic gates, preview isolation, provenance guards, and the shared subscription family map (2026-11-24); measured 5731 source lines.
time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops.
@@ -38,7 +38,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full
perf GET /releases/* skip Verified runner release file downloads, not browser GET screens.
perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen.
time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s;
-size internal/runner/thin 28478 22691 Forge review fixes, fileForge router coverage, authority and proposal regressions, and protocol 29's pinned release (2026-11-24); measured 28478/22691.
+size internal/runner/thin 28478 22713 Forge review fixes, fileForge router coverage, authority and proposal regressions, and protocol 29's pinned release (2026-11-24); measured 28478/22713.
time internal/thintest 240s Thin contract and page tests, the Assistant's and the models' included, share one harness. Measured 202s on a shared 16 CPU box (2026-11-13); CI runs two lanes.
time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing.
time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s).
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 34457 9380 Paused work: zone, Run now prediction and pinned release, paused job card, carry_on, only_if_unset, per-card sweep (2026-11-24); measured 34457/9380.
+size internal/equipo/chat 34507 9500 Paused work: zone, Run now prediction, pinned release checked against the tap, paused job card, carry_on, per-card sweep (2026-11-24); measured 34507/9500.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
@@ -71,7 +71,7 @@ perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one im
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally).
size internal/headless - 11437 Grant scenarios for a named repository (hub #48); the sign-in's account email at 1280 and 390; measured 11437 test lines.
-size internal/thintest - 34637 Paused work: the paused job contract, the paused card in the browser, housekeeping and day boxes on Madrid's clock (2026-11-24); measured 34637 test lines.
+size internal/thintest - 34650 Paused work: the paused job contract, the paused card in the browser, housekeeping and day boxes on Madrid's clock (2026-11-24); measured 34650 test lines.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index 7f4d3134..ba9e4d2c 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -14305,7 +14305,8 @@
"turn_ended",
"question_ended",
"host_not_allowed",
- "already_running"
+ "already_running",
+ "offer_changed"
]
},
"copy_key": {
@@ -14356,7 +14357,8 @@
"budgets.invalid_input",
"budgets.forbidden",
"budgets.revision_conflict",
- "api.already_running"
+ "api.already_running",
+ "api.offer_changed"
]
},
"request_id": {
@@ -21448,6 +21450,9 @@
"step_revision": {
"type": "integer",
"format": "int64"
+ },
+ "offer": {
+ "type": "string"
}
},
"additionalProperties": false,
@@ -24021,6 +24026,9 @@
},
"plain": {
"type": "boolean"
+ },
+ "may_bill": {
+ "type": "boolean"
}
},
"additionalProperties": false,
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 4d707e58..2d0d402b 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6902,6 +6902,8 @@ records remain unchanged.
| `docs/api/equipo-v1.md / Talk to the Assistant: paused jobs` | Each job has one `job` card, updated in place as the work goes on, so the same card `id` comes again in `card` events with a higher `revision`. Its `question` is the job’s title, `result` its short status, `detail` adds one sentence, and `started_at` gives the start time. Its state is `working`, `asking`, `ready`, `done`, `stopped` or `paused`. A paused job waits and will carry on by itself, for example when a plan’s limit resets. Its `result` says when that will be, in your time zone, such as “Paused until 21:00”, or says “Paused” if the time is unknown. Its `detail` explains why it paused and when it will carry on. A paused card has `carry_on: true` when “Carry on now” is available because another of your plans has room at no extra cost; otherwise `carry_on` is left out. To carry on, call `POST /api/v1/assistant/cards/{id}/carry_on` with the card’s revision and a key of your choosing, 1 to 128 bytes:<br><br>```json<br>{"revision":7,"idempotency_key":"&lt;a new key for each tap&gt;"}<br>```<br><br>The answer is `200` with the card as it is now in `card`; the same key again gives the same answer. A stale revision is `409 card_stale`, a card that is not paused is `409 not_paused`, and a paused card without `carry_on` is `409 carry_on_unavailable`. Each `409` body carries the card as it is now in `card`.<br><br>A job card takes no answer: answering one is `404 not_found`. Its links may include something to try, the published site, and the job's page in Equipo. A go-ahead or Publish card for a job carries `job`, the job card's `id`. `job`, `detail` and `started_at` are left out when they do not apply.<br><br>`paused` is sent only to a client that asks for it: add `job_states=paused` to `GET /api/v1/assistant/snapshot` and `GET /api/v1/assistant/events`. Without it a paused job card comes as `working`, with the same `result` and `detail` and no `carry_on`.<br><br>Times in `result` and `detail` use your time zone. Equipo uses `Europe/Dublin` unless you set a different one. Set it with `PUT /api/v1/assistant/time-zone` and an IANA time-zone name:<br><br>```json<br>{"time_zone":"Europe/Madrid"}<br>```<br><br>The response is `200` with `time_zone`. If Equipo does not recognise the time zone, the response is `422 invalid_input`. A device can set its time zone with `PUT /api/v1/time-zone`. | Paused job cards, carry_on and the time zone for Base (spec 2026-11-24; Luna, with the controller's Equipo correction) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
| `docs/api/equipo-v1.md / Talk to the Assistant: only_if_unset` | To set the person's time zone only if they haven't set one, add `"only_if_unset": true`. The response's `time_zone` is the one in effect. | Base's team zone never overrides the person's own (controller ruling, 2026-11-24) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
| `api.already_running` | A request to run this work is already in progress. | A second Run now for the same hold (paused work review S2) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
+| `api.offer_changed` | The option to run this work has changed. Check the current option, then try again. | A Run now tap whose offer changed since the page was drawn (paused work re-review R1) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
+| `work.pause.run_now_may_bill` | This may use a plan that bills per use. | Under plain Run it now anyway, for an older runner, when a pay-per-use connection could take it (re-review R1) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
## Task 21
@@ -8113,3 +8115,12 @@ B1: Run now's release is pinned to the predicted connection (protocol 29, `Relea
- instance prediction without Review's Engineer -> FAIL TestRunNowPredictsReviewsFamilyRule (predicted Claude, the runner takes TensorX); restored -> ok.
Nits fixed: N1 (AtHour), N5, N6 (comments; the needs-person gap is in the spec), N9, N10 (native too-old, eyebrow, literal keys), N11, N12. Left, with reasons: N2 (Luna's text, no full stop on the stopped lead), N3 (the designer's call on Wait), N4 (already recorded in the inventory row's context), N7 (a live relative clock on an open page is new behaviour; the page redraws on events), N8 (no reviewed sentence for a pause with no time), N10's silent native refusal (the button goes once Run now is written), N13 (Base's four labels are Luna-reviewed and Base's to draw; `Store.Zone` callers have no context and read outside transactions; the budget day is the runner's UTC accounting; the first page before zone.js posts).
+
+### Paused work: Fable's re-review at a1f8706a, fixed
+
+R1: the tap carries what was shown (web form, native call, `wire.RunNow.offer`: the connection id or `plain`); Run now is predicted again in the same transaction and anything else is 409 `offer_changed`, nothing written. Base's card keeps the connection behind `carry_on` (`chat_cards.carry_on_connection`): a change moves its revision, and the release is pinned to it. Plain Run now, for runners below 29 only, says when it may bill. R2: one family mapping (`provider.SubscriptionFamily`) for the runner's bindings and the instance's prediction. Nits: the pinned runner tests fail when the pin is ignored, with a metered-only case; Research's first pass avoids other-family subscriptions only; stale comments; the send log names the protocol; the sweep's seam is a Store field. Left: a pinned release the runner cannot honour waits silently until the hold lifts (safe; listed in the spec's gaps); rollback with a release written while a runner was away (Fable's record). Guards observed failing, then restored:
+
+- instance family as the provider name (codex) -> FAIL TestRunNowPredictsReviewAfterCodex (predicted Codex, the runner takes TensorX); restored -> ok.
+- release pinning the prediction read at the tap whatever was shown -> FAIL TestRunNowRefusesAChangedOffer (a tap showing Codex was accepted); restored -> ok.
+- the job card not moving when the plan behind carry_on changes -> FAIL TestCarryOnPinsItsConnection (carry on after the plan changed was not refused); restored -> ok.
+- runner ignoring the pin -> FAIL TestSchedulePinnedReleaseRunsOnlyThere (ran on claude-a) and TestSchedulePinnedReleaseNeverBillsMetered (ran on TensorX); restored -> ok.
diff --git a/docs/superpowers/specs/2026-11-24-paused-work-design.md b/docs/superpowers/specs/2026-11-24-paused-work-design.md
index 9b02959f..279646c3 100644
--- a/docs/superpowers/specs/2026-11-24-paused-work-design.md
+++ b/docs/superpowers/specs/2026-11-24-paused-work-design.md
@@ -73,7 +73,21 @@ said that Codex had room, and Run it now anyway lived only on the task page.
A runner below protocol 29 cannot be held to a connection: Encode
refuses a pinned release frame and drops a pinned dispatch's release,
and the instance offers it plain "Run it now anyway" (`run_now.plain`),
- naming nothing, with no `carry_on`.
+ naming nothing, with no `carry_on`; when a pay-per-use connection could
+ take the step it says "This may use a plan that bills per use."
+
+ **The tap carries what was shown (re-review R1).** The web form, the
+ native call and `wire.RunNow` send `offer`: the offer's connection id, or
+ `plain`. Run now is predicted again in the same transaction; anything
+ else (another connection, none, plain against a named offer or the
+ reverse) is refused, 409 `offer_changed` ("The option to run this work
+ has changed. Check the current option, then try again."), with nothing
+ written, and the page redraws with the offer as it is. Base's job card
+ keeps the connection behind `carry_on: true`; a change moves the card's
+ revision, so Carry on now on the old revision is `card_stale`, and the
+ release is pinned to the kept connection. The held card's own Run it
+ now names nothing and keeps its meaning. The instance's families are
+ the runner's (`provider.SubscriptionFamily`: Codex is `gpt`).
3. **Indigo** from Equipo's palette (`--equipo-tone-paused-*`), AA contrast in
light and dark (checked in a test).
4. **Time zone per person**, default `Europe/Dublin` (Paul, 2026-11-13).
@@ -138,6 +152,9 @@ change.
ask for more today.
- A paused job with no known resume time has `result` "Paused" and no
`detail`: there is no reviewed sentence for it.
+- A pinned Run now the runner cannot honour (its connection filled) waits
+ pending until the hold lifts; the page offers nothing more and a tap says
+ it is already in progress, but nothing says it did not start.
- On an open web page the relative part ("in 9 hours") moves only when the
page redraws on an event; Base's card is reprojected every minute.
diff --git a/internal/equipo/chat/http.go b/internal/equipo/chat/http.go
index 8beb3ae1..0b88ba91 100644
--- a/internal/equipo/chat/http.go
+++ b/internal/equipo/chat/http.go
@@ -420,6 +420,8 @@ func (h *HTTP) fail(w http.ResponseWriter, r *http.Request, err error) {
personapi.WriteError(w, r, http.StatusConflict, "hold_bar", nil)
case errors.Is(err, ErrAlreadyReleased):
personapi.WriteError(w, r, http.StatusConflict, "already_running", nil)
+ case errors.Is(err, ErrOfferChanged):
+ personapi.WriteError(w, r, http.StatusConflict, "offer_changed", nil)
case errors.Is(err, ErrRunnerTooOld):
personapi.WriteError(w, r, 409, "runner_too_old", nil)
case errors.Is(err, ErrNoRunner):
diff --git a/internal/equipo/chat/job_paused.go b/internal/equipo/chat/job_paused.go
index 6a8bb873..3cfb4a60 100644
--- a/internal/equipo/chat/job_paused.go
+++ b/internal/equipo/chat/job_paused.go
@@ -41,6 +41,9 @@ type jobPause struct {
task string
step string
rev int64
+ // conn is the connection Carry on now would run on (RunNowOffer's id):
+ // the card keeps it, and the release is pinned to it (review R1).
+ conn string
}
// jobPaused is the hand-off's pause, nil while any task it follows that
@@ -72,7 +75,7 @@ func (t *txn) jobPaused(h handoffRecord) (*jobPause, error) {
out.reason, out.at = p.reason, p.at
}
if out.step == "" {
- out.task, out.step, out.rev = p.task, p.step, p.rev
+ out.task, out.step, out.rev, out.conn = p.task, p.step, p.rev, p.conn
}
}
return out, nil
@@ -114,7 +117,7 @@ func (t *txn) taskPause(k taskRecord, s stepRecord) (*jobPause, error) {
return nil, nil
}
if o := p.RunNow; r.ID == "" && o != nil && o.Billing == wire.BillingSubscription && !o.Same {
- out.task, out.step, out.rev = k.ID, s.ID, h.StepRevision
+ out.task, out.step, out.rev, out.conn = k.ID, s.ID, h.StepRevision, o.Connection
}
return out, nil
}
@@ -163,7 +166,10 @@ func (s *Store) refreshJobs(ctx context.Context) {
if err := t.db.Where("id = ? AND person = ?", c.HandoffID, c.Person).Limit(1).Find(&h).Error; err != nil || h.ID == "" {
return err
}
- return projectJobFor(t, h)
+ if s.projectJobHook != nil {
+ return s.projectJobHook(t, h)
+ }
+ return t.projectJob(h)
})
if err != nil {
s.logJobRefresh(c.ID, err)
@@ -171,9 +177,6 @@ func (s *Store) refreshJobs(ctx context.Context) {
}
}
-// projectJobFor is projectJob, a seam for the sweep's test.
-var projectJobFor = func(t *txn, h handoffRecord) error { return t.projectJob(h) }
-
// logJobRefresh reports a job card the sweep could not bring up to date.
func (s *Store) logJobRefresh(card string, err error) {
if l := s.logger.Load(); l != nil {
@@ -272,8 +275,14 @@ func (s *Store) CarryOn(ctx context.Context, person, id string, in wire.CarryOn)
refused = ErrCarryOnUnavailable
return nil
}
- release, err := t.release(k, person, p.step, p.rev)
- if errors.Is(err, ErrConflict) || errors.Is(err, ErrHoldBar) || errors.Is(err, ErrRunnerTooOld) || errors.Is(err, ErrNotFound) {
+ // Pinned to the plan behind the card's carry_on: a different one now
+ // moved the card's revision when it was projected above.
+ if p.conn != c.CarryOnConnection {
+ refused = ErrCarryOnUnavailable
+ return nil
+ }
+ release, err := t.release(k, person, p.step, p.rev, &p.conn)
+ if errors.Is(err, ErrConflict) || errors.Is(err, ErrHoldBar) || errors.Is(err, ErrRunnerTooOld) || errors.Is(err, ErrNotFound) || errors.Is(err, ErrOfferChanged) {
// Run now's own refusals are one answer here: Carry on now is
// not available (the contract's three 409s, and no other).
refused = ErrCarryOnUnavailable
diff --git a/internal/equipo/chat/jobs.go b/internal/equipo/chat/jobs.go
index 581b34a7..96a99efa 100644
--- a/internal/equipo/chat/jobs.go
+++ b/internal/equipo/chat/jobs.go
@@ -199,10 +199,10 @@ func jobStep(stage string) int {
// open question is asking and a stopped job (stopReason) stopped; else
// working, by the slowest followed task's stage. A job with a thread
// links to it last.
-func (t *txn) jobView(h handoffRecord) (state, result, detail string, carryOn bool, links []wire.CardLink, err error) {
+func (t *txn) jobView(h handoffRecord) (state, result, detail, carryOn string, links []wire.CardLink, err error) {
state, key, first, err := t.jobState(h)
if err != nil {
- return "", "", "", false, nil, err
+ return "", "", "", "", nil, err
}
links = []wire.CardLink{}
if first != nil {
@@ -215,15 +215,15 @@ func (t *txn) jobView(h handoffRecord) (state, result, detail string, carryOn bo
// Working, unless all its open work is paused (job_paused.go).
p, err := t.jobPaused(h)
if err != nil {
- return "", "", "", false, nil, err
+ return "", "", "", "", nil, err
}
if p != nil {
result, detail := t.pausedWords(h.Person, p)
- return wire.JobPaused, result, detail, p.step != "", links, nil
+ return wire.JobPaused, result, detail, p.conn, links, nil
}
- return state, t.copy("assistant.job.status." + key), t.copy("assistant.job.detail." + key), false, links, nil
+ return state, t.copy("assistant.job.status." + key), t.copy("assistant.job.detail." + key), "", links, nil
}
- return state, t.copy("assistant.job." + state), t.copy("assistant.job.detail." + state), false, links, nil
+ return state, t.copy("assistant.job." + state), t.copy("assistant.job.detail." + state), "", links, nil
}
// jobState is jobView's state, a working job's status key and the link
@@ -349,19 +349,19 @@ func (t *txn) projectJob(h handoffRecord) error {
if err != nil {
return err
}
- c = cardRecord{ID: newID("c_"), Person: h.Person, Kind: wire.CardJob, State: state, TurnID: h.AssistantTurn, Question: title, Options: "[]", Links: string(raw), Result: result, Detail: detail, CarryOn: carryOn, HandoffID: h.ID, Revision: 1, CreatedAt: now, UpdatedAt: now, Lane: wire.LaneAssistant}
+ c = cardRecord{ID: newID("c_"), Person: h.Person, Kind: wire.CardJob, State: state, TurnID: h.AssistantTurn, Question: title, Options: "[]", Links: string(raw), Result: result, Detail: detail, CarryOn: carryOn != "", CarryOnConnection: carryOn, HandoffID: h.ID, Revision: 1, CreatedAt: now, UpdatedAt: now, Lane: wire.LaneAssistant}
if err := t.db.Create(&c).Error; err != nil {
return err
}
return t.cardEvent(c)
}
- if c.State == state && c.Result == result && c.Detail == detail && c.CarryOn == carryOn && c.Links == string(raw) {
+ if c.State == state && c.Result == result && c.Detail == detail && c.CarryOn == (carryOn != "") && c.CarryOnConnection == carryOn && c.Links == string(raw) {
return nil
}
- c.State, c.Result, c.Detail, c.CarryOn, c.Links = state, result, detail, carryOn, string(raw)
+ c.State, c.Result, c.Detail, c.CarryOn, c.CarryOnConnection, c.Links = state, result, detail, carryOn != "", carryOn, string(raw)
c.Revision++
c.UpdatedAt = now
- if err := t.db.Model(&cardRecord{}).Where("id = ?", c.ID).Select("state", "result", "detail", "carry_on", "links", "revision", "updated_at").Updates(&c).Error; err != nil {
+ if err := t.db.Model(&cardRecord{}).Where("id = ?", c.ID).Select("state", "result", "detail", "carry_on", "carry_on_connection", "links", "revision", "updated_at").Updates(&c).Error; err != nil {
return err
}
return t.cardEvent(c)
diff --git a/internal/equipo/chat/paused.go b/internal/equipo/chat/paused.go
index b83db3d9..9b00e65d 100644
--- a/internal/equipo/chat/paused.go
+++ b/internal/equipo/chat/paused.go
@@ -5,6 +5,7 @@ import (
"math"
"amadan.net/oficina/equipo/internal/runner/connect"
+ "amadan.net/oficina/equipo/internal/runner/provider"
"amadan.net/oficina/equipo/internal/schedule"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -149,7 +150,14 @@ func (t *txn) predictRunNow(k taskRecord, s stepRecord, h *wire.StepHold, mine [
case err != nil || proto < wire.ProtocolScheduler:
return nil, ""
case proto < wire.ProtocolPinnedRelease:
- return &wire.RunNowOffer{Plain: true}, ""
+ // It may bill when a connection that bills per use could take it.
+ o := &wire.RunNowOffer{Plain: true}
+ for _, r := range mine {
+ if c, ok := scheduleConn(r, role); ok && c.Billing == schedule.Metered && c.Capable && len(c.Models) > 0 {
+ o.MayBill = true
+ }
+ }
+ return o, ""
}
in, by, err := t.scheduleInput(k, s, role, mine)
if err != nil {
@@ -228,9 +236,10 @@ func (t *txn) scheduleInput(k taskRecord, s stepRecord, role string, mine []conn
return in, by, nil
}
-// decideRelease is what a release would do (the runner's own order):
-// Research first with every connection of another family than the
-// coordinator's avoided, then with none; anything else, Decide.
+// decideRelease is what a release would do (the runner's own order,
+// thin/research.go): Research first with every subscription of another
+// family than the coordinator's avoided, then with none; anything else,
+// Decide.
func decideRelease(in schedule.Input, role, family string) schedule.Decision {
if role != schedule.RoleResearch || family == "" {
return schedule.Decide(in)
@@ -238,7 +247,7 @@ func decideRelease(in schedule.Input, role, family string) schedule.Decision {
first := in
first.Step.Avoid = nil
for _, c := range in.Conns {
- if c.Family != family {
+ if c.Billing != schedule.Metered && c.Family != family {
first.Step.Avoid = append(first.Step.Avoid, c.ID)
}
}
@@ -270,7 +279,7 @@ func scheduleConn(r connectionRecord, role string) (schedule.Conn, bool) {
if r.State != wire.ConnHealthy && r.State != wire.ConnLimited {
return schedule.Conn{}, false
}
- c := schedule.Conn{ID: r.LocalID, Provider: r.Provider, Family: r.Provider, Account: r.Label, State: r.State, Billing: schedule.Subscription, Capable: connect.Capable(r.Provider, role), Windows: windowsOfRecord(r)}
+ c := schedule.Conn{ID: r.LocalID, Provider: r.Provider, Family: provider.SubscriptionFamily(r.Provider), Account: r.Label, State: r.State, Billing: schedule.Subscription, Capable: connect.Capable(r.Provider, role), Windows: windowsOfRecord(r)}
if r.State == wire.ConnLimited {
var h wire.Headroom
if json.Unmarshal([]byte(r.Headroom), &h) == nil && h.ResetsAt != nil {
diff --git a/internal/equipo/chat/paused_test.go b/internal/equipo/chat/paused_test.go
index dfd96ff8..ae7391bb 100644
--- a/internal/equipo/chat/paused_test.go
+++ b/internal/equipo/chat/paused_test.go
@@ -245,7 +245,7 @@ func TestRunNowOnceAndPinned(t *testing.T) {
connectionRecord{ID: "cn_codex", LocalID: "codex-1", Provider: wire.ProviderCodex, Kind: wire.KindToken, State: wire.ConnHealthy, Headroom: headroom(10, reset)},
)
ctx := context.Background()
- if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1}); err != nil {
+ if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1, Offer: "cn_codex"}); err != nil {
t.Fatal(err)
}
var rel releaseRecord
@@ -260,7 +260,7 @@ func TestRunNowOnceAndPinned(t *testing.T) {
if p := pausedOf(t, r); p == nil || p.RunNow != nil {
t.Fatalf("offered again after the release: %+v", p)
}
- if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1}); !errors.Is(err, ErrAlreadyReleased) {
+ if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1, Offer: "cn_codex"}); !errors.Is(err, ErrAlreadyReleased) {
t.Fatalf("a second tap: %v", err)
}
}
@@ -280,13 +280,11 @@ func TestRefreshJobsSkipsAFailingCard(t *testing.T) {
t.Fatal(err)
}
}
- project := projectJobFor
- t.Cleanup(func() { projectJobFor = project })
- projectJobFor = func(t *txn, h handoffRecord) error {
+ r.s.projectJobHook = func(t *txn, h handoffRecord) error {
if h.ID == "h_bad" {
return errors.New("a card that cannot be projected")
}
- return project(t, h)
+ return t.projectJob(h)
}
r.s.refreshJobs(context.Background())
var good cardRecord
@@ -384,3 +382,125 @@ func TestCarryOnNeverForMetered(t *testing.T) {
t.Fatalf("a metered prediction offered Carry on now: %+v", card)
}
}
+
+// Review R2: the family rule compares the runner's families, and Codex's
+// is gpt. Engineering ran on Codex; Review is held; Claude is at its
+// limit, Codex is 85% used and TensorX has budget. With leave the runner
+// tries another family than gpt first, so TensorX, and the instance says
+// so, not "Codex has room now".
+func TestRunNowPredictsReviewAfterCodex(t *testing.T) {
+ reset := time.Date(2026, 11, 24, 18, 0, 0, 0, time.UTC)
+ r, _ := pausedRigAt(t, wire.ProtocolPinnedRelease, wire.SpecialistReview, wire.StepHold{Reason: wire.HoldHeadroom, Connection: "claude-1", Provider: wire.ProviderClaude, ResetsAt: &reset, StepRevision: 1},
+ connectionRecord{ID: "cn_claude", LocalID: "claude-1", Provider: wire.ProviderClaude, Kind: wire.KindToken, State: wire.ConnLimited, Headroom: headroom(100, reset)},
+ connectionRecord{ID: "cn_codex", LocalID: "codex-1", Provider: wire.ProviderCodex, Kind: wire.KindToken, State: wire.ConnHealthy, Headroom: headroom(85, reset)},
+ tensorxConn(),
+ )
+ if err := r.s.db.G.Exec("UPDATE chat_steps SET account = 'codex-1' WHERE id = 's1'").Error; err != nil {
+ t.Fatal(err)
+ }
+ if err := r.s.db.G.Create(&stepRecord{ID: "s0", TaskID: "tk1", Idx: 0, Specialist: wire.SpecialistEngineering, Person: "owner@example.com", RunnerID: "RUNNER1", State: wire.StepDone, Attempt: 1, Account: "codex-1", Family: "gpt", Pushed: true, Revision: 1, CreatedAt: reset, UpdatedAt: reset}).Error; err != nil {
+ t.Fatal(err)
+ }
+ if p := pausedOf(t, r); p == nil || p.RunNow == nil || p.RunNow.Connection != "cn_tx" {
+ t.Fatalf("Review after Codex: %+v", p.RunNow)
+ }
+}
+
+// Review R1: the tap carries what the page showed. Claude is at its
+// limit; the page showed "Run it now with Codex"; Codex then filled, so
+// Run now now would use TensorX, which bills. The tap naming Codex is
+// refused (offer_changed), and so is one naming nothing or plain; no
+// release is written. A tap naming what is offered now is pinned there.
+func TestRunNowRefusesAChangedOffer(t *testing.T) {
+ reset := time.Date(2026, 11, 24, 21, 0, 0, 0, time.UTC)
+ r, _ := pausedRig(t, wire.StepHold{Reason: wire.HoldHeadroom, Connection: "claude-1", Provider: wire.ProviderClaude, ResetsAt: &reset, StepRevision: 1},
+ connectionRecord{ID: "cn_claude", LocalID: "claude-1", Provider: wire.ProviderClaude, Kind: wire.KindToken, State: wire.ConnLimited, Headroom: headroom(100, reset)},
+ connectionRecord{ID: "cn_codex", LocalID: "codex-1", Provider: wire.ProviderCodex, Kind: wire.KindToken, State: wire.ConnHealthy, Headroom: headroom(10, reset)},
+ tensorxConn(),
+ )
+ ctx := context.Background()
+ if p := pausedOf(t, r); p == nil || p.RunNow == nil || p.RunNow.Connection != "cn_codex" {
+ t.Fatalf("the page shows %+v", p)
+ }
+ if err := r.s.db.G.Exec("UPDATE chat_connections SET state = ?, headroom = ? WHERE id = 'cn_codex'", wire.ConnLimited, headroom(100, reset)).Error; err != nil {
+ t.Fatal(err)
+ }
+ for _, shown := range []string{"cn_codex", wire.RunNowPlain, ""} {
+ if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1, Offer: shown}); !errors.Is(err, ErrOfferChanged) {
+ t.Fatalf("a tap showing %q: %v", shown, err)
+ }
+ }
+ var n int64
+ r.s.db.G.Model(&releaseRecord{}).Count(&n)
+ if n != 0 {
+ t.Fatalf("%d releases written for a changed offer", n)
+ }
+ if p := pausedOf(t, r); p == nil || p.RunNow == nil || p.RunNow.Connection != "cn_tx" || p.RunNow.Billing != wire.BillingMetered {
+ t.Fatalf("the page now shows %+v", p.RunNow)
+ }
+ if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1, Offer: "cn_tx"}); err != nil {
+ t.Fatal(err)
+ }
+ var rel releaseRecord
+ if err := r.s.db.G.Where("step_id = 's1'").First(&rel).Error; err != nil || rel.Connection != "tensorx-1" {
+ t.Fatalf("release %+v %v", rel, err)
+ }
+}
+
+// An older runner's plain Run now: only when the page showed it, and the
+// offer says when it may bill per use.
+func TestPlainRunNowOnlyWhenShown(t *testing.T) {
+ reset := time.Date(2026, 11, 24, 21, 0, 0, 0, time.UTC)
+ r, _ := pausedRigAt(t, wire.Protocol28, wire.SpecialistEngineering, wire.StepHold{Reason: wire.HoldHeadroom, Connection: "claude-1", Provider: wire.ProviderClaude, ResetsAt: &reset, StepRevision: 1},
+ connectionRecord{ID: "cn_codex", LocalID: "codex-1", Provider: wire.ProviderCodex, Kind: wire.KindToken, State: wire.ConnHealthy, Headroom: headroom(10, reset)},
+ tensorxConn(),
+ )
+ if p := pausedOf(t, r); p == nil || p.RunNow == nil || !p.RunNow.Plain || !p.RunNow.MayBill {
+ t.Fatalf("an older runner's offer: %+v", p.RunNow)
+ }
+ ctx := context.Background()
+ if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1, Offer: "cn_codex"}); !errors.Is(err, ErrOfferChanged) {
+ t.Fatalf("a named tap to an older runner: %v", err)
+ }
+ if _, err := r.s.RunNow(ctx, "owner@example.com", "tk1", wire.RunNow{Step: "s1", StepRevision: 1, Offer: wire.RunNowPlain}); err != nil {
+ t.Fatal(err)
+ }
+ var rel releaseRecord
+ if err := r.s.db.G.Where("step_id = 's1'").First(&rel).Error; err != nil || rel.Connection != "" {
+ t.Fatalf("plain release %+v %v", rel, err)
+ }
+}
+
+// Base's carry_on pins the connection behind it: when the prediction
+// moves to another plan, the card's revision moves, and a tap on the old
+// revision is stale; on the new one the release is pinned to the new plan.
+func TestCarryOnPinsItsConnection(t *testing.T) {
+ reset := time.Date(2026, 11, 24, 21, 0, 0, 0, time.UTC)
+ ctx := context.Background()
+ r, _ := pausedRig(t, wire.StepHold{Reason: wire.HoldHeadroom, Connection: "claude-1", Provider: wire.ProviderClaude, ResetsAt: &reset, WakeAt: &reset, StepRevision: 1},
+ connectionRecord{ID: "cn_claude", LocalID: "claude-1", Provider: wire.ProviderClaude, Kind: wire.KindToken, State: wire.ConnLimited, Headroom: headroom(100, reset)},
+ connectionRecord{ID: "cn_codex", LocalID: "codex-1", Provider: wire.ProviderCodex, Kind: wire.KindToken, State: wire.ConnHealthy, Headroom: headroom(10, reset)},
+ connectionRecord{ID: "cn_claude2", LocalID: "claude-2", Provider: wire.ProviderClaude, Kind: wire.KindToken, State: wire.ConnHealthy, Headroom: headroom(50, reset)},
+ )
+ card := pausedJob(t, r)
+ if !card.CarryOn {
+ t.Fatalf("no carry on: %+v", card)
+ }
+ if err := r.s.db.G.Exec("UPDATE chat_connections SET state = ?, headroom = ? WHERE id = 'cn_codex'", wire.ConnLimited, headroom(100, reset)).Error; err != nil {
+ t.Fatal(err)
+ }
+ if _, err := r.s.CarryOn(ctx, "owner@example.com", card.ID, wire.CarryOn{Revision: card.Revision, IdempotencyKey: "k1"}); !errors.Is(err, ErrCardConflict) {
+ t.Fatalf("carry on after the plan changed: %v", err)
+ }
+ now := pausedJob2(t, r, card.ID)
+ if !now.CarryOn || now.Revision == card.Revision {
+ t.Fatalf("the card after the change: %+v", now)
+ }
+ if _, err := r.s.CarryOn(ctx, "owner@example.com", card.ID, wire.CarryOn{Revision: now.Revision, IdempotencyKey: "k2"}); err != nil {
+ t.Fatal(err)
+ }
+ var rel releaseRecord
+ if err := r.s.db.G.Where("step_id = 's1'").First(&rel).Error; err != nil || rel.Connection != "claude-2" {
+ t.Fatalf("release %+v %v", rel, err)
+ }
+}
diff --git a/internal/equipo/chat/projects.go b/internal/equipo/chat/projects.go
index b4a88b5f..5b938ae9 100644
--- a/internal/equipo/chat/projects.go
+++ b/internal/equipo/chat/projects.go
@@ -103,8 +103,10 @@ type cardRecord struct {
// Detail its one sentence more than Result.
HandoffID string `gorm:"index:chat_card_handoff"`
Detail string
- // CarryOn: a paused job card offers Carry on now.
- CarryOn bool
+ // CarryOn: a paused job card offers Carry on now, on
+ // CarryOnConnection (the offer's connection id), which pins it.
+ CarryOn bool
+ CarryOnConnection string
}
func (cardRecord) TableName() string { return "chat_cards" }
diff --git a/internal/equipo/chat/schedule.go b/internal/equipo/chat/schedule.go
index 10011b5c..418397b6 100644
--- a/internal/equipo/chat/schedule.go
+++ b/internal/equipo/chat/schedule.go
@@ -275,15 +275,23 @@ func (s *Store) RunNow(ctx context.Context, person, id string, in wire.RunNow) (
// S2: a second tap is told, not answered with the first.
return ErrAlreadyReleased
}
- rel, err := t.release(k, person, in.Step, in.StepRevision)
+ rel, err := t.release(k, person, in.Step, in.StepRevision, &in.Offer)
out.Release = rel
return err
})
return out, err
}
+// ErrOfferChanged: the Run now the person was shown is not what Run now
+// would do now (review R1); nothing is written, and the page shows the
+// offer as it is.
+var ErrOfferChanged = errors.New("chat: what run now would use has changed")
+
// release writes the release for the task's held step at revision, in t.
-func (t *txn) release(k taskRecord, person, step string, revision int64) (string, error) {
+// shown is what the person was shown (wire.RunNow.Offer): Run now is
+// predicted again and must be that, or ErrOfferChanged; the release is
+// pinned to it. nil is the held card's Run it now, which names nothing.
+func (t *txn) release(k taskRecord, person, step string, revision int64, shown *string) (string, error) {
var st stepRecord
if err := t.db.Where("id = ? AND task_id = ?", step, k.ID).First(&st).Error; errors.Is(err, gorm.ErrRecordNotFound) {
return "", ErrNotFound
@@ -315,21 +323,36 @@ func (t *txn) release(k taskRecord, person, step string, revision int64) (string
if proto < wire.ProtocolScheduler {
return "", ErrRunnerTooOld
}
- // Pinned to what the person was shown (protocol 29): the same
- // prediction the pages and Base offered, read now.
+ // Pinned to what the person was shown (protocol 29), read again now:
+ // the same answer, or refused.
pin := ""
- if proto >= wire.ProtocolPinnedRelease {
- if recs, err := t.connections(st.Person); err == nil {
- var mine []connectionRecord
- for _, r := range recs {
- if r.RunnerID == st.RunnerID && r.LocalID != "" && labelled(connectionView(r)) {
- mine = append(mine, r)
- }
- }
- if o, local := t.predictRunNow(k, st, h, mine); o != nil && !o.Plain {
- pin = local
- }
+ recs, err := t.connections(st.Person)
+ if err != nil {
+ return "", err
+ }
+ var mine []connectionRecord
+ for _, r := range recs {
+ if r.RunnerID == st.RunnerID && r.LocalID != "" && labelled(connectionView(r)) {
+ mine = append(mine, r)
+ }
+ }
+ o, local := t.predictRunNow(k, st, h, mine)
+ switch {
+ case shown == nil:
+ // The held card's Run it now: pinned when there is a prediction.
+ if o != nil && !o.Plain {
+ pin = local
+ }
+ case o == nil:
+ return "", ErrOfferChanged
+ case o.Plain:
+ if *shown != wire.RunNowPlain {
+ return "", ErrOfferChanged
}
+ case *shown != o.Connection:
+ return "", ErrOfferChanged
+ default:
+ pin = local
}
r := releaseRecord{ID: newID("rl_"), TaskID: k.ID, StepID: st.ID, StepRevision: revision, Person: person, RunnerID: st.RunnerID, Connection: pin, CreatedAt: t.now()}
if err := t.db.Create(&r).Error; err != nil {
@@ -522,7 +545,7 @@ func (t *txn) answerHeld(person string, c cardRecord, in wire.AnswerCard) (wire.
for _, ch := range rev {
revision = revision*10 + int64(ch-'0')
}
- if _, err := t.release(k, person, step, revision); errors.Is(err, ErrConflict) || errors.Is(err, ErrHoldBar) {
+ if _, err := t.release(k, person, step, revision, nil); errors.Is(err, ErrConflict) || errors.Is(err, ErrHoldBar) {
return wire.Card{}, v, ErrCardConflict
} else if err != nil {
return wire.Card{}, wire.Card{}, err
diff --git a/internal/equipo/chat/store.go b/internal/equipo/chat/store.go
index f2621b22..7baa640e 100644
--- a/internal/equipo/chat/store.go
+++ b/internal/equipo/chat/store.go
@@ -122,6 +122,9 @@ type Store struct {
// pushOn writes the push outbox (SetPush); pushWake wakes its sender.
pushOn atomic.Bool
pushWake chan struct{}
+ // projectJobHook stands in for projectJob in the minute's sweep (a
+ // test's failing card); nil projects as usual.
+ projectJobHook func(*txn, handoffRecord) error
}
// SetFrameTap sees every frame the instance sends a runner, as sent
diff --git a/internal/equipo/chat/stream.go b/internal/equipo/chat/stream.go
index a94c7b9f..9765e472 100644
--- a/internal/equipo/chat/stream.go
+++ b/internal/equipo/chat/stream.go
@@ -67,12 +67,14 @@ func (rc *runnerConn) log(msg string, err error) {
}
// send writes one frame as this connection's protocol speaks it. A frame
-// the protocol does not have is never sent (nothing places such work on a
-// protocol 1 runner; this is the last guard).
+// the protocol cannot carry is never sent (a pinned Run now to a runner
+// below 29, or anything new to an old runner; this is the last guard).
func (rc *runnerConn) send(ctx context.Context, f wire.Frame) error {
f, err := wire.Encode(f, rc.lease.Protocol)
if errors.Is(err, wire.ErrProtocol) {
- rc.log("runner frame not sent at protocol 1", err)
+ if rc.h.Logger != nil {
+ rc.h.Logger.Warn("runner frame not sent at its protocol", "runner", rc.principal.RunnerID, "type", f.Type, "protocol", rc.lease.Protocol, "err", err)
+ }
return nil
}
if err != nil {
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index e877eae8..824e399e 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -2406,6 +2406,8 @@ var pageCopy = map[string]string{
"time.when_in": "%s (%s)", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)
"api.not_paused": "This work is not paused now. Check its latest status.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)
"api.already_running": "A request to run this work is already in progress.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)
+ "api.offer_changed": "The option to run this work has changed. Check the current option, then try again.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)
+ "work.pause.run_now_may_bill": "This may use a plan that bills per use.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)
}
// pasteLabels are the paste box's words, for the shared renderer, and
diff --git a/internal/equipo/migrations/0105_job_carry_on.sql b/internal/equipo/migrations/0105_job_carry_on.sql
index 0ab42dd0..246e1d58 100644
--- a/internal/equipo/migrations/0105_job_carry_on.sql
+++ b/internal/equipo/migrations/0105_job_carry_on.sql
@@ -1,2 +1,4 @@
--- A paused job card offers Carry on now (paused work, 2026-11-24).
+-- A paused job card offers Carry on now (paused work, 2026-11-24), on the
+-- connection behind it, which pins the release (review R1).
ALTER TABLE chat_cards ADD COLUMN carry_on numeric;
+ALTER TABLE chat_cards ADD COLUMN carry_on_connection text;
diff --git a/internal/equipo/migrations/schema.sql b/internal/equipo/migrations/schema.sql
index 8130c4f2..f82d00aa 100644
--- a/internal/equipo/migrations/schema.sql
+++ b/internal/equipo/migrations/schema.sql
@@ -774,4 +774,5 @@ ALTER TABLE chat_projects ADD COLUMN description_set numeric;
UPDATE chat_projects SET title_set = metadata_set, description_set = metadata_set;
CREATE TABLE chat_person_zones (person text PRIMARY KEY, zone text NOT NULL, source text, updated_at datetime);
ALTER TABLE chat_cards ADD COLUMN carry_on numeric;
+ALTER TABLE chat_cards ADD COLUMN carry_on_connection text;
ALTER TABLE chat_releases ADD COLUMN connection text;
diff --git a/internal/equipo/pause_view.go b/internal/equipo/pause_view.go
index 868db46a..e7ff35b8 100644
--- a/internal/equipo/pause_view.go
+++ b/internal/equipo/pause_view.go
@@ -39,7 +39,10 @@ type pauseAction struct {
Label, Post, Href, Kind string
Step string
Revision int64
- Primary bool
+ // Offer is what the button shows (wire.RunNow.Offer): the tap is
+ // refused if Run now would now do anything else (review R1).
+ Offer string
+ Primary bool
}
// tooOld are stop reasons that wait for the runner to be updated.
@@ -196,10 +199,15 @@ func runNow(t wire.Task, s wire.Step, o *wire.RunNowOffer, p *pauseLine, primary
return nil
}
a := pauseAction{Post: "/conversation/tasks/" + t.ID + "/run-now", Kind: "run-now", Step: s.ID, Revision: s.Hold.StepRevision, Primary: primary}
+ a.Offer = o.Connection
switch {
case o.Plain:
- // An older runner cannot be held to one connection: no promise.
- a.Label = copyText("work.hold.run_now")
+ // An older runner cannot be held to one connection: no promise,
+ // and said when a connection that bills per use could take it.
+ a.Label, a.Offer = copyText("work.hold.run_now"), wire.RunNowPlain
+ if o.MayBill {
+ p.Note = copyText("work.pause.run_now_may_bill")
+ }
case o.Billing == wire.BillingMetered:
a.Label, p.Note = fmt.Sprintf(copyText("work.pause.run_now_with"), o.Name), fmt.Sprintf(copyText("work.pause.run_now_metered"), o.Name)
case o.Same:
diff --git a/internal/equipo/templates/task_card.html b/internal/equipo/templates/task_card.html
index 097f5f47..5465257c 100644
--- a/internal/equipo/templates/task_card.html
+++ b/internal/equipo/templates/task_card.html
@@ -8,7 +8,7 @@
{{define "trial-label"}}{{if eq .Mode "owner mode"}}<span equipo-isolation>{{copy "isolation.owner_mode"}}</span>{{end}}{{if .ProfileApprovals}}<span equipo-isolation>{{copy "isolation.approved_beyond_profile"}}</span>{{end}}{{with .Trial}}<span equipo-isolation>{{copy "trial.label"}}: {{range .UnverifiedChecks}}<span>{{copy (printf "trial.check.%s" .)}}</span> {{end}}<span>{{copy "trial.observed_locally"}}</span></span>{{end}}{{end}}
-{{define "pause"}}{{$t := .Task}}{{with $t.Pause}}<div equipo-pause{{if ne .Tone "paused"}} data-tone="{{.Tone}}"{{end}} role="status" data-pause><span equipo-pause-icon>{{icon .Icon}}</span><div equipo-pause-text>{{if or .Strong .Rest}}<p equipo-pause-lead>{{with .Strong}}<strong>{{.}}</strong>{{end}}{{.Rest}}</p>{{end}}{{with .Next}}<p equipo-pause-next>{{.}}</p>{{end}}</div>{{if or .Actions .Note}}<div equipo-pause-act>{{with .Actions}}<div equipo-pause-buttons>{{range .}}{{if .Post}}<form method="post" action="{{.Post}}" data-card-form>{{if $.Job}}<input type="hidden" name="from" value="job"><input type="hidden" name="job" value="{{$.Job}}">{{else}}<input type="hidden" name="from" value="{{$.From}}">{{end}}{{if .Step}}<input type="hidden" name="step" value="{{.Step}}"><input type="hidden" name="revision" value="{{.Revision}}">{{end}}<button type="submit" {{if .Primary}}rst-btn="primary"{{else}}rst-btn{{end}} data-pause-act="{{.Kind}}">{{.Label}}</button></form>{{else}}<a {{if .Primary}}rst-btn="primary"{{else}}rst-btn{{end}} href="{{.Href}}" data-pause-act="{{.Kind}}">{{.Label}}</a>{{end}}{{end}}</div>{{end}}{{with .Note}}<small>{{.}}</small>{{end}}</div>{{end}}</div>{{end}}{{end}}
-{{define "work-task-hold"}}{{if .Pause}}{{template "pause" (dict "Task" . "From" "task")}}{{else}}{{with .Hold}}{{if or .RunNow .Budget .Resume}}<p equipo-card-note data-hold>{{if .RunNow}}<form method="post" action="/conversation/tasks/{{$.ID}}/run-now" data-card-form><input type="hidden" name="step" value="{{.Step}}"><input type="hidden" name="revision" value="{{.Revision}}"><button equipo-link type="submit" data-task-run-now>{{copy "work.hold.run_now"}}</button></form>{{end}}{{if .Budget}}<a equipo-link href="/conversation/settings/connections" data-task-raise-budget>{{copy "work.hold.raise_budget"}}</a>{{end}}{{if .Resume}}<a equipo-link href="/conversation/settings/connections" data-task-resume>{{copy "work.hold.resume"}}</a>{{end}}</p>{{end}}{{end}}{{end}}{{with .Priority}}<p equipo-card-note data-priority>{{with .Line}}<span>{{.}}</span>{{end}}{{if .MarkUrgent}}<form method="post" action="/conversation/tasks/{{$.ID}}/priority" data-card-form><input type="hidden" name="priority" value="urgent"><input type="hidden" name="revision" value="{{.Revision}}"><button equipo-link type="submit" data-task-urgent>{{copy "work.priority.mark_urgent"}}</button></form>{{end}}{{if .MakeNormal}}<form method="post" action="/conversation/tasks/{{$.ID}}/priority" data-card-form><input type="hidden" name="priority" value="normal"><input type="hidden" name="revision" value="{{.Revision}}"><button equipo-link type="submit" data-task-normal>{{copy "work.priority.make_normal"}}</button></form>{{end}}</p>{{end}}{{end}}
+{{define "pause"}}{{$t := .Task}}{{with $t.Pause}}<div equipo-pause{{if ne .Tone "paused"}} data-tone="{{.Tone}}"{{end}} role="status" data-pause><span equipo-pause-icon>{{icon .Icon}}</span><div equipo-pause-text>{{if or .Strong .Rest}}<p equipo-pause-lead>{{with .Strong}}<strong>{{.}}</strong>{{end}}{{.Rest}}</p>{{end}}{{with .Next}}<p equipo-pause-next>{{.}}</p>{{end}}</div>{{if or .Actions .Note}}<div equipo-pause-act>{{with .Actions}}<div equipo-pause-buttons>{{range .}}{{if .Post}}<form method="post" action="{{.Post}}" data-card-form>{{if $.Job}}<input type="hidden" name="from" value="job"><input type="hidden" name="job" value="{{$.Job}}">{{else}}<input type="hidden" name="from" value="{{$.From}}">{{end}}{{if .Step}}<input type="hidden" name="step" value="{{.Step}}"><input type="hidden" name="revision" value="{{.Revision}}"><input type="hidden" name="offer" value="{{.Offer}}">{{end}}<button type="submit" {{if .Primary}}rst-btn="primary"{{else}}rst-btn{{end}} data-pause-act="{{.Kind}}">{{.Label}}</button></form>{{else}}<a {{if .Primary}}rst-btn="primary"{{else}}rst-btn{{end}} href="{{.Href}}" data-pause-act="{{.Kind}}">{{.Label}}</a>{{end}}{{end}}</div>{{end}}{{with .Note}}<small>{{.}}</small>{{end}}</div>{{end}}</div>{{end}}{{end}}
+{{define "work-task-hold"}}{{if .Pause}}{{template "pause" (dict "Task" . "From" "task")}}{{else}}{{with .Hold}}{{if or .Budget .Resume}}<p equipo-card-note data-hold>{{if .Budget}}<a equipo-link href="/conversation/settings/connections" data-task-raise-budget>{{copy "work.hold.raise_budget"}}</a>{{end}}{{if .Resume}}<a equipo-link href="/conversation/settings/connections" data-task-resume>{{copy "work.hold.resume"}}</a>{{end}}</p>{{end}}{{end}}{{end}}{{with .Priority}}<p equipo-card-note data-priority>{{with .Line}}<span>{{.}}</span>{{end}}{{if .MarkUrgent}}<form method="post" action="/conversation/tasks/{{$.ID}}/priority" data-card-form><input type="hidden" name="priority" value="urgent"><input type="hidden" name="revision" value="{{.Revision}}"><button equipo-link type="submit" data-task-urgent>{{copy "work.priority.mark_urgent"}}</button></form>{{end}}{{if .MakeNormal}}<form method="post" action="/conversation/tasks/{{$.ID}}/priority" data-card-form><input type="hidden" name="priority" value="normal"><input type="hidden" name="revision" value="{{.Revision}}"><button equipo-link type="submit" data-task-normal>{{copy "work.priority.make_normal"}}</button></form>{{end}}</p>{{end}}{{end}}
{{define "work-task-actions"}}{{template "work-task-hold" .}}{{if .Merge}}<form method="post" action="/conversation/tasks/{{.ID}}/merge" data-card-form><button equipo-link type="submit" data-task-merge>{{copy "work.merge_now"}}</button></form>{{end}}{{if .Retry}}<form method="post" action="/conversation/tasks/{{.ID}}/retry" data-card-form><button equipo-link type="submit" data-task-retry>{{copy "work.retry"}}</button></form>{{end}}{{if .Recover}}<form method="post" action="/conversation/tasks/{{.ID}}/recover" data-card-form><button equipo-link type="submit" data-task-recover>{{copy "work.recover"}}</button></form>{{end}}{{if .Cancel}}<form method="post" action="/conversation/tasks/{{.ID}}/cancel" data-card-form><button equipo-link type="submit" data-task-cancel>{{copy "work.cancel"}}</button></form>{{end}}{{end}}
{{define "work-task-row"}}<li equipo-work-task data-task="{{.ID}}" data-stage="{{.Stage}}"><p><a href="/tasks/{{.ID}}">{{.Title}}</a></p>{{template "placement-chip" .}}<p equipo-card-note><span>{{$line := .StageLine}}{{with .StageTag}}<span equipo-conn-label>{{template "conn-mark" .Provider}}<span>{{$line}}</span></span>{{else}}{{.StageLine}}{{end}}</span>{{with .Finding}}{{if .Path}}<span>{{.Path}}:{{.Line}}</span>{{end}}{{end}}<span>{{printf (copy "work.noted_by") .Creator}}</span></p>{{if and .Pushed (not .MergedLine)}}<p equipo-card-note data-pushed><span>{{.Pushed}}</span><a href="{{.URL}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a></p>{{end}}{{if or .ChecksLine .ReviewLine}}<p equipo-card-note data-judged>{{with .ChecksLine}}<span data-checks>{{.}}</span>{{end}}{{with .ReviewLine}}<span data-verdict>{{.}}</span>{{end}}</p>{{end}}{{if .MergedLine}}<p equipo-card-note data-merged><span>{{.MergedLine}}</span><a href="{{.RepoURL}}" rel="noopener" target="_blank" data-open-amadan>{{copy "work.open"}}</a></p>{{end}}{{if .PreviewURL}}<p equipo-card-note data-preview><a href="{{.PreviewURL}}" rel="noopener" target="_blank">{{.PreviewLine}}</a></p>{{end}}</li>{{end}}
diff --git a/internal/equipo/work_pages.go b/internal/equipo/work_pages.go
index 8505bf1d..6229c44b 100644
--- a/internal/equipo/work_pages.go
+++ b/internal/equipo/work_pages.go
@@ -3,6 +3,7 @@ package equipo
import (
"context"
"crypto/rand"
+ "errors"
"fmt"
"net/http"
"regexp"
@@ -981,7 +982,12 @@ func (a *application) workTaskRunNow(w http.ResponseWriter, r *http.Request) {
if perr != nil || step == "" {
return chat.ErrInvalid
}
- _, err := a.store.Chat().RunNow(ctx, address, id, wire.RunNow{Step: step, StepRevision: revision})
+ _, err := a.store.Chat().RunNow(ctx, address, id, wire.RunNow{Step: step, StepRevision: revision, Offer: r.PostFormValue("offer")})
+ if errors.Is(err, chat.ErrOfferChanged) {
+ // What Run now would use changed since the page was drawn: back to
+ // the page, which shows the offer as it is (review R1).
+ return chat.ErrCardConflict
+ }
return err
})
}
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 0bcb86b6..762101aa 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -248,4 +248,4 @@ func plan3CopyInventory(t *testing.T) {
// pausedCopyKeys are the paused-work strings and API prose Luna reviewed
// (2026-11-24).
-var pausedCopyKeys = []string{"work.stage.paused", "work.stage.stopped", "work.stage.needs_you", "work.pause.until", "work.pause.since", "work.pause.moment", "time.tonight", "time.today_at", "time.tomorrow_at", "time.midnight", "time.in_hours", "work.pause.reason.headroom_out", "work.pause.reason.headroom_saving", "work.pause.reason.budget", "work.pause.reason.busy", "work.pause.reason.offline", "work.pause.next.by_itself", "work.pause.next.budget", "work.pause.next.busy", "work.pause.next.online", "work.pause.next.choose", "work.pause.next.try_again", "work.pause.next.update", "work.pause.next.spend_unknown", "work.pause.run_now_with", "work.pause.run_now_on", "work.pause.run_now_room", "work.pause.run_now_last", "work.pause.run_now_metered", "work.pause.check_machine", "work.pause.update_runner", "work.pause.connect", "work.pause.try_again", "work.pause.lead.spend_unknown", "work.pause.lead.no_connection", "work.pause.lead.too_old", "work.pause.lead.stopped", "assistant.job.paused", "assistant.job.paused_view", "assistant.job.detail.paused_allowance", "assistant.job.detail.paused_limit", "assistant.job.detail.paused_offline", "assistant.job.carry_on", "assistant.job.carry_on_note", "assistant.job.change_limit", "time.in_hours.one", "time.in_days.one", "api.carry_on_unavailable", "time.in_minutes", "time.in_minutes.one", "time.in_days", "time.when_in", "api.not_paused", "docs/api/equipo-v1.md / Talk to the Assistant: paused jobs", "docs/api/equipo-v1.md / Talk to the Assistant: only_if_unset", "api.already_running"}
+var pausedCopyKeys = []string{"work.stage.paused", "work.stage.stopped", "work.stage.needs_you", "work.pause.until", "work.pause.since", "work.pause.moment", "time.tonight", "time.today_at", "time.tomorrow_at", "time.midnight", "time.in_hours", "work.pause.reason.headroom_out", "work.pause.reason.headroom_saving", "work.pause.reason.budget", "work.pause.reason.busy", "work.pause.reason.offline", "work.pause.next.by_itself", "work.pause.next.budget", "work.pause.next.busy", "work.pause.next.online", "work.pause.next.choose", "work.pause.next.try_again", "work.pause.next.update", "work.pause.next.spend_unknown", "work.pause.run_now_with", "work.pause.run_now_on", "work.pause.run_now_room", "work.pause.run_now_last", "work.pause.run_now_metered", "work.pause.check_machine", "work.pause.update_runner", "work.pause.connect", "work.pause.try_again", "work.pause.lead.spend_unknown", "work.pause.lead.no_connection", "work.pause.lead.too_old", "work.pause.lead.stopped", "assistant.job.paused", "assistant.job.paused_view", "assistant.job.detail.paused_allowance", "assistant.job.detail.paused_limit", "assistant.job.detail.paused_offline", "assistant.job.carry_on", "assistant.job.carry_on_note", "assistant.job.change_limit", "time.in_hours.one", "time.in_days.one", "api.carry_on_unavailable", "time.in_minutes", "time.in_minutes.one", "time.in_days", "time.when_in", "api.not_paused", "docs/api/equipo-v1.md / Talk to the Assistant: paused jobs", "docs/api/equipo-v1.md / Talk to the Assistant: only_if_unset", "api.already_running", "api.offer_changed", "work.pause.run_now_may_bill"}
diff --git a/internal/runner/connections.go b/internal/runner/connections.go
index d780ae77..16923daf 100644
--- a/internal/runner/connections.go
+++ b/internal/runner/connections.go
@@ -89,7 +89,7 @@ func loadDirectBindings(path string) ([]AccountBinding, error) {
rules := provider.DefaultHomeRules()
for _, b := range bs {
key := b.LocalID + "/" + b.Model
- if b.ID == "" || b.LocalID == "" || b.Model == "" || b.AccountID == "" || b.ExpectedIdentity.AccountID != b.AccountID || b.ExpectedIdentity.HomeID == "" || b.ExpectedIdentity.ProviderVersion == "" || !(b.Provider == "codex" && b.Family == "gpt" || b.Provider == "claude" && b.Family == "claude") || !(b.Kind == "subscription" || b.Kind == "api" || b.Kind == "token" && b.Provider == "claude") || rules.RefusesPath(b.ProviderHome) || seen[key] || b.CredentialHome != "" && b.CredentialHome != b.ProviderHome {
+ if b.ID == "" || b.LocalID == "" || b.Model == "" || b.AccountID == "" || b.ExpectedIdentity.AccountID != b.AccountID || b.ExpectedIdentity.HomeID == "" || b.ExpectedIdentity.ProviderVersion == "" || (provider.SubscriptionFamily(b.Provider) == "" || b.Family != provider.SubscriptionFamily(b.Provider)) || !(b.Kind == "subscription" || b.Kind == "api" || b.Kind == "token" && b.Provider == "claude") || rules.RefusesPath(b.ProviderHome) || seen[key] || b.CredentialHome != "" && b.CredentialHome != b.ProviderHome {
return nil, provider.ErrIdentity
}
if prior, ok := accounts[b.LocalID]; ok && (prior.ID != b.ID || prior.ProviderHome != b.ProviderHome || prior.AccountID != b.AccountID || prior.PersonID != b.PersonID || prior.ExpectedIdentity != b.ExpectedIdentity) {
diff --git a/internal/runner/provider/family.go b/internal/runner/provider/family.go
new file mode 100644
index 00000000..1bee25f3
--- /dev/null
+++ b/internal/runner/provider/family.go
@@ -0,0 +1,16 @@
+package provider
+
+// SubscriptionFamily is the model family a subscription provider's
+// connection runs (Review's family rule compares families, never
+// providers): Codex is gpt, Claude is claude, "" for any other. The
+// runner's bindings and the instance's Run now prediction both read it,
+// so the two cannot drift (paused work review R2).
+func SubscriptionFamily(provider string) string {
+ switch provider {
+ case "codex":
+ return "gpt"
+ case "claude":
+ return "claude"
+ }
+ return ""
+}
diff --git a/internal/runner/setup/account_bindings.go b/internal/runner/setup/account_bindings.go
index 114a1acd..87fe7bb9 100644
--- a/internal/runner/setup/account_bindings.go
+++ b/internal/runner/setup/account_bindings.go
@@ -87,7 +87,7 @@ func SaveAccountBinding(ctx context.Context, path, person, model string, s runne
}
kind = "token"
}
- rows = append(rows, AccountBinding{ID: b.ID, LocalID: s.ID, Label: s.Label, PersonID: person, ProviderHome: b.Home, ExpectedIdentity: b.Expected, Provider: b.Provider, Family: map[string]string{"codex": "gpt", "claude": "claude"}[b.Provider], Model: model, AccountID: b.AccountID, Kind: kind})
+ rows = append(rows, AccountBinding{ID: b.ID, LocalID: s.ID, Label: s.Label, PersonID: person, ProviderHome: b.Home, ExpectedIdentity: b.Expected, Provider: b.Provider, Family: provider.SubscriptionFamily(b.Provider), Model: model, AccountID: b.AccountID, Kind: kind})
out, err := os.CreateTemp(dir, ".accounts-")
if err != nil {
return provider.ErrAccountMaintenance
diff --git a/internal/runner/thin/pinned_release_test.go b/internal/runner/thin/pinned_release_test.go
index 9637fa5a..3f17d82f 100644
--- a/internal/runner/thin/pinned_release_test.go
+++ b/internal/runner/thin/pinned_release_test.go
@@ -8,24 +8,46 @@ import (
)
// A pinned Run now (protocol 29, paused work B1): the person was told it
-// would run on one connection, at no extra cost. Claude is 85% used (a
-// normal step holds), the other Claude account is full, and TensorX has budget: unpinned
-// leave would bill TensorX. Pinned to Claude it runs on Claude.
+// would run on one connection. Both Claude accounts are over the normal
+// threshold (the step holds), and with leave both admit; unpinned leave
+// takes the roomier claude-a. Pinned to claude-b it runs on claude-b, so
+// a runner that ignored the pin fails here (re-review nit).
func TestSchedulePinnedReleaseRunsOnlyThere(t *testing.T) {
r := newSchedRig(t, "claude-a", "claude-b")
r.tensorx(bigBudget)
- r.reading("claude-a", 0.85, time.Now().Add(9*time.Hour))
- r.reading("claude-b", 1.0, time.Now().Add(9*time.Hour))
+ r.reading("claude-a", 0.82, time.Now().Add(9*time.Hour))
+ r.reading("claude-b", 0.9, time.Now().Add(9*time.Hour))
r.start()
r.dispatch("p1", wire.PriorityNormal)
r.until(5*time.Second, "the hold", func() bool { return len(r.reports("p1")) > 0 })
- if kept, err := r.state.Release(r.ctx, "fr-p1", wire.ReleaseCommand{ID: "rl_p1", Person: connPerson, TaskID: "tk-p1", StepID: "p1", StepRevision: 1, Connection: "claude-a"}); err != nil || !kept {
+ if kept, err := r.state.Release(r.ctx, "fr-p1", wire.ReleaseCommand{ID: "rl_p1", Person: connPerson, TaskID: "tk-p1", StepID: "p1", StepRevision: 1, Connection: "claude-b"}); err != nil || !kept {
t.Fatalf("release %v %v", kept, err)
}
r.steps.MeteredChanged()
r.until(5*time.Second, "the released step", func() bool { _, ok := r.final("p1"); return ok })
- if on := r.ranOn("p1", 1); on != "claude-a" {
- t.Fatalf("a release pinned to Claude ran on %q", on)
+ if on := r.ranOn("p1", 1); on != "claude-b" {
+ t.Fatalf("a release pinned to claude-b ran on %q", on)
+ }
+}
+
+// Only a metered connection is free: both subscriptions are full and
+// TensorX has budget. A release pinned to a subscription keeps holding;
+// unpinned leave would bill TensorX.
+func TestSchedulePinnedReleaseNeverBillsMetered(t *testing.T) {
+ r := newSchedRig(t, "claude-a", "claude-b")
+ r.tensorx(bigBudget)
+ r.reading("claude-a", 1.0, time.Now().Add(9*time.Hour))
+ r.reading("claude-b", 1.0, time.Now().Add(9*time.Hour))
+ r.start()
+ r.dispatch("p4", wire.PriorityNormal)
+ r.until(5*time.Second, "the hold", func() bool { return len(r.reports("p4")) > 0 })
+ if _, err := r.state.Release(r.ctx, "fr-p4", wire.ReleaseCommand{ID: "rl_p4", Person: connPerson, TaskID: "tk-p4", StepID: "p4", StepRevision: 1, Connection: "claude-b"}); err != nil {
+ t.Fatal(err)
+ }
+ r.steps.MeteredChanged()
+ time.Sleep(300 * time.Millisecond)
+ if _, done := r.final("p4"); done || r.ranOn("p4", 1) != "" {
+ t.Fatalf("a release pinned to a full subscription ran on %q", r.ranOn("p4", 1))
}
}
diff --git a/internal/runner/thin/state.go b/internal/runner/thin/state.go
index 62cdf0d4..b9406e40 100644
--- a/internal/runner/thin/state.go
+++ b/internal/runner/thin/state.go
@@ -86,15 +86,15 @@ func OpenState(ctx context.Context, dir string) (*State, error) {
return nil, err
}
}
- // Added in slice 3 review: a step's namespace and the ending it
- // reported while its termination is still to be proven.
- // Added in slice 4 review: the task branch head last reported.
// A Run now's pinned connection (protocol 29, paused work): "" is
// leave on any connection, as every release before it.
if _, err = d.ExecContext(ctx, "ALTER TABLE releases ADD COLUMN connection TEXT NOT NULL DEFAULT ''"); err != nil && !strings.Contains(err.Error(), "duplicate column") {
d.Close()
return nil, err
}
+ // Added in slice 3 review: a step's namespace and the ending it
+ // reported while its termination is still to be proven.
+ // Added in slice 4 review: the task branch head last reported.
if _, err = d.ExecContext(ctx, "ALTER TABLE watches ADD COLUMN seen_head TEXT NOT NULL DEFAULT ''"); err != nil && !strings.Contains(err.Error(), "duplicate column") {
d.Close()
return nil, err
diff --git a/internal/thintest/scheduler_contract_test.go b/internal/thintest/scheduler_contract_test.go
index 0659f1be..1f81f589 100644
--- a/internal/thintest/scheduler_contract_test.go
+++ b/internal/thintest/scheduler_contract_test.go
@@ -158,7 +158,12 @@ func TestContractScheduler(t *testing.T) {
if _, err := r.client.RunNow(ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 2}); Status(err) != 409 {
t.Fatalf("a stale step revision: %v", err)
}
- rel, err := r.client.RunNow(ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1})
+ // This runner (protocol 14) was offered plain Run now, so the tap says
+ // so; naming a connection it was never offered is refused.
+ if _, err := r.client.RunNow(ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1, Offer: "cn_somewhere"}); Status(err) != 409 || !strings.Contains(err.Error(), "offer_changed") {
+ t.Fatalf("a tap naming another offer: %v", err)
+ }
+ rel, err := r.client.RunNow(ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1, Offer: wire.RunNowPlain})
if err != nil || rel.Release == "" {
t.Fatalf("run now %+v %v", rel, err)
}
@@ -168,7 +173,7 @@ func TestContractScheduler(t *testing.T) {
t.Fatalf("release %+v", c)
}
// A second tap is told it is on its way, not answered as new (review S2).
- if _, err := r.client.RunNow(ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1}); Status(err) != 409 || !strings.Contains(err.Error(), "already_running") {
+ if _, err := r.client.RunNow(ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1, Offer: wire.RunNowPlain}); Status(err) != 409 || !strings.Contains(err.Error(), "already_running") {
t.Fatalf("a second tap: %v", err)
}
if n := r.frames(wire.FrameRelease); n != 1 {
@@ -296,7 +301,15 @@ func TestContractSchedulerResearch(t *testing.T) {
if research.State != wire.StepQueued || research.Hold == nil || k.NeedsYou != wire.NeedsHeld {
t.Fatalf("held Research %+v needs %q", research, k.NeedsYou)
}
- if rel, err := r.client.RunNow(r.ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1}); err != nil || rel.Release == "" {
+ // The tap carries what the task offered (review R1).
+ if research.Paused == nil || research.Paused.RunNow == nil {
+ t.Fatalf("no Run now offered on Research: %+v", research.Paused)
+ }
+ offer := research.Paused.RunNow.Connection
+ if research.Paused.RunNow.Plain {
+ offer = wire.RunNowPlain
+ }
+ if rel, err := r.client.RunNow(r.ctx, id, wire.RunNow{Step: d.StepID, StepRevision: 1, Offer: offer}); err != nil || rel.Release == "" {
t.Fatalf("Run now on Research: %+v %v", rel, err)
}
}
diff --git a/internal/wire/schedule.go b/internal/wire/schedule.go
index 3ee22164..6c9d6a06 100644
--- a/internal/wire/schedule.go
+++ b/internal/wire/schedule.go
@@ -143,14 +143,22 @@ type SetPriority struct {
}
// RunNow is POST /api/v1/tasks/{id}/run-now: the task creator's leave
-// for the held step at the revision its hold shows.
+// for the held step at the revision its hold shows. Offer is what the
+// page showed (paused work review R1): the offer's connection
+// (RunNowOffer.Connection), or RunNowPlain for plain Run now. When Run
+// now would do anything else now, the tap is refused (409
+// offer_changed) and the page shows the offer as it is.
type RunNow struct {
Step string `json:"step"`
StepRevision int64 `json:"step_revision"`
+ Offer string `json:"offer,omitempty"`
}
-// RunNowAccepted answers Run now: the release written (202), or the one
-// already written for that step revision.
+// RunNowPlain is RunNow.Offer for plain "Run it now anyway".
+const RunNowPlain = "plain"
+
+// RunNowAccepted answers Run now: the release written. A second Run now
+// for the same step revision is refused (409 already_running).
type RunNowAccepted struct {
Release string `json:"release"`
}
@@ -196,6 +204,8 @@ type RunNowOffer struct {
LeftPercent int `json:"left_percent,omitempty"`
// Plain: the runner is below protocol 29 and cannot be held to one
// connection, so Run now promises nothing (the other fields empty):
- // "Run it now anyway".
- Plain bool `json:"plain,omitempty"`
+ // "Run it now anyway". MayBill: and a connection that bills per use
+ // could take it.
+ Plain bool `json:"plain,omitempty"`
+ MayBill bool `json:"may_bill,omitempty"`
}
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index 550d5af0..305cd7f0 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -2675,6 +2675,17 @@
}
}
},
+ "work.pause.run_now_may_bill": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "This may use a plan that bills per use."
+ }
+ }
+ }
+ },
"work.pause.run_now_metered": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/API/Client.swift b/native/apple/Sources/EquipoKit/API/Client.swift
index 3872c45b..55cd90d6 100644
--- a/native/apple/Sources/EquipoKit/API/Client.swift
+++ b/native/apple/Sources/EquipoKit/API/Client.swift
@@ -70,8 +70,8 @@ public struct EquipoClient: Sendable {
}
/// Stops the coordinator's turn; only that turn.
/// POST /tasks/{id}/run-now: Run now on the held step at its revision.
- public func runNow(task id: String, step: String, revision: Int64) async throws -> RunNowAccepted {
- try await post("/tasks/\(escape(id))/run-now", try .json(RunNowInput(step: step, stepRevision: revision)))
+ public func runNow(task id: String, step: String, revision: Int64, offer: String) async throws -> RunNowAccepted {
+ try await post("/tasks/\(escape(id))/run-now", try .json(RunNowInput(step: step, stepRevision: revision, offer: offer)))
}
/// PUT /time-zone: this device's IANA zone.
public func setTimeZone(_ zone: String) async throws -> TimeZoneValue {
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift
index fb68ad4d..0cdbd879 100644
--- a/native/apple/Sources/EquipoKit/API/Thin.swift
+++ b/native/apple/Sources/EquipoKit/API/Thin.swift
@@ -128,8 +128,10 @@ public struct ThinRunNow: Codable, Sendable, Equatable {
public var billing: String?
public var same: Bool?
public var leftPercent: Int?
- /// The runner cannot be held to one connection: "Run it now anyway".
+ /// The runner cannot be held to one connection: "Run it now anyway";
+ /// mayBill: a connection that bills per use could take it.
public var plain: Bool?
+ public var mayBill: Bool?
}
public struct ThinTask: Codable, Sendable, Identifiable, Equatable {
@@ -214,7 +216,7 @@ public struct ThinActivity: Codable, Sendable, Equatable {
}
/// Run now's body and answer (wire.RunNow, wire.RunNowAccepted).
-struct RunNowInput: Codable, Sendable { var step: String; var stepRevision: Int64 }
+struct RunNowInput: Codable, Sendable { var step: String; var stepRevision: Int64; var offer: String }
public struct RunNowAccepted: Codable, Sendable, Equatable { public var release: String }
/// The person's time zone (wire.TimeZone).
public struct TimeZoneValue: Codable, Sendable, Equatable { public var timeZone: String }
diff --git a/native/apple/Sources/EquipoKit/Presentation/Pause.swift b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
index 8b2a670b..075e127e 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Pause.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
@@ -26,6 +26,9 @@ public struct TaskPause: Sendable, Equatable {
public var label: String
public var step: String
public var revision: Int64
+ /// What the button shows (the offer's connection, or "plain"): the
+ /// instance refuses the tap if Run now would now do anything else.
+ public var offer: String = ""
}
}
@@ -90,8 +93,10 @@ extension TaskPause {
let label: String
switch (offer.billing ?? "", offer.same ?? false) {
case _ where offer.plain == true:
- // An older runner cannot be held to one connection: no promise.
+ // An older runner cannot be held to one connection: no promise,
+ // and said when a connection that bills per use could take it.
label = EquipoStrings.text("work.hold.run_now")
+ if offer.mayBill == true { note = EquipoStrings.text("work.pause.run_now_may_bill") }
case ("metered", _):
label = String(format: EquipoStrings.text("work.pause.run_now_with"), offer.name ?? "")
note = String(format: EquipoStrings.text("work.pause.run_now_metered"), offer.name ?? "")
@@ -102,7 +107,7 @@ extension TaskPause {
label = String(format: EquipoStrings.text("work.pause.run_now_with"), offer.name ?? "")
note = String(format: EquipoStrings.text("work.pause.run_now_room"), offer.name ?? "")
}
- runNow = RunNow(label: label, step: step.id, revision: hold.stepRevision)
+ runNow = RunNow(label: label, step: step.id, revision: hold.stepRevision, offer: offer.plain == true ? "plain" : offer.connection ?? "")
}
}
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index 550d5af0..305cd7f0 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -2675,6 +2675,17 @@
}
}
},
+ "work.pause.run_now_may_bill": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "This may use a plan that bills per use."
+ }
+ }
+ }
+ },
"work.pause.run_now_metered": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index 8cf3928e..6d4df225 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -102,10 +102,12 @@ public final class EquipoSession {
/// Run now on a paused task (POST /api/v1/tasks/{id}/run-now): the held
/// step, at the revision its hold shows, on what the instance predicted.
- /// The task is read again; a refusal leaves it as the next read says.
+ /// The tap carries what the button showed; if Run now would now do
+ /// anything else it is refused (409 offer_changed). Either way the task
+ /// is read again, so the screen shows the offer as it is.
public func runNow(task id: String, _ run: TaskPause.RunNow) async {
guard lifetime.isActive else { return }
- _ = try? await client.runNow(task: id, step: run.step, revision: run.revision)
+ _ = try? await client.runNow(task: id, step: run.step, revision: run.revision, offer: run.offer)
await refresh()
}
diff --git a/native/apple/Tests/EquipoKitTests/PausedTests.swift b/native/apple/Tests/EquipoKitTests/PausedTests.swift
index 71335f7c..efe8d051 100644
--- a/native/apple/Tests/EquipoKitTests/PausedTests.swift
+++ b/native/apple/Tests/EquipoKitTests/PausedTests.swift
@@ -29,7 +29,7 @@ import Testing
#expect(pause.strong == "Paused until 21:00 tonight")
#expect(pause.rest == " (in 9 hours): your Claude allowance has run out.")
#expect(pause.next == "It carries on by itself then.")
- #expect(pause.runNow == TaskPause.RunNow(label: "Run it now with Codex", step: "s1", revision: 4))
+ #expect(pause.runNow == TaskPause.RunNow(label: "Run it now with Codex", step: "s1", revision: 4, offer: "cn_codex"))
#expect(pause.note == "Codex has room now")
var report = TaskReport(t, needsYou: false, mine: true, now: noon)
report.pause = pause
@@ -81,9 +81,9 @@ import Testing
}
@Test func anOlderRunnerGetsPlainRunNow() throws {
- let plain = held.replacingOccurrences(of: "\"run_now\":{\"connection\":\"cn_codex\",\"provider\":\"codex\",\"name\":\"Codex\",\"billing\":\"subscription\"}", with: "\"run_now\":{\"plain\":true}")
+ let plain = held.replacingOccurrences(of: "\"run_now\":{\"connection\":\"cn_codex\",\"provider\":\"codex\",\"name\":\"Codex\",\"billing\":\"subscription\"}", with: "\"run_now\":{\"plain\":true,\"may_bill\":true}")
let p = try #require(TaskPause(try task(plain), mine: true, now: noon, zone: dublin, locale: britain))
- #expect(p.runNow?.label == "Run it now anyway" && p.note == nil)
+ #expect(p.runNow?.label == "Run it now anyway" && p.runNow?.offer == "plain" && p.note == "This may use a plan that bills per use.")
}
@Test func anOfflineRunnerIsNamed() throws {
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index eee527f0..7d509a08 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -242,6 +242,7 @@
"work.pause.reason.headroom_saving": "your %@ allowance is %d%% used, so Equipo is keeping the rest for urgent work",
"work.pause.reason.offline": "%@, which runs this work, is offline",
"work.pause.run_now_last": "Uses some of the last %d%%",
+ "work.pause.run_now_may_bill": "This may use a plan that bills per use.",
"work.pause.run_now_metered": "%@ bills per use",
"work.pause.run_now_on": "Run it now on %@",
"work.pause.run_now_room": "%@ has room now",