oficina / equipo Public

Native: paused work is never a false green

Human

Prompt

Build Paul's approved design for "a clearer indication of why work stopped" in Equipo (web, wire/API, and the minimum on native). Paul approved the recommended design (Option 2 in polish-audit/paused-work) and all five recommendations on 2026-11-24: a Paused stop in calm indigo with a lead line (local time plus relative), a what-happens-next line and one action; "Run it now with Codex" naming the predicted model, also on the conversation card; indigo from Equipo's palette with AA contrast; a per-person time zone defaulting to Europe/Dublin; and Base's job card gaining state paused, carry_on and a POST /api/v1/assistant/cards/{id}/carry_on route. Native: the minimum so the app stops showing a false green.

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

EquipoKit decodes a step's hold and paused facts and the task's creator. TaskReport has a pause (TaskPause): the current stop says Paused in indigo with a still pause mark, Needs you in amber or Stopped in red; a lead line in the device's zone and locale with the relative part; what happens next; and Run it now with/on <model> for the creator (POST /tasks/{id}/run-now). The session sends the device's zone once (PUT /time-zone). The words are the web's keys, held to copy.go by check-parity.py. Also: size budgets recorded with reasons, the pause-next spacing on the scale, and a stale UTC test.
Agent notes
Native gate passed: scripts/check-native.sh, 204 tests in 25 suites, EquipoMac and the iPhone Simulator build. The 40 stop reasons are not in the native catalog, so a stopped step shows Stopped and its next line without the reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev bd95a02ab8decff0523c872c305acca5aed0c542 parent ad2b5cd
20 files changed, +1,257 −24
  • .rastrillo/budgets.txt +5 −5
  • internal/equipo/chat/labels_test.go +1 −1
  • internal/equipo/static/equipo.css +2 −2
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +385 −0
  • native/apple/Sources/EquipoActivity/Roster.swift +6 −2
  • native/apple/Sources/EquipoKit/API/Client.swift +8 −0
  • native/apple/Sources/EquipoKit/API/Thin.swift +47 −0
  • native/apple/Sources/EquipoKit/Presentation/Pause.swift +195 −0
  • native/apple/Sources/EquipoKit/Presentation/Roster.swift +17 −3
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +385 −0
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +24 −0
  • native/apple/Sources/EquipoKit/UI/LiveCards.swift +6 −3
  • native/apple/Sources/EquipoKit/UI/RosterViews.swift +59 −4
  • native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift +1 −1
  • native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift +2 −1
  • native/apple/Sources/EquipoKit/UI/Theme.swift +3 −0
  • native/apple/Sources/EquipoMac/LiveTranscript.swift +2 −1
  • native/apple/Tests/EquipoKitTests/PausedTests.swift +73 −0
  • native/scripts/check-parity.py +1 −1
  • native/scripts/strings.json +35 −0

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/feat__paused-work: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.4s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 3.7s
ci-box: file times set from content: 2980 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.147s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  2.6s
+ go list -export -test -tags testbuild -f  ./...
  3.7s
+ 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 1m15.506s 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 1m13.3s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.3s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 52.62, cpu waiting 35.91%, memory waiting 0.00%, io waiting 1.28%
--- 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 1m16.413s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m14.385s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m14.38s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 52.62, cpu waiting 35.94%, memory waiting 0.00%, io waiting 1.24%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m16.307s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m14.291s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.12s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.04s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.13s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 52.62, cpu waiting 35.91%, memory waiting 0.00%, io waiting 1.28%
--- 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 1m28.693s 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 1m26.73s amadan.net/oficina/equipo/internal/headless
receipt: slow test 34.72s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 34.59s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 8.85s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.57s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 49.80, cpu waiting 36.25%, memory waiting 0.00%, io waiting 1.01%
--- 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 1m31.499s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m29.78s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m0.64s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.23s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.96s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.68s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 49.80, cpu waiting 36.11%, memory waiting 0.00%, io waiting 0.98%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 2m43.663s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m41.874s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m35.63s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.66s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.61s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
receipt: slow test 6.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 19.25, cpu waiting 11.96%, memory waiting 0.00%, io waiting 0.28%
--- 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 2m11.656s 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 2m9.508s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.23s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.71s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.82s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.64s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.46s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 31.81, cpu waiting 20.93%, 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
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractChecksPlacedOnTheWorker
=== RUN   TestContractChecksPlacedOnTheWorker
    placement_contract_test.go:338: failed to get reader: context deadline exceeded
--- FAIL: TestContractChecksPlacedOnTheWorker (45.45s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 2m10.547s
FAIL	amadan.net/oficina/equipo/internal/thintest	130.763s


receipt: test step 2m12.664s 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 2m10.547s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 45.45s amadan.net/oficina/equipo/internal/thintest TestContractChecksPlacedOnTheWorker
receipt: slow test 8.93s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.84s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.5s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.32s amadan.net/oficina/equipo/internal/thintest TestContractPreview
rastrillo: budget test: go test failed
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 '^TestContractChecksPlacedOnTheWorker$' -count=1 ./internal/thintest   (retry, once)
##############################################################################
FLAKE ./internal/thintest:TestContractChecksPlacedOnTheWorker thintest-contract bd95a02ab8decff0523c872c305acca5aed0c542 45.45s 31.81
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 29.74, cpu waiting 19.58%, memory waiting 0.00%, io waiting 0.46%
--- 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 4m45.133s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m50.547s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 4m45.133s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.04s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 37.03s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.86s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7.14s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.60, cpu waiting 1.46%, memory waiting 0.00%, io waiting 0.03%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

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

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

receipt: test step 36.346s 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.324s 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.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.57s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 32.67, cpu waiting 21.55%, memory waiting 0.00%, io waiting 2.42%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 41.3%, load 24.46
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 1m7.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 1m5.824s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.77s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.7s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.58s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.82s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.77s amadan.net/oficina/equipo/internal/equipotest TestAccountConcurrentDuplicate
machine: 32 CPUs, load 49.18, cpu waiting 35.24%, memory waiting 0.00%, io waiting 0.88%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 41.3%, load 24.46
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 1m17.256s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.472s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.93s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 19.92s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.89s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
receipt: slow test 19.87s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 19.86s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 44.62, cpu waiting 30.50%, memory waiting 0.00%, io waiting 0.75%
--- 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 24.46
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 1m14.957s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m9.641s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.99s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.49s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.45s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.4s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.33s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 44.62, cpu waiting 31.46%, memory waiting 0.00%, io waiting 0.77%
--- 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 24.46
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 1m8.425s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.444s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.68s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.83s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.76s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.02s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 22.99s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 49.18, cpu waiting 35.24%, memory waiting 0.00%, io waiting 0.88%
--- 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 24.46
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 54.358s 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 52.433s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.65s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.7s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.3s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 50.75, cpu waiting 35.93%, memory waiting 0.00%, io waiting 1.08%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 41.3%, load 24.46
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/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/checks TestDependencyStage
=== RUN   TestDependencyStage
    testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/TestDependencyStage3007787798: directory not empty
--- FAIL: TestDependencyStage (0.05s)

--- FAIL amadan.net/oficina/equipo/internal/runner/checks (package output)
FAIL
rastrillo-budget/v1 ran 50.731s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	50.827s

--- FAIL amadan.net/oficina/equipo/internal/wire TestAPIFixturesRoundTrip
=== RUN   TestAPIFixturesRoundTrip
    wire_test.go:55: api/task-held.json: round trip
         got {"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","headline":"Found it: the edge swipe never reaches the back handler.","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"queued","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","headline":"Fixed swipe-back from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[{"kind":"read","subject":"panes/swipe.go","at":"2026-11-07T10:00:20Z"},{"kind":"edit","subject":"panes/swipe.go","at":"2026-11-07T10:01:02Z"},{"kind":"run","subject":"go test ./panes","at":"2026-11-07T10:01:20Z"}],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace","hold":{"reason":"headroom","connection":"claude-a","provider":"claude","resets_at":"2026-11-16T10:00:00Z","wake_at":"2026-11-16T10:00:00Z","needs_person":"no_reset","step_revision":1},"paused":{"since":"2026-11-13T09:00:00Z","run_now":{"connection":"cn_claude_a","provider":"claude","name":"Claude","billing":"subscription","same":true}}}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"held","fix_rounds":0,"branch_head":"","questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}],"merged":null,"reports":0,"ask_open":false,"merge_offered":false,"creator_name":"Owner","source_message_id":"m_0001","source_at":"2026-11-07T09:59:58Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":null,"engineering_runner":"RUNNER1","priority":{"priority":"low","by":"2026-11-20T17:00:00Z","set_by":"coordinator"}}
        want {"id": "tk0001", "revision": 5, "project_id": "p_0001", "project": "Sample", "repo": "amadan.net/oficina/sample", "title": "Swipe back from the edge does nothing", "brief": "Swiping from the left edge should go back a pane.", "stage": "in_progress", "branch": "equipo/tk0001-swipe-back-from-the-edge-does-nothing", "base_sha": "1111111111111111111111111111111111111111", "url": "https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing", "creator": "owner@example.com", "turn_id": "t_0001", "findings": [{"id": "f_0001", "headline": "Found it: the edge swipe never reaches the back handler.", "text": "The edge-swipe handler returns false, so back never fires.", "repo": "amadan.net/oficina/sample", "path": "panes/swipe.go", "line": 4, "at": "2026-11-07T10:00:02Z"}], "steps": [{"id": "s_0001", "revision": 3, "task_id": "tk0001", "index": 1, "specialist": "engineering", "state": "queued", "reason": "", "attempt": 1, "base_sha": "1111111111111111111111111111111111111111", "candidate_sha": "2222222222222222222222222222222222222222", "pushed": true, "terminated": true, "summary": "EdgeSwipe now goes back on a swipe from the edge.", "headline": "Fixed swipe-back from the edge.", "log_tail": "Edit panes/swipe.go\nDone.", "started_at": "2026-11-07T10:00:03Z", "finished_at": "2026-11-07T10:01:40Z", "round": 0, "family": "claude", "account": "claude-a", "verdict": "", "review_label": "", "findings": [], "checks": "", "gate": "", "exit_code": null, "askable": true, "rebase": false, "merge_sha": "", "into": "", "strategy": "", "without_checks": false, "switched": null, "activity": [{"kind": "read", "subject": "panes/swipe.go", "at": "2026-11-07T10:00:20Z"}, {"kind": "edit", "subject": "panes/swipe.go", "at": "2026-11-07T10:01:02Z"}, {"kind": "run", "subject": "go test ./panes", "at": "2026-11-07T10:01:20Z"}], "runner_id": "RUNNER1", "runner_label": "", "needs": [], "placement": "", "publication": "", "termination_kind": "namespace", "hold": {"reason": "headroom", "connection": "claude-a", "provider": "claude", "resets_at": "2026-11-16T10:00:00Z", "wake_at": "2026-11-16T10:00:00Z", "needs_person": "no_reset", "step_revision": 1}, "paused": {"since": "2026-11-13T09:00:00Z", "run_now": {"connection": "cn_claude_a", "provider": "claude", "name": "Claude", "billing": "subscription", "same": true}}}], "thread": [{"id": "e_0001", "author": "owner@example.com", "text": "It happens on the iPhone only.", "at": "2026-11-07T10:00:30Z"}], "created_at": "2026-11-07T10:00:01Z", "updated_at": "2026-11-07T10:01:40Z", "candidate_sha": "2222222222222222222222222222222222222222", "checks": "", "checks_reason": "", "verdict": "", "review_label": "", "needs_you": "held", "fix_rounds": 0, "branch_head": "", "questions": [{"id": "q_0001", "revision": 3, "task_id": "tk0001", "step_id": "s_0001", "specialist": "engineering", "asker": "owner@example.com", "text": "What did you change and why?", "state": "answered", "reason": "", "attempt": 1, "answer": "I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.", "created_at": "2026-11-07T10:05:00Z", "updated_at": "2026-11-07T10:05:09Z", "timing": null}], "merged": null, "reports": 0, "ask_open": false, "merge_offered": false, "creator_name": "Owner", "source_message_id": "m_0001", "source_at": "2026-11-07T09:59:58Z", "duplicate_of": null, "coordinator": null, "folded": null, "combined": null, "engineering_runner": "RUNNER1", "priority": {"priority": "low", "by": "2026-11-20T17:00:00Z", "set_by": "coordinator"}}
--- FAIL: TestAPIFixturesRoundTrip (0.00s)

--- FAIL amadan.net/oficina/equipo/internal/wire (package output)
FAIL
rastrillo-budget/v1 ran 48ms
FAIL	amadan.net/oficina/equipo/internal/wire	0.055s

budget note: internal/equipo took 50.129s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 14.296s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m48.746s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 36.558s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 47.232s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 11.498s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m30.39s against a 60s target (the gate's other steps are not in this figure)
receipt: 26 packages ran, 38 cached, 17 without tests, 2 failed
receipt: slow package 1m48.746s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m4.417s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 53.664s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 50.731s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 50.129s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 53.99s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.42s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 46.26s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 44.45s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 43.41s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestDependencyStage$' -count=1 ./internal/runner/checks   (retry, once)
FAILED TWICE ./internal/runner/checks:TestDependencyStage rest
=== RUN   TestDependencyStage
    testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/TestDependencyStage795603164: directory not empty
--- FAIL: TestDependencyStage (0.03s)
FAIL
rastrillo-budget/v1 ran 35ms
FAIL	amadan.net/oficina/equipo/internal/runner/checks	0.040s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestAPIFixturesRoundTrip$' -count=1 ./internal/wire   (retry, once)
FAILED TWICE ./internal/wire:TestAPIFixturesRoundTrip rest
=== RUN   TestAPIFixturesRoundTrip
    wire_test.go:55: api/task-held.json: round trip
         got {"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","headline":"Found it: the edge swipe never reaches the back handler.","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"queued","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","headline":"Fixed swipe-back from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[{"kind":"read","subject":"panes/swipe.go","at":"2026-11-07T10:00:20Z"},{"kind":"edit","subject":"panes/swipe.go","at":"2026-11-07T10:01:02Z"},{"kind":"run","subject":"go test ./panes","at":"2026-11-07T10:01:20Z"}],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace","hold":{"reason":"headroom","connection":"claude-a","provider":"claude","resets_at":"2026-11-16T10:00:00Z","wake_at":"2026-11-16T10:00:00Z","needs_person":"no_reset","step_revision":1},"paused":{"since":"2026-11-13T09:00:00Z","run_now":{"connection":"cn_claude_a","provider":"claude","name":"Claude","billing":"subscription","same":true}}}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"held","fix_rounds":0,"branch_head":"","questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}],"merged":null,"reports":0,"ask_open":false,"merge_offered":false,"creator_name":"Owner","source_message_id":"m_0001","source_at":"2026-11-07T09:59:58Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":null,"engineering_runner":"RUNNER1","priority":{"priority":"low","by":"2026-11-20T17:00:00Z","set_by":"coordinator"}}
        want {"id": "tk0001", "revision": 5, "project_id": "p_0001", "project": "Sample", "repo": "amadan.net/oficina/sample", "title": "Swipe back from the edge does nothing", "brief": "Swiping from the left edge should go back a pane.", "stage": "in_progress", "branch": "equipo/tk0001-swipe-back-from-the-edge-does-nothing", "base_sha": "1111111111111111111111111111111111111111", "url": "https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing", "creator": "owner@example.com", "turn_id": "t_0001", "findings": [{"id": "f_0001", "headline": "Found it: the edge swipe never reaches the back handler.", "text": "The edge-swipe handler returns false, so back never fires.", "repo": "amadan.net/oficina/sample", "path": "panes/swipe.go", "line": 4, "at": "2026-11-07T10:00:02Z"}], "steps": [{"id": "s_0001", "revision": 3, "task_id": "tk0001", "index": 1, "specialist": "engineering", "state": "queued", "reason": "", "attempt": 1, "base_sha": "1111111111111111111111111111111111111111", "candidate_sha": "2222222222222222222222222222222222222222", "pushed": true, "terminated": true, "summary": "EdgeSwipe now goes back on a swipe from the edge.", "headline": "Fixed swipe-back from the edge.", "log_tail": "Edit panes/swipe.go\nDone.", "started_at": "2026-11-07T10:00:03Z", "finished_at": "2026-11-07T10:01:40Z", "round": 0, "family": "claude", "account": "claude-a", "verdict": "", "review_label": "", "findings": [], "checks": "", "gate": "", "exit_code": null, "askable": true, "rebase": false, "merge_sha": "", "into": "", "strategy": "", "without_checks": false, "switched": null, "activity": [{"kind": "read", "subject": "panes/swipe.go", "at": "2026-11-07T10:00:20Z"}, {"kind": "edit", "subject": "panes/swipe.go", "at": "2026-11-07T10:01:02Z"}, {"kind": "run", "subject": "go test ./panes", "at": "2026-11-07T10:01:20Z"}], "runner_id": "RUNNER1", "runner_label": "", "needs": [], "placement": "", "publication": "", "termination_kind": "namespace", "hold": {"reason": "headroom", "connection": "claude-a", "provider": "claude", "resets_at": "2026-11-16T10:00:00Z", "wake_at": "2026-11-16T10:00:00Z", "needs_person": "no_reset", "step_revision": 1}, "paused": {"since": "2026-11-13T09:00:00Z", "run_now": {"connection": "cn_claude_a", "provider": "claude", "name": "Claude", "billing": "subscription", "same": true}}}], "thread": [{"id": "e_0001", "author": "owner@example.com", "text": "It happens on the iPhone only.", "at": "2026-11-07T10:00:30Z"}], "created_at": "2026-11-07T10:00:01Z", "updated_at": "2026-11-07T10:01:40Z", "candidate_sha": "2222222222222222222222222222222222222222", "checks": "", "checks_reason": "", "verdict": "", "review_label": "", "needs_you": "held", "fix_rounds": 0, "branch_head": "", "questions": [{"id": "q_0001", "revision": 3, "task_id": "tk0001", "step_id": "s_0001", "specialist": "engineering", "asker": "owner@example.com", "text": "What did you change and why?", "state": "answered", "reason": "", "attempt": 1, "answer": "I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.", "created_at": "2026-11-07T10:05:00Z", "updated_at": "2026-11-07T10:05:09Z", "timing": null}], "merged": null, "reports": 0, "ask_open": false, "merge_offered": false, "creator_name": "Owner", "source_message_id": "m_0001", "source_at": "2026-11-07T09:59:58Z", "duplicate_of": null, "coordinator": null, "folded": null, "combined": null, "engineering_runner": "RUNNER1", "priority": {"priority": "low", "by": "2026-11-20T17:00:00Z", "set_by": "coordinator"}}
--- FAIL: TestAPIFixturesRoundTrip (0.00s)
FAIL
rastrillo-budget/v1 ran 3ms
FAIL	amadan.net/oficina/equipo/internal/wire	0.006s
FAIL
machine: 32 CPUs, load 15.49, cpu waiting 9.16%, memory waiting 0.00%, io waiting 0.21%
make: *** [Makefile:113: ci-shard] Error 1

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

receipt: test step 1m24.46s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.816s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.45s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.98s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.97s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.2s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.51s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 50.75, cpu waiting 35.93%, memory waiting 0.00%, io waiting 1.08%
--- 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 1m29.459s 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 1m27.762s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.28s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 20.57s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.94s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 8.95s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 49.80, cpu waiting 36.11%, memory waiting 0.00%, io waiting 0.98%
--- 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 1m51.815s 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 1m50.132s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.34s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.31s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.41s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.28s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.27s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 41.85, cpu waiting 27.79%, memory waiting 0.00%, io waiting 0.67%
--- 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-24T13:48:27.889Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-24T13:48:27.890Z level=INFO msg="startup phase done" phase=state_lock took=260µs
time=2026-11-24T13:48:27.890Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-24T13:48:27.890Z level=INFO msg="startup phase done" phase=claim_roots took=232µs
time=2026-11-24T13:48:27.890Z level=INFO msg="startup phase" phase=sweep
time=2026-11-24T13:48:27.940Z level=INFO msg="startup phase done" phase=sweep took=49.839ms
time=2026-11-24T13:48:27.940Z level=INFO msg="startup phase" phase=credentials
time=2026-11-24T13:48:27.940Z level=INFO msg="startup phase done" phase=credentials took=208µs
time=2026-11-24T13:48:27.940Z level=INFO msg="startup phase" phase=open_state
time=2026-11-24T13:48:28.004Z level=INFO msg="startup phase done" phase=open_state took=63.518ms
time=2026-11-24T13:48:28.005Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-24T13:48:28.006Z level=INFO msg=connecting host=127.0.0.1:39893 protocol=28
time=2026-11-24T13:48:28.010Z level=INFO msg=connected host=127.0.0.1:39893 took=4.255ms
time=2026-11-24T13:48:28.010Z level=INFO msg="capabilities gathering"
time=2026-11-24T13:48:28.012Z level=INFO msg="capabilities gathered" took=2.279ms tags=linux,claude,go
time=2026-11-24T13:48:28.016Z level=INFO msg="hello sent" protocol=28
time=2026-11-24T13:48:28.019Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserCopyContinue (6.42s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m31.899s
FAIL	amadan.net/oficina/equipo/internal/headless	92.108s


receipt: test step 1m33.661s 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 1m31.899s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.71s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.99s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.62s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.59s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.62s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
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 bd95a02ab8decff0523c872c305acca5aed0c542 6.42s 49.18
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 49.18, cpu waiting 35.24%, memory waiting 0.00%, io waiting 0.88%
--- 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.028s 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 613ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 610ms 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.091s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 11.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 10.091s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.12s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 1.98s 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.771s 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.209s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.21s 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
--- FAIL amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
=== RUN   TestBrowserRhythm
    rhythm_browser_test.go:173: roster (/conversation) at 390px: the page's rhythm has 1 finding(s):
        touching: text and a control are 4px apart; they need --rst-sp-2 (8px) or more
        	above: div[equipo-pause-text] “Stopped at 13:50: the model connection …”
        	below: div[equipo-pause-act] “Try again”
        
        roster (/conversation) at 390px, disclosures open: the page's rhythm has 1 finding(s):
        touching: text and a control are 4px apart; they need --rst-sp-2 (8px) or more
        	above: div[equipo-pause-text] “Stopped at 13:50: the model connection …”
        	below: div[equipo-pause-act] “Try again”
--- FAIL: TestBrowserRhythm (9.25s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 3m36.712s
FAIL	amadan.net/oficina/equipo/internal/thintest	216.912s


receipt: test step 3m38.295s 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 3m36.712s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.19s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.08s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.76s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
rastrillo: budget test: go test failed
exit status 1
+ go 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)$' -v -run '^TestBrowserRhythm$' -count=1 ./internal/thintest   (retry, once)
FAILED TWICE ./internal/thintest:TestBrowserRhythm browser-rest
=== RUN   TestBrowserRhythm
    rhythm_browser_test.go:173: roster (/conversation) at 390px: the page's rhythm has 1 finding(s):
        touching: text and a control are 4px apart; they need --rst-sp-2 (8px) or more
        	above: div[equipo-pause-text] “Stopped at 13:51: the model connection …”
        	below: div[equipo-pause-act] “Try again”
        
        roster (/conversation) at 390px, disclosures open: the page's rhythm has 1 finding(s):
        touching: text and a control are 4px apart; they need --rst-sp-2 (8px) or more
        	above: div[equipo-pause-text] “Stopped at 13:51: the model connection …”
        	below: div[equipo-pause-act] “Try again”
--- FAIL: TestBrowserRhythm (10.09s)
FAIL
rastrillo-budget/v1 ran 10.089s
FAIL	amadan.net/oficina/equipo/internal/thintest	10.259s
FAIL
machine: 32 CPUs, load 6.15, cpu waiting 2.95%, memory waiting 0.00%, io waiting 0.07%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 22 of 29 failed: exit status 2
--- 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   (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.61s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.26s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.91s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.80s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (54s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.88s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.43s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.84s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 18.12s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (20s)
ok ./internal/headless TestMixedVersions 18.31s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 52.07, cpu waiting 33.82%, memory waiting 0.00%, io waiting 1.79%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 11.797s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.688s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 211ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 93ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.39s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.81s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 380ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms 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 3.464s 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.046s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 10.16, cpu waiting 9.05%, memory waiting 0.00%, io waiting 3.38%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 41.6%, load 24.46
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2693 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.450s
machine: 32 CPUs, load 52.50, cpu waiting 35.69%, memory waiting 0.00%, io waiting 1.37%
--- 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 24.46
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 50.42, cpu waiting 30.38%, memory waiting 0.00%, io waiting 1.98%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 41.6%, load 24.46
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 51.77, cpu waiting 35.79%, memory waiting 0.00%, io waiting 1.16%
--- 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 24.46
shard 28: make gitleaks
1:48PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
1:48PM INF 1144 commits scanned.
1:48PM INF scanned ~65681395 bytes (65.68 MB) in 21.1s
1:48PM INF no leaks found
machine: 32 CPUs, load 50.42, cpu waiting 31.65%, memory waiting 0.00%, io waiting 1.91%

amadan: job failed at step check shards 17, 22 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index d5131753..c208aab1 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 22128 - Access card lines for hub #48, and the sign-in's account email returns to the Add page (Paul, 2026-11-23); measured 22128 source lines.
-size internal/wire 6835 - ChoiceNotNeeded for access cards Equipo resolves itself (hub #48); measured 6835 source lines.
+size internal/equipo 22528 - Paused work: the report card and task page lead, stop and Run now, in the person's zone (2026-11-24); measured 22528 source lines.
+size internal/wire 6897 - StepPaused, RunNowOffer, the paused job state, CarryOn and TimeZone for paused work (2026-11-24); measured 6897 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).
@@ -30,7 +30,7 @@ size internal/runner/provider 5715 - Fable follow-up: base and diagnostic gates,
time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops.
-size internal/plan3test - 11902 Add Luna-accepted chat.card.access_first (hub #48) to release inventory; measured 11902 test lines, source cap unchanged.
+size internal/plan3test - 11909 Luna-accepted paused-work strings and the Assistant routes in the release inventory and API contract (2026-11-24); measured 11909 test lines, source cap unchanged.
time internal/runner/forge 20s Plan 3 CI repair measured 10.527s for the full package (controller CI 10.407s).
time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full package (controller CI 10.709s);
@@ -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 33527 8853 Access cards and repository titles (hub #48, #49); the link sign-in keeps the typed account email; measured 33527/8853.
+size internal/equipo/chat 34265 9068 Paused work: the person's zone, the Run now prediction and the paused job card with Carry on now (2026-11-24); measured 34265/9068.
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 - 34273 Grant cards in known or named namespaces (hub #48); the sign-in's account email; measured 34273 test lines.
+size internal/thintest - 34603 Paused work: the Assistant's paused job contract and the paused report card in the browser (2026-11-24); measured 34603 test lines.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
diff --git a/internal/equipo/chat/labels_test.go b/internal/equipo/chat/labels_test.go
index 88580f1e..ca9bd96a 100644
--- a/internal/equipo/chat/labels_test.go
+++ b/internal/equipo/chat/labels_test.go
@@ -111,7 +111,7 @@ func TestAdviceAndHeldCardsUseTheSharedLabel(t *testing.T) {
resets := r.at.Add(3 * time.Hour)
tx := &txn{s: r.s, db: r.s.db.G}
hold := &wire.StepHold{Reason: wire.HoldHeadroom, Connection: "tensorx-abc", Provider: wire.ProviderTensorX, ResetsAt: &resets}
- if q := tx.heldQuestion(taskRecord{Creator: adviceOwner}, "RUNNER1", hold, r.at); q != fmt.Sprintf("I’d wait: TensorX (2) resets %s.", clock(resets)) {
+ if q := tx.heldQuestion(taskRecord{Creator: adviceOwner}, "RUNNER1", hold, r.at); q != fmt.Sprintf("I’d wait: TensorX (2) resets %s.", resets.In(defaultLocation()).Format("Mon 15:04")) || strings.Contains(q, "UTC") {
t.Fatalf("held card %q", q)
}
hold.Connection = "tensorx-first"
diff --git a/internal/equipo/static/equipo.css b/internal/equipo/static/equipo.css
index 9549be63..d61a31f3 100644
--- a/internal/equipo/static/equipo.css
+++ b/internal/equipo/static/equipo.css
@@ -2218,7 +2218,7 @@ body[equipo-preview] { margin: 0; min-block-size: 100dvh; }
/* Paused work (spec 2026-11-24-paused-work-design.md). A fourth tone,
paused: a calm indigo for work that carries on by itself. Green is work
happening, amber waits on you, red failed. Contrast is checked in
- pause_css_test.go (AA, light and dark). */
+ TestBrowserPausedWork (AA, light and dark). */
:root {
--equipo-tone-paused-fg: light-dark(#4b44b3, #b4adf6);
--equipo-tone-paused-bg: light-dark(#eeedfb, #201e3b);
@@ -2256,7 +2256,7 @@ body[equipo-preview] { margin: 0; min-block-size: 100dvh; }
[equipo-pause-text] { min-inline-size: 0; }
[equipo-pause-lead] { margin: 0; font-size: var(--rst-fs-sm); line-height: 1.45; color: var(--rst-text); }
[equipo-pause-lead] strong { font-weight: 650; color: var(--equipo-pause-fg); font-variant-numeric: tabular-nums; }
-[equipo-pause-next] { margin: .125rem 0 0; font-size: var(--rst-fs-xs); line-height: 1.4; color: var(--rst-text-muted); }
+[equipo-pause-next] { margin: var(--rst-sp-1) 0 0; font-size: var(--rst-fs-xs); line-height: 1.4; color: var(--rst-text-muted); }
[equipo-pause-act] { display: grid; justify-items: end; gap: var(--rst-sp-1); }
[equipo-pause-buttons] { display: flex; gap: var(--rst-sp-2); }
[equipo-pause-buttons] form { margin: 0; display: contents; }
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index eead16e0..f43a48f4 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -2334,6 +2334,116 @@
}
}
},
+ "time.in_days": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in %d days"
+ }
+ }
+ }
+ },
+ "time.in_days.one": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in 1 day"
+ }
+ }
+ }
+ },
+ "time.in_hours": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in %d hours"
+ }
+ }
+ }
+ },
+ "time.in_hours.one": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in 1 hour"
+ }
+ }
+ }
+ },
+ "time.in_minutes": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in %d minutes"
+ }
+ }
+ }
+ },
+ "time.in_minutes.one": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in 1 minute"
+ }
+ }
+ }
+ },
+ "time.midnight": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "midnight"
+ }
+ }
+ }
+ },
+ "time.today_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "today at %@"
+ }
+ }
+ }
+ },
+ "time.tomorrow_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "tomorrow at %@"
+ }
+ }
+ }
+ },
+ "time.tonight": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ tonight"
+ }
+ }
+ }
+ },
"track.position %@ %@": {
"extractionState": "manual",
"localizations": {
@@ -2356,6 +2466,281 @@
}
}
},
+ "work.pause.lead.no_connection": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Waiting: nothing you’ve connected can run this without paying per use."
+ }
+ }
+ }
+ },
+ "work.pause.lead.spend_unknown": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused: Equipo can’t tell how much %@ has spent."
+ }
+ }
+ }
+ },
+ "work.pause.moment": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused for a moment: %@."
+ }
+ }
+ }
+ },
+ "work.pause.next.budget": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It carries on by itself when the budget resets."
+ }
+ }
+ }
+ },
+ "work.pause.next.busy": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It starts by itself as soon as that step finishes."
+ }
+ }
+ }
+ },
+ "work.pause.next.by_itself": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It carries on by itself then."
+ }
+ }
+ }
+ },
+ "work.pause.next.choose": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing happens until you choose."
+ }
+ }
+ }
+ },
+ "work.pause.next.online": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It carries on by itself when the Mac is back online."
+ }
+ }
+ }
+ },
+ "work.pause.next.spend_unknown": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Check your spending on %@, then resume. Nothing runs on %@ until you do."
+ }
+ }
+ }
+ },
+ "work.pause.next.try_again": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing more happens until you try again."
+ }
+ }
+ }
+ },
+ "work.pause.reason.budget": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ has reached today’s budget"
+ }
+ }
+ }
+ },
+ "work.pause.reason.busy": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ is busy with another step for you"
+ }
+ }
+ }
+ },
+ "work.pause.reason.headroom_out": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "your %@ allowance has run out"
+ }
+ }
+ }
+ },
+ "work.pause.reason.headroom_saving": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "your %@ allowance is %d%% used, so Equipo is keeping the rest for urgent work"
+ }
+ }
+ }
+ },
+ "work.pause.reason.offline": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@, which runs this work, is offline"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_last": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Uses some of the last %d%%"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_metered": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ bills per use"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_on": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Run it now on %@"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_room": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ has room now"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_with": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Run it now with %@"
+ }
+ }
+ }
+ },
+ "work.pause.since": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused since %@: %@."
+ }
+ }
+ }
+ },
+ "work.pause.until": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused until %@ (%@): %@."
+ }
+ }
+ }
+ },
+ "work.stage.needs_you": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Needs you"
+ }
+ }
+ }
+ },
+ "work.stage.paused": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused"
+ }
+ }
+ }
+ },
+ "work.stage.stopped": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Stopped"
+ }
+ }
+ }
+ },
"work.star.add": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoActivity/Roster.swift b/native/apple/Sources/EquipoActivity/Roster.swift
index deafedcc..075c3241 100644
--- a/native/apple/Sources/EquipoActivity/Roster.swift
+++ b/native/apple/Sources/EquipoActivity/Roster.swift
@@ -33,8 +33,9 @@ public enum Specialist: String, CaseIterable, Sendable {
}
}
-/// Amber waits on you, red only for a failure.
-public enum StageTone: String, Sendable { case positive, warning, negative }
+/// Amber waits on you, red only for a failure; indigo (paused) carries on
+/// by itself (paused work, 2026-11-24).
+public enum StageTone: String, Sendable { case positive, warning, negative, paused }
public enum Stage: String, CaseIterable, Sendable {
case noted, inProgress = "in_progress", inReview = "in_review", readyToMerge = "ready_to_merge", done
@@ -70,5 +71,8 @@ public struct TrackStop: Identifiable, Sendable, Equatable {
public var stage: Stage
public var state: StopState
public var tone: StageTone?
+ /// The current stop's words when it is paused, stopped or needs you
+ /// (paused work); nil: the stage's own.
+ public var label: String? = nil
public var id: String { stage.rawValue }
}
diff --git a/native/apple/Sources/EquipoKit/API/Client.swift b/native/apple/Sources/EquipoKit/API/Client.swift
index 49d0ec0b..3872c45b 100644
--- a/native/apple/Sources/EquipoKit/API/Client.swift
+++ b/native/apple/Sources/EquipoKit/API/Client.swift
@@ -69,6 +69,14 @@ public struct EquipoClient: Sendable {
return try await post("/cards/\(escape(id))/answer", write)
}
/// 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)))
+ }
+ /// PUT /time-zone: this device's IANA zone.
+ public func setTimeZone(_ zone: String) async throws -> TimeZoneValue {
+ try await send(APIRequest("PUT", "/time-zone", body: try EquipoJSON.encoder.encode(TimeZoneValue(timeZone: zone)), bearer: token))
+ }
public func cancelTurn(_ id: String) async throws {
let _: EmptyResponse = try await post("/turns/\(escape(id))/cancel", PendingWrite(body: Data("{}".utf8)))
}
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift
index 0a3a3559..74cb4143 100644
--- a/native/apple/Sources/EquipoKit/API/Thin.swift
+++ b/native/apple/Sources/EquipoKit/API/Thin.swift
@@ -89,6 +89,45 @@ public struct ThinStep: Codable, Sendable, Identifiable, Equatable {
public var exitCode: Int?
public var startedAt: Date?
public var finishedAt: Date?
+ /// Why the scheduler holds the step (wire.StepHold), absent when it does not.
+ public var hold: ThinHold?
+ /// What the instance adds to a waiting step (wire.StepPaused).
+ public var paused: ThinPaused?
+ /// Which machine runs it, by its name.
+ public var runnerLabel: String?
+}
+
+/// Why the runner holds a step: reason (headroom, budget, spend_unknown,
+/// busy, no_connection), the connection it names, its reset, when the runner
+/// looks again, what it needs from the person, and the step revision Run now
+/// names.
+public struct ThinHold: Codable, Sendable, Equatable {
+ public var reason: String
+ public var connection: String?
+ public var provider: String?
+ public var resetsAt: Date?
+ public var wakeAt: Date?
+ public var needsPerson: String?
+ public var stepRevision: Int64
+}
+
+/// Paused work's facts (paused work, 2026-11-24): since when, whether its
+/// machine is offline, how full the held plan is, and what Run now would do.
+public struct ThinPaused: Codable, Sendable, Equatable {
+ public var since: Date?
+ public var offline: Bool?
+ public var usedPercent: Int?
+ public var runNow: ThinRunNow?
+}
+
+/// What Run now would use, as the instance predicts it.
+public struct ThinRunNow: Codable, Sendable, Equatable {
+ public var connection: String
+ public var provider: String
+ public var name: String
+ public var billing: String
+ public var same: Bool?
+ public var leftPercent: Int?
}
public struct ThinTask: Codable, Sendable, Identifiable, Equatable {
@@ -110,6 +149,8 @@ public struct ThinTask: Codable, Sendable, Identifiable, Equatable {
/// Why the task waits on its creator; empty when it does not. The
/// team list marks every creator's tasks: use EquipoSession.waitsOnYou.
public var needsYou: String
+ /// Who asked for it (their address).
+ public var creator: String?
public var steps: [ThinStep]?
public var thread: [ThreadEntry]?
public var createdAt: Date
@@ -169,3 +210,9 @@ public struct ThinActivity: Codable, Sendable, Equatable {
public var repo: String
public var label: String
}
+
+/// Run now's body and answer (wire.RunNow, wire.RunNowAccepted).
+struct RunNowInput: Codable, Sendable { var step: String; var stepRevision: Int64 }
+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
new file mode 100644
index 00000000..15a035e3
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
@@ -0,0 +1,195 @@
+import Foundation
+
+// Paused work (spec 2026-11-24-paused-work-design.md), the minimum the
+// apps need so a held step is never a false green: the web's pauseOf
+// (pause_view.go) for the reasons that carry on by themselves, a stopped
+// step, and the amber ones only the person can move. Times are this
+// device's own zone and locale; the words are the web's, by key
+// (check-parity.py holds them to copy.go).
+
+/// Why a task waits or stopped, and the one action.
+public struct TaskPause: Sendable, Equatable {
+ /// paused (indigo, carries on by itself), warning (only you can move
+ /// it) or negative (it failed).
+ public var tone: StageTone
+ /// The stepper's current stop: Paused, Needs you or Stopped.
+ public var stop: String
+ /// The lead's bold part and the rest of it; what happens next.
+ public var strong: String
+ public var rest: String
+ public var next: String
+ /// Run now, as the instance predicts it, for the task's creator.
+ public var runNow: RunNow?
+ public var note: String?
+
+ public struct RunNow: Sendable, Equatable {
+ public var label: String
+ public var step: String
+ public var revision: Int64
+ }
+}
+
+extension TaskPause {
+ /// The task's pause at now in zone, nil while nothing waits. mine: the
+ /// person is the task's creator (only they are offered Run now).
+ public init?(_ task: ThinTask, mine: Bool, now: Date = Date(), zone: TimeZone = .current, locale: Locale = .current) {
+ let final = ["done", "cancelled"].contains(task.stage)
+ guard !final, let step = (task.steps ?? []).last(where: { !["preview", "research", "publish"].contains($0.specialist) }) else { return nil }
+ if !task.needsYou.isEmpty && !["retry", "held"].contains(task.needsYou) { return nil }
+ let words = TimeWords(now: now, zone: zone, locale: locale)
+ if step.state == "failed" {
+ // Stopped, in red. The stop reasons' words are the web's; the
+ // task page there says which.
+ self.init(tone: .negative, stop: EquipoStrings.text("work.stage.stopped"), lead: "", next: EquipoStrings.text("work.pause.next.try_again"))
+ return
+ }
+ guard ["queued", "running"].contains(step.state) else { return nil }
+ if step.paused?.offline == true {
+ guard let machine = step.runnerLabel, !machine.isEmpty else {
+ self.init(tone: .paused, stop: EquipoStrings.text("work.stage.paused"), lead: "", next: EquipoStrings.text("work.pause.next.online"))
+ return
+ }
+ let reason = String(format: EquipoStrings.text("work.pause.reason.offline"), machine)
+ let lead = step.paused?.since.map { Self.format("work.pause.since", words.clockOrDay($0), reason) } ?? Self.format("work.pause.moment", reason)
+ self.init(tone: .paused, stop: EquipoStrings.text("work.stage.paused"), lead: lead, next: EquipoStrings.text("work.pause.next.online"))
+ return
+ }
+ guard let hold = step.hold else { return nil }
+ let name = ProviderNames.name(hold.provider ?? "")
+ let paused = EquipoStrings.text("work.stage.paused"), needs = EquipoStrings.text("work.stage.needs_you")
+ switch hold.reason {
+ case _ where hold.needsPerson == "no_connection" || hold.reason == "no_connection":
+ self.init(tone: .warning, stop: needs, lead: EquipoStrings.text("work.pause.lead.no_connection"), next: EquipoStrings.text("work.pause.next.choose"))
+ case "spend_unknown":
+ let next = String(format: EquipoStrings.text("work.pause.next.spend_unknown"), name, name)
+ self.init(tone: .warning, stop: needs, lead: Self.format("work.pause.lead.spend_unknown", name), next: next)
+ return
+ case _ where !(hold.needsPerson ?? "").isEmpty:
+ self.init(tone: .warning, stop: needs, lead: "", next: EquipoStrings.text("work.pause.next.choose"))
+ case "budget":
+ self.init(tone: .paused, stop: paused, lead: Self.until(hold.wakeAt, since: step.paused?.since, reason: String(format: EquipoStrings.text("work.pause.reason.budget"), name), words: words), next: EquipoStrings.text("work.pause.next.budget"))
+ return
+ case "busy":
+ self.init(tone: .paused, stop: paused, lead: Self.format("work.pause.moment", String(format: EquipoStrings.text("work.pause.reason.busy"), name)), next: EquipoStrings.text("work.pause.next.busy"))
+ return
+ default:
+ var reason = String(format: EquipoStrings.text("work.pause.reason.headroom_out"), name)
+ if let used = step.paused?.usedPercent, used < 100 {
+ reason = String(format: EquipoStrings.text("work.pause.reason.headroom_saving"), name, Int32(used))
+ }
+ let at = hold.resetsAt ?? hold.wakeAt
+ let next = at.map { $0 > now } == true ? EquipoStrings.text("work.pause.next.by_itself") : ""
+ self.init(tone: .paused, stop: paused, lead: Self.until(at, since: step.paused?.since, reason: reason, words: words), next: next)
+ }
+ if mine, let offer = step.paused?.runNow {
+ let label: String
+ switch (offer.billing, offer.same ?? false) {
+ 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)
+ case (_, true):
+ label = String(format: EquipoStrings.text("work.pause.run_now_on"), offer.name)
+ if let left = offer.leftPercent, left > 0 { note = String(format: EquipoStrings.text("work.pause.run_now_last"), Int32(left)) }
+ default:
+ 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)
+ }
+ }
+
+ private init(tone: StageTone, stop: String, lead: (String, String), next: String) {
+ self.init(tone: tone, stop: stop, strong: lead.0, rest: lead.1, next: next)
+ }
+ private init(tone: StageTone, stop: String, lead: String, next: String) {
+ self.init(tone: tone, stop: stop, strong: "", rest: lead, next: next)
+ }
+
+ /// "Paused until 21:00 tonight (in 9 hours): …", else since when it
+ /// was held, else for a moment.
+ private static func until(_ at: Date?, since: Date?, reason: String, words: TimeWords) -> (String, String) {
+ if let at, at > words.now { return format("work.pause.until", words.when(at), words.inWords(at.timeIntervalSince(words.now)), reason) }
+ if let since { return format("work.pause.since", words.clockOrDay(since), reason) }
+ return format("work.pause.moment", reason)
+ }
+
+ /// The copy at key with args, split where its bold part ends: at its
+ /// first colon (kept) or its first " (" (not kept), as pause.Lead does.
+ static func format(_ key: String, _ args: String...) -> (String, String) {
+ let template = EquipoStrings.text(String.LocalizationValue(key))
+ var cut = template.endIndex, keep = false
+ if let colon = template.firstIndex(of: ":") { cut = colon; keep = true }
+ if let paren = template.range(of: " (")?.lowerBound, paren < cut { cut = paren; keep = false }
+ guard cut != template.endIndex else { return ("", String(format: template, arguments: args)) }
+ let split = keep ? template.index(after: cut) : cut
+ let head = String(template[..<split]), tail = String(template[split...])
+ let n = head.components(separatedBy: "%@").count - 1
+ return (String(format: head, arguments: Array(args.prefix(n))), String(format: tail, arguments: Array(args.dropFirst(n))))
+ }
+}
+
+/// How the apps name a provider, as the web's chat.ProviderName does.
+enum ProviderNames {
+ static func name(_ provider: String) -> String {
+ switch provider {
+ case "claude": return "Claude"
+ case "codex": return "Codex"
+ case "tensorx": return "TensorX"
+ case "opencode_go": return "OpenCode Go"
+ default: return provider.prefix(1).uppercased() + provider.dropFirst()
+ }
+ }
+}
+
+/// When paused work carries on, in words (internal/equipo/pause): the
+/// device's zone and locale, relative to now.
+struct TimeWords {
+ let now: Date
+ let zone: TimeZone
+ let locale: Locale
+ static let evening = 18
+
+ private var calendar: Calendar { var c = Calendar(identifier: .gregorian); c.timeZone = zone; return c }
+ private func clock(_ at: Date) -> String {
+ var style = Date.FormatStyle(date: .omitted, time: .shortened, locale: locale, calendar: calendar, timeZone: zone)
+ style.timeZone = zone
+ return at.formatted(style)
+ }
+ private func days(_ at: Date) -> Int {
+ calendar.dateComponents([.day], from: calendar.startOfDay(for: now), to: calendar.startOfDay(for: at)).day ?? 0
+ }
+ /// "today at 15:00", "21:00 tonight", "midnight", "tomorrow at 09:00",
+ /// else the day and the time.
+ func when(_ at: Date) -> String {
+ let parts = calendar.dateComponents([.hour, .minute], from: at)
+ switch days(at) {
+ case 1 where parts.hour == 0 && parts.minute == 0: return EquipoStrings.text("time.midnight")
+ case 0 where (parts.hour ?? 0) >= Self.evening: return String(format: EquipoStrings.text("time.tonight"), clock(at))
+ case 0: return String(format: EquipoStrings.text("time.today_at"), clock(at))
+ case 1: return String(format: EquipoStrings.text("time.tomorrow_at"), clock(at))
+ default:
+ var style = Date.FormatStyle(locale: locale, calendar: calendar, timeZone: zone).weekday(.abbreviated)
+ style.timeZone = zone
+ return at.formatted(style) + " " + clock(at)
+ }
+ }
+ /// "in 40 minutes", "in 9 hours", "in 2 days".
+ func inWords(_ seconds: TimeInterval) -> String {
+ let minutes = Int((seconds / 60).rounded(.up))
+ if minutes <= 1 { return EquipoStrings.text("time.in_minutes.one") }
+ if minutes < 60 { return String(format: EquipoStrings.text("time.in_minutes"), Int32(minutes)) }
+ if seconds < 24 * 3600 {
+ let hours = Int((seconds / 3600).rounded())
+ return hours > 1 ? String(format: EquipoStrings.text("time.in_hours"), Int32(hours)) : EquipoStrings.text("time.in_hours.one")
+ }
+ let days = Int((seconds / 86400).rounded())
+ return days > 1 ? String(format: EquipoStrings.text("time.in_days"), Int32(days)) : EquipoStrings.text("time.in_days.one")
+ }
+ /// The clock today, the day and the clock before.
+ func clockOrDay(_ at: Date) -> String {
+ if days(at) == 0 { return clock(at) }
+ var style = Date.FormatStyle(locale: locale, calendar: calendar, timeZone: zone).weekday(.abbreviated)
+ style.timeZone = zone
+ return at.formatted(style) + " " + clock(at)
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/Roster.swift b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
index 1c9b3141..1839828e 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Roster.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
@@ -38,8 +38,15 @@ public struct TaskReport: Sendable, Equatable {
public var cancelled: Bool { task.stage == "cancelled" }
/// Waits on this person (their Needs you), not merely on its creator.
public var needsYou: Bool
+ /// The person asked for it: only they are offered Run now.
+ public var mine: Bool
+ /// Why it waits or stopped, and Run now (paused work); nil while it moves.
+ public var pause: TaskPause?
- public init(_ task: ThinTask, needsYou: Bool) { self.task = task; self.needsYou = needsYou }
+ public init(_ task: ThinTask, needsYou: Bool, mine: Bool = false, now: Date = Date()) {
+ self.task = task; self.needsYou = needsYou; self.mine = mine
+ self.pause = TaskPause(task, mine: mine, now: now)
+ }
/// chat_roster.go rosterTone.
public var tone: StageTone {
@@ -51,7 +58,14 @@ public struct TaskReport: Sendable, Equatable {
return stage?.label ?? task.stage
}
/// chat_roster.go rosterTrack: five stops, merging sits on Ready to merge.
- public var track: [TrackStop] { Stage.track(at: stage, tone: tone) }
+ public var track: [TrackStop] {
+ var stops = Stage.track(at: stage, tone: tone)
+ if let pause, let i = stops.firstIndex(where: { $0.state == .current }) {
+ stops[i].tone = pause.tone
+ stops[i].label = pause.stop
+ }
+ return stops
+ }
/// The specialist reporting now: the running or last finished step.
public var specialist: Specialist {
let steps = task.steps ?? []
@@ -162,7 +176,7 @@ public enum Feed {
let n = session.messages.count + i
if card.kind == "task" {
guard let task = session.task(card.taskId) else { continue }
- let report = TaskReport(task, needsYou: session.waitsOnYou(task))
+ let report = TaskReport(task, needsYou: session.waitsOnYou(task), mine: session.isMine(task))
let byline = RosterByline(who: report.specialist, verb: String(localized: "byline.reports", bundle: .module), project: project, time: at)
timed.append((at, n, .report(card, byline, report, compact: deciding.contains(task.id))))
} else if isReceipt(card) {
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index eead16e0..f43a48f4 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -2334,6 +2334,116 @@
}
}
},
+ "time.in_days": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in %d days"
+ }
+ }
+ }
+ },
+ "time.in_days.one": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in 1 day"
+ }
+ }
+ }
+ },
+ "time.in_hours": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in %d hours"
+ }
+ }
+ }
+ },
+ "time.in_hours.one": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in 1 hour"
+ }
+ }
+ }
+ },
+ "time.in_minutes": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in %d minutes"
+ }
+ }
+ }
+ },
+ "time.in_minutes.one": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "in 1 minute"
+ }
+ }
+ }
+ },
+ "time.midnight": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "midnight"
+ }
+ }
+ }
+ },
+ "time.today_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "today at %@"
+ }
+ }
+ }
+ },
+ "time.tomorrow_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "tomorrow at %@"
+ }
+ }
+ }
+ },
+ "time.tonight": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ tonight"
+ }
+ }
+ }
+ },
"track.position %@ %@": {
"extractionState": "manual",
"localizations": {
@@ -2356,6 +2466,281 @@
}
}
},
+ "work.pause.lead.no_connection": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Waiting: nothing you’ve connected can run this without paying per use."
+ }
+ }
+ }
+ },
+ "work.pause.lead.spend_unknown": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused: Equipo can’t tell how much %@ has spent."
+ }
+ }
+ }
+ },
+ "work.pause.moment": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused for a moment: %@."
+ }
+ }
+ }
+ },
+ "work.pause.next.budget": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It carries on by itself when the budget resets."
+ }
+ }
+ }
+ },
+ "work.pause.next.busy": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It starts by itself as soon as that step finishes."
+ }
+ }
+ }
+ },
+ "work.pause.next.by_itself": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It carries on by itself then."
+ }
+ }
+ }
+ },
+ "work.pause.next.choose": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing happens until you choose."
+ }
+ }
+ }
+ },
+ "work.pause.next.online": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It carries on by itself when the Mac is back online."
+ }
+ }
+ }
+ },
+ "work.pause.next.spend_unknown": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Check your spending on %@, then resume. Nothing runs on %@ until you do."
+ }
+ }
+ }
+ },
+ "work.pause.next.try_again": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing more happens until you try again."
+ }
+ }
+ }
+ },
+ "work.pause.reason.budget": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ has reached today’s budget"
+ }
+ }
+ }
+ },
+ "work.pause.reason.busy": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ is busy with another step for you"
+ }
+ }
+ }
+ },
+ "work.pause.reason.headroom_out": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "your %@ allowance has run out"
+ }
+ }
+ }
+ },
+ "work.pause.reason.headroom_saving": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "your %@ allowance is %d%% used, so Equipo is keeping the rest for urgent work"
+ }
+ }
+ }
+ },
+ "work.pause.reason.offline": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@, which runs this work, is offline"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_last": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Uses some of the last %d%%"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_metered": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ bills per use"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_on": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Run it now on %@"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_room": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ has room now"
+ }
+ }
+ }
+ },
+ "work.pause.run_now_with": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Run it now with %@"
+ }
+ }
+ }
+ },
+ "work.pause.since": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused since %@: %@."
+ }
+ }
+ }
+ },
+ "work.pause.until": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused until %@ (%@): %@."
+ }
+ }
+ }
+ },
+ "work.stage.needs_you": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Needs you"
+ }
+ }
+ }
+ },
+ "work.stage.paused": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paused"
+ }
+ }
+ }
+ },
+ "work.stage.stopped": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Stopped"
+ }
+ }
+ }
+ },
"work.star.add": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index 10411967..8cf3928e 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -30,6 +30,9 @@ public final class EquipoSession {
public let lifetime: SignInLifetime
public let markdown = MarkdownTranscript()
private var questionDrafts: [String: QuestionAnswerDraft] = [:]
+ /// The zone this session told Equipo (paused work): sent once, and again
+ /// when the device's changes.
+ private var zoneSent: String?
public func questionDraft(for card: ThinCard) -> QuestionAnswerDraft {
if let draft = questionDrafts[card.id] { return draft }
let draft = QuestionAnswerDraft(card: card); questionDrafts[card.id] = draft
@@ -94,6 +97,26 @@ public final class EquipoSession {
/// Whether the task waits on this person. The team's task list marks a
/// task that waits on its creator; Needs you is this person's own.
public func waitsOnYou(_ task: ThinTask) -> Bool { needsYou?.contains { $0.id == task.id } ?? false }
+ /// The person asked for the task (only they are offered Run now).
+ public func isMine(_ task: ThinTask) -> Bool { me.map { task.creator == $0.address } ?? false }
+
+ /// 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.
+ 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)
+ await refresh()
+ }
+
+ /// Tells Equipo this device's time zone, so the times it words for the
+ /// person are theirs (paused work, decision 4). Once a session, and
+ /// again when the device's zone changes.
+ private func sendZone() async {
+ let zone = TimeZone.current.identifier
+ guard zone != zoneSent, lifetime.isActive else { return }
+ if (try? await client.setTimeZone(zone)) != nil { zoneSent = zone }
+ }
public func project(_ id: String) -> ThinProject? { projects[id] }
/// The coordinator's turn in flight, if any.
public var liveTurn: ThinTurn? { turns.filter(\.isLive).max { $0.createdAt < $1.createdAt } }
@@ -121,6 +144,7 @@ public final class EquipoSession {
needsYou = needsList.items ?? []
status = .ready
refreshFailed = false
+ await sendZone()
// The team answers again: what was waiting goes now, as itself.
for item in outgoing where item.state == .waiting {
let id = item.id
diff --git a/native/apple/Sources/EquipoKit/UI/LiveCards.swift b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
index 8e88acb4..21a5513b 100644
--- a/native/apple/Sources/EquipoKit/UI/LiveCards.swift
+++ b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
@@ -304,8 +304,9 @@ public struct LiveReport: View {
var compact = false
var wide = false
var onOpen: () -> Void = {}
- public init(report: TaskReport, compact: Bool = false, wide: Bool = false, onOpen: @escaping () -> Void = {}) {
- self.report = report; self.compact = compact; self.wide = wide; self.onOpen = onOpen
+ var onRunNow: ((TaskPause.RunNow) -> Void)? = nil
+ public init(report: TaskReport, compact: Bool = false, wide: Bool = false, onRunNow: ((TaskPause.RunNow) -> Void)? = nil, onOpen: @escaping () -> Void = {}) {
+ self.report = report; self.compact = compact; self.wide = wide; self.onRunNow = onRunNow; self.onOpen = onOpen
}
public var body: some View {
VStack(alignment: .leading, spacing: Metric.gap) {
@@ -323,13 +324,15 @@ public struct LiveReport: View {
} else {
VStack(alignment: .leading, spacing: 4) {
HStack(alignment: .center, spacing: 8) {
- Text(report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow).lineLimit(1)
+ // A pause says it in its lead and its stop.
+ if report.pause == nil { Text(report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow).lineLimit(1) }
Spacer(minLength: 0)
if report.needsYou { NeedsChip() }
}
Text(report.title).font(Typo.reportTitle).foregroundStyle(Palette.text)
.fixedSize(horizontal: false, vertical: true)
}
+ if let pause = report.pause { PauseLead(pause: pause, onRunNow: onRunNow) }
if !report.cancelled { StageTrack(track: report.track, allLabels: wide) }
if !report.facts.isEmpty { FactsView(facts: report.facts, wide: wide) }
QuietLink(title: String(localized: "task.open", bundle: .module), icon: "chevron.right", action: onOpen)
diff --git a/native/apple/Sources/EquipoKit/UI/RosterViews.swift b/native/apple/Sources/EquipoKit/UI/RosterViews.swift
index f8b2a553..81b77d5f 100644
--- a/native/apple/Sources/EquipoKit/UI/RosterViews.swift
+++ b/native/apple/Sources/EquipoKit/UI/RosterViews.swift
@@ -156,6 +156,12 @@ struct StageTrack: View {
let tone = stop.tone ?? .positive
context.fill(Path(ellipseIn: CGRect(x: c.x - 9.5, y: c.y - 9.5, width: 19, height: 19)), with: .color(tone.halo))
context.fill(Path(ellipseIn: CGRect(x: c.x - 5.5, y: c.y - 5.5, width: 11, height: 11)), with: .color(tone.dot))
+ if tone == .paused {
+ // A still pause mark in the dot: never colour alone.
+ for dx in [-1.75, 1.75] {
+ context.fill(Path(CGRect(x: c.x + dx - 0.75, y: c.y - 2.5, width: 1.5, height: 5)), with: .color(Palette.surface))
+ }
+ }
case .todo:
let dot = Path(ellipseIn: CGRect(x: c.x - 4, y: c.y - 4, width: 8, height: 8))
context.fill(dot, with: .color(Palette.surface))
@@ -167,7 +173,7 @@ struct StageTrack: View {
TrackLabels(slot: slot) {
ForEach(track) { stop in
let current = stop.state == .current
- Text(stop.stage.label)
+ Text(stop.label ?? stop.stage.label)
.font(current ? Typo.eyebrow : Typo.factLabel)
.foregroundStyle(current ? (stop.tone ?? .positive).text : Palette.secondary)
.fixedSize()
@@ -179,7 +185,11 @@ struct StageTrack: View {
.accessibilityLabel(Text(String(localized: "track.spoken \(currentLabel)", bundle: .module)))
.accessibilityValue(Text(String(localized: "track.position \(position) \(total)", bundle: .module)))
}
- private var currentLabel: String { track.first { $0.state == .current }?.stage.label ?? "" }
+ private var currentLabel: String {
+ guard let stop = track.first(where: { $0.state == .current }) else { return "" }
+ // Paused, stopped or needs you: the stage too ("In progress, Paused").
+ return stop.label.map { stop.stage.label + ", " + $0 } ?? stop.stage.label
+ }
private var position: String { ((track.firstIndex { $0.state == .current } ?? 0) + 1).formatted() }
private var total: String { track.count.formatted() }
private func positions(_ width: CGFloat) -> [CGFloat] {
@@ -204,8 +214,22 @@ struct TrackLabels: Layout {
}
}
extension StageTone {
- var dot: Color { self == .warning ? Palette.warning : self == .negative ? Palette.negative : Palette.positive }
- var halo: Color { self == .warning ? Palette.warningBackground : self == .negative ? Palette.negativeBackground : Palette.positiveBackground }
+ var dot: Color {
+ switch self {
+ case .warning: return Palette.warning
+ case .negative: return Palette.negative
+ case .paused: return Palette.paused
+ case .positive: return Palette.positive
+ }
+ }
+ var halo: Color {
+ switch self {
+ case .warning: return Palette.warningBackground
+ case .negative: return Palette.negativeBackground
+ case .paused: return Palette.pausedBackground
+ case .positive: return Palette.positiveBackground
+ }
+ }
var text: Color { dot }
/// The eyebrow is coloured only when the stage needs attention.
var eyebrow: Color { self == .positive ? Palette.secondary : dot }
@@ -642,3 +666,34 @@ private struct RosterCheckStyle: ToggleStyle {
}
}
}
+
+// MARK: - Paused work
+
+/// Why the work waits or stopped (pause_view.go's lead): the bold part in
+/// the pause's tone, the rest, what happens next, and Run now for its
+/// creator, naming what it would use.
+struct PauseLead: View {
+ let pause: TaskPause
+ var onRunNow: ((TaskPause.RunNow) -> Void)?
+ var body: some View {
+ VStack(alignment: .leading, spacing: 8) {
+ if !pause.strong.isEmpty || !pause.rest.isEmpty {
+ (Text(pause.strong).bold().foregroundStyle(pause.tone.dot) + Text(pause.rest).foregroundStyle(Palette.text))
+ .font(Typo.body).fixedSize(horizontal: false, vertical: true)
+ }
+ if !pause.next.isEmpty {
+ Text(pause.next).font(Typo.factLabel).foregroundStyle(Palette.secondary).fixedSize(horizontal: false, vertical: true)
+ }
+ if let run = pause.runNow, let onRunNow {
+ VStack(alignment: .leading, spacing: 4) {
+ RosterButton(title: run.label) { onRunNow(run) }
+ if let note = pause.note { Text(note).font(Typo.factLabel).foregroundStyle(Palette.secondary) }
+ }
+ }
+ }
+ .padding(12)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .background(pause.tone.halo, in: RoundedRectangle(cornerRadius: 12))
+ .accessibilityElement(children: .contain)
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
index a3a87311..6a2eefe0 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
@@ -80,7 +80,7 @@ public struct ConversationScreen: View {
case .report(_, let byline, let report, let compact):
VStack(alignment: .leading, spacing: 8) {
Byline(byline: byline)
- LiveReport(report: report, compact: compact) { openTask(report.task.id) }
+ LiveReport(report: report, compact: compact, onRunNow: { run in Task { await session.runNow(task: report.task.id, run) } }) { openTask(report.task.id) }
}
case .question(let card, let byline):
VStack(alignment: .leading, spacing: 8) {
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
index c200c579..e505a03d 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
@@ -151,7 +151,7 @@ public struct TaskScreen: View {
}
@ViewBuilder private func content(_ task: ThinTask) -> some View {
- let report = TaskReport(task, needsYou: session.waitsOnYou(task))
+ let report = TaskReport(task, needsYou: session.waitsOnYou(task), mine: session.isMine(task))
VStack(alignment: .leading, spacing: 20) {
VStack(alignment: .leading, spacing: 6) {
HStack {
@@ -162,6 +162,7 @@ public struct TaskScreen: View {
Text(report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow)
Text(task.title).font(Typo.reportTitle).foregroundStyle(Palette.text).fixedSize(horizontal: false, vertical: true)
}
+ if let pause = report.pause { PauseLead(pause: pause) { run in Task { await session.runNow(task: task.id, run) } } }
if !report.cancelled { StageTrack(track: report.track, allLabels: true) }
if !report.facts.isEmpty { FactsView(facts: report.facts, wide: false) }
TaskCards(session: session, task: task)
diff --git a/native/apple/Sources/EquipoKit/UI/Theme.swift b/native/apple/Sources/EquipoKit/UI/Theme.swift
index 32f04f6a..abe83c8a 100644
--- a/native/apple/Sources/EquipoKit/UI/Theme.swift
+++ b/native/apple/Sources/EquipoKit/UI/Theme.swift
@@ -34,6 +34,9 @@ enum Palette {
static let positive = Color(light: 0x166534, dark: 0x6EE7A8)
static let positiveBackground = Color(light: 0xDCFCE7, dark: 0x10281C)
static let warning = Color(light: 0x854D0E, dark: 0xF0C46A)
+ /// Paused work's calm indigo (equipo.css --equipo-tone-paused-*).
+ static let paused = Color(light: 0x4B44B3, dark: 0xB4ADF6)
+ static let pausedBackground = Color(light: 0xEEEDFB, dark: 0x201E3B)
static let warningBackground = Color(light: 0xFEF3C7, dark: 0x2C2110)
static let negative = Color(light: 0xB91C1C, dark: 0xF79AA0)
static let negativeBackground = Color(light: 0xFEE2E2, dark: 0x331819)
diff --git a/native/apple/Sources/EquipoMac/LiveTranscript.swift b/native/apple/Sources/EquipoMac/LiveTranscript.swift
index a228dbdb..fa322fc1 100644
--- a/native/apple/Sources/EquipoMac/LiveTranscript.swift
+++ b/native/apple/Sources/EquipoMac/LiveTranscript.swift
@@ -214,7 +214,8 @@ final class LiveTranscript: NSView {
place(status, x: width - status.frame.width)
case .report(_, let byline, let report, let compact):
place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
- place(hosted(LiveReport(report: report, compact: compact, wide: true) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24)
+ let session = self.session
+ place(hosted(LiveReport(report: report, compact: compact, wide: true, onRunNow: { run in Task { await session.runNow(task: report.task.id, run) } }) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24)
case .question(let card, let byline):
place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
if card.rememberName != nil || card.isTypedProjectChoice {
diff --git a/native/apple/Tests/EquipoKitTests/PausedTests.swift b/native/apple/Tests/EquipoKitTests/PausedTests.swift
new file mode 100644
index 00000000..a539f289
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/PausedTests.swift
@@ -0,0 +1,73 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+/// Paused work (spec 2026-11-24-paused-work-design.md): a held step is
+/// never a false green. Paul's case: Engineering held for the Claude
+/// allowance, which resets at 21:00 UTC; Codex has room; noon in Dublin.
+@MainActor @Suite struct PausedTests {
+ private let dublin = TimeZone(identifier: "Europe/Dublin")!
+ private let britain = Locale(identifier: "en_GB")
+ private let noon = ISO8601DateFormatter().date(from: "2026-11-24T12:00:00Z")!
+
+ private func task(_ step: String) throws -> ThinTask {
+ let json = """
+ {"id":"tk1","revision":3,"project_id":"p_1","project":"Equipo","title":"Swipe down to dismiss the keyboard on iOS","brief":"","stage":"in_progress","branch":"","url":"","candidate_sha":"","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"","creator":"paul@example.com","created_at":"2026-11-24T09:00:00Z","updated_at":"2026-11-24T09:00:00Z","steps":[\(step)]}
+ """
+ return try EquipoJSON.decoder.decode(ThinTask.self, from: Data(json.utf8))
+ }
+ private let held = """
+ {"id":"s1","specialist":"engineering","state":"queued","reason":"","summary":"","headline":"","verdict":"","review_label":"","checks":"","gate":"","runner_label":"Paul’s Mac mini","hold":{"reason":"headroom","connection":"claude-1","provider":"claude","resets_at":"2026-11-24T21:00:00Z","wake_at":"2026-11-24T21:00:00Z","step_revision":4},"paused":{"since":"2026-11-24T09:00:00Z","used_percent":100,"run_now":{"connection":"cn_codex","provider":"codex","name":"Codex","billing":"subscription"}}}
+ """
+
+ @Test func paulsCaseIsPausedNotGreen() throws {
+ let t = try task(held)
+ #expect(t.steps?.first?.hold?.stepRevision == 4, "the hold decodes")
+ let pause = try #require(TaskPause(t, mine: true, now: noon, zone: dublin, locale: britain))
+ #expect(pause.tone == .paused)
+ #expect(pause.stop == "Paused")
+ #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.note == "Codex has room now")
+ var report = TaskReport(t, needsYou: false, mine: true, now: noon)
+ report.pause = pause
+ let current = try #require(report.track.first { $0.state == .current })
+ #expect(current.tone == .paused && current.label == "Paused" && current.stage == .inProgress)
+ }
+
+ @Test func someoneElseIsNotOfferedRunNow() throws {
+ let pause = try #require(TaskPause(try task(held), mine: false, now: noon, zone: dublin, locale: britain))
+ #expect(pause.runNow == nil && pause.strong == "Paused until 21:00 tonight")
+ }
+
+ @Test func theDevicesZoneMovesTheWords() throws {
+ let madrid = TimeZone(identifier: "Europe/Madrid")!
+ let pause = try #require(TaskPause(try task(held), mine: true, now: noon, zone: madrid, locale: britain))
+ #expect(pause.strong == "Paused until 22:00 tonight")
+ }
+
+ @Test func aRunningStepIsNotPaused() throws {
+ let running = """
+ {"id":"s1","specialist":"engineering","state":"running","reason":"","summary":"","headline":"","verdict":"","review_label":"","checks":"","gate":""}
+ """
+ #expect(TaskPause(try task(running), mine: true, now: noon, zone: dublin, locale: britain) == nil)
+ let report = TaskReport(try task(running), needsYou: false, mine: true, now: noon)
+ #expect(report.track.first { $0.state == .current }?.label == nil)
+ }
+
+ @Test func otherReasonsKeepTheColourRule() throws {
+ let busy = held.replacingOccurrences(of: "\"reason\":\"headroom\"", with: "\"reason\":\"busy\"").replacingOccurrences(of: "\"provider\":\"claude\"", with: "\"provider\":\"tensorx\"")
+ let b = try #require(TaskPause(try task(busy), mine: true, now: noon, zone: dublin, locale: britain))
+ #expect(b.tone == .paused && b.strong == "Paused for a moment:" && b.rest == " TensorX is busy with another step for you.")
+ let unknown = held.replacingOccurrences(of: "\"reason\":\"headroom\"", with: "\"reason\":\"spend_unknown\"").replacingOccurrences(of: "\"provider\":\"claude\"", with: "\"provider\":\"tensorx\"")
+ let u = try #require(TaskPause(try task(unknown), mine: true, now: noon, zone: dublin, locale: britain))
+ #expect(u.tone == .warning && u.stop == "Needs you" && u.strong == "Paused:")
+ let failed = """
+ {"id":"s1","specialist":"engineering","state":"failed","reason":"push_failed","summary":"","headline":"","verdict":"","review_label":"","checks":"","gate":""}
+ """
+ let f = try #require(TaskPause(try task(failed), mine: true, now: noon, zone: dublin, locale: britain))
+ #expect(f.tone == .negative && f.stop == "Stopped")
+ }
+}
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py
index ffeb96ef..bc174799 100755
--- a/native/scripts/check-parity.py
+++ b/native/scripts/check-parity.py
@@ -19,7 +19,7 @@ for pattern in (r'chat\.card\.merge_chose_\w+', r'chat\.card\.ships_chose_\w+'):
if key not in strings:
problems.append(f'{key}: the web has this outcome; native has no words for it')
for key, text in sorted(strings.items()):
- if not key.startswith(('chat.card.', 'chat.paste.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable')):
+ if not key.startswith(('chat.card.', 'chat.paste.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'work.pause.', 'work.stage.', 'time.')):
continue
found = re.findall(r'"' + re.escape(key) + r'":\s*"((?:[^"\\]|\\.)*)"', copy)
if len(found) != 1:
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index 7be7e067..bca2571e 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -211,8 +211,43 @@
"thread.own_spoken %@": "You said: %@. Sent",
"thread.reading %@": "%@ is reading",
"thread.sent": "Sent",
+ "time.in_days": "in %d days",
+ "time.in_days.one": "in 1 day",
+ "time.in_hours": "in %d hours",
+ "time.in_hours.one": "in 1 hour",
+ "time.in_minutes": "in %d minutes",
+ "time.in_minutes.one": "in 1 minute",
+ "time.midnight": "midnight",
+ "time.today_at": "today at %@",
+ "time.tomorrow_at": "tomorrow at %@",
+ "time.tonight": "%@ tonight",
"track.position %@ %@": "%1$@ of %2$@",
"track.spoken %@": "Stage: %@",
+ "work.pause.lead.no_connection": "Waiting: nothing you’ve connected can run this without paying per use.",
+ "work.pause.lead.spend_unknown": "Paused: Equipo can’t tell how much %@ has spent.",
+ "work.pause.moment": "Paused for a moment: %@.",
+ "work.pause.next.budget": "It carries on by itself when the budget resets.",
+ "work.pause.next.busy": "It starts by itself as soon as that step finishes.",
+ "work.pause.next.by_itself": "It carries on by itself then.",
+ "work.pause.next.choose": "Nothing happens until you choose.",
+ "work.pause.next.online": "It carries on by itself when the Mac is back online.",
+ "work.pause.next.spend_unknown": "Check your spending on %@, then resume. Nothing runs on %@ until you do.",
+ "work.pause.next.try_again": "Nothing more happens until you try again.",
+ "work.pause.reason.budget": "%@ has reached today’s budget",
+ "work.pause.reason.busy": "%@ is busy with another step for you",
+ "work.pause.reason.headroom_out": "your %@ allowance has run out",
+ "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_metered": "%@ bills per use",
+ "work.pause.run_now_on": "Run it now on %@",
+ "work.pause.run_now_room": "%@ has room now",
+ "work.pause.run_now_with": "Run it now with %@",
+ "work.pause.since": "Paused since %@: %@.",
+ "work.pause.until": "Paused until %@ (%@): %@.",
+ "work.stage.needs_you": "Needs you",
+ "work.stage.paused": "Paused",
+ "work.stage.stopped": "Stopped",
"work.star.add": "Star %@",
"work.star.remove": "Unstar %@",
"work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration."