oficina / equipo Public

Merge branch 'native/needs-you' into main

claude agent, operated by paul@keymail.dev c74fd0acbbe5b5e0a966bcfff748dd68f70a09ba parent 18fb5beparent 94072a1
38 files changed, +1,744 −86
  • .rastrillo/budgets.txt +2 −2
  • docs/api/equipo-v1.openapi.json +4 −0
  • docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md +366 −0
  • internal/equipo/chat/task_done_at_test.go +102 −0
  • internal/equipo/chat/tasks.go +4 −0
  • internal/wire/tasks.go +2 −0
  • internal/wire/wiretest/testdata/api/task-merged.json +1 −1
  • internal/wire/wiretest/testdata/api/task-published.json +1 −1
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +77 −0
  • native/apple/Sources/EquipoKit/API/Thin.swift +2 −0
  • native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift +38 −0
  • native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift +55 −0
  • native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift +44 −0
  • native/apple/Sources/EquipoKit/Presentation/Pause.swift +4 −0
  • native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift +1 −0
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +77 −0
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +4 −0
  • native/apple/Sources/EquipoKit/UI/LiveCards.swift +10 −0
  • native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift +93 −0
  • native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift +48 −0
  • native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift +61 −0
  • native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift +2 −2
  • native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift +2 −25
  • native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift +4 −45
  • native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift +85 −0
  • native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift +37 −0
  • native/apple/Sources/EquipoMac/EquipoMacApp.swift +4 −3
  • native/apple/Sources/EquipoMac/MacMainView.swift +3 −3
  • native/apple/Sources/EquipoMac/MacNeedsFixture.swift +43 −0
  • native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift +86 −0
  • native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift +191 −0
  • native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift +178 −0
  • native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift +11 −0
  • native/ios/Sources/EquipoPhoneApp.swift +2 −1
  • native/ios/UITests/NeedsYouUITests.swift +70 −0
  • native/ios/project.yml +21 −1
  • native/scripts/check-parity.py +1 −1
  • native/scripts/strings.json +8 −1

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/main: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.5s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.3s
ci-box: clone deepened in 4.0s
ci-box: file times set from content: 3066 files, 197 directories
ci-box: ready in 17.6s
=== 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.145s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.1s
+ go list -export -test -tags testbuild -f  ./...
  4.7s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

receipt: test step 1m19.173s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.095s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.1s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 70.67, cpu waiting 44.22%, memory waiting 0.00%, io waiting 0.52%
--- 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 1m18.814s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.616s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.61s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 70.67, cpu waiting 44.22%, memory waiting 0.00%, io waiting 0.52%
--- 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 1m20.856s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m18.722s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.44s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.3s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.98s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 73.02, cpu waiting 44.54%, memory waiting 0.00%, io waiting 0.50%
--- 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 1m15.616s 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.73s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.32s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.74s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.05s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.62s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 70.67, cpu waiting 44.09%, memory waiting 0.00%, io waiting 0.54%
--- 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 1m35.16s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m33.05s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.3s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.02s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.02s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.08s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.62s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 69.33, cpu waiting 44.02%, memory waiting 0.00%, io waiting 0.40%
--- 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 2m45.382s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m42.96s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m37.6s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.34s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.65s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.64s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.56s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 27.40, cpu waiting 14.98%, memory waiting 0.00%, io waiting 0.12%
--- 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.573s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m9.656s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.22s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.94s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.75s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.52s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 44.02, cpu waiting 25.52%, memory waiting 0.00%, io waiting 0.20%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 1m40.033s 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 1m38.307s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.49s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.03s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractRetryFailedPreviewAfterMerge
machine: 32 CPUs, load 65.54, cpu waiting 41.70%, memory waiting 0.00%, io waiting 0.36%
--- 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 4m46.414s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m51.96s 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 4m46.414s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.1s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.93s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.77s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.9s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.48, cpu waiting 1.77%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

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

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

receipt: test step 36.034s 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.141s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.15s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.48s 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.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 33.97, cpu waiting 22.58%, memory waiting 0.00%, io waiting 1.06%
--- 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 39.9%, load 27.96
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m8.856s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.123s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.54s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.52s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.22s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.6s amadan.net/oficina/equipo/internal/equipotest TestAuthProductionConfig
receipt: slow test 23.53s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectOwnershipIsLocal
machine: 32 CPUs, load 69.33, cpu waiting 42.94%, memory waiting 0.00%, io waiting 0.37%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 40.5%, load 27.96
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1m18.727s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.865s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.85s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 20.78s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.75s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.72s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 20.68s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
machine: 32 CPUs, load 61.41, cpu waiting 37.23%, memory waiting 0.00%, io waiting 0.31%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 40.5%, load 27.96
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m17.461s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m12.288s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 17.34s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.47s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.44s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.29s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.37s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 61.41, cpu waiting 38.46%, memory waiting 0.00%, io waiting 0.32%
--- 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 39.9%, load 27.96
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.812s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.115s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.36s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.3s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.26s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.28s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 23.26s amadan.net/oficina/equipo/internal/equipotest TestSigninCSRF
machine: 32 CPUs, load 69.33, cpu waiting 42.94%, memory waiting 0.00%, io waiting 0.37%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 40.5%, load 27.96
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.897s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 53.062s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.73s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.62s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.33s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
machine: 32 CPUs, load 72.38, cpu waiting 44.53%, memory waiting 0.00%, io waiting 0.47%
--- 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 39.9%, load 27.96
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/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/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/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:300 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.61s)

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

budget note: internal/equipo took 58.438s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 20.283s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 10.589s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m2.248s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 23.057s, 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 49.934s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 23.539s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 16.923s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m21.962s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 14.475s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m8.252s against a 60s target (the gate's other steps are not in this figure)
receipt: 35 packages ran, 30 cached, 17 without tests, 1 failed
receipt: slow package 2m2.248s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m21.962s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m10.588s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m2.507s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 58.438s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 53.77s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 48.22s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 45.83s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.46s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 44.3s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest c74fd0acbbe5b5e0a966bcfff748dd68f70a09ba 0.61s 31.35
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 28.92, cpu waiting 16.02%, memory waiting 0.00%, io waiting 0.12%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m25.736s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.881s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.46s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.7s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.28s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.12s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.41s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 72.38, cpu waiting 44.45%, memory waiting 0.00%, io waiting 0.45%
--- 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 1m34.083s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m32.268s amadan.net/oficina/equipo/internal/headless
receipt: slow test 28.69s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.45s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.27s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.95s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.3s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 69.33, cpu waiting 44.02%, memory waiting 0.00%, io waiting 0.40%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m53.516s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m51.943s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.81s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.42s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.38s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
machine: 32 CPUs, load 53.97, cpu waiting 33.82%, memory waiting 0.00%, io waiting 0.28%
--- 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-26T05:28:37.910Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T05:28:37.910Z level=INFO msg="startup phase done" phase=state_lock took=228µs
time=2026-11-26T05:28:37.911Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T05:28:37.911Z level=INFO msg="startup phase done" phase=claim_roots took=194µs
time=2026-11-26T05:28:37.911Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T05:28:37.965Z level=INFO msg="startup phase done" phase=sweep took=53.781ms
time=2026-11-26T05:28:37.965Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T05:28:37.965Z level=INFO msg="startup phase done" phase=credentials took=206µs
time=2026-11-26T05:28:37.965Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T05:28:38.027Z level=INFO msg="startup phase done" phase=open_state took=61.837ms
time=2026-11-26T05:28:38.028Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T05:28:38.028Z level=INFO msg=connecting host=127.0.0.1:34323 protocol=30
time=2026-11-26T05:28:38.030Z level=INFO msg=connected host=127.0.0.1:34323 took=1.034ms
time=2026-11-26T05:28:38.030Z level=INFO msg="capabilities gathering"
time=2026-11-26T05:28:38.030Z level=INFO msg="capabilities gathered" took=563µs tags=linux,claude,go
time=2026-11-26T05:28:38.031Z level=INFO msg="hello sent" protocol=30
time=2026-11-26T05:28:38.039Z level=INFO msg=welcome protocol=30 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.57s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m34.098s
FAIL	amadan.net/oficina/equipo/internal/headless	94.295s


receipt: test step 1m35.531s 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 1m34.098s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.02s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.35s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.21s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.37s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.59s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest c74fd0acbbe5b5e0a966bcfff748dd68f70a09ba 6.57s 69.33
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 65.54, cpu waiting 41.70%, memory waiting 0.00%, io waiting 0.36%
--- 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.104s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 746ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 750ms 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.687s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 11.979s 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.687s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.47s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.22s 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.669s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.095s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.09s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

receipt: test step 3m39.382s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m37.687s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 24.41s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.41s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.66s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.92s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.03, cpu waiting 4.22%, memory waiting 0.00%, io waiting 0.02%
--- 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   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.64s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.16s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.58s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.76s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.23s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (56s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.11s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.22s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.29s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 19.93s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.67s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.86s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 57.52, cpu waiting 38.08%, memory waiting 0.00%, io waiting 0.75%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 14.077s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 8.112s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 218ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 148ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 4ms amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 360ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.63s 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.175s 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 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 17.28, cpu waiting 11.82%, memory waiting 0.00%, io waiting 1.43%
--- 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 39.9%, load 27.96
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2778 text files, 3228 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.514s
machine: 32 CPUs, load 70.67, cpu waiting 44.09%, memory waiting 0.00%, io waiting 0.54%
--- 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 39.9%, load 27.96
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 52.16, cpu waiting 35.06%, memory waiting 0.00%, io waiting 0.81%
--- 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 39.9%, load 27.96
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 33.97, cpu waiting 24.23%, memory waiting 0.00%, io waiting 1.02%
--- 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 39.9%, load 27.96
shard 28: make gitleaks
5:28AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
5:28AM INF 1172 commits scanned.
5:28AM INF scanned ~66528327 bytes (66.53 MB) in 24.9s
5:28AM INF no leaks found
machine: 32 CPUs, load 57.52, cpu waiting 36.66%, memory waiting 0.00%, io waiting 0.78%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.062ms, worst 1.155ms, budget 150ms
perf: GET /api/runner/protocol: median 85µs, worst 105µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 613µs, worst 692µs, budget 150ms
perf: GET /api/v1/accounts: median 444µs, worst 508µs, budget 150ms
perf: GET /api/v1/auth/devices: median 460µs, worst 483µs, budget 150ms
perf: GET /api/v1/budgets: median 497µs, worst 512µs, budget 150ms
perf: GET /api/v1/capabilities: median 257µs, worst 278µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.229ms, worst 1.419ms, budget 150ms
perf: GET /api/v1/connections: median 613µs, worst 661µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 571µs, worst 658µs, budget 150ms
perf: GET /api/v1/conversation: median 976µs, worst 1.102ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.59ms, worst 1.681ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.944ms, worst 1.99ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 470µs, worst 527µs, budget 150ms
perf: GET /api/v1/journey: median 7.461ms, worst 10.459ms, budget 150ms
perf: GET /api/v1/me: median 398µs, worst 428µs, budget 150ms
perf: GET /api/v1/me/settings: median 491µs, worst 527µs, budget 150ms
perf: GET /api/v1/needs-you: median 6.925ms, worst 7.144ms, budget 150ms
perf: GET /api/v1/notifications: median 1.565ms, worst 1.668ms, budget 150ms
perf: GET /api/v1/onboarding: median 381µs, worst 404µs, budget 150ms
perf: GET /api/v1/people: median 431µs, worst 450µs, budget 150ms
perf: GET /api/v1/playbooks: median 551µs, worst 601µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 488µs, worst 532µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 812µs, worst 847µs, budget 150ms
perf: GET /api/v1/preferences: median 723µs, worst 785µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 450µs, worst 461µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 565µs, worst 609µs, budget 150ms
perf: GET /api/v1/roster: median 436µs, worst 509µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 417µs, worst 443µs, budget 150ms
perf: GET /api/v1/specialists: median 7.905ms, worst 8.052ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.701ms, worst 7.896ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 828µs, worst 924µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.099ms, worst 1.186ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 693µs, worst 738µs, budget 150ms
perf: GET /api/v1/teams: median 417µs, worst 452µs, budget 150ms
perf: GET /api/v1/templates: median 586µs, worst 621µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 440µs, worst 455µs, budget 150ms
perf: GET /auth/callback: median 69µs, worst 82µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.638ms, worst 3.73ms, budget 150ms
perf: GET /auth/verify: median 78µs, worst 109µs, budget 150ms
perf: GET /connections: median 3.97ms, worst 4.13ms, budget 150ms
perf: GET /conversation: median 7.765ms, worst 8.136ms, budget 150ms
perf: GET /conversation/connections: median 244µs, worst 266µs, budget 150ms
perf: GET /conversation/notebook: median 233µs, worst 284µs, budget 150ms
perf: GET /conversation/settings: median 4.403ms, worst 6.134ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.33ms, worst 4.386ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.607ms, worst 6.782ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.848ms, worst 6.984ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.281ms, worst 4.506ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.432ms, worst 4.589ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.671ms, worst 4.809ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.685ms, worst 4.811ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.9ms, worst 5.765ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.302ms, worst 4.394ms, budget 150ms
perf: GET /housekeeping: median 4.103ms, worst 4.281ms, budget 150ms
perf: GET /invites/new: median 602µs, worst 632µs, budget 150ms
perf: GET /invites/{id}: median 629µs, worst 677µs, budget 150ms
perf: GET /jobs: median 3.733ms, worst 3.884ms, budget 150ms
perf: GET /jobs/{id}: median 4.877ms, worst 4.914ms, budget 150ms
perf: GET /journey: median 10.355ms, worst 10.473ms, budget 150ms
perf: GET /nav/rail: median 3.278ms, worst 3.38ms, budget 150ms
perf: GET /needs-you: median 10.16ms, worst 14.424ms, budget 150ms
perf: GET /onboarding: median 4.323ms, worst 4.391ms, budget 150ms
perf: GET /people: median 3.682ms, worst 3.774ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.778ms, worst 4.894ms, budget 150ms
perf: GET /playbooks: median 4.357ms, worst 4.45ms, budget 150ms
perf: GET /playbooks/new: median 4.451ms, worst 4.507ms, budget 150ms
perf: GET /playbooks/{id}: median 4.801ms, worst 4.841ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.83ms, worst 5.041ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.057ms, worst 4.176ms, budget 150ms
perf: GET /preferences: median 4.43ms, worst 4.492ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.239ms, worst 4.359ms, budget 150ms
perf: GET /projects: median 6.204ms, worst 9.909ms, budget 150ms
perf: GET /projects/accounts: median 4.006ms, worst 4.135ms, budget 150ms
perf: GET /projects/new: median 3.949ms, worst 4.045ms, budget 150ms
perf: GET /projects/{id}: median 11.903ms, worst 12.039ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.137ms, worst 4.222ms, budget 150ms
perf: GET /runners/enrol: median 4.712ms, worst 4.795ms, budget 150ms
perf: GET /settings: median 3.77ms, worst 3.878ms, budget 150ms
perf: GET /settings/coordinator: median 5.709ms, worst 5.833ms, budget 150ms
perf: GET /settings/devices: median 3.557ms, worst 3.662ms, budget 150ms
perf: GET /settings/recovery: median 3.791ms, worst 3.819ms, budget 150ms
perf: GET /settings/recovery/release: median 3.921ms, worst 6.597ms, budget 150ms
perf: GET /settings/thinking: median 247µs, worst 291µs, budget 150ms
perf: GET /signed-out: median 280µs, worst 293µs, budget 150ms
perf: GET /signin: median 272µs, worst 311µs, budget 150ms
perf: GET /specialists/new: median 3.732ms, worst 3.864ms, budget 150ms
perf: GET /specialists/{key}: median 10.918ms, worst 11.188ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.853ms, worst 4.016ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.002ms, worst 4.207ms, budget 150ms
perf: GET /tasks: median 5.963ms, worst 6.081ms, budget 150ms
perf: GET /tasks/new: median 3.536ms, worst 3.622ms, budget 150ms
perf: GET /tasks/{id}: median 5.725ms, worst 5.849ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.069ms, worst 5.151ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.946ms, worst 5.251ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.19ms, worst 6.257ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.58ms, worst 1.616ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.952ms, worst 6.075ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.001ms, worst 5.082ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.561ms, worst 4.684ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.991ms, worst 8.075ms, budget 150ms
perf: GET /team/{specialist}: median 4.657ms, worst 4.793ms, budget 150ms
perf: GET /teams: median 10.117ms, worst 10.216ms, budget 150ms
perf: GET /templates: median 3.735ms, worst 3.843ms, budget 150ms
perf: GET /usage: median 4.603ms, worst 7.042ms, budget 150ms
perf: GET /work: median 3.453ms, worst 3.561ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 159ms of [158.459228ms 158.815855ms 160.500266ms], budget 500ms

receipt: test step 47.63s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 88 without tests, 0 failed
receipt: slow package 10.264s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 9.73s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 530ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.92 GiB in 25724 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 6ee2fa62..bf6f0876 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -15,7 +15,7 @@ time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial re
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 22598 - Stuck tasks: the task page Retry on a failed preview and the coordinator's retried attempt on the timeline (2026-11-25); measured 22598 source lines.
-size internal/wire 7067 - Native task evidence: additive device StepHosted failed job names; measured 7067 source lines (2026-11-26).
+size internal/wire 7069 - Native task evidence hosted names and Today done_at, additive device fields; measured 7069 source lines (2026-11-26).
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).
@@ -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 34835 9583 Native task evidence: minimal hosted job projection and absence/privacy regression; measured 34835/9583 (2026-11-26).
+size internal/equipo/chat 34839 9685 Native task hosted projection and stable completion time with regressions; measured 34839/9685 (2026-11-26).
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index f154878d..7aca4bcf 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -22793,6 +22793,10 @@
"type": "string",
"format": "date-time"
},
+ "done_at": {
+ "type": "string",
+ "format": "date-time"
+ },
"candidate_sha": {
"type": "string"
},
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md
new file mode 100644
index 00000000..a330b53d
--- /dev/null
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md
@@ -0,0 +1,366 @@
+# Native Needs you and Today
+
+Branch: `native/needs-you`, created from `origin/main` at `eb367315` in an
+isolated worktree under the physical TMPDIR. The list/Today checkpoint was
+committed as 5f507fb9 before merging main 18fb5be4 normally (merge 3a2fc7a6).
+The merge retains both slices' reviewed copy, fixture entry points and UI
+schemes; package budgets combine the two additive device projections.
+No merge to main, deployment or release is authorized.
+
+## Source rules and scope
+
+Needs you comes from `GET /needs-you`; it remains the badge source, including
+set-aside tasks. Today is separate from that count. The existing foreground
+event stream reconciles task and card events through session.refresh, which
+reads `/snapshot`, `/tasks`, and `/needs-you`. Pull to refresh uses that same
+path.
+
+The Today projection uses the existing `/tasks` response. Tasks with live
+running or queued steps and no pending decision appear under Running now.
+Done tasks whose stable `done_at` falls on the person's local calendar day
+appear under Finished today; cancelled and reopened tasks are excluded.
+Finished rows sort by done_at then id, newest first; active rows use updated_at.
+A later note cannot move a task's completion day. Older server payloads without
+done_at still decode, but are not assigned a guessed completion day.
+
+The controller approved optional `wire.Task.done_at` on 2026-11-26 after the
+store review showed that PostThread updates updated_at on completed tasks.
+The existing DoneAt is mapped to UTC, omitted when unset, and documented in
+the generated Task OpenAPI schema. Reopening retains the old DoneAt in the
+store; completing again replaces it, following existing transition semantics.
+No transition behavior, migration, route, or runner protocol changes.
+
+The server returns the newest 100 tasks by created_at, with no pagination.
+The controller accepted this existing web-list window for slice 4 on
+2026-11-26. Older active tasks or older tasks completed today can fall outside
+it. Follow-up: a bounded device query for active tasks or tasks finished
+since a supplied date. No server route is added in this slice.
+
+## Reviewed copy
+
+Approved by Luna through the controller, 2026-11-26:
+
+- `native.needs.running_now`: Running now. Today subsection heading.
+- `native.needs.finished_today`: Finished today. Today subsection heading.
+
+`chat.day.today` and `work.needs_empty` are copied byte-identical from the
+reviewed web catalog and covered by parity. Native catalog entries use the
+existing manual/translated convention; this report and source comments
+record the approval provenance.
+
+## Verification
+
+Test-first and mutation results will be recorded here as each guard is built.
+
+Initial list/Today commands:
+
+- `swift test --package-path native/apple --filter NeedsTodayTests`: with
+ empty projection/selector stubs, 4 tests failed with 5 assertion issues
+ (`needs-you-today-red.log`). Implementation then passed all four
+ (`needs-you-today-green.log`).
+- `swift test --package-path native/apple --filter NeedsInboxTests`: with
+ the badge returning nil, two tests failed with five assertion issues
+ (`needs-you-inbox-red.log`). Implementing the optional server inbox count
+ passed; the final focused run also covers task-event refresh.
+- `swift test --package-path native/apple --filter
+ 'NeedsTodayTests|NeedsInboxTests'`: 7 tests passed after source restoration
+ (`needs-you-list-restored.log`). The event test verifies a refresh updates
+ the badge and Today together. The 100-task test verifies the exact returned
+ IDs, no inferred older task, the existing `/tasks` route, and bearer use.
+
+The isolated mutation runner (`$TMPDIR/needs-you-mutate.py`) applied each
+change separately, ran the focused suites, required a failing assertion
+rather than a compile error, and restored the source in `finally`.
+All 16 mutations were killed:
+
+- Allow done or cancelled work into Running now (separate mutations).
+- Drop the pending-decision exclusion or live-step requirement.
+- Ignore running steps, ignore queued steps, or choose the first live step.
+- Include non-done tasks in Finished today or ignore the calendar day.
+- Use UTC instead of the person's time zone.
+- Reverse date order or the stable id tie-break.
+- Count all tasks for the badge; add one to the inbox count; turn unknown
+ into zero; omit set-aside tasks from the count.
+
+Approved copy is present in both generated catalogs. `check-parity.py`
+includes the two newly imported web keys and passes (223 strings at this
+pre-slice-3 stage).
+
+Action integration plan (waiting for slice 3): a row derives one action from
+its current task/card. Question opens the existing native card; Merge opens
+the shared confirmation; retry uses only the row's retry decision (not every
+retry option in the full task menu); Resume/Run now use the existing pause
+rules and connection revision. Other decisions open the task. Today offers
+Undo only through slice 3's receipt, creator, merge provenance and age guards,
+with its existing confirmation. No new action authority is inferred from a
+row appearing in a list.
+
+## Stable completion time verification
+
+- Before mapping the field, `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test
+ ./internal/equipo/chat -run '^TestTaskDoneAt' -count=1` failed with
+ `completed task has no done_at` (`needs-you-done-red.log`). The store test
+ exercises first completion, a note 48 hours later, reopening, and a second
+ completion through the existing saveTask transitions. A separate direct
+ projection test checks an offset timestamp is encoded with a UTC Z suffix.
+- Before changing Today, the focused Swift suites failed the regression
+ contrasting completion time with later notes (`needs-you-done-native-red.log`).
+ The native regression also decodes an older payload without done_at and a
+ payload with an explicit done_at field, and checks ordering uses completion.
+- The implementation passes both focused suites and
+ `go test ./internal/plan3test -run '^TestPersonAPIDeviceContract$' -count=1`.
+ OpenAPI Task was regenerated from wire schemas; only the optional date-time
+ property changed.
+- The list checkpoint native gate passed: 275 tests, string parity, both apps.
+ Final gates will be repeated after action integration.
+
+Completion-time mutations (each restored; Go command above or the focused
+Swift suites): all 15 killed by assertion failures. Remove the field mapping;
+map updated_at instead; omit UTC conversion; serialize an unset field; rewrite
+DoneAt for a later note; keep the first completion on a second completion;
+filter by activity day; sort by activity time; guess a missing completion from
+updated_at; drop the done stage; drop the local-day restriction; force UTC day
+boundaries; reverse completion ordering; reverse the id tie-break; ignore the
+native done_at field. The UTC mutation initially survived because SQLite
+normalizes loaded timestamps; the direct projection test now kills it. A
+malformed closure mutation was rejected as a compile failure and rerun with a
+valid closure; it then failed the intended calendar assertions.
+
+The existing package size exemptions increase by exactly the approved device
+field, its projection, and its regressions (wire +2 source lines; chat +4 source
+and +102 test lines). No new GET route or performance exemption is needed.
+
+## Paused for slice 3 review fixes
+
+Controller requested pausing slice 4 on 2026-11-26. All source mutations are
+restored. Completion-time native checkpoint passed 276 tests and both builds;
+the added running-order regression and its two mutations also passed (9 focused
+tests after restoration). Linux-targeted make build/vet, staticcheck v0.7.0,
+govulncheck v1.8.0, copy release, reference scan, lane check, fmt, spacing,
+gitleaks, and corrected size budgets passed. macOS build/vet/staticcheck/
+govulncheck hit the existing unix.O_PATH toolproxy compile failure. The full
+local make test run was interrupted on the controller's pause request; later
+Go targets in that loop have not run. No Linux hub verdict is claimed yet.
+The Mac fixture and slice 4 simulator were stopped. Slice 4 remains uncommitted
+in its own worktree, awaiting slice 3 integration and final validation.
+
+
+## Row actions after the main merge
+
+NeedsRowAction follows work_views.go decisionOf and work_parts.html's needs
+list, rather than promoting every item in the task menu. A row has one primary
+action: its answerable question, its open merge card's Merge choice, Try again
+only for retry/review_blocked, Resume for the matched unknown-spend connection,
+Run now bound to the current held card or predicted step offer, or Open.
+Questions use LiveQuestionCard, including typed answers and remember controls.
+Direction, recovery, settings and unknown choices open the task for their full
+context. An unknown option keeps the whole decision on the web through the
+landed slice 3 fallback. Owner/creator/lifecycle checks reuse TaskDecision and
+TaskPause; pause actions also enforce the owner role and merging exclusion.
+
+Each row reads the full task before offering a write. A failed or stale read
+falls back to Open. TaskDetailModel sends the action, so Merge retains its
+model-level confirmation and card revision, and retry/error handling stays
+shared. Resume refetches its connection after conflicts; Run now sends the
+shown step revision and connection offer. Every write refreshes the task/list.
+
+The existing task confirmation view is extracted as TaskConfirmationSheet,
+shared by task detail, inline Merge and Finished today's Undo. Undo eligibility
+and its receipt revision are unchanged from slice 3. Finished rows still use
+stable done_at, not later task activity.
+
+Initial row selector tests failed 10 assertions against an Open-only stub.
+The initial model tests failed 9 assertions against stub loading/actions.
+After implementation, the focused list/action/model and shared task-model run
+passed 37 tests. The test fixture was corrected to start a fresh session rather
+than merge an empty card array over an already-open fixture merge card; the
+Run now assertion uses the API's actual step_revision field.
+
+Commands: `swift test --package-path native/apple --filter NeedsRowActionTests`,
+then `--filter NeedsRowModelTests`, then `--filter
+'NeedsRowActionTests|NeedsRowModelTests|NeedsTodayTests|NeedsInboxTests|TaskDetailModelTests'`.
+
+The post-merge reference scan matched a retired-name pattern across a new
+test's word boundary. Renaming the test fixes the scan without changing its
+assertions or adding an exemption.
+
+
+## Row-action mutations
+
+`python3 "$TMPDIR/needs-you-action-mutate.py"` runs the two focused row suites,
+requires assertion failures, and restores each mutation in finally. All 18
+mutations were killed after restoration:
+
+- Drop the owner role or merging exclusion.
+- Promote every menu retry to a list retry; omit review_blocked; ignore the
+ stopped/terminated pause guard.
+- Ignore the merge needs state or its offered Merge choice.
+- Ignore the held-card needs state or its offered Run now choice.
+- Allow a retry to override a selected decision card.
+- Offer hold actions after needs_you clears.
+- Ignore the matching Resume connection or the resumable step.
+- Offer Run now without a predicted offer.
+- Ignore the fresh task revision or the failed-read flag.
+- Remove the row's busy guard.
+- Send Wait when the held-card row shows Run now.
+
+The cleared-hold mutation initially survived. A new regression keeps the
+step's hold/offer but clears needs_you, matching an event/refetch race; the row
+must then offer Open. The rerun kills the mutation. Earlier slice 1 and 3
+creator/lifecycle, retry, connection matching, Undo, confirmation and error
+mutations remain covered by the shared helpers' suites. The unchanged list,
+completion-time and badge mutations are recorded above.
+
+Local Go verification after merging main: make copy-release-check,
+runner-dead-references, lanes-check, fmt-check, spacing, gitleaks, budget and
+migration-check passed. Linux-targeted make build and make vet, staticcheck
+v0.7.0, and govulncheck passed. Commands used GOTOOLCHAIN=go1.26.11,
+CGO_ENABLED=0, and fmt-check used that toolchain's bin directory in PATH.
+TestTaskDoneAt and TestPersonAPIDeviceContract passed uncached. The complete
+Linux hub run remains the final gate for all make test/performance/runner-host
+checks, including the Linux-only toolproxy and namespace checks.
+
+
+## Final native interaction and visual verification
+
+`native/scripts/check-native.sh` passed after the row/Today polish: 338 tests
+in 45 suites, one pre-existing known issue, 329 byte-identical web strings,
+and both Mac and iPhone builds. A final repeat also covers the Mac capture
+fixture change; its result is retained with the validation evidence.
+
+The NeedsYouUI scheme passed all four simulator tests on
+73E0FBCC-185A-4892-889F-150F8DC9729C. It verifies three distinct row actions,
+Merge confirmation before submission, the reviewed empty state, running and
+finished Today rows, Undo confirmation, and no Undo without its server offer.
+Command: `xcodebuild -project native/ios/EquipoPhone.xcodeproj -scheme
+NeedsYouUI -configuration Debug -destination 'platform=iOS Simulator,id=73E0FBCC-185A-4892-889F-150F8DC9729C'
+-derivedDataPath native/build/Phone -resultBundlePath
+"$TMPDIR/needs-you-polish-actions-ui.xcresult" CODE_SIGNING_ALLOWED=NO test`.
+
+Screenshots exported from that result bundle are iphone-needs-you.png,
+iphone-today.png, iphone-empty.png and iphone-needs-merge-confirmation.png.
+The branch's Debug Mac app supplies mac-needs-you.png, showing the same
+three row actions and Today. Its native sidebar is collapsed using the app's
+toggle: AppKit bitmap capture does not include the composited sidebar
+material. The image captures the real window, including its toolbar; no
+image compositing or replacement content is used. The Mac capture is produced
+by `native/scripts/build-mac.sh --configuration debug` and launching the
+bundle with EQUIPO_NEEDS_FIXTURE=list and EQUIPO_FIXTURE_CAPTURE set.
+
+All images and validation logs are in the audit site's build/slice4 directory.
+No new copy questions remain. The 100-task window follow-up remains as noted
+above. Linux hub CI is checked after the normal helper push.
+
+## Screenshot review polish
+
+The controller requested consistent clock formatting, no redundant Needs you
+badge in its own list, a shared task header on the question row, and completion
+time on the status line. Needs you now suppresses only its row badge; other
+lists keep it. Questions retain the native answer/set-aside controls beneath
+the shared project, title, status and task-opening chevron. The stopped status
+line stays: work_parts.html's task-row retains that line, as the controller
+confirmed.
+
+The clock regression failed four assertions before the fix: TimeWords used
+0:20 in en_IE and en_GB. It now pads 24-hour hours while preserving the locale's
+12-hour clock. Completion status uses the same TimeWords. Luna approved
+native.needs.done_at = "Done at %@" on 2026-11-26 for unmerged tasks. Merged
+tasks use the byte-identical web work.merged pattern and merged.at; without
+merge metadata they retain their existing status rather than invent a time.
+The new completion-status test failed two assertions against a nil stub.
+Both tests pass after implementation. Explicit mutations remove hour padding,
+use generic completion words for merges, and use done_at instead of merged.at.
+The UI suite additionally checks the question's task header, absence of the
+redundant badge, and the reviewed merged-time status.
+
+After screenshot review polish, `native/scripts/check-native.sh` passed with
+340 tests in 45 suites, one existing known issue, 330 parity strings, and both
+app builds. All three polish mutations were killed. The NeedsYouUI scheme
+passed all four tests again (`needs-you-reviewed-ui.xcresult`), and all four
+iPhone screenshots plus the Mac screenshot were recaptured and inspected.
+The latest evidence supersedes the earlier pre-review screenshots/logs.
+
+## Linux contract-fixture correction
+
+The first Linux hub run on dd5f67df failed check shard 7: TestContractAutoMerge
+and TestContractPublishSite rejected the additive done_at field as unexpected.
+The other check shards passed; perf was skipped after this failure. The strict
+completed-task fixtures had not been updated alongside the projection.
+Only task-merged.json and task-published.json now include a UTC completion
+timestamp. No production behavior changes in this correction.
+
+`GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/thintest -run
+'^(TestContractAutoMerge|TestContractPublishSite)$' -count=1` passes (1.746s).
+`python3 native/scripts/check-fixtures.py` passes. The initial failed hub JSON
+is retained as validation/ci-first-failure.json. A new normal commit/push
+starts a fresh full Linux gate.
+
+## Fable review corrections, 2026-11-26
+
+Review of 2b9e7ef1 found that decision rows had lost Set aside and Undo.
+NeedsTaskRow now uses the existing SetAsideButton and AsideStub for merge,
+direction and held cards, through the same revision-bound visibility endpoint.
+An aside card offers no primary action, including when a previously rendered
+button's closure is still available. The existing question card continues to
+provide its own answer and visibility controls.
+
+Run now captures the displayed prediction and sends its step, step revision
+and offer through the slice 1 task run-now endpoint. It never substitutes the
+held card's unbound answer. A changed offer retains api.offer_changed. Resume
+and Run now both refresh the inbox and reload the row. The old Resume
+connection is cleared before the task read, including when no new resumable
+step exists.
+
+Questions render from the card and listed task before GET /tasks/{id}.
+A successful inbox refresh advances a row-read generation, so pull-to-refresh
+retries a failed detail read even when the task revision has not changed.
+Today uses only the last step, excluding copy holds and skip offers, matching
+workingNow. A still-running earlier Preview does not put a finished last step
+back in Running now.
+
+Correction to the earlier screenshot report: work.merged's second slot is a
+commit, not a time. Luna approved native.needs.merged_at =
+"Merged into %1$@ at %2$@" (branch, TimeWords time), 2026-11-26. Both native
+catalogs use that key; the reviewed web string stays unchanged.
+
+Test-first command:
+swift test --package-path native/apple --filter 'NeedsRow|NeedsToday'
+The initial run failed on the missing row visibility/read-generation APIs.
+The implemented baseline passed 23 tests in four suites. Added tests cover
+all three decision kinds, revision-bound Set aside/Undo, an aside primary
+action's suppression, question rendering before reads, failed-read recovery,
+a stale Resume connection, both post-action refreshes, the shown Run now
+offer changing before the tap, and an earlier running step/copy holds.
+
+Review mutation commands:
+python3 "$TMPDIR/needs-review-mutate.py"
+python3 "$TMPDIR/needs-review-extra-mutate.py"
+Each runs the focused suite after one deliberate mutation, requires an
+Expectation failed result, and restores the source in finally. The first
+13 mutations were killed: missing Set aside control, aside primary action,
+aside stub, replacement of the shown offer, missing held-offer guard,
+question blocked on read, fixed refresh key, stale Resume retained,
+missing inbox refresh, missing row reload, earlier running step selected,
+copy hold included, copy skip included. Two more removed the visibility
+busy and canSetAside guards and were killed. A stale-tap guard initially
+survived because the held-card fixture had no offer; adding its real
+prediction makes this a meaningful test of a queued Run now tap after
+Set aside. Final result follows below.
+
+All 16 review mutations are killed, including the strengthened stale-tap case.
+Restored-source validation:
+- native/scripts/check-native.sh: passed; 343 tests in 45 suites, one existing
+ known issue; 330 parity strings; both Mac and iPhone Simulator builds.
+- xcodebuild -project native/ios/EquipoPhone.xcodeproj -scheme NeedsYouUI
+ -configuration Debug -destination 'platform=iOS Simulator,id=F7282573-4021-4BF7-8118-772D452597FF'
+ -derivedDataPath native/build/Phone -resultBundlePath
+ "$TMPDIR/needs-review-ui-final.xcresult" CODE_SIGNING_ALLOWED=NO test:
+ all five tests passed. The initial UI build caught a test query typo
+ (XCUIElement versus XCUIElementQuery count), corrected before this run.
+- native/scripts/build-mac.sh --configuration debug: passed.
+
+Recaptured and inspected iphone-needs-you.png, iphone-needs-aside.png and
+mac-needs-you.png; refreshed Today, empty and merge-confirmation captures too.
+The new aside image shows the real native stub and Undo; the ordinary list
+shows Set aside on the merge row. Screenshots and mutation/gate logs are in
+the audit site's build/slice4 and validation directories. No new copy questions.
diff --git a/internal/equipo/chat/task_done_at_test.go b/internal/equipo/chat/task_done_at_test.go
new file mode 100644
index 00000000..def19f83
--- /dev/null
+++ b/internal/equipo/chat/task_done_at_test.go
@@ -0,0 +1,102 @@
+package chat
+
+import (
+ "context"
+ "encoding/json"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func TestTaskDoneAtSurvivesNotesAndTracksLatestCompletion(t *testing.T) {
+ r := newMeteredRig(t)
+ ctx := context.Background()
+ clock := time.Date(2026, 11, 24, 23, 30, 0, 0, time.FixedZone("west", -8*60*60))
+ r.s.SetClock(func() time.Time { return clock })
+ must := func(err error) {
+ t.Helper()
+ if err != nil {
+ t.Fatal(err)
+ }
+ }
+ must(r.s.db.G.Create(&projectRecord{ID: "p_done", Title: "Done", TitleSet: true}).Error)
+ must(r.s.db.G.Create(&taskRecord{ID: "tk_done", ProjectID: "p_done", Creator: hkOwner, Stage: wire.StageInProgress, CreatedAt: clock, UpdatedAt: clock}).Error)
+ read := func(want *time.Time) {
+ t.Helper()
+ v, err := r.s.Task(ctx, hkOwner, "tk_done")
+ must(err)
+ raw, err := json.Marshal(v)
+ must(err)
+ var body map[string]json.RawMessage
+ must(json.Unmarshal(raw, &body))
+ if want == nil {
+ if _, exists := body["done_at"]; exists {
+ t.Fatalf("unset done_at must be omitted: %s", body["done_at"])
+ }
+ return
+ }
+ if _, exists := body["done_at"]; !exists {
+ t.Fatal("completed task has no done_at")
+ }
+ var got string
+ must(json.Unmarshal(body["done_at"], &got))
+ if got != want.UTC().Format(time.RFC3339) {
+ t.Fatalf("done_at = %q, want stable UTC completion %q", got, want.UTC().Format(time.RFC3339))
+ }
+ }
+ transition := func(stage string) {
+ t.Helper()
+ must(r.s.tx(ctx, func(tx *txn) error {
+ k, err := tx.loadTask("tk_done")
+ if err != nil {
+ return err
+ }
+ k.Stage = stage
+ return tx.saveTask(&k)
+ }))
+ }
+ read(nil)
+ transition(wire.StageDone)
+ first := clock
+ read(&first)
+ clock = clock.Add(48 * time.Hour)
+ _, err := r.s.PostThread(ctx, hkOwner, "tk_done", wire.PostThread{Text: "A note after completion", IdempotencyKey: "later-note"})
+ must(err)
+ read(&first)
+ clock = clock.Add(time.Hour)
+ transition(wire.StageInProgress)
+ // The store retains the former completion while reopened. The native
+ // projection also requires stage done, so it cannot show this as finished.
+ read(&first)
+ clock = clock.Add(24 * time.Hour)
+ transition(wire.StageDone)
+ latest := clock
+ read(&latest)
+}
+
+func TestTaskDoneAtNormalizesWireTimeToUTC(t *testing.T) {
+ r := newMeteredRig(t)
+ if err := r.s.db.G.Create(&projectRecord{ID: "p_zone", Title: "Zone", TitleSet: true}).Error; err != nil {
+ t.Fatal(err)
+ }
+ // SQLite normalizes stored times on reads. Exercise the view's contract
+ // directly as well, with a non-UTC stable timestamp supplied by the store.
+ done := time.Date(2026, 11, 26, 1, 2, 3, 0, time.FixedZone("west", -8*60*60))
+ if err := r.s.tx(context.Background(), func(tx *txn) error {
+ v, err := tx.taskView(taskRecord{ID: "tk_zone", ProjectID: "p_zone", Creator: hkOwner, Stage: wire.StageDone, DoneAt: &done})
+ if err != nil {
+ return err
+ }
+ raw, err := json.Marshal(v.DoneAt)
+ if err != nil {
+ return err
+ }
+ if string(raw) != `"2026-11-26T09:02:03Z"` {
+ t.Fatalf("done_at must be UTC: %s", raw)
+ }
+ return nil
+ }); err != nil {
+ t.Fatal(err)
+ }
+}
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index 52d18800..8f907e6f 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -507,6 +507,10 @@ func stepViewSwitched(s stepRecord) wire.Step {
// taskView is the task with its project, findings, steps and thread.
func (t *txn) taskView(k taskRecord) (wire.Task, error) {
v := wire.Task{Stopping: k.MoveAbandoned && k.CancelRequested && !wire.FinalStage(k.Stage), PreparingProject: strings.HasPrefix(k.MoveProject, "new:"), Moving: k.MoveProject != "", CopyHold: k.CopyHold, ID: k.ID, Revision: k.Revision, ProjectID: k.ProjectID, Title: k.Title, Brief: k.Brief, Stage: k.Stage, Branch: k.Branch, BaseSHA: k.BaseSHA, Creator: k.Creator, TurnID: k.TurnID, Findings: []wire.Finding{}, Steps: []wire.Step{}, Thread: []wire.ThreadEntry{}, CreatedAt: k.CreatedAt, UpdatedAt: k.UpdatedAt}
+ if k.DoneAt != nil {
+ done := k.DoneAt.UTC()
+ v.DoneAt = &done
+ }
var p projectRecord
if err := t.db.Where("id = ?", k.ProjectID).First(&p).Error; err != nil {
return v, err
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go
index 951c8126..9cf6ba56 100644
--- a/internal/wire/tasks.go
+++ b/internal/wire/tasks.go
@@ -361,6 +361,8 @@ type Task struct {
Thread []ThreadEntry `json:"thread"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
+ // DoneAt is the most recent transition to done, stable across later notes.
+ DoneAt *time.Time `json:"done_at,omitempty"`
// CandidateSHA is the newest pushed Engineering candidate. Checks,
// ChecksReason, Verdict and ReviewLabel are the judgements stored
// beside that SHA ("" until they exist); a new candidate clears them.
diff --git a/internal/wire/wiretest/testdata/api/task-merged.json b/internal/wire/wiretest/testdata/api/task-merged.json
index cb7c51f2..5018b2bc 100644
--- a/internal/wire/wiretest/testdata/api/task-merged.json
+++ b/internal/wire/wiretest/testdata/api/task-merged.json
@@ -1 +1 @@
-{"id":"tk0001","revision":9,"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":"done","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":"done","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"},{"id":"s_0002","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"ok \tamadan.net/oficina/sample/panes\t0.012s","started_at":"2026-11-07T10:01:45Z","finished_at":"2026-11-07T10:02:30Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace"},{"id":"s_0003","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"The change makes EdgeSwipe go back and keeps the pane order. Approved.","headline":"Approved.","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"claude","account":"claude-a","verdict":"approve","review_label":"same_family","findings":[{"id":"rf_0001","headline":"One note: worth a test for swipes that start mid-screen.","text":"Consider a test for a swipe that starts mid-screen.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:04:10Z"}],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace"},{"id":"s_0009","revision":2,"task_id":"tk0001","index":4,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace"}],"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:04:10Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"","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":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"at":"2026-11-07T12:00:00Z"},"reports":0,"ask_open":false,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"policy","reasons":[{"name":"approved_exact_sha","ok":true}],"at":"2026-11-11T10:00:00Z"},"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"}
+{"id":"tk0001","revision":9,"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":"done","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":"done","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"},{"id":"s_0002","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"ok \tamadan.net/oficina/sample/panes\t0.012s","started_at":"2026-11-07T10:01:45Z","finished_at":"2026-11-07T10:02:30Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace"},{"id":"s_0003","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"The change makes EdgeSwipe go back and keeps the pane order. Approved.","headline":"Approved.","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"claude","account":"claude-a","verdict":"approve","review_label":"same_family","findings":[{"id":"rf_0001","headline":"One note: worth a test for swipes that start mid-screen.","text":"Consider a test for a swipe that starts mid-screen.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:04:10Z"}],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace"},{"id":"s_0009","revision":2,"task_id":"tk0001","index":4,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"Read panes/swipe.go","started_at":"2026-11-07T10:02:31Z","finished_at":"2026-11-07T10:04:10Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace"}],"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:04:10Z","done_at":"2026-11-07T12:00:00Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"","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":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"at":"2026-11-07T12:00:00Z"},"reports":0,"ask_open":false,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"policy","reasons":[{"name":"approved_exact_sha","ok":true}],"at":"2026-11-11T10:00:00Z"},"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"}
diff --git a/internal/wire/wiretest/testdata/api/task-published.json b/internal/wire/wiretest/testdata/api/task-published.json
index 06e9c334..3c83ac13 100644
--- a/internal/wire/wiretest/testdata/api/task-published.json
+++ b/internal/wire/wiretest/testdata/api/task-published.json
@@ -1 +1 @@
-{"id":"tk0001","revision":18,"project_id":"p_0001","project":"Woodstar","repo":"amadan.net/oficina/sample","title":"Quick website","brief":"The README says teh.\n\nFix it.","stage":"done","branch":"equipo/tk0001-quick-website","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-quick-website","creator":"owner@example.com","turn_id":"t_0001","findings":[],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"none","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"Read it.","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-12T10:00:00Z","round":0,"family":"codex","account":"codex-a","verdict":"approve","review_label":"other_family","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":3,"task_id":"tk0001","index":4,"specialist":"preview","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","preview":{"phase":"done","app":"eq-tk0001","url":"https://eq-tk0001.docs-t1.example.ts.net/","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":12,"bytes":348160,"outcome":"deployed"}},{"id":"s_0001","revision":3,"task_id":"tk0001","index":5,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":3,"task_id":"tk0001","index":6,"specialist":"publish","state":"done","reason":"","attempt":1,"base_sha":"","candidate_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","publish":{"phase":"done","app":"site-sample","url":"https://site-sample.bds.oncarlos.com/","version":"s-eeeeeeeeeeee-x-1","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":2,"bytes":40,"outcome":"published"}}],"thread":[],"created_at":"2026-11-12T10:00:00Z","updated_at":"2026-11-12T10:00:00Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"none","checks_reason":"","verdict":"approve","review_label":"other_family","needs_you":"","fix_rounds":0,"branch_head":"","questions":[],"merged":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"at":"2026-11-12T10:00:00Z"},"reports":0,"ask_open":true,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"person:owner@example.com","reasons":[{"name":"approved_exact_sha","ok":true}],"at":"2026-11-12T10:00:00Z"},"creator_name":"Owner","source_message_id":"m_0001","source_at":"2026-11-12T10:00:00Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":[],"engineering_runner":"RUNNER1","site":{"app":"site-sample","sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","state":"published","url":"https://site-sample.bds.oncarlos.com/","at":"2026-11-12T10:00:00Z"}}
+{"id":"tk0001","revision":18,"project_id":"p_0001","project":"Woodstar","repo":"amadan.net/oficina/sample","title":"Quick website","brief":"The README says teh.\n\nFix it.","stage":"done","branch":"equipo/tk0001-quick-website","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-quick-website","creator":"owner@example.com","turn_id":"t_0001","findings":[],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":2,"task_id":"tk0001","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"none","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":2,"task_id":"tk0001","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"Read it.","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-12T10:00:00Z","round":0,"family":"codex","account":"codex-a","verdict":"approve","review_label":"other_family","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":3,"task_id":"tk0001","index":4,"specialist":"preview","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","preview":{"phase":"done","app":"eq-tk0001","url":"https://eq-tk0001.docs-t1.example.ts.net/","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":12,"bytes":348160,"outcome":"deployed"}},{"id":"s_0001","revision":3,"task_id":"tk0001","index":5,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_0001","revision":3,"task_id":"tk0001","index":6,"specialist":"publish","state":"done","reason":"","attempt":1,"base_sha":"","candidate_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-12T10:00:00Z","finished_at":"2026-11-12T10:00:00Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RUNNER1","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","publish":{"phase":"done","app":"site-sample","url":"https://site-sample.bds.oncarlos.com/","version":"s-eeeeeeeeeeee-x-1","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":2,"bytes":40,"outcome":"published"}}],"thread":[],"created_at":"2026-11-12T10:00:00Z","updated_at":"2026-11-12T10:00:00Z","done_at":"2026-11-12T10:00:00Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"none","checks_reason":"","verdict":"approve","review_label":"other_family","needs_you":"","fix_rounds":0,"branch_head":"","questions":[],"merged":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"at":"2026-11-12T10:00:00Z"},"reports":0,"ask_open":true,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"person:owner@example.com","reasons":[{"name":"approved_exact_sha","ok":true}],"at":"2026-11-12T10:00:00Z"},"creator_name":"Owner","source_message_id":"m_0001","source_at":"2026-11-12T10:00:00Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":[],"engineering_runner":"RUNNER1","site":{"app":"site-sample","sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","state":"published","url":"https://site-sample.bds.oncarlos.com/","at":"2026-11-12T10:00:00Z"}}
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index fc9366ad..b61fab3a 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -871,6 +871,17 @@
}
}
},
+ "chat.day.today": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Today"
+ }
+ }
+ }
+ },
"chat.held.budget": {
"extractionState": "manual",
"localizations": {
@@ -1333,6 +1344,50 @@
}
}
},
+ "native.needs.done_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Done at %@"
+ }
+ }
+ }
+ },
+ "native.needs.finished_today": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Finished today"
+ }
+ }
+ }
+ },
+ "native.needs.merged_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merged into %1$@ at %2$@"
+ }
+ }
+ }
+ },
+ "native.needs.running_now": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Running now"
+ }
+ }
+ }
+ },
"native.step.log_tail": {
"extractionState": "manual",
"localizations": {
@@ -3951,6 +4006,17 @@
}
}
},
+ "work.merged": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merged into %@ at %@"
+ }
+ }
+ }
+ },
"work.needs.branch_moved": {
"extractionState": "manual",
"localizations": {
@@ -4039,6 +4105,17 @@
}
}
},
+ "work.needs_empty": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing needs you right now."
+ }
+ }
+ }
+ },
"work.open": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift
index 06282ed1..10223b39 100644
--- a/native/apple/Sources/EquipoKit/API/Thin.swift
+++ b/native/apple/Sources/EquipoKit/API/Thin.swift
@@ -237,6 +237,8 @@ public struct ThinTask: Codable, Sendable, Identifiable, Equatable {
public var thread: [ThreadEntry]?
public var createdAt: Date
public var updatedAt: Date
+ /// Most recent transition to done; absent on older servers and unfinished tasks.
+ public var doneAt: Date? = nil
public var kind: String?
}
diff --git a/native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift b/native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift
new file mode 100644
index 00000000..aac07c47
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift
@@ -0,0 +1,38 @@
+import Foundation
+
+/// The needs-you list's one primary action, narrower than the task menu.
+struct NeedsRowAction {
+ enum Kind { case open, question, merge, retry, resume, runNow }
+ var kind: Kind = .open
+ var card: ThinCard?
+ var pause: TaskPause?
+ var isAside: Bool { card?.isAside == true }
+ var canSetAside: Bool { card.map { Feed.canSetAside($0) && !$0.isAside } ?? false }
+ init() {}
+ init(task: ThinTask, cards: [ThinCard], mine: Bool, owner: Bool, canResume: Bool) {
+ // TaskDecision and TaskPause retain their creator/lifecycle guards.
+ // Pause actions also need the device's owner role and merge exclusion.
+ guard owner, task.stage != "merging" else { return }
+ pause = TaskPause(task, mine: mine)
+ let decision = TaskDecision(task: task, cards: cards, mine: mine, owner: owner)
+ if let current = decision.card {
+ card = current
+ guard !current.isAside else { return }
+ switch current.kind {
+ case "question": kind = .question
+ case "merge" where task.needsYou == "merge" && decision.canAnswer("merge", note: ""):
+ kind = .merge
+ case "held" where task.needsYou == "held" && decision.canAnswer("run_now", note: "") && pause?.runNow != nil:
+ kind = .runNow
+ default: break
+ }
+ return
+ }
+ if ["retry", "review_blocked"].contains(task.needsYou), pause?.canRetry == true {
+ kind = .retry
+ } else if task.needsYou == "held" {
+ if pause?.resumeStep != nil, canResume { kind = .resume }
+ else if pause?.runNow != nil { kind = .runNow }
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift b/native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift
new file mode 100644
index 00000000..556620e3
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift
@@ -0,0 +1,55 @@
+import Foundation
+
+extension TaskDetailModel {
+ var needsReadKey: String { "\(task?.revision ?? 0):\(session.needsReadGeneration)" }
+ var needsAction: NeedsRowAction {
+ guard let task else { return .init() }
+ var action = NeedsRowAction(task: task, cards: session.cards, mine: session.isMine(task),
+ owner: session.me?.role == "owner", canResume: needsResume.connection != nil)
+ // Questions and card visibility already have their revision in /snapshot.
+ if action.kind != .question, loaded?.revision != task.revision || readFailure != nil {
+ action.kind = .open
+ }
+ return action
+ }
+ func setNeedsAside() async {
+ guard !busy, needsAction.canSetAside, let card = needsAction.card else { return }
+ busy = true; failure = nil
+ defer { busy = false }
+ switch await session.setAside(card, true) {
+ case .answered: break
+ case .changed: failure = EquipoStrings.text("card.changed")
+ case .offline: failure = EquipoStrings.text("card.offline")
+ case .failed: failure = EquipoStrings.text("card.failed")
+ }
+ }
+ func loadNeedsRow() async {
+ needsResume.connection = nil
+ await load()
+ if let task, let step = TaskPause(task, mine: session.isMine(task))?.resumeStep {
+ await needsResume.load(client: session.client, step: step)
+ }
+ }
+ func performNeedsAction(_ shown: NeedsRowAction? = nil) async {
+ guard !busy else { return }
+ guard !needsAction.isAside else { return }
+ let action = shown ?? needsAction
+ switch action.kind {
+ case .merge:
+ if let card = action.card { await answer(card, choice: "merge", note: "") }
+ case .retry:
+ await perform(.retry)
+ case .resume, .runNow:
+ busy = true; failure = nil
+ defer { busy = false }
+ if let step = action.pause?.resumeStep {
+ failure = await needsResume.perform(client: session.client, step: step)
+ } else if let run = action.pause?.runNow {
+ failure = await session.runNow(task: taskID, run)
+ }
+ await session.refresh()
+ await loadNeedsRow()
+ case .open, .question: break
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift b/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift
new file mode 100644
index 00000000..fcfaeba9
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift
@@ -0,0 +1,44 @@
+import Foundation
+
+/// Today is a projection of the existing /tasks list, not another inbox.
+struct NeedsToday {
+ var running: [ThinTask]
+ var finished: [ThinTask]
+
+ init(tasks: [ThinTask], now: Date, zone: TimeZone) {
+ var calendar = Calendar(identifier: .gregorian)
+ calendar.timeZone = zone
+ running = tasks.filter {
+ !["done", "cancelled"].contains($0.stage) && $0.needsYou.isEmpty && $0.copyHold != true && $0.copyCanSkip != true && Self.liveStep($0) != nil
+ }.sorted(by: Self.newestFirst)
+ finished = tasks.filter {
+ $0.stage == "done" && $0.doneAt.map { calendar.isDate($0, inSameDayAs: now) } == true
+ }.sorted {
+ let lhs = $0.doneAt ?? .distantPast, rhs = $1.doneAt ?? .distantPast
+ if lhs != rhs { return lhs > rhs }
+ return $0.id > $1.id
+ }
+ }
+
+ static func completionStatus(_ task: ThinTask, now: Date, zone: TimeZone, locale: Locale) -> String? {
+ let words = TimeWords(now: now, zone: zone, locale: locale)
+ if let merged = task.merged {
+ guard let at = merged.at, let into = merged.into else { return nil }
+ // COPY APPROVED: Luna, 2026-11-26. This slot is a time, not the web's commit.
+ return String(format: EquipoStrings.text("native.needs.merged_at"), into, words.clockOrDay(at))
+ }
+ guard let at = task.doneAt else { return nil }
+ // COPY APPROVED: Luna, 2026-11-26.
+ return String(format: EquipoStrings.text("native.needs.done_at"), words.clockOrDay(at))
+ }
+
+ static func liveStep(_ task: ThinTask) -> ThinStep? {
+ guard let last = task.steps?.last, ["running", "queued"].contains(last.state) else { return nil }
+ return last
+ }
+
+ private static func newestFirst(_ lhs: ThinTask, _ rhs: ThinTask) -> Bool {
+ if lhs.updatedAt != rhs.updatedAt { return lhs.updatedAt > rhs.updatedAt }
+ return lhs.id > rhs.id
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/Pause.swift b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
index 939372c3..1f86c06e 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Pause.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
@@ -203,6 +203,10 @@ struct TimeWords {
private func clock(_ at: Date) -> String {
var style = Date.FormatStyle(date: .omitted, time: .shortened, locale: locale, calendar: calendar, timeZone: zone)
style.timeZone = zone
+ let hourPattern = DateFormatter.dateFormat(fromTemplate: "j", options: 0, locale: locale) ?? ""
+ if hourPattern.contains("H") || hourPattern.contains("k") {
+ style = style.hour(.twoDigits(amPM: .omitted)).minute(.twoDigits)
+ }
return at.formatted(style)
}
private func days(_ at: Date) -> Int {
diff --git a/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift b/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
index f1f6f270..64c6e206 100644
--- a/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
@@ -23,6 +23,7 @@ import Observation
else { await execute(intent.action, seenRevision: intent.revision, receiptRevision: intent.receiptRevision) }
}
var loaded: ThinTask?
+ var needsResume = ResumeAction()
var busy = false
var failure: String?
var readFailure: String?
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index fc9366ad..b61fab3a 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -871,6 +871,17 @@
}
}
},
+ "chat.day.today": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Today"
+ }
+ }
+ }
+ },
"chat.held.budget": {
"extractionState": "manual",
"localizations": {
@@ -1333,6 +1344,50 @@
}
}
},
+ "native.needs.done_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Done at %@"
+ }
+ }
+ }
+ },
+ "native.needs.finished_today": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Finished today"
+ }
+ }
+ }
+ },
+ "native.needs.merged_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merged into %1$@ at %2$@"
+ }
+ }
+ }
+ },
+ "native.needs.running_now": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Running now"
+ }
+ }
+ }
+ },
"native.step.log_tail": {
"extractionState": "manual",
"localizations": {
@@ -3951,6 +4006,17 @@
}
}
},
+ "work.merged": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merged into %@ at %@"
+ }
+ }
+ }
+ },
"work.needs.branch_moved": {
"extractionState": "manual",
"localizations": {
@@ -4039,6 +4105,17 @@
}
}
},
+ "work.needs_empty": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing needs you right now."
+ }
+ }
+ }
+ },
"work.open": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index c9fc5bf9..12748263 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -51,6 +51,8 @@ public final class EquipoSession {
public private(set) var tasks: [ThinTask] = []
/// nil until loaded: an unknown count is not zero.
public private(set) var needsYou: [ThinTask]?
+ /// The server inbox count, including set-aside rows. Unknown stays unknown.
+ public var needsYouCount: Int? { needsYou?.count }
public let attachments: AttachmentDraft
public let projectCatalog: ProjectCatalog
public var projects: [String: ThinProject] { projectCatalog.projects }
@@ -61,6 +63,7 @@ public final class EquipoSession {
/// Turns this person asked to stop that are still running.
public private(set) var stopping: Set<String> = []
public private(set) var refreshFailed = false
+ var needsReadGeneration: UInt64 = 0
public private(set) var cursor: Int64 = 0
public private(set) var client: EquipoClient
@@ -151,6 +154,7 @@ public final class EquipoSession {
needsYou = needsList.items ?? []
status = .ready
refreshFailed = false
+ needsReadGeneration &+= 1
await sendZone()
// The team answers again: what was waiting goes now, as itself.
for item in outgoing where item.state == .waiting {
diff --git a/native/apple/Sources/EquipoKit/UI/LiveCards.swift b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
index b460994f..3b74c32f 100644
--- a/native/apple/Sources/EquipoKit/UI/LiveCards.swift
+++ b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
@@ -8,6 +8,7 @@ public struct LiveQuestionCard: View {
let card: ThinCard
let taskTitle: String?
let session: EquipoSession
+ private var taskHeader: (task: ThinTask, open: () -> Void)?
@State private var phase: Phase = .open
@Bindable private var draft: QuestionAnswerDraft
@@ -16,6 +17,11 @@ public struct LiveQuestionCard: View {
draft = session.questionDraft(for: card)
}
+ init(card: ThinCard, task: ThinTask, session: EquipoSession, openTask: @escaping () -> Void) {
+ self.init(card: card, taskTitle: nil, session: session)
+ taskHeader = (task, openTask)
+ }
+
enum Phase: Equatable { case open, sending(String), settingAside, changed(at: Int64), offline, failed }
public var body: some View {
@@ -28,6 +34,10 @@ public struct LiveQuestionCard: View {
private var raised: some View {
RaisedCard(flat: !card.isOpen) {
+ if let taskHeader {
+ TaskRowButton(task: taskHeader.task, needsYou: true, showsNeedsBadge: false, action: taskHeader.open)
+ .accessibilityIdentifier("needs-question-header-" + taskHeader.task.id)
+ }
if let taskTitle, !card.question.contains(taskTitle) {
Text(taskTitle).font(Typo.caption).foregroundStyle(Palette.secondary)
}
diff --git a/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift b/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
new file mode 100644
index 00000000..8b7ba1ae
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
@@ -0,0 +1,93 @@
+#if DEBUG
+import SwiftUI
+
+/// In-memory fixture through the real session and device wire decoder.
+public enum NeedsViewFixture {
+ @MainActor public static func makeModel() -> EquipoAppModel {
+ let transport = NeedsFixtureTransport()
+ let store = MemorySecretStore()
+ let accounts = DeviceAccounts(store: store)
+ var account = DeviceAccount.new(origin: transport.origin, label: "Fixture")
+ account.credential = DeviceCredential(id: "fixture", token: "fixture", audience: "equipo.person.v1", instanceId: "fixture", expiresAt: .distantFuture)
+ account.teamName = "Oficina"; account.address = "paul@example.com"
+ try! accounts.commit(.save(account), lifetime: accounts.lifetimes.current)
+ let model = EquipoAppModel(store: store, makeTransport: { _ in transport })
+ model.destination = Destination(pane: .needs)
+ return model
+ }
+}
+
+#if os(iOS)
+public struct PhoneNeedsFixture: View {
+ @State private var model = NeedsViewFixture.makeModel()
+ public init() {}
+ public var body: some View {
+ if let session = model.session {
+ PhoneTabs(model: model, session: session)
+ .tint(Palette.accent)
+ .preferredColorScheme(.light)
+ .task { await session.refresh() }
+ }
+ }
+}
+#endif
+
+private struct NeedsFixtureTransport: EquipoTransport {
+ let origin = URL(string: "https://fixture.invalid")!
+ private var scenario: String { ProcessInfo.processInfo.environment["EQUIPO_NEEDS_FIXTURE"] ?? "list" }
+ private var needs: [[String: Any]] { scenario == "empty" || scenario.hasPrefix("today") ? [] : [retry, merge, question] }
+ private var tasks: [[String: Any]] { scenario == "empty" ? [] : needs + [running, finished] }
+ func send(_ request: APIRequest) async throws -> APIResponse {
+ let value: [String: Any]
+ switch request.path {
+ case "/snapshot":
+ value = ["me": ["id": "fixture", "address": "paul@example.com", "role": "owner", "team_id": "fixture", "team_name": "Oficina", "revision": 1], "cursor": 1, "tasks": tasks, "messages": [], "turns": [], "cards": scenario == "empty" ? [] : cards, "projects": []]
+ case "/tasks": value = ["items": tasks]
+ case "/needs-you": value = ["items": needs]
+ default:
+ value = tasks.first { request.path == "/tasks/" + ($0["id"] as! String) } ?? [:]
+ }
+ return APIResponse(status: 200, data: try JSONSerialization.data(withJSONObject: value))
+ }
+ func lines(_ request: APIRequest) async throws -> AsyncThrowingStream<String, Error> { AsyncThrowingStream { $0.finish() } }
+
+ private var at: String {
+ ISO8601DateFormatter().string(from: Calendar.current.startOfDay(for: Date()).addingTimeInterval(20 * 60))
+ }
+ private func task(_ id: String, _ title: String, stage: String, need: String = "", steps: [[String: Any]] = []) -> [String: Any] {
+ ["id": id, "revision": 1, "project_id": "project", "project": "Equipo", "repo": "oficina/equipo", "title": title, "brief": title, "stage": stage, "needs_you": need, "creator": "paul@example.com", "branch": "equipo/" + id, "url": "", "candidate_sha": "3f9c2a167de8", "checks": "", "checks_reason": "", "verdict": "", "review_label": "", "created_at": at, "updated_at": at, "steps": steps]
+ }
+ private func step(_ id: String, specialist: String = "engineering", state: String = "done", reason: String = "", headline: String = "") -> [String: Any] {
+ ["id": id, "specialist": specialist, "state": state, "reason": reason, "headline": headline, "summary": "", "verdict": "", "review_label": "", "checks": "", "gate": "", "terminated": true, "started_at": at, "finished_at": at]
+ }
+ private var retry: [String: Any] {
+ task("retry", "Clear the badge after sign-out", stage: "in_progress", need: "retry", steps: [step("failed", state: "failed", reason: "push_failed")])
+ }
+ private var merge: [String: Any] {
+ var task = task("merge", "Keep the sign-in button visible", stage: "ready_to_merge", need: "merge")
+ task["checks"] = "passed"; task["verdict"] = "approve"; task["review_label"] = "other_family"
+ return task
+ }
+ private var question: [String: Any] {
+ task("question", "Name the team in sign-in emails", stage: "in_review", need: "fix_rounds", steps: [step("review", specialist: "review", headline: "The subject still needs a decision")])
+ }
+ private var running: [String: Any] {
+ task("running", "Keep the task list up to date", stage: "in_progress", steps: [step("live", state: "running", headline: "Updating the list after a task finishes")])
+ }
+ private var finished: [String: Any] {
+ var task = task("finished", "Explain why the upload stopped", stage: "done", steps: [step("merged", specialist: "merge", headline: "Merged into main")])
+ task["done_at"] = at
+ task["undo_offered"] = scenario != "today-no-undo"
+ task["merged"] = ["into": "main", "sha": "3f9c2a167de8", "without_checks": true, "at": at]
+ return task
+ }
+ private var cards: [[String: Any]] {
+ [card("merge-card", task: "merge", kind: "merge", question: "Merge this fix?", options: ["merge", "not_now"]),
+ card("question-card", task: "question", kind: "question", question: "Should the subject name the team?", options: ["Yes, name the team", "Keep it short"]),
+ card("receipt", task: "finished", kind: "merge_receipt", question: "Merged", options: ["undo"])]
+ }
+ private func card(_ id: String, task: String, kind: String, question: String, options: [String]) -> [String: Any] {
+ ["aside": scenario == "aside" && kind == "merge", "id": id, "revision": 1, "kind": kind, "state": "open", "turn_id": "", "project_id": "project", "name": "", "question": question, "options": options, "choice": "", "task_id": task, "created_at": at, "updated_at": at]
+ }
+}
+#endif
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift
new file mode 100644
index 00000000..10179d14
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift
@@ -0,0 +1,48 @@
+import SwiftUI
+
+/// Needs you: every task waiting on this person, with its question or
+/// decision card where the conversation has one.
+public struct NeedsScreen: View {
+ let session: EquipoSession
+ var openTask: (String) -> Void
+ public init(session: EquipoSession, openTask: @escaping (String) -> Void) { self.session = session; self.openTask = openTask }
+ public var body: some View {
+ ScrollView {
+ VStack(alignment: .leading, spacing: 20) {
+ if let needs = session.needsYou {
+ if session.refreshFailed { ReadFailed { Task { await session.refresh() } } }
+ if needs.isEmpty {
+ if session.tasks.isEmpty {
+ ContentUnavailableView(EquipoStrings.text("work.needs_empty"), systemImage: "checkmark.circle")
+ .padding(.vertical, 12)
+ } else {
+ Label(EquipoStrings.text("work.needs_empty"), systemImage: "checkmark.circle")
+ .font(.headline).foregroundStyle(Palette.secondary).padding(.vertical, 12)
+ }
+ }
+ let groups = Feed.needsGroups(needs: needs, cards: session.cards)
+ ForEach(groups.waiting) { task in item(task) }
+ if !groups.setAside.isEmpty {
+ // Still waiting on you, and still counted: only out of the way.
+ SectionTitle(text: String(localized: "roster.set_aside", bundle: .module)).padding(.top, 8)
+ ForEach(groups.setAside) { task in item(task) }
+ }
+ TimelineView(.periodic(from: .now, by: 60)) { context in
+ TodaySection(session: session, now: context.date, openTask: openTask)
+ }
+ } else if session.refreshFailed {
+ ReadFailed { Task { await session.refresh() } }
+ } else {
+ ProgressView().accessibilityLabel(EquipoStrings.text("tab.needs")).frame(maxWidth: .infinity).padding(.top, 40)
+ }
+ }
+ .padding(16).frame(maxWidth: 760).frame(maxWidth: .infinity)
+ }
+ .refreshable { await session.refresh() }
+ .background(Palette.background)
+ }
+
+ private func item(_ task: ThinTask) -> some View {
+ NeedsTaskRow(session: session, task: task) { openTask(task.id) }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift b/native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift
new file mode 100644
index 00000000..bfaf33d2
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift
@@ -0,0 +1,61 @@
+import SwiftUI
+
+struct NeedsTaskRow: View {
+ let session: EquipoSession
+ let task: ThinTask
+ var open: () -> Void
+ @State private var model: TaskDetailModel
+ init(session: EquipoSession, task: ThinTask, open: @escaping () -> Void) {
+ self.session = session; self.task = task; self.open = open
+ _model = State(initialValue: TaskDetailModel(session: session, taskID: task.id))
+ }
+ var body: some View {
+ @Bindable var model = model
+ let action = model.needsAction
+ VStack(alignment: .leading, spacing: 8) {
+ if action.isAside, let card = action.card {
+ AsideStub(card: card, title: Feed.asideTitle(card, task: task), session: session)
+ } else if action.kind == .question, let card = action.card {
+ LiveQuestionCard(card: card, task: task, session: session, openTask: open)
+ } else {
+ Panel(padding: 14, spacing: 10) {
+ HStack(alignment: .top) {
+ TaskRowButton(task: task, needsYou: true, showsNeedsBadge: false, action: open)
+ if action.canSetAside {
+ SetAsideButton(busy: model.busy) { Task { await model.setNeedsAside() } }
+ }
+ }
+ if let pause = TaskReport(task, needsYou: true, mine: session.isMine(task)).pause {
+ PauseLead(pause: pause)
+ }
+ RosterButton(title: action.title, primary: true, expanded: true) {
+ if action.kind == .open { open() }
+ else { Task { await model.performNeedsAction(action) } }
+ }.disabled(model.busy).accessibilityIdentifier("needs-action-" + task.id)
+ if let note = action.pause?.note, action.kind == .runNow {
+ Text(note).font(Typo.secondary).foregroundStyle(Palette.secondary)
+ }
+ if let failure = model.failure ?? model.readFailure {
+ Text(failure).font(Typo.secondary).foregroundStyle(Palette.negative).fixedSize(horizontal: false, vertical: true)
+ }
+ if model.busy { ProgressView(EquipoStrings.text("action.sending")) }
+ }
+ }
+ }
+ .task(id: model.needsReadKey) { await model.loadNeedsRow() }
+ .sheet(item: $model.confirmation) { TaskConfirmationSheet(model: model, confirmation: $0) }
+ }
+}
+
+extension NeedsRowAction {
+ var title: String {
+ switch kind {
+ case .open: EquipoStrings.text("work.open")
+ case .question: EquipoStrings.text("chat.card.answer")
+ case .merge: EquipoStrings.text("chat.card.merge")
+ case .retry: EquipoStrings.text("work.pause.try_again")
+ case .resume: EquipoStrings.text("work.hold.resume")
+ case .runNow: pause?.runNow?.label ?? EquipoStrings.text("chat.card.run_now")
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift b/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift
index 86bf0d9d..abb89761 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift
@@ -35,7 +35,7 @@ public struct PhoneRoot: View {
.tint(Palette.accent)
.onChange(of: phase) { _, now in now == .active ? model.foreground() : model.background() }
.onChange(of: model.session?.status) { _, status in if status == .signedOut { model.sessionEnded() } }
- .onChange(of: model.session?.needsYou?.count) { _, count in model.needsYouChanged(count) }
+ .onChange(of: model.session?.needsYouCount) { _, count in model.needsYouChanged(count) }
.onChange(of: model.session?.tasks) { _, tasks in
// A task that ended while its end push was lost leaves the Lock Screen.
guard let tasks else { return }
@@ -72,7 +72,7 @@ struct PhoneTabs: View {
NeedsScreen(session: session) { needsPath.append($0) }
}
}
- .badge(session.needsYou?.count ?? 0)
+ .badge(session.needsYouCount ?? 0)
Tab(String(localized: "nav.projects", bundle: .module), systemImage: "folder", value: .projects) {
NavigationStack(path: $projectsPath) {
ProjectsScreen(session: session) { projectsPath.append(.project($0)) }
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
index 918a7de6..20667346 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
@@ -65,7 +65,7 @@ public struct TaskScreen: View {
.background(Palette.background)
.task(id: model.session.task(model.taskID)?.revision) { await model.load() }
.refreshable { await model.session.refresh(); await model.load() }
- .sheet(item: $model.confirmation) { confirm in confirmationSheet(confirm) }
+ .sheet(item: $model.confirmation) { confirm in TaskConfirmationSheet(model: model, confirmation: confirm) }
.sheet(isPresented: $model.moving) { TaskMoveSheet(model: model) }
.onChange(of: model.decision.card?.id) { model.directionNote = "" }
}
@@ -181,30 +181,7 @@ public struct TaskScreen: View {
}.disabled(!model.decision.canAnswer(choice.value, note: model.directionNote))
}
}
- private func confirmationSheet(_ confirmation: TaskConfirmation) -> some View {
- VStack(alignment: .leading, spacing: 18) {
- // COPY APPROVED: Luna, 2026-11-26 (cancel title and detail).
- Text(EquipoStrings.text(confirmation.action == .cancel ? "native.task.cancel_confirm" : confirmation.action == .undoMerge ? "native.task.undo_confirm" : "work.decide.adopt_ask"))
- .font(.title2.bold())
- if confirmation.action == .cancel {
- Text(EquipoStrings.text("native.task.cancel_detail"))
- } else if confirmation.action == .undoMerge {
- // COPY APPROVED (Luna via controller, 2026-11-26).
- Text(EquipoStrings.text("native.task.undo_detail"))
- } else if let task = model.task {
- Text(task.title).font(.headline)
- FactsView(facts: TaskReport(task, needsYou: !task.needsYou.isEmpty).facts.filter { $0.label != EquipoStrings.text("fact.branch") }, wide: false)
- if task.checks != "passed" { Text(EquipoStrings.text("work.decide.unchecked_ask")).font(.headline) }
- if !task.branch.isEmpty { detail(EquipoStrings.text("work.details.branch"), task.branch) }
- if !task.candidateSha.isEmpty { detail(EquipoStrings.text("work.details.commit"), task.candidateSha) }
- }
- Button(confirmation.action.title, role: confirmation.action == .cancel ? .destructive : nil) {
- Task { await model.confirm() }
- }.buttonStyle(.borderedProminent).accessibilityIdentifier("task-confirm")
- Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { model.confirmation = nil }
- }.padding(24).frame(minWidth: 280, maxWidth: 540, alignment: .leading)
- .presentationDetents([.medium, .large])
- }
+
}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
index 79d4c150..d20ec59d 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
@@ -1,48 +1,5 @@
import SwiftUI
-/// Needs you: every task waiting on this person, with its question or
-/// decision card where the conversation has one.
-public struct NeedsScreen: View {
- let session: EquipoSession
- var openTask: (String) -> Void
- public init(session: EquipoSession, openTask: @escaping (String) -> Void) { self.session = session; self.openTask = openTask }
- public var body: some View {
- ScrollView {
- VStack(alignment: .leading, spacing: 20) {
- if let needs = session.needsYou {
- if needs.isEmpty {
- ContentUnavailableView {
- Label(String(localized: "needs.empty_title", bundle: .module), systemImage: "checkmark.circle")
- } description: { Text(String(localized: "needs.empty", bundle: .module)) }
- .padding(.top, 40)
- }
- let groups = Feed.needsGroups(needs: needs, cards: session.cards)
- ForEach(groups.waiting) { task in item(task) }
- if !groups.setAside.isEmpty {
- // Still waiting on you, and still counted: only out of the way.
- SectionTitle(text: String(localized: "roster.set_aside", bundle: .module)).padding(.top, 8)
- ForEach(groups.setAside) { task in item(task) }
- }
- } else if session.refreshFailed {
- ReadFailed { Task { await session.refresh() } }
- } else {
- ProgressView().frame(maxWidth: .infinity).padding(.top, 40)
- }
- }
- .padding(16).frame(maxWidth: 760).frame(maxWidth: .infinity)
- }
- .refreshable { await session.refresh() }
- .background(Palette.background)
- }
-
- private func item(_ task: ThinTask) -> some View {
- VStack(alignment: .leading, spacing: 8) {
- TaskRowButton(task: task, needsYou: session.waitsOnYou(task)) { openTask(task.id) }
- TaskCards(session: session, task: task)
- }
- }
-}
-
/// Tasks, grouped as the web groups them.
public struct TasksScreen: View {
let session: EquipoSession
@@ -78,6 +35,8 @@ public struct TasksScreen: View {
struct TaskRowButton: View {
let task: ThinTask
let needsYou: Bool
+ var showsNeedsBadge = true
+ var status: String? = nil
var action: () -> Void
var body: some View {
let report = TaskReport(task, needsYou: needsYou)
@@ -87,10 +46,10 @@ struct TaskRowButton: View {
HStack(spacing: 8) {
if !task.project.isEmpty { ProjectChip(name: task.project) }
Spacer(minLength: 8)
- if report.needsYou { NeedsChip() }
+ if showsNeedsBadge && report.needsYou { NeedsChip() }
}
Text(task.title).font(Typo.cardTitle).foregroundStyle(Palette.text).multilineTextAlignment(.leading)
- Text(report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow)
+ Text(status ?? report.pause?.stop ?? report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow)
}
Image(systemName: "chevron.right").font(.system(size: 12, weight: .semibold)).foregroundStyle(Palette.faint)
}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift b/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift
new file mode 100644
index 00000000..2d8d1438
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift
@@ -0,0 +1,85 @@
+import SwiftUI
+
+struct TodaySection: View {
+ let session: EquipoSession
+ let now: Date
+ var openTask: (String) -> Void
+
+ var body: some View {
+ let today = NeedsToday(tasks: session.tasks, now: now, zone: .current)
+ if !today.running.isEmpty || !today.finished.isEmpty {
+ VStack(alignment: .leading, spacing: 12) {
+ Text(EquipoStrings.text("chat.day.today")).font(.title2.bold())
+ if !today.running.isEmpty {
+ // COPY APPROVED: Luna, 2026-11-26.
+ SectionTitle(text: EquipoStrings.text("native.needs.running_now"))
+ ForEach(today.running) { task in
+ Panel(padding: 14, spacing: 10) {
+ TodayTaskRow(task: task, now: now, running: true) { openTask(task.id) }
+ }
+ }
+ }
+ if !today.finished.isEmpty {
+ // COPY APPROVED: Luna, 2026-11-26.
+ SectionTitle(text: EquipoStrings.text("native.needs.finished_today"))
+ ForEach(today.finished) { task in
+ FinishedTodayRow(session: session, task: task, now: now, openTask: openTask)
+ }
+ }
+ }
+ }
+ }
+}
+
+private struct TodayTaskRow: View {
+ let task: ThinTask
+ let now: Date
+ let running: Bool
+ var open: () -> Void
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 10) {
+ TaskRowButton(task: task, needsYou: false,
+ status: running ? nil : NeedsToday.completionStatus(task, now: now, zone: .current, locale: .current), action: open)
+ if running {
+ if let pause = TaskPause(task, mine: false, now: now) { PauseLead(pause: pause) }
+ else if let step = NeedsToday.liveStep(task) {
+ VStack(alignment: .leading, spacing: 4) {
+ Text(Specialist(category: step.specialist).name).font(Typo.captionStrong)
+ if !step.headline.isEmpty { Text(step.headline).font(Typo.secondary).fixedSize(horizontal: false, vertical: true) }
+ }.foregroundStyle(Palette.secondary)
+ }
+ }
+ }
+ }
+}
+
+private struct FinishedTodayRow: View {
+ let task: ThinTask
+ let now: Date
+ var openTask: (String) -> Void
+ @State private var model: TaskDetailModel
+ init(session: EquipoSession, task: ThinTask, now: Date, openTask: @escaping (String) -> Void) {
+ self.task = task; self.now = now; self.openTask = openTask
+ _model = State(initialValue: TaskDetailModel(session: session, taskID: task.id))
+ }
+ var body: some View {
+ @Bindable var model = model
+ Panel(padding: 14, spacing: 10) {
+ TodayTaskRow(task: task, now: now, running: false) { openTask(task.id) }
+ if model.rules.available.contains(.undoMerge) {
+ RosterButton(title: TaskAction.undoMerge.title) {
+ Task { await model.perform(.undoMerge) }
+ }.disabled(model.busy).accessibilityIdentifier("today-undo-" + task.id)
+ }
+ if let failure = model.failure {
+ Text(failure).font(Typo.secondary).foregroundStyle(Palette.negative)
+ }
+ if let reverted = model.revertedTask {
+ Button(reverted.title) { openTask(reverted.id) }
+ }
+ }
+ .task(id: task.revision) { await model.load() }
+ .sheet(item: $model.confirmation) { TaskConfirmationSheet(model: model, confirmation: $0) }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift b/native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift
new file mode 100644
index 00000000..b8941108
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift
@@ -0,0 +1,37 @@
+import SwiftUI
+
+/// Shared by task detail, Needs you and Finished today.
+struct TaskConfirmationSheet: View {
+ @Bindable var model: TaskDetailModel
+ let confirmation: TaskConfirmation
+ var body: some View {
+ VStack(alignment: .leading, spacing: 18) {
+ // COPY APPROVED: Luna, 2026-11-26 (cancel title and detail).
+ Text(EquipoStrings.text(confirmation.action == .cancel ? "native.task.cancel_confirm" : confirmation.action == .undoMerge ? "native.task.undo_confirm" : "work.decide.adopt_ask"))
+ .font(.title2.bold())
+ if confirmation.action == .cancel {
+ Text(EquipoStrings.text("native.task.cancel_detail"))
+ } else if confirmation.action == .undoMerge {
+ // COPY APPROVED (Luna via controller, 2026-11-26).
+ Text(EquipoStrings.text("native.task.undo_detail"))
+ } else if let task = model.task {
+ Text(task.title).font(.headline)
+ FactsView(facts: TaskReport(task, needsYou: !task.needsYou.isEmpty).facts.filter { $0.label != EquipoStrings.text("fact.branch") }, wide: false)
+ if task.checks != "passed" { Text(EquipoStrings.text("work.decide.unchecked_ask")).font(.headline) }
+ if !task.branch.isEmpty { detail(EquipoStrings.text("work.details.branch"), task.branch) }
+ if !task.candidateSha.isEmpty { detail(EquipoStrings.text("work.details.commit"), task.candidateSha) }
+ }
+ Button(confirmation.action.title, role: confirmation.action == .cancel ? .destructive : nil) {
+ Task { await model.confirm() }
+ }.buttonStyle(.borderedProminent).accessibilityIdentifier("task-confirm")
+ Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { model.confirmation = nil }
+ }.padding(24).frame(minWidth: 280, maxWidth: 540, alignment: .leading)
+ .presentationDetents([.medium, .large])
+ }
+ private func detail(_ label: String, _ value: String) -> some View {
+ VStack(alignment: .leading, spacing: 4) {
+ Text(label).font(Typo.factLabel).foregroundStyle(Palette.secondary)
+ Text(verbatim: value).font(.system(.caption, design: .monospaced)).textSelection(.enabled)
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/EquipoMacApp.swift b/native/apple/Sources/EquipoMac/EquipoMacApp.swift
index 7b3f9691..76ff8087 100644
--- a/native/apple/Sources/EquipoMac/EquipoMacApp.swift
+++ b/native/apple/Sources/EquipoMac/EquipoMacApp.swift
@@ -19,7 +19,7 @@ import SwiftUI
#if DEBUG
// Offline fixture captures must run this build, without an updater
// replacing it with a published app during the capture.
- if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] != nil || ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil || ProcessInfo.processInfo.environment["EQUIPO_ATTACHMENTS_FIXTURE"] != nil { return nil }
+ if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] != nil || ProcessInfo.processInfo.environment["EQUIPO_NEEDS_FIXTURE"] != nil || ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil || ProcessInfo.processInfo.environment["EQUIPO_ATTACHMENTS_FIXTURE"] != nil { return nil }
#endif
return NativeUpdater(policy: .quiet)
}()
@@ -29,7 +29,8 @@ import SwiftUI
WindowGroup(EquipoStrings.text("app.name")) {
Group {
#if DEBUG
- if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"]?.hasPrefix("conversation-") == true { StoppedConversationFixture() }
+ if ProcessInfo.processInfo.environment["EQUIPO_NEEDS_FIXTURE"] != nil { MacNeedsFixture() }
+ else if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"]?.hasPrefix("conversation-") == true { StoppedConversationFixture() }
else if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil { StoppedWorkFixture() }
else if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] != nil { TaskViewFixture() }
else if ProcessInfo.processInfo.environment["EQUIPO_ATTACHMENTS_FIXTURE"] != nil { MacAttachmentsFixture() }
@@ -102,7 +103,7 @@ struct MacRoot: View {
NSApp.occlusionState.contains(.visible) ? model.foreground() : model.background()
}
.onChange(of: model.session?.status) { _, status in if status == .signedOut { model.sessionEnded() } }
- .onChange(of: model.session?.needsYou?.count) { _, count in model.needsYouChanged(count) }
+ .onChange(of: model.session?.needsYouCount) { _, count in model.needsYouChanged(count) }
}
}
diff --git a/native/apple/Sources/EquipoMac/MacMainView.swift b/native/apple/Sources/EquipoMac/MacMainView.swift
index 2d974e44..0c2f633f 100644
--- a/native/apple/Sources/EquipoMac/MacMainView.swift
+++ b/native/apple/Sources/EquipoMac/MacMainView.swift
@@ -77,7 +77,7 @@ struct MacMainView: View {
}
@ViewBuilder private var needsRow: some View {
- if let count = session.needsYou?.count, count > 0 {
+ if let count = session.needsYouCount, count > 0 {
Label(EquipoStrings.text("tab.needs"), systemImage: "tray").badge(count)
} else {
Label(EquipoStrings.text("tab.needs"), systemImage: "tray")
@@ -89,11 +89,11 @@ struct MacMainView: View {
Button { pane = .needs } label: {
HStack(spacing: 6) {
Image(systemName: "tray")
- if let count = session.needsYou?.count { Text(count.formatted()).monospacedDigit() }
+ if let count = session.needsYouCount { Text(count.formatted()).monospacedDigit() }
}
}
.help(EquipoStrings.text("tab.needs"))
- .accessibilityLabel(session.needsYou.map { EquipoStrings.text("needs.count \($0.count)") } ?? EquipoStrings.text("tab.needs"))
+ .accessibilityLabel(session.needsYouCount.map { count in EquipoStrings.text("needs.count \(count)") } ?? EquipoStrings.text("tab.needs"))
}
private func title(for pane: Pane) -> String {
diff --git a/native/apple/Sources/EquipoMac/MacNeedsFixture.swift b/native/apple/Sources/EquipoMac/MacNeedsFixture.swift
new file mode 100644
index 00000000..9cb96ed0
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/MacNeedsFixture.swift
@@ -0,0 +1,43 @@
+#if DEBUG
+import AppKit
+import EquipoKit
+import SwiftUI
+
+struct MacNeedsFixture: View {
+ @State private var model = NeedsViewFixture.makeModel()
+ var body: some View {
+ if let session = model.session {
+ MacMainView(model: model, session: session)
+ .modifier(NeedsCapture())
+ .preferredColorScheme(.light)
+ .task { await session.refresh() }
+ }
+ }
+}
+
+private struct NeedsCapture: ViewModifier {
+ func body(content: Content) -> some View {
+ content.task {
+ guard let path = ProcessInfo.processInfo.environment["EQUIPO_FIXTURE_CAPTURE"] else { return }
+ try? await Task.sleep(for: .seconds(2))
+ guard let window = NSApp.windows.first(where: { $0.isVisible && !$0.isSheet }), let view = window.contentView?.superview else { return }
+ window.appearance = NSAppearance(named: .aqua)
+ window.makeKeyAndOrderFront(nil)
+ NSApp.activate()
+ // The sidebar's composited material is excluded from AppKit bitmap
+ // capture. Use the app's native toggle, keeping a real window state.
+ NSApp.sendAction(#selector(NSSplitViewController.toggleSidebar(_:)), to: nil, from: nil)
+ window.setContentSize(NSSize(width: 1100, height: 1080))
+ try? await Task.sleep(for: .milliseconds(300))
+ // Include the native toolbar in the captured window.
+ view.layoutSubtreeIfNeeded(); window.displayIfNeeded()
+ _ = FileManager.default.createFile(atPath: path + ".window", contents: Data(String(window.windowNumber).utf8))
+ _ = FileManager.default.createFile(atPath: path + ".pid", contents: Data(String(ProcessInfo.processInfo.processIdentifier).utf8))
+ if let bitmap = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
+ view.cacheDisplay(in: view.bounds, to: bitmap)
+ _ = FileManager.default.createFile(atPath: path, contents: bitmap.representation(using: .png, properties: [:]))
+ }
+ }
+ }
+}
+#endif
diff --git a/native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift b/native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift
new file mode 100644
index 00000000..a214b3dd
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift
@@ -0,0 +1,86 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@Suite struct NeedsRowActionTests {
+ static func stopped() throws -> ThinTask {
+ var task = try TaskDetailTests.task()
+ task.stage = "in_progress"; task.needsYou = "retry"
+ var step = task.steps![0]; step.state = "failed"; step.reason = "push_failed"; step.terminated = true
+ task.steps = [step]; return task
+ }
+ static func action(_ task: ThinTask, cards: [ThinCard] = [], mine: Bool = true, owner: Bool = true, resume: Bool = false) -> NeedsRowAction {
+ .init(task: task, cards: cards, mine: mine, owner: owner, canResume: resume)
+ }
+ @Test func retryIsTheListDecisionNotTheBroaderMenuOffer() throws {
+ var task = try Self.stopped()
+ for need in ["retry", "review_blocked"] {
+ task.needsYou = need; #expect(Self.action(task).kind == .retry)
+ }
+ for need in ["fix_rounds", "merge_conflict", "branch_moved", "machine_removed", "direction", "future", ""] {
+ task.needsYou = need; #expect(Self.action(task).kind == .open)
+ }
+ task.needsYou = "retry"; task.steps![0].terminated = false
+ #expect(Self.action(task).kind == .open)
+ task.steps![0].terminated = true; task.steps![0].state = "done"
+ #expect(Self.action(task).kind == .open)
+ }
+ @Test(arguments: ["other_creator", "member", "done", "cancelled", "merging", "moving", "stopping", "copy_hold", "copy_skip"])
+ func ownershipAndLifecycleGuardRows(_ state: String) throws {
+ var task = try Self.stopped()
+ if ["done", "cancelled", "merging"].contains(state) { task.stage = state }
+ if state == "moving" { task.moving = true }
+ if state == "stopping" { task.stopping = true }
+ if state == "copy_hold" { task.copyHold = true }
+ if state == "copy_skip" { task.copyCanSkip = true }
+ #expect(Self.action(task, mine: state != "other_creator", owner: state != "member").kind == .open)
+ }
+ @Test func questionRendersAndMergeRequiresTheActualDecisionChoice() throws {
+ var task = try Self.stopped(); task.needsYou = "merge"
+ var merge = try TaskDecisionTests.card(task)
+ var question = try TaskDecisionTests.card(task, kind: "question", options: ["Yes", "No"])
+ question.id = "question"; question.createdAt = merge.createdAt.addingTimeInterval(1)
+ #expect(Self.action(task, cards: [question]).kind == .question)
+ #expect(Self.action(task, cards: [question]).card?.id == question.id)
+ #expect(Self.action(task, cards: [merge, question]).kind == .merge)
+ task.needsYou = "retry"
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ task.needsYou = "merge"; merge.options = ["wait"]
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ merge.options = ["merge", "future"]
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ merge.state = "answered"
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ // A menu offer without a merge card is not a list decision.
+ #expect(Self.action(task).kind == .open)
+ }
+ @Test func holdsReuseTheResumeMatchAndRunNowOffer() throws {
+ var task = try Self.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"
+ task.steps![0].hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "codex", stepRevision: 9)
+ #expect(Self.action(task, resume: false).kind == .open)
+ #expect(Self.action(task, resume: true).kind == .resume)
+ task.steps![0].hold?.reason = "headroom"
+ #expect(Self.action(task, resume: true).kind == .open)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "connection", name: "Codex"))
+ #expect(Self.action(task).kind == .runNow)
+ #expect(Self.action(task).pause?.runNow?.revision == 9)
+ task.needsYou = "fix_rounds"
+ #expect(Self.action(task, resume: true).kind == .open)
+ task.needsYou = ""
+ #expect(Self.action(task, resume: true).kind == .open)
+ task.needsYou = "held"; task.steps![0].paused = nil
+ let held = try TaskDecisionTests.card(task, kind: "held", options: ["run_now", "wait"])
+ #expect(Self.action(task, cards: [held]).kind == .open)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "shown", name: "Codex"))
+ #expect(Self.action(task, cards: [held]).kind == .runNow)
+ #expect(Self.action(task, cards: [held]).card?.id == held.id)
+ task.needsYou = "retry"
+ #expect(Self.action(task, cards: [held]).kind == .open)
+ task.needsYou = "held"
+ var wait = held; wait.options = ["wait"]
+ #expect(Self.action(task, cards: [wait]).kind == .open)
+ wait.options = ["run_now", "future"]
+ #expect(Self.action(task, cards: [wait]).kind == .open)
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift b/native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift
new file mode 100644
index 00000000..058bd851
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift
@@ -0,0 +1,191 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@MainActor @Suite struct NeedsRowModelTests {
+ func setup(_ task: ThinTask, cards: [ThinCard] = []) async throws -> (TaskDetailModel, ScriptedTransport) {
+ let transport = ScriptedTransport()
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ snapshot.tasks = [task]; snapshot.cards = cards
+ transport.on("GET /snapshot", .success(APIResponse(status: 200, data: try encoder.encode(snapshot))))
+ transport.on("GET /tasks", .success(APIResponse(status: 200, data: try encoder.encode(["items": [task]]))))
+ transport.on("GET /needs-you", .success(APIResponse(status: 200, data: try encoder.encode(["items": [task]]))))
+ transport.on("GET /tasks/" + task.id, .success(APIResponse(status: 200, data: try encoder.encode(task))))
+ var account = DeviceAccount.new(origin: transport.origin, label: "Test")
+ account.credential = DeviceCredential(id: "fixture", token: "fixture", audience: "equipo.person.v1", instanceId: "fixture", expiresAt: .distantFuture)
+ let session = EquipoSession(account: account, accounts: DeviceAccounts(store: MemorySecretStore()), transport: transport)
+ await session.refresh()
+ let model = TaskDetailModel(session: session, taskID: task.id)
+ return (model, transport)
+ }
+ @Test func retryUsesSharedFailureWordsAndRefreshes() async throws {
+ let task = try NeedsRowActionTests.stopped()
+ let (model, transport) = try await setup(task)
+ await model.loadNeedsRow()
+ #expect(model.needsAction.kind == .retry)
+ let route = "POST /tasks/\(task.id)/retry"
+ transport.on(route, .success(APIResponse(status: 409, data: Data(#"{"code":"not_retryable","copy_key":"api.not_retryable","request_id":"fixture"}"#.utf8))))
+ await model.performNeedsAction()
+ #expect(transport.sent(route).count == 1)
+ #expect(model.failure == EquipoStrings.text("api.not_retryable"))
+ #expect(transport.sent("GET /tasks/" + task.id).count >= 2)
+ }
+ @Test func rowMergeUsesTheSharedConfirmationAndCardRevision() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "merge"
+ var card = try TaskDecisionTests.card(task); card.revision = 71
+ let (model, transport) = try await setup(task, cards: [card])
+ await model.loadNeedsRow(); await model.performNeedsAction()
+ #expect(model.confirmation?.card?.revision == 71)
+ #expect(!transport.requests.contains { $0.method == "POST" && $0.path.contains("/answer") })
+ await model.confirm()
+ let request = try #require(transport.requests.first { $0.path.contains("/answer") })
+ let body = try JSONSerialization.jsonObject(with: try #require(request.body)) as! [String: Any]
+ #expect(body["revision"] as? Int == 71)
+ #expect(body["choice"] as? String == "merge")
+ }
+ @Test func heldCardRunNowBindsTheDisplayedOfferNotItsAnswer() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"
+ task.steps![0].hold = ThinHold(reason: "headroom", stepRevision: 9)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "shown", name: "Codex"))
+ let card = try TaskDecisionTests.card(task, kind: "held", options: ["run_now", "wait"])
+ let (model, transport) = try await setup(task, cards: [card])
+ transport.on("POST /tasks/\(task.id)/run-now", .success(APIResponse(status: 409, data: Data(#"{"code":"offer_changed","copy_key":"api.offer_changed","request_id":"fixture"}"#.utf8))))
+ await model.loadNeedsRow()
+ let shown = model.needsAction
+ model.loaded?.steps?[0].paused?.runNow?.connection = "new-offer"
+ await model.performNeedsAction(shown)
+ let sent = try #require(transport.sent("POST /tasks/\(task.id)/run-now").first)
+ let body = try JSONSerialization.jsonObject(with: sent.body!) as! [String: Any]
+ #expect(body["offer"] as? String == "shown")
+ #expect(body["step_revision"] as? Int == 9)
+ #expect(!transport.requests.contains { $0.path.contains("/answer") })
+ #expect(model.failure == EquipoStrings.text("api.offer_changed"))
+ #expect(transport.sent("GET /snapshot").count >= 2)
+ #expect(transport.sent("GET /tasks/" + task.id).count >= 2)
+ }
+ @Test func questionDoesNotWaitForTaskRead() async throws {
+ let task = try NeedsRowActionTests.stopped()
+ let card = try TaskDecisionTests.card(task, kind: "question", options: ["Yes", "No"])
+ let (model, transport) = try await setup(task, cards: [card])
+ #expect(model.needsAction.kind == .question)
+ #expect(transport.sent("GET /tasks/" + task.id).isEmpty)
+ model.readFailure = "offline"
+ #expect(model.needsAction.kind == .question)
+ }
+ @Test func refreshRetriesFailedRowsAndDropsStaleResume() async throws {
+ let task = try NeedsRowActionTests.stopped()
+ let (model, transport) = try await setup(task)
+ transport.replace("GET /tasks/" + task.id, with: .failure(.offline))
+ await model.loadNeedsRow()
+ #expect(model.readFailure != nil)
+ let key = model.needsReadKey
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ transport.replace("GET /tasks/" + task.id, with: .success(APIResponse(status: 200, data: try encoder.encode(task))))
+ await model.session.refresh()
+ #expect(model.needsReadKey != key)
+ model.needsResume.connection = ResumeConnection(id: "stale", runnerId: "r", localId: "c", provider: "codex", spend: .init(unknown: true, pauseRevision: 1))
+ await model.loadNeedsRow()
+ #expect(model.readFailure == nil)
+ #expect(model.needsResume.connection == nil)
+ #expect(model.needsAction.kind == .retry)
+ }
+ @Test(arguments: ["merge", "direction", "held"])
+ func decisionVisibilityUsesExistingRevisionBoundEndpoint(_ kind: String) async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = kind
+ if kind == "held" {
+ task.steps![0].state = "running"
+ task.steps![0].hold = ThinHold(reason: "headroom", stepRevision: 9)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "shown", name: "Codex"))
+ }
+ var card = try TaskDecisionTests.card(task, kind: kind, options: kind == "merge" ? ["merge", "wait"] : kind == "held" ? ["run_now", "wait"] : ["build", "drop"])
+ card.revision = 12
+ let (model, transport) = try await setup(task, cards: [card])
+ await model.loadNeedsRow()
+ #expect(model.needsAction.canSetAside)
+ card.aside = true; card.revision = 13
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ let route = "POST /cards/\(card.id)/visibility"
+ transport.on(route, .success(APIResponse(status: 200, data: try encoder.encode(card))))
+ let shown = model.needsAction
+ model.busy = true
+ await model.setNeedsAside()
+ #expect(transport.sent(route).isEmpty)
+ model.busy = false
+ await model.setNeedsAside()
+ #expect(model.needsAction.isAside)
+ #expect(model.needsAction.kind == .open)
+ await model.setNeedsAside()
+ #expect(transport.sent(route).count == 1)
+ await model.performNeedsAction(shown)
+ #expect(model.confirmation == nil)
+ #expect(transport.sent("POST /tasks/\(task.id)/run-now").isEmpty)
+ #expect(!transport.requests.contains { $0.path.hasSuffix("/answer") })
+ let body = try JSONSerialization.jsonObject(with: try #require(transport.sent(route).first?.body)) as! [String: Any]
+ #expect(body["revision"] as? Int == 12)
+ // Undo is the existing AsideStub session call, with the new revision.
+ var restored = card; restored.aside = false; restored.revision = 14
+ transport.replace(route, with: .success(APIResponse(status: 200, data: try encoder.encode(restored))))
+ _ = await model.session.setAside(card, false)
+ #expect(!model.needsAction.isAside)
+ #expect(model.needsAction.canSetAside)
+ #expect(transport.sent(route).count == 2)
+ let undo = try JSONSerialization.jsonObject(with: try #require(transport.sent(route).last?.body)) as! [String: Any]
+ #expect(undo["revision"] as? Int == 13)
+ }
+ @Test func unreadFailedStaleAndBusyRowsCannotSend() async throws {
+ let task = try NeedsRowActionTests.stopped()
+ let (model, transport) = try await setup(task)
+ #expect(model.needsAction.kind == .open)
+ await model.performNeedsAction()
+ await model.loadNeedsRow()
+ model.readFailure = "fixture"
+ #expect(model.needsAction.kind == .open)
+ await model.performNeedsAction()
+ model.readFailure = nil; model.loaded?.revision -= 1
+ #expect(model.needsAction.kind == .open)
+ await model.performNeedsAction()
+ await model.loadNeedsRow(); model.busy = true
+ await model.performNeedsAction()
+ #expect(!transport.requests.contains { $0.path.hasSuffix("/retry") })
+ #expect(model.busy)
+ }
+ @Test func resumeReadsMatchingConnectionAndRefreshesAfterConflict() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"; task.steps![0].runnerId = "runner"
+ task.steps![0].hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "codex", stepRevision: 4)
+ let (model, transport) = try await setup(task)
+ func connections(_ revision: Int) -> APIResponse {
+ APIResponse(status: 200, data: Data("{\"items\":[{\"id\":\"conn\",\"runner_id\":\"runner\",\"local_id\":\"local\",\"provider\":\"codex\",\"spend\":{\"unknown\":true,\"pause_revision\":\(revision)}}]}".utf8))
+ }
+ transport.on("GET /connections", .success(connections(4)), .success(connections(5)))
+ transport.on("POST /connections/conn/resume", .success(APIResponse(status: 409, data: Data(#"{"code":"pause_changed","copy_key":"card.changed","request_id":"fixture"}"#.utf8))))
+ await model.loadNeedsRow()
+ #expect(model.needsAction.kind == .resume)
+ model.busy = true; await model.performNeedsAction()
+ #expect(transport.sent("POST /connections/conn/resume").isEmpty)
+ model.busy = false; await model.performNeedsAction()
+ let sent = try #require(transport.sent("POST /connections/conn/resume").first)
+ #expect(String(data: sent.body!, encoding: .utf8) == "{\"pause_revision\":4}")
+ #expect(model.failure == EquipoStrings.text("card.failed"))
+ #expect(model.needsResume.connection?.spend?.pauseRevision == 5)
+ #expect(transport.sent("GET /snapshot").count >= 2)
+ #expect(transport.sent("GET /tasks/" + task.id).count >= 2)
+ }
+ @Test func runNowBindsTheShownStepAndOffer() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"
+ task.steps![0].hold = ThinHold(reason: "headroom", stepRevision: 9)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "connection", name: "Codex"))
+ let (model, transport) = try await setup(task)
+ transport.on("POST /tasks/\(task.id)/run-now", .success(APIResponse(status: 409, data: Data(#"{"code":"offer_changed","copy_key":"api.offer_changed","request_id":"fixture"}"#.utf8))))
+ await model.loadNeedsRow(); await model.performNeedsAction()
+ let request = try #require(transport.sent("POST /tasks/\(task.id)/run-now").first)
+ let body = try JSONSerialization.jsonObject(with: request.body!) as! [String: Any]
+ #expect(body["step"] as? String == task.steps![0].id)
+ #expect(body["step_revision"] as? Int == 9)
+ #expect(body["offer"] as? String == "connection")
+ #expect(model.failure == EquipoStrings.text("api.offer_changed"))
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift b/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift
new file mode 100644
index 00000000..bd70fb90
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift
@@ -0,0 +1,178 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@Suite struct NeedsTodayTests {
+ static func task(_ id: String, stage: String = "in_progress", need: String = "", at: String = "2026-11-26T12:00:00Z") throws -> ThinTask {
+ var task: ThinTask = try Fixture.decode("thin/task")
+ task.id = id; task.stage = stage; task.needsYou = need
+ task.updatedAt = ISO8601DateFormatter().date(from: at)!
+ task.doneAt = task.updatedAt
+ var step = task.steps![0]; step.state = "running"; step.specialist = "engineering"
+ task.steps = [step]
+ return task
+ }
+ static let now = ISO8601DateFormatter().date(from: "2026-11-26T12:00:00Z")!
+ static let utc = TimeZone(secondsFromGMT: 0)!
+
+ @Test func completionStatusUsesStableTimeAndMergedWords() throws {
+ var task = try Self.task("finished", stage: "done", at: "2026-11-26T00:20:00Z")
+ task.merged = nil
+ let words = { (task: ThinTask) in NeedsToday.completionStatus(task, now: Self.now, zone: Self.utc, locale: Locale(identifier: "en_IE")) }
+ #expect(words(task) == "Done at 00:20")
+ task.merged = ThinMerged(into: "main", at: Self.now)
+ #expect(words(task) == "Merged into main at 12:00")
+ task.merged?.at = nil
+ #expect(words(task) == nil)
+ }
+
+ @Test func completionDaySurvivesLaterNotesAndOldPayloads() throws {
+ let old: ThinTask = try Fixture.decode("thin/task")
+ #expect(old.doneAt == nil)
+ var legacy = try Self.task("legacy", stage: "done")
+ legacy.doneAt = nil
+ var yesterday = try Self.task("yesterday", stage: "done", at: "2026-11-25T12:00:00Z")
+ yesterday.updatedAt = Self.now
+ var today = try Self.task("today", stage: "done")
+ today.updatedAt = Self.now.addingTimeInterval(86_400)
+ var later = try Self.task("later", stage: "done", at: "2026-11-26T13:00:00Z")
+ later.updatedAt = Self.now
+ var reopened = today; reopened.id = "reopened"; reopened.stage = "in_progress"
+ let result = NeedsToday(tasks: [legacy, yesterday, today, later, reopened], now: Self.now, zone: Self.utc)
+ #expect(result.finished.map(\.id) == ["later", "today"])
+ // Exercise wire decoding independently of the test helper's property assignment.
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ var body = try JSONSerialization.jsonObject(with: encoder.encode(old)) as! [String: Any]
+ body["done_at"] = "2026-11-26T12:00:00Z"
+ let decoded = try EquipoJSON.decoder.decode(ThinTask.self, from: JSONSerialization.data(withJSONObject: body))
+ #expect(decoded.doneAt == Self.now)
+ }
+
+ @Test func runningRequiresLiveWorkWithoutAPendingChoice() throws {
+ let live = try Self.task("live", at: "2026-11-20T12:00:00Z")
+ var queued = live; queued.id = "queued"; queued.steps![0].state = "queued"
+ var finishedStep = live; finishedStep.id = "ended-step"; finishedStep.steps![0].state = "done"
+ var missing = live; missing.id = "missing"; missing.steps = nil
+ var stopped = live; stopped.id = "stopped"; stopped.steps![0].state = "failed"
+ let done = try Self.task("done", stage: "done")
+ let cancelled = try Self.task("cancelled", stage: "cancelled")
+ let needs = try Self.task("needs", need: "held")
+ let result = NeedsToday(tasks: [live, queued, finishedStep, missing, stopped, done, cancelled, needs], now: Self.now, zone: Self.utc)
+ #expect(Set(result.running.map(\.id)) == ["live", "queued"])
+ #expect(result.finished.map(\.id) == ["done"])
+ }
+ @Test func runningUsesLatestActivityAndStableIdentityOrder() throws {
+ let earlier = try Self.task("earlier", at: "2026-11-25T12:00:00Z")
+ let later = try Self.task("later")
+ var tie = later; tie.id = "z-tie"
+ let result = NeedsToday(tasks: [earlier, later, tie], now: Self.now, zone: Self.utc)
+ #expect(result.running.map(\.id) == ["z-tie", "later", "earlier"])
+ }
+
+ @Test func onlyTheLastStepMakesWorkRunning() throws {
+ var task = try Self.task("live")
+ var old = task.steps![0]; old.id = "older"
+ var latest = old; latest.id = "latest"; latest.specialist = "checks"
+ var ended = latest; ended.id = "ended"; ended.state = "done"
+ task.steps = [old, latest, ended]
+ #expect(NeedsToday.liveStep(task) == nil)
+ #expect(NeedsToday(tasks: [task], now: Self.now, zone: Self.utc).running.isEmpty)
+ task.steps = [ended, latest]
+ #expect(NeedsToday.liveStep(task)?.id == "latest")
+ task.copyHold = true
+ #expect(NeedsToday(tasks: [task], now: Self.now, zone: Self.utc).running.isEmpty)
+ task.copyHold = false; task.copyCanSkip = true
+ #expect(NeedsToday(tasks: [task], now: Self.now, zone: Self.utc).running.isEmpty)
+ task.steps = [ended]
+ #expect(NeedsToday.liveStep(task) == nil)
+ }
+ @Test func finishedUsesLocalCalendarDayNotUTCOrLast24Hours() throws {
+ let zone = TimeZone(identifier: "America/Los_Angeles")!
+ let now = ISO8601DateFormatter().date(from: "2026-11-26T09:00:00Z")!
+ let previous = try Self.task("previous", stage: "done", at: "2026-11-26T07:59:59Z")
+ let midnight = try Self.task("midnight", stage: "done", at: "2026-11-26T08:00:00Z")
+ let end = try Self.task("end", stage: "done", at: "2026-11-27T07:59:59Z")
+ let tomorrow = try Self.task("tomorrow", stage: "done", at: "2026-11-27T08:00:00Z")
+ let result = NeedsToday(tasks: [previous, midnight, end, tomorrow], now: now, zone: zone)
+ #expect(result.finished.map(\.id) == ["end", "midnight"])
+ }
+ @Test func daylightSavingDayAndStableOrdering() throws {
+ let zone = TimeZone(identifier: "Europe/Dublin")!
+ let now = ISO8601DateFormatter().date(from: "2026-10-25T12:00:00Z")!
+ let first = try Self.task("first", stage: "done", at: "2026-10-24T23:00:00Z")
+ let last = try Self.task("last", stage: "done", at: "2026-10-25T23:59:59Z")
+ let outside = try Self.task("outside", stage: "done", at: "2026-10-26T00:00:00Z")
+ var tie = last; tie.id = "z-tie"
+ let result = NeedsToday(tasks: [first, last, outside, tie], now: now, zone: zone)
+ #expect(result.finished.map(\.id) == ["z-tie", "last", "first"])
+ #expect(NeedsToday(tasks: [], now: now, zone: zone).finished.isEmpty)
+ }
+}
+
+
+@MainActor @Suite struct NeedsInboxTests {
+ private func session(_ transport: ScriptedTransport) -> EquipoSession {
+ var account = DeviceAccount.new(origin: transport.origin, label: "Test")
+ account.credential = DeviceCredential(id: "test", token: "test-token", audience: "equipo.person.v1", instanceId: "test", expiresAt: .distantFuture)
+ return EquipoSession(account: account, accounts: DeviceAccounts(store: MemorySecretStore()), transport: transport)
+ }
+ private func response(_ tasks: [ThinTask]) throws -> APIResponse {
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ return APIResponse(status: 200, data: try encoder.encode(["items": tasks]))
+ }
+ @Test func badgeCountsOnlyNeedsIncludingSetAsideAndPreservesUnknown() async throws {
+ let transport = ScriptedTransport()
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ for index in snapshot.cards!.indices { snapshot.cards![index].aside = true }
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ transport.on("GET /snapshot", .success(APIResponse(status: 200, data: try encoder.encode(snapshot))))
+ transport.on("GET /tasks", fixture: "thin/tasks")
+ let first = try NeedsTodayTests.task("tkqsrho7oq3n", need: "retry")
+ let second = try NeedsTodayTests.task("second", need: "merge")
+ transport.on("GET /needs-you", .success(try response([first, second])), .success(try response([first])), .failure(.offline), .success(try response([])))
+ let session = session(transport)
+ #expect(session.needsYouCount == nil)
+ await session.refresh(); #expect(session.needsYouCount == 2)
+ #expect(Feed.needsGroups(needs: session.needsYou!, cards: session.cards).setAside.count == 1)
+ await session.refresh(); #expect(session.needsYouCount == 1)
+ await session.refresh(); #expect(session.needsYouCount == 1)
+ #expect(session.refreshFailed)
+ await session.refresh(); #expect(session.needsYouCount == 0)
+ #expect(!session.tasks.isEmpty)
+ }
+ @Test func todayUsesOnlyTheReturnedTaskWindow() async throws {
+ let transport = ScriptedTransport()
+ transport.on("GET /snapshot", fixture: "thin/snapshot")
+ transport.on("GET /needs-you", .success(try response([])))
+ let window = try (0..<100).map { try NeedsTodayTests.task("returned-\($0)", stage: "done") }
+ transport.on("GET /tasks", .success(try response(window)))
+ let session = session(transport); await session.refresh()
+ let today = NeedsToday(tasks: session.tasks, now: NeedsTodayTests.now, zone: NeedsTodayTests.utc)
+ #expect(Set(today.finished.map(\.id)) == Set(window.map(\.id)))
+ #expect(today.finished.count == 100)
+ #expect(session.needsYouCount == 0)
+ #expect(transport.requests.filter { $0.path.hasPrefix("/tasks") }.map(\.path) == ["/tasks"])
+ #expect(!transport.requests.contains { $0.path.hasPrefix("/journey") })
+ #expect(transport.sent("GET /tasks").first?.bearer == "test-token")
+ }
+ @Test func taskEventsRefreshInboxAndTodayTogether() async throws {
+ let transport = ScriptedTransport()
+ transport.on("GET /snapshot", fixture: "thin/snapshot")
+ let pending = try NeedsTodayTests.task("event-task", need: "retry")
+ let done = try NeedsTodayTests.task("event-task", stage: "done")
+ transport.on("GET /tasks", .success(try response([pending])), .success(try response([done])))
+ transport.on("GET /needs-you", .success(try response([pending])), .success(try response([])))
+ let session = session(transport); await session.refresh()
+ #expect(session.needsYouCount == 1)
+ await session.handle(#"data: {"cursor":100,"type":"task","resource":"task","id":"event-task","revision":2,"data":{}}"#)
+ for _ in 0..<200 {
+ if session.needsYouCount == 0 { break }
+ try await Task.sleep(for: .milliseconds(5))
+ }
+ #expect(session.needsYouCount == 0)
+ let today = NeedsToday(tasks: session.tasks, now: NeedsTodayTests.now, zone: NeedsTodayTests.utc)
+ #expect(today.finished.map(\.id) == ["event-task"])
+ #expect(transport.sent("GET /needs-you").count == 2)
+ }
+
+}
diff --git a/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift
index 0444b3da..9dd90127 100644
--- a/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift
+++ b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift
@@ -20,6 +20,17 @@ import Testing
#expect(pause.rest == " the push to Amadan failed")
}
+ @Test func clockPads24HourMidnightAndRespects12HourLocale() {
+ let at = ISO8601DateFormatter().date(from: "2026-11-26T00:20:00Z")!
+ for language in ["en_IE", "en_GB"] {
+ let words = TimeWords(now: at, zone: .gmt, locale: Locale(identifier: language))
+ #expect(words.clockOrDay(at) == "00:20")
+ #expect(words.when(at) == "today at 00:20")
+ }
+ let words = TimeWords(now: at, zone: .gmt, locale: Locale(identifier: "en_US"))
+ #expect(words.clockOrDay(at).replacingOccurrences(of: "\u{202F}", with: " ") == "12:20 AM")
+ }
+
@Test func retryIsOnlyForCreatorAndTerminatedStep() throws {
#expect(TaskPause(try stopped(), mine: true)?.canRetry == true)
#expect(TaskPause(try stopped(), mine: false)?.canRetry == false)
diff --git a/native/ios/Sources/EquipoPhoneApp.swift b/native/ios/Sources/EquipoPhoneApp.swift
index a46102eb..aaef4355 100644
--- a/native/ios/Sources/EquipoPhoneApp.swift
+++ b/native/ios/Sources/EquipoPhoneApp.swift
@@ -7,7 +7,8 @@ struct EquipoPhoneApp: App {
var body: some Scene {
WindowGroup {
#if DEBUG
- if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] != nil { TaskViewFixture() }
+ if ProcessInfo.processInfo.environment["EQUIPO_NEEDS_FIXTURE"] != nil { PhoneNeedsFixture() }
+ else if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] != nil { TaskViewFixture() }
else if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil { StoppedWorkFixture() }
else { PhoneRoot(model: delegate.model) }
#else
diff --git a/native/ios/UITests/NeedsYouUITests.swift b/native/ios/UITests/NeedsYouUITests.swift
new file mode 100644
index 00000000..003ec99f
--- /dev/null
+++ b/native/ios/UITests/NeedsYouUITests.swift
@@ -0,0 +1,70 @@
+import XCTest
+
+final class NeedsYouUITests: XCTestCase {
+ @MainActor func testTodayShowsRunningAndFinishedWithoutAnInboxBadge() {
+ let app = launch("today")
+ XCTAssertTrue(app.staticTexts["Running now"].waitForExistence(timeout: 15))
+ XCTAssertTrue(app.staticTexts["Keep the task list up to date"].exists)
+ for _ in 0..<3 {
+ if app.staticTexts["Explain why the upload stopped"].isHittable { break }
+ app.swipeUp()
+ }
+ XCTAssertTrue(app.staticTexts["Finished today"].isHittable)
+ XCTAssertTrue(app.staticTexts["Explain why the upload stopped"].isHittable)
+ XCTAssertTrue(app.staticTexts["Updating the list after a task finishes"].exists)
+ let tab = app.tabBars.buttons.matching(NSPredicate(format: "label BEGINSWITH %@", "Needs you")).firstMatch
+ XCTAssertFalse((tab.value as? String ?? "").contains("2"))
+ XCTAssertTrue(app.buttons["today-undo-finished"].waitForExistence(timeout: 10))
+ XCTAssertTrue(app.staticTexts["Merged into main at 00:20"].exists)
+ capture("iphone-today")
+ app.buttons["today-undo-finished"].tap()
+ XCTAssertTrue(app.staticTexts["Undo this merge?"].waitForExistence(timeout: 5))
+ XCTAssertTrue(app.staticTexts["Equipo will start a task to revert this merge. From now on, it will ask before every merge in this project."].exists)
+ }
+ @MainActor func testEmptyUsesReviewedWords() {
+ let app = launch("empty")
+ XCTAssertTrue(app.staticTexts["Nothing needs you right now."].waitForExistence(timeout: 15))
+ XCTAssertFalse(app.staticTexts["Running now"].exists)
+ XCTAssertFalse(app.staticTexts["Finished today"].exists)
+ capture("iphone-empty")
+ }
+ @MainActor func testRowsShowThreeActionsAndMergeConfirms() {
+ let app = launch("list")
+ XCTAssertTrue(app.buttons["needs-action-retry"].waitForExistence(timeout: 15))
+ XCTAssertEqual(app.buttons["needs-action-retry"].label, "Try again")
+ XCTAssertEqual(app.buttons["needs-action-merge"].label, "Merge")
+ XCTAssertTrue(app.buttons["Yes, name the team"].waitForExistence(timeout: 15))
+ XCTAssertTrue(app.buttons["Keep it short"].exists)
+ XCTAssertTrue(app.buttons["needs-question-header-question"].exists)
+ XCTAssertFalse(app.staticTexts["NEEDS YOU"].exists)
+ capture("iphone-needs-you")
+ app.buttons["needs-action-merge"].tap()
+ XCTAssertTrue(app.buttons["task-confirm"].waitForExistence(timeout: 5))
+ XCTAssertTrue(app.staticTexts["Keep the sign-in button visible"].exists)
+ capture("iphone-needs-merge-confirmation")
+ }
+ @MainActor func testDecisionRowsKeepSetAsideAndUndo() {
+ let app = launch("list")
+ XCTAssertTrue(app.buttons["needs-action-merge"].waitForExistence(timeout: 15))
+ XCTAssertGreaterThanOrEqual(app.buttons.matching(identifier: "Set aside").count, 2)
+ app.terminate()
+ let aside = launch("aside")
+ XCTAssertTrue(aside.buttons["Undo"].waitForExistence(timeout: 15))
+ XCTAssertFalse(aside.buttons["needs-action-merge"].exists)
+ capture("iphone-needs-aside")
+ }
+ @MainActor func testTodayHidesUndoWithoutTheServerOffer() {
+ let app = launch("today-no-undo")
+ XCTAssertTrue(app.staticTexts["Finished today"].waitForExistence(timeout: 15))
+ XCTAssertFalse(app.buttons["today-undo-finished"].exists)
+ }
+ @MainActor private func launch(_ fixture: String) -> XCUIApplication {
+ let app = XCUIApplication()
+ app.launchEnvironment["EQUIPO_NEEDS_FIXTURE"] = fixture
+ app.launch(); return app
+ }
+ @MainActor private func capture(_ name: String) {
+ let attachment = XCTAttachment(screenshot: XCUIScreen.main.screenshot())
+ attachment.name = name; attachment.lifetime = .keepAlways; add(attachment)
+ }
+}
diff --git a/native/ios/project.yml b/native/ios/project.yml
index 125dcf1d..d1f1c8c1 100644
--- a/native/ios/project.yml
+++ b/native/ios/project.yml
@@ -100,7 +100,7 @@ targets:
AttachmentSourceUITests:
type: bundle.ui-testing
platform: iOS
- sources: [UITests]
+ sources: [UITests/AttachmentSourceUITests.swift]
dependencies:
- target: EquipoPhone
settings:
@@ -108,6 +108,18 @@ targets:
PRODUCT_BUNDLE_IDENTIFIER: works.oficina.equipo.attachment-tests
GENERATE_INFOPLIST_FILE: true
TEST_TARGET_NAME: EquipoPhone
+ NeedsYouUITests:
+ type: bundle.ui-testing
+ platform: iOS
+ sources: [UITests/NeedsYouUITests.swift]
+ dependencies:
+ - target: EquipoPhone
+ settings:
+ base:
+ PRODUCT_BUNDLE_IDENTIFIER: works.oficina.equipo.needs-tests
+ GENERATE_INFOPLIST_FILE: true
+ TEST_TARGET_NAME: EquipoPhone
+
TaskViewUITests:
type: bundle.ui-testing
platform: iOS
@@ -132,6 +144,14 @@ schemes:
AttachmentSourceUITests: [test]
test:
targets: [AttachmentSourceUITests]
+
+ NeedsYouUI:
+ build:
+ targets:
+ EquipoPhone: all
+ NeedsYouUITests: [test]
+ test:
+ targets: [NeedsYouUITests]
TaskViewUI:
build:
targets:
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py
index dc2cf93c..af5e9096 100755
--- a/native/scripts/check-parity.py
+++ b/native/scripts/check-parity.py
@@ -22,7 +22,7 @@ for key in sorted(set(re.findall(r'"(work\.reason\.[^"]+)":', copy))):
if key not in strings:
problems.append(f'{key}: native must carry every reviewed stop reason')
for key, text in sorted(strings.items()):
- if not key.startswith(('runner.verdict.skipped', 'work.', 'placement.', 'chat.card.', 'chat.paste.', 'chat.attach.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')):
+ if not key.startswith(('chat.day.today', 'runner.verdict.skipped', 'work.', 'placement.', 'chat.card.', 'chat.paste.', 'chat.attach.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')):
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 f68353fa..3aff3910 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -483,5 +483,12 @@
"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."
+ "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration.",
+ "chat.day.today": "Today",
+ "work.needs_empty": "Nothing needs you right now.",
+ "native.needs.running_now": "Running now",
+ "native.needs.finished_today": "Finished today",
+ "native.needs.done_at": "Done at %@",
+ "work.merged": "Merged into %@ at %@",
+ "native.needs.merged_at": "Merged into %1$@ at %2$@"
}