oficina / equipo Public

Merge branch 'native/mac-power' into main

claude agent, operated by paul@keymail.dev 91be0d172f5510c620302457f593e952ca8579bd parent c01b4efparent 3936974
25 files changed, +1,715 −51
  • docs/superpowers/plans/CONTROLLER-REPORT-native-mac-power.md +209 −0
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +120 −0
  • native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift +100 −0
  • native/apple/Sources/EquipoKit/MacPower/MacTaskContext.swift +68 −0
  • native/apple/Sources/EquipoKit/Push/PushRoute.swift +5 −2
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +120 −0
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +2 −0
  • native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift +3 −0
  • native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift +20 −7
  • native/apple/Sources/EquipoMac/EquipoMacApp.swift +35 −13
  • native/apple/Sources/EquipoMac/LiveTranscript.swift +24 −2
  • native/apple/Sources/EquipoMac/MacComposer.swift +6 −3
  • native/apple/Sources/EquipoMac/MacJumpPalette.swift +163 −0
  • native/apple/Sources/EquipoMac/MacMainView.swift +20 −22
  • native/apple/Sources/EquipoMac/MacPowerCommands.swift +60 −0
  • native/apple/Sources/EquipoMac/MacPowerFixture.swift +80 −0
  • native/apple/Sources/EquipoMac/MacTaskWindow.swift +44 −0
  • native/apple/Sources/EquipoMac/MacWorkspace.swift +124 −0
  • native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift +141 −0
  • native/apple/Tests/EquipoKitTests/MacPowerTests.swift +138 −0
  • native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift +98 −0
  • native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift +4 −1
  • native/scripts/check-strings.py +1 −1
  • native/scripts/strings.json +10 −0
  • native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings +120 −0

CI passed — run details

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

receipt: test step 1m7.12s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m5.541s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.54s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 41.00, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.76%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m6.216s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.562s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.56s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 41.00, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.76%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m6.287s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.309s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.36s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.36s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 3.59s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 41.00, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.76%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m5.356s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m3.694s amadan.net/oficina/equipo/internal/headless
receipt: slow test 30.04s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 16.59s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.67s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 40.48, cpu waiting 23.67%, memory waiting 0.00%, io waiting 0.79%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.068s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.28s amadan.net/oficina/equipo/internal/headless
receipt: slow test 51.72s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.86s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.31s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.91s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.48s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 38.85, cpu waiting 21.94%, memory waiting 0.00%, io waiting 0.60%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 2m32.885s 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 2m30.744s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m26.76s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.03s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.47s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.5s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.47s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 17.40, cpu waiting 7.09%, memory waiting 0.00%, io waiting 0.17%
--- 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 1.219s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m15.947s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.9s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.16s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.92s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.72s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 7.63, cpu waiting 1.46%, memory waiting 0.00%, io waiting 2.23%
--- 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 1.202s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m40.943s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.63s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.06s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 7.63, cpu waiting 0.13%, memory waiting 0.00%, io waiting 2.27%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 4m54.526s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m8.51s 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 4m54.526s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.99s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.84s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.83s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.47s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.82s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 2.00, cpu waiting 0.52%, memory waiting 0.00%, io waiting 0.01%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 48.29s 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 47.185s amadan.net/oficina/equipo/internal/runner
receipt: slow test 27.16s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 37.46, cpu waiting 22.73%, memory waiting 0.00%, io waiting 1.03%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

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

receipt: test step 34.862s 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 33.934s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.17s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.18s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 24.44, cpu waiting 15.42%, memory waiting 0.00%, io waiting 1.31%
--- 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 29.7%, load 24.44
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m7.443s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m5.556s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.13s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 29.04s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.94s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 24.36s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 24.08s amadan.net/oficina/equipo/internal/equipotest TestAuthoritySnapshotChanges
machine: 32 CPUs, load 34.49, cpu waiting 16.93%, memory waiting 0.00%, io waiting 0.44%
--- 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 32.5%, load 19.51
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 1.232s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m18.086s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.92s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.88s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 20.84s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.81s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 20.77s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
machine: 32 CPUs, load 24.44, cpu waiting 12.42%, memory waiting 0.00%, io waiting 1.40%
--- 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 29.7%, load 19.51
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
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m18.955s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.189s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.88s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.11s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.09s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.05s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.98s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 32.36, cpu waiting 14.51%, memory waiting 0.00%, io waiting 0.37%
--- 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 29.7%, load 19.51
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 486ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m7.384s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.99s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.79s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.73s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 23.91s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 24.44, cpu waiting 12.42%, memory waiting 0.00%, io waiting 1.40%
--- 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 29.7%, load 19.51
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 644ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 50.7s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.73s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.25s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 24.44, cpu waiting 12.42%, memory waiting 0.00%, io waiting 1.40%
--- 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 29.7%, load 19.51
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/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/idtest: 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/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 2m8.89s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 21.915s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 12.105s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 1m43.663s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 41.44s, 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 38.593s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m13.95s against a 60s target (the gate's other steps are not in this figure)
receipt: 13 packages ran, 53 cached, 17 without tests, 0 failed
receipt: slow package 2m8.89s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m43.663s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 52.896s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.819s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 41.44s amadan.net/oficina/equipo/internal/release
receipt: slow test 56.74s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 47.77s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 47.74s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 47.62s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 47.38s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
machine: 32 CPUs, load 14.88, cpu waiting 5.80%, memory waiting 0.00%, io waiting 0.14%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

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 1m17.327s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.03s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.1s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.05s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 4.95s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 40.14, cpu waiting 21.94%, memory waiting 0.00%, io waiting 0.60%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m17.238s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.559s amadan.net/oficina/equipo/internal/headless
receipt: slow test 22.6s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 17.69s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.11s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.06s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.92s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 40.14, cpu waiting 22.18%, memory waiting 0.00%, io waiting 0.62%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m45.237s 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 1m43.589s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.21s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.32s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.1s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.63s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
machine: 32 CPUs, load 32.36, cpu waiting 14.97%, memory waiting 0.00%, io waiting 0.39%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-26T21:58:10.732Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T21:58:10.732Z level=INFO msg="startup phase done" phase=state_lock took=77µs
time=2026-11-26T21:58:10.732Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T21:58:10.732Z level=INFO msg="startup phase done" phase=claim_roots took=80µs
time=2026-11-26T21:58:10.732Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T21:58:10.784Z level=INFO msg="startup phase done" phase=sweep took=52.069ms
time=2026-11-26T21:58:10.784Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T21:58:10.785Z level=INFO msg="startup phase done" phase=credentials took=207µs
time=2026-11-26T21:58:10.785Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T21:58:10.832Z level=INFO msg="startup phase done" phase=open_state took=47.276ms
time=2026-11-26T21:58:10.833Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T21:58:10.833Z level=INFO msg=connecting host=127.0.0.1:42325 protocol=32
time=2026-11-26T21:58:10.836Z level=INFO msg=connected host=127.0.0.1:42325 took=2.417ms
time=2026-11-26T21:58:10.836Z level=INFO msg="capabilities gathering"
time=2026-11-26T21:58:10.837Z level=INFO msg="capabilities gathered" took=536µs tags=linux,claude,go
time=2026-11-26T21:58:10.837Z level=INFO msg="hello sent" protocol=32
time=2026-11-26T21:58:10.842Z level=INFO msg=welcome protocol=32 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserCopyContinue (6.20s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m23.125s
FAIL	amadan.net/oficina/equipo/internal/headless	83.291s


receipt: test step 1m24.591s 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 1m23.125s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 9.74s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 8.96s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.19s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
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 91be0d172f5510c620302457f593e952ca8579bd 6.20s 38.85
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 38.30, cpu waiting 19.70%, memory waiting 0.00%, io waiting 0.53%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 1.157s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2.649s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.94s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 710ms 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 11.272s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

receipt: test step 854ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 11.272s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.27s 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 335ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.989s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.99s 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 1.168s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m42.358s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.87s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 7.63, cpu waiting 2.00%, memory waiting 0.00%, io waiting 2.16%
--- 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   (46s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.60s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.14s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 6.55s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.27s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.52s
+ 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   (52s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 10.73s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 9.65s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 18.48s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 11.54s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (18s)
ok ./internal/headless TestMixedVersions 16.16s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 38.30, cpu waiting 23.42%, memory waiting 0.00%, io waiting 0.97%
--- 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 8.648s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.352s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 250ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 69ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.23s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 250ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 70ms 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.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 2.741s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 90ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
machine: 32 CPUs, load 13.49, cpu waiting 5.40%, memory waiting 0.00%, io waiting 1.89%
--- 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 29.7%, load 19.51
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2883 text files, 3229 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.622s
machine: 32 CPUs, load 34.28, cpu waiting 20.96%, memory waiting 0.00%, io waiting 1.10%
--- 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 32.5%, load 19.51
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 24.44, cpu waiting 12.42%, memory waiting 0.00%, io waiting 1.40%
--- 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 29.7%, load 19.51
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 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 29.69, cpu waiting 16.68%, memory waiting 0.00%, io waiting 1.26%
--- 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 32.5%, load 19.51
shard 28: make gitleaks
9:58PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
9:58PM INF 1211 commits scanned.
9:58PM INF scanned ~67468388 bytes (67.47 MB) in 14.7s
9:58PM INF no leaks found
machine: 32 CPUs, load 34.28, cpu waiting 20.96%, memory waiting 0.00%, io waiting 1.10%
=== 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.026ms, worst 1.161ms, budget 150ms
perf: GET /api/runner/protocol: median 75µs, worst 114µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 600µs, worst 631µs, budget 150ms
perf: GET /api/v1/accounts: median 412µs, worst 456µs, budget 150ms
perf: GET /api/v1/auth/devices: median 444µs, worst 518µs, budget 150ms
perf: GET /api/v1/budgets: median 475µs, worst 525µs, budget 150ms
perf: GET /api/v1/capabilities: median 244µs, worst 271µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.298ms, worst 1.344ms, budget 150ms
perf: GET /api/v1/connections: median 567µs, worst 578µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 536µs, worst 553µs, budget 150ms
perf: GET /api/v1/conversation: median 889µs, worst 963µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.457ms, worst 1.498ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.781ms, worst 1.838ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 444µs, worst 491µs, budget 150ms
perf: GET /api/v1/journey: median 8.947ms, worst 9.025ms, budget 150ms
perf: GET /api/v1/me: median 467µs, worst 541µs, budget 150ms
perf: GET /api/v1/me/settings: median 563µs, worst 617µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.48ms, worst 8.561ms, budget 150ms
perf: GET /api/v1/notifications: median 1.589ms, worst 1.71ms, budget 150ms
perf: GET /api/v1/onboarding: median 391µs, worst 424µs, budget 150ms
perf: GET /api/v1/people: median 433µs, worst 457µs, budget 150ms
perf: GET /api/v1/playbooks: median 579µs, worst 629µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 529µs, worst 556µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 816µs, worst 841µs, budget 150ms
perf: GET /api/v1/preferences: median 753µs, worst 775µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 446µs, worst 456µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 570µs, worst 610µs, budget 150ms
perf: GET /api/v1/roster: median 465µs, worst 504µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 426µs, worst 474µs, budget 150ms
perf: GET /api/v1/specialists: median 7.939ms, worst 8.175ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.777ms, worst 7.869ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 837µs, worst 870µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.12ms, worst 1.195ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 683µs, worst 765µs, budget 150ms
perf: GET /api/v1/teams: median 405µs, worst 452µs, budget 150ms
perf: GET /api/v1/templates: median 593µs, worst 608µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 439µs, worst 469µs, budget 150ms
perf: GET /auth/callback: median 79µs, worst 105µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.759ms, worst 3.83ms, budget 150ms
perf: GET /auth/verify: median 77µs, worst 110µs, budget 150ms
perf: GET /connections: median 4.073ms, worst 4.21ms, budget 150ms
perf: GET /conversation: median 8.02ms, worst 11.648ms, budget 150ms
perf: GET /conversation/connections: median 248µs, worst 263µs, budget 150ms
perf: GET /conversation/notebook: median 239µs, worst 264µs, budget 150ms
perf: GET /conversation/settings: median 4.432ms, worst 4.557ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.433ms, worst 4.501ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.9ms, worst 7.008ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.015ms, worst 7.139ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.349ms, worst 4.417ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.506ms, worst 4.597ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.773ms, worst 4.811ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.841ms, worst 7.004ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.87ms, worst 3.978ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.37ms, worst 4.568ms, budget 150ms
perf: GET /housekeeping: median 4.159ms, worst 4.267ms, budget 150ms
perf: GET /invites/new: median 595µs, worst 630µs, budget 150ms
perf: GET /invites/{id}: median 632µs, worst 655µs, budget 150ms
perf: GET /jobs: median 3.768ms, worst 3.88ms, budget 150ms
perf: GET /jobs/{id}: median 4.985ms, worst 5.041ms, budget 150ms
perf: GET /journey: median 10.591ms, worst 10.705ms, budget 150ms
perf: GET /nav/rail: median 3.345ms, worst 3.426ms, budget 150ms
perf: GET /needs-you: median 10.376ms, worst 13.07ms, budget 150ms
perf: GET /onboarding: median 4.453ms, worst 4.568ms, budget 150ms
perf: GET /people: median 3.747ms, worst 3.851ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.911ms, worst 5.042ms, budget 150ms
perf: GET /playbooks: median 4.455ms, worst 4.501ms, budget 150ms
perf: GET /playbooks/new: median 4.579ms, worst 4.643ms, budget 150ms
perf: GET /playbooks/{id}: median 5.061ms, worst 5.227ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.136ms, worst 5.228ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.365ms, worst 4.407ms, budget 150ms
perf: GET /preferences: median 4.581ms, worst 8.257ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.42ms, worst 4.48ms, budget 150ms
perf: GET /projects: median 6.239ms, worst 6.315ms, budget 150ms
perf: GET /projects/accounts: median 4.008ms, worst 4.096ms, budget 150ms
perf: GET /projects/new: median 3.982ms, worst 4.037ms, budget 150ms
perf: GET /projects/{id}: median 12.551ms, worst 12.801ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.468ms, worst 4.559ms, budget 150ms
perf: GET /runners/enrol: median 4.704ms, worst 4.754ms, budget 150ms
perf: GET /settings: median 3.814ms, worst 3.861ms, budget 150ms
perf: GET /settings/coordinator: median 5.795ms, worst 6.088ms, budget 150ms
perf: GET /settings/devices: median 3.911ms, worst 6.389ms, budget 150ms
perf: GET /settings/recovery: median 3.864ms, worst 4.048ms, budget 150ms
perf: GET /settings/recovery/release: median 3.864ms, worst 3.974ms, budget 150ms
perf: GET /settings/thinking: median 244µs, worst 258µs, budget 150ms
perf: GET /signed-out: median 272µs, worst 278µs, budget 150ms
perf: GET /signin: median 282µs, worst 312µs, budget 150ms
perf: GET /specialists/new: median 3.788ms, worst 3.907ms, budget 150ms
perf: GET /specialists/{key}: median 12.544ms, worst 12.83ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.268ms, worst 4.313ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.405ms, worst 4.489ms, budget 150ms
perf: GET /tasks: median 6.334ms, worst 6.443ms, budget 150ms
perf: GET /tasks/new: median 3.778ms, worst 3.907ms, budget 150ms
perf: GET /tasks/{id}: median 6.385ms, worst 9.391ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.693ms, worst 5.818ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.358ms, worst 5.468ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.122ms, worst 6.189ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.63ms, worst 1.738ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 6.392ms, worst 6.746ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.109ms, worst 5.232ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.638ms, worst 4.697ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.236ms, worst 8.293ms, budget 150ms
perf: GET /team/{specialist}: median 4.858ms, worst 4.927ms, budget 150ms
perf: GET /teams: median 11.747ms, worst 15.245ms, budget 150ms
perf: GET /templates: median 4.056ms, worst 4.13ms, budget 150ms
perf: GET /usage: median 4.833ms, worst 4.987ms, budget 150ms
perf: GET /work: median 3.618ms, worst 3.667ms, 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 156ms of [155.31561ms 155.871144ms 159.568249ms], budget 500ms

receipt: test step 32.356s 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.418s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/stagingtest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow test 9.9s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 520ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.89 GiB in 25238 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-mac-power.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-mac-power.md
new file mode 100644
index 00000000..ca025167
--- /dev/null
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-mac-power.md
@@ -0,0 +1,209 @@
+# Mac power use
+
+Branch `native/mac-power`, based on `602b91fe`. No server change, merge or
+release. Slice 7's priority review fixes were completed first at `f9e00ea6`
+with passing Linux CI.
+
+## Behaviour
+
+Command-K searches the current task window, Needs you tasks, active projects
+and the four sidebar destinations. Matching folds case and diacritics and
+supports subsequences; duplicate task entries use the latest revision. Search
+is local and bounded by the existing task-list window, not a remote full-history
+search. The selected task's actions reuse `TaskDetailModel`, the task page's
+rules, confirmations, revision bindings, errors and allowlisted web opener.
+Merge and Cancel only open confirmations. Retry has no shortcut.
+
+Go provides Command-1 through Command-4, Command-R and Command-[ / Command-].
+File provides Command-N, which opens and focuses Conversation, including when
+only a task window is open or all app windows have been closed. Command-Return
+sends in the composer; Shift-Return and marked text do not send. In the palette,
+Return opens the selection and Command-Return opens a selected task window.
+Command-Shift-M opens the existing merge confirmation.
+
+Each window publishes its own workspace with `focusedSceneValue`. The task
+WindowGroup identity contains a local session UUID and origin, never a token.
+It cannot follow an account switch or restore an old session. Task windows
+observe the event cursor and re-read detail; cancellation, moving, a changed
+repository, or verified 401/403/404 closes the window. Network errors preserve
+it with the existing read error. Selecting another task's action in a standalone
+window routes to the main window and retains the original window's identity.
+The queued action carries its context, and a fresh read precedes presentation;
+a navigation change discards that intent.
+
+## Copy and accessibility
+
+The ten `native.mac.*` keys use Luna's approved values and `Luna, 2026-11-27`
+comments. All 334 reused web strings remain byte-identical. Existing task action
+labels keep reviewed sentence case in menus, as ruled; menu-specific title case
+is a follow-up for Luna. No copy question remains.
+
+The palette uses native text fields and buttons, exposes selection traits and
+labels, and announces the selected result/action when VoiceOver is enabled.
+Arrow keys, Return, Command-Return and Escape are handled. Actual keyboard
+fixture checks covered Command-K and Down/Return reaching Merge confirmation;
+model tests pin the no-write-before-confirmation rule. Spoken VoiceOver output
+was not verified by a human in this run.
+
+## Validation and mutations
+
+Machine load, swap and other heavy jobs were checked before every build,
+filtered test invocation and fixture launch. One own heavy job at a time,
+`--jobs 4`, with timeouts. No simulator was booted. The full native/CI gate script
+was deliberately not run locally under the controller's latest machine rules.
+
+- Test-first: `swift test --package-path native/apple --jobs 4 --filter MacPowerTests`
+ failed on missing model types. Later search and routing regressions were
+ added before their implementation.
+- `swift test --package-path native/apple --jobs 4 --filter
+ 'MacPowerTests|MacWorkspaceTests|TaskDetailModelTests'`: 34 tests passed.
+- `swift build --package-path native/apple --jobs 4 --product EquipoMac`: passed.
+- `python3 native/scripts/check-strings.py`, `check-parity.py`,
+ `check-oficina-id.py` and `check-sign-in-lifetime.py`: passed.
+- Post-commit `python3 scripts/runner-dead-references.py`: recorded with the
+ pushed head's CI evidence.
+
+Each mutation below was applied alone, its named filtered suite was run with
+`swift test --package-path native/apple --jobs 4 --filter <suite>`, and the
+source was restored. Every final run failed on test expectations, not a compiler
+error. The Merge confirmation mutant initially survived because the snapshot
+merge preserved an existing merge card. The test now closes that card at a
+new revision and asserts the task-action path as well as the separate card path.
+
+| Mutation | Suite | Result |
+| --- | --- | --- |
+| `search-revision` | `MacPowerTests` | killed |
+| `known-original-repo` | `MacPowerTests` | killed |
+| `palette-action-guard` | `MacWorkspaceTests` | killed |
+| `palette-other-window` | `MacWorkspaceTests` | killed |
+| `routed-action-selection` | `MacWorkspaceTests` | killed |
+| `fresh-search` | `MacPowerTests` | killed |
+| `archived-project` | `MacPowerTests` | killed |
+| `window-origin` | `MacWorkspaceTests` | killed |
+| `busy` | `MacPowerTests` | killed |
+| `refused` | `MacPowerTests` | killed |
+| `active-session` | `MacPowerTests` | killed |
+| `fresh-revision` | `MacPowerTests` | killed |
+| `read-failure` | `MacPowerTests` | killed |
+| `merge-offer` | `MacPowerTests` | killed |
+| `retry-guard` | `MacPowerTests` | killed |
+| `move-guard` | `MacPowerTests` | killed |
+| `cancel-guard` | `MacPowerTests` | killed |
+| `perform-guard` | `MacPowerTests` | killed |
+| `merge-confirmation` | `MacPowerTests` | killed |
+| `cancel-confirmation` | `MacPowerTests` | killed |
+| `merge-card` | `MacPowerTests` | killed |
+| `refusal-classification` | `MacPowerTests` | killed |
+| `cancelled-window` | `MacPowerTests` | killed |
+| `moving-window` | `MacPowerTests` | killed |
+| `moved-window` | `MacPowerTests` | killed |
+| `invisible-window` | `MacPowerTests` | killed |
+| `window-account` | `MacWorkspaceTests` | killed |
+| `window-lifetime` | `MacWorkspaceTests` | killed |
+| `history-forward` | `MacPowerTests` | killed |
+| `deduplicate` | `MacPowerTests` | killed |
+| `brief-search` | `MacPowerTests` | killed |
+| `branch-search` | `MacPowerTests` | killed |
+
+The mutation driver, individual logs and results JSON are retained beside the
+screenshots in `site/build/slice9/validation/`.
+
+## Mac evidence
+
+`site/build/slice9/mac-palette.png` and `mac-task-window.png` are in-app NSView
+snapshots from the actual offline Mac build and WindowGroup. Screen capture
+permission was unavailable, so these capture content, not WindowServer chrome.
+The fixture's current-candidate Review step now agrees with its Approved facts.
+The standalone-window shortcut check selected a retry task in main and a merge
+task in its own window; Command-Shift-M opened the latter's confirmation.
+
+The initial synthetic shortcut harness skipped NSMenu's normal opening
+lifecycle, leaving SwiftUI's cached menu validation and focused values stale.
+Running the menu delegate's opening callbacks before the key equivalent fixed
+it; a constant focus probe confirmed the diagnosis. The temporary explicit
+window registry was removed. Native SwiftUI focus remains the sole command
+source. The two read-only reviewers' normal-menu discriminator identified the issue.
+
+Confirmation sheets were reached through real keyboard/menu events. Their
+NSView bitmap omits AppKit vibrancy-rendered labels, so those incomplete images
+are not presented as screenshots; the fixture logs and model assertions are
+retained. No actual merge was sent by a capture.
+
+## Handoff
+
+Normal push with `agent-tools/push.sh`; exact head and Linux CI verdict are
+reported in the handoff and saved CI JSON. No merge, deployment or release.
+Own fixture processes and scratch are removed after validation.
+
+## Fable delta: same-task context, accessibility and navigation
+
+The task screen now resolves the Mac model directly from its current context.
+Its state owns a model only on the session/task initializer used outside that
+context. Replacing the context for the same task ID therefore replaces the
+screen's model as well as the command target. Notification, palette and
+other-window routes are covered; a mounted NSHostingView regression replaces
+the same-ID context and asserts that its Merge sheet attaches to the window.
+The palette's labelled accessibility element contains its children. Source
+contracts pin containment and the separate Not now, Open in New Window and
+result labels, following this repository's view-contract tests. An attempted
+in-process accessibility-tree walk returned no usable SwiftUI children in the
+Swift test host, so it is not used as evidence of spoken VoiceOver output.
+
+Pane changes retain the inspector's task and visibility. The workspace owns
+an unsent composer draft; recreated AppKit transcripts bind to it, including
+edits, paste and clearing after send. A Task-menu action reveals a hidden
+inspector before invoking its model. Palette Return ignores marked text.
+Task WindowGroup restoration is disabled, so old restored windows do not flash
+before account validation. Title-word-prefix matches rank first, other title
+matches next, metadata then whole-word brief matches (query length at least
+two). The index is cached until its source task/project data changes.
+
+Explicit deferrals: Command-Return from a list, double-click to open a task
+window, and a keyboard shortcut for Open in New Window. Existing sentence-case
+task labels in Mac menus remain the copy follow-up for Luna. No new copy.
+
+The notification-actions branch is checkpointed locally at 4dac0111 while this
+priority fix is handled. Its first focused Go tests passed; the unfinished
+implementation was not pushed. The approved share follow-ups come after this
+Mac delta and before notification work resumes.
+
+Delta validation: the initial review tests failed on the missing draft, routing
+and input-method helpers. Focused tests then passed, including the mounted
+same-task sheet test. All 15 deliberate mutations below failed the filtered
+`MacPowerReviewTests` suite; sources were restored after each run. Accessibility,
+restoration and keyboard wiring are source contracts; the other failures are
+behavioral assertions. The mounted screen also catches restoring the old
+state-owned Mac model. The first queued-clear log was too verbose for the
+runner's issue-line detector; its test did fail. A boolean assertion now keeps
+that output bounded, and the repeated mutation was observed failing cleanly.
+
+| Delta mutation | Result |
+| --- | --- |
+| Restore state-owned Mac screen model | killed |
+| Ignore palette accessibility children | killed |
+| Clear inspector/task on pane navigation | killed |
+| Stop storing edited composer text | killed |
+| Do not reveal inspector before menu action | killed |
+| Ignore marked text | killed |
+| Remove the Return marked-text wiring | killed |
+| Restore task windows automatically | killed |
+| Remove title-word-prefix ranking | killed |
+| Match brief substrings | killed |
+| Remove brief minimum query length | killed |
+| Rebuild the index on every query | killed |
+| Keep the queued action after navigation | killed |
+| Route own-task actions out of a task window | killed |
+| Allow a queued action across navigation with the same inspector | killed |
+
+Queued actions now also carry a navigation generation. Keeping the inspector
+across a pane change cannot revive an old action after its asynchronous read.
+Mutation logs, the driver and focused-test results are retained with the
+slice 9 review evidence. No simulator was started.
+
+Main c01b4efa was merged normally. The Mac app retains Services registration
+and the fixture/menu setup; both approved string sets and their review dates
+are retained, including the share UI catalog. On the combined head:
+`swift test --package-path native/apple --jobs 4 --filter
+'MacPowerReviewTests|MacWorkspaceTests|MacPowerTests|TaskDetailModelTests|ComposerPolishTests'`
+passed all 46 tests. String validation, 336-string parity, Oficina ID and
+sign-in-lifetime source checks passed. Full suites remain on Linux hub CI.
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index 60d9d5eb..7e6bb3b5 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -1517,6 +1517,126 @@
}
}
},
+ "native.mac.back": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Back"
+ }
+ }
+ }
+ },
+ "native.mac.forward": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Forward"
+ }
+ }
+ }
+ },
+ "native.mac.go": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Go"
+ }
+ }
+ }
+ },
+ "native.mac.jump": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Jump to…"
+ }
+ }
+ }
+ },
+ "native.mac.new_message": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "New Message"
+ }
+ }
+ }
+ },
+ "native.mac.no_results": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No matches"
+ }
+ }
+ }
+ },
+ "native.mac.open_window": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open in New Window"
+ }
+ }
+ }
+ },
+ "native.mac.refresh": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Refresh"
+ }
+ }
+ }
+ },
+ "native.mac.search": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Search tasks, projects and actions"
+ }
+ }
+ }
+ },
+ "native.mac.selected_task": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "For the selected task"
+ }
+ }
+ }
+ },
"native.needs.done_at": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift b/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift
new file mode 100644
index 00000000..c449e2b5
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/MacPower/MacJumpIndex.swift
@@ -0,0 +1,100 @@
+import Foundation
+import Observation
+
+public enum MacDestination: Hashable, Sendable {
+ case pane(Destination.Pane), task(String), project(String)
+}
+
+public struct MacJumpResult: Identifiable, Sendable {
+ public let target: MacDestination
+ public let title: String
+ public let subtitle: String
+ public let needsYou: Bool
+ let search: String
+ var brief = ""
+ public var id: MacDestination { target }
+}
+
+/// Local, bounded by the same task window as the sidebar. No remote search
+/// or text from a task thread is implied by a match.
+public struct MacJumpIndex {
+ private var entries: [MacJumpResult] = []
+ public init(tasks: [ThinTask], needs: [ThinTask], projects: [ThinProject]) {
+ let needsIDs = Set(needs.map(\.id))
+ var latest: [String: ThinTask] = [:]
+ for task in needs + tasks where task.revision >= (latest[task.id]?.revision ?? -1) { latest[task.id] = task }
+ var seen = Set<String>()
+ for entry in needs + tasks where seen.insert(entry.id).inserted {
+ let task = latest[entry.id] ?? entry
+ entries.append(.init(target: .task(task.id), title: task.title, subtitle: task.project,
+ needsYou: needsIDs.contains(task.id),
+ search: [task.project, task.repo ?? "", task.branch].joined(separator: " "), brief: task.brief))
+ }
+ for project in projects where project.state == "active" {
+ entries.append(.init(target: .project(project.id), title: project.displayName, subtitle: project.repo,
+ needsYou: false, search: [project.displayName, project.repo].joined(separator: " ")))
+ }
+ for (pane, key) in [(Destination.Pane.conversation, "tab.conversation"), (.needs, "tab.needs"), (.tasks, "tab.tasks"), (.projects, "nav.projects")] {
+ let title = EquipoStrings.text(.init(key))
+ entries.append(.init(target: .pane(pane), title: title, subtitle: "", needsYou: false, search: title))
+ }
+ }
+ public func results(_ query: String) -> [MacJumpResult] {
+ entries.enumerated().compactMap { index, entry -> (Int, Int, MacJumpResult)? in
+ guard let score = Self.rank(query, entry: entry) else { return nil }
+ return (score, index, entry)
+ }.sorted { $0.0 == $1.0 ? $0.1 < $1.1 : $0.0 > $1.0 }.map(\.2)
+ }
+ private static func folded(_ text: String) -> String {
+ text.folding(options: [.caseInsensitive, .diacriticInsensitive], locale: .current)
+ }
+ private static func words(_ text: String) -> [String] {
+ folded(text).split { !$0.isLetter && !$0.isNumber }.map(String.init)
+ }
+ private static func rank(_ query: String, entry: MacJumpResult) -> Int? {
+ let query = folded(query.trimmingCharacters(in: .whitespacesAndNewlines))
+ if query.isEmpty { return 0 }
+ let queryWords = words(query), titleWords = words(entry.title)
+ if !queryWords.isEmpty, queryWords.allSatisfy({ q in titleWords.contains { $0.hasPrefix(q) } }) { return 50000 }
+ if let titleScore = score(query, in: entry.title) { return 30000 + max(0, titleScore) }
+ if let otherScore = score(query, in: entry.search) { return 10000 + max(0, otherScore) }
+ let briefWords = Set(words(entry.brief))
+ if query.count >= 2, !queryWords.isEmpty, queryWords.allSatisfy({ briefWords.contains($0) }) { return 100 }
+ return nil
+ }
+ public static func score(_ query: String, in text: String) -> Int? {
+ let query = query.trimmingCharacters(in: .whitespacesAndNewlines).folding(options: [.caseInsensitive, .diacriticInsensitive], locale: .current)
+ let text = text.folding(options: [.caseInsensitive, .diacriticInsensitive], locale: .current)
+ if query.isEmpty { return 0 }
+ if text.hasPrefix(query) { return 10000 }
+ if text.contains(query) { return 5000 }
+ var cursor = text.startIndex, gaps = 0
+ for character in query {
+ guard let next = text[cursor...].firstIndex(of: character) else { return nil }
+ gaps += text.distance(from: cursor, to: next)
+ cursor = text.index(after: next)
+ }
+ return 1000 - gaps
+ }
+}
+
+@MainActor @Observable public final class MacNavigationHistory {
+ private var entries: [MacDestination] = [.pane(.conversation)]
+ private var index = 0
+ public init() {}
+ public var current: MacDestination { entries[index] }
+ public var pane: Destination.Pane {
+ for entry in entries.prefix(index + 1).reversed() {
+ switch entry { case .pane(let pane): return pane; case .project: return .projects; case .task: continue }
+ }
+ return .conversation
+ }
+ public var canBack: Bool { index > 0 }
+ public var canForward: Bool { index + 1 < entries.count }
+ public func go(_ destination: MacDestination) {
+ guard current != destination else { return }
+ entries = Array(entries.prefix(index + 1)); entries.append(destination); index += 1
+ }
+ @discardableResult public func back() -> MacDestination? { guard canBack else { return nil }; index -= 1; return current }
+ @discardableResult public func forward() -> MacDestination? { guard canForward else { return nil }; index += 1; return current }
+}
diff --git a/native/apple/Sources/EquipoKit/MacPower/MacTaskContext.swift b/native/apple/Sources/EquipoKit/MacPower/MacTaskContext.swift
new file mode 100644
index 00000000..7f43c722
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/MacPower/MacTaskContext.swift
@@ -0,0 +1,68 @@
+import Foundation
+import Observation
+
+public enum MacTaskAction: String, CaseIterable, Identifiable, Sendable {
+ case merge, retry, move, web, cancel
+ public var id: String { rawValue }
+ public var title: String {
+ switch self {
+ case .merge: TaskAction.merge.title
+ case .retry: TaskAction.retry.title
+ case .move: TaskAction.move.title
+ case .cancel: TaskAction.cancel.title
+ case .web: EquipoStrings.text("task.open_web")
+ }
+ }
+}
+
+/// The menu and palette share the screen's existing model, including its
+/// current-revision checks, confirmations, move chooser and reviewed errors.
+@MainActor @Observable public final class MacTaskContext {
+ let detail: TaskDetailModel
+ @ObservationIgnored private var openWeb: ((URL, String) -> Void)?
+ public var taskID: String { detail.taskID }
+ public var title: String { detail.task?.title ?? EquipoStrings.text("task.title") }
+ public var task: ThinTask? { detail.task }
+ public private(set) var refused = false
+ public init(session: EquipoSession, taskID: String) { detail = TaskDetailModel(session: session, taskID: taskID) }
+ init(detail: TaskDetailModel, openWeb: ((URL, String) -> Void)? = nil) { self.detail = detail; self.openWeb = openWeb }
+ public var actions: [MacTaskAction] {
+ guard !detail.busy, !refused, detail.session.lifetime.isActive,
+ let task = detail.task, detail.loaded?.revision == task.revision, detail.readFailure == nil else { return [] }
+ var actions: [MacTaskAction] = []
+ if detail.rules.available.contains(.merge) || detail.decision.canAnswer("merge", note: "") { actions.append(.merge) }
+ if detail.rules.available.contains(.retry) { actions.append(.retry) }
+ if detail.rules.available.contains(.move) { actions.append(.move) }
+ actions.append(.web)
+ if detail.rules.available.contains(.cancel) { actions.append(.cancel) }
+ return actions
+ }
+ public func load() async {
+ let error = await detail.load()
+ refused = [401, 403, 404].contains((error as? EquipoAPIError)?.status ?? 0)
+ }
+ public func refresh() async { await detail.session.refresh(); await load() }
+ public func perform(_ action: MacTaskAction) async {
+ guard actions.contains(action) else { return }
+ switch action {
+ case .merge:
+ if let card = detail.decision.card, detail.decision.canAnswer("merge", note: "") {
+ await detail.answer(card, choice: "merge", note: "")
+ } else { await detail.perform(.merge) }
+ case .retry: await detail.perform(.retry)
+ case .cancel: await detail.perform(.cancel)
+ case .move: await detail.beginMove()
+ case .web:
+ if let openWeb { SettingsNavigation.open(origin: detail.session.origin, path: "/tasks/\(taskID)") { openWeb($0, "/tasks/\(taskID)") } }
+ else { detail.session.settings.open(origin: detail.session.origin, path: "/tasks/\(taskID)") }
+ }
+ }
+}
+
+public enum MacTaskWindowPolicy {
+ public static func shouldClose(task: ThinTask?, initialRepo: String?, status: Int?) -> Bool {
+ if let status, [401, 403, 404].contains(status) { return true }
+ guard let task else { return false }
+ return task.stage == "cancelled" || task.moving == true || (initialRepo != nil && task.repo != initialRepo)
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Push/PushRoute.swift b/native/apple/Sources/EquipoKit/Push/PushRoute.swift
index 892abc5e..910fe0fb 100644
--- a/native/apple/Sources/EquipoKit/Push/PushRoute.swift
+++ b/native/apple/Sources/EquipoKit/Push/PushRoute.swift
@@ -50,7 +50,10 @@ public struct Destination: Equatable, Sendable {
public var pane: Pane
public var cardID: String?
public var taskID: String?
- public init(pane: Pane, cardID: String? = nil, taskID: String? = nil) {
- self.pane = pane; self.cardID = cardID; self.taskID = taskID
+ public var projectID: String?
+ public var macAction: MacTaskAction?
+ public var focusComposer: Bool
+ public init(pane: Pane, cardID: String? = nil, taskID: String? = nil, projectID: String? = nil, focusComposer: Bool = false, macAction: MacTaskAction? = nil) {
+ self.pane = pane; self.cardID = cardID; self.taskID = taskID; self.projectID = projectID; self.focusComposer = focusComposer; self.macAction = macAction
}
}
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index 60d9d5eb..7e6bb3b5 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -1517,6 +1517,126 @@
}
}
},
+ "native.mac.back": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Back"
+ }
+ }
+ }
+ },
+ "native.mac.forward": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Forward"
+ }
+ }
+ }
+ },
+ "native.mac.go": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Go"
+ }
+ }
+ }
+ },
+ "native.mac.jump": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Jump to…"
+ }
+ }
+ }
+ },
+ "native.mac.new_message": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "New Message"
+ }
+ }
+ }
+ },
+ "native.mac.no_results": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No matches"
+ }
+ }
+ }
+ },
+ "native.mac.open_window": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open in New Window"
+ }
+ }
+ }
+ },
+ "native.mac.refresh": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Refresh"
+ }
+ }
+ }
+ },
+ "native.mac.search": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Search tasks, projects and actions"
+ }
+ }
+ }
+ },
+ "native.mac.selected_task": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "For the selected task"
+ }
+ }
+ }
+ },
"native.needs.done_at": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index ccd800e9..6f72f519 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -28,6 +28,8 @@ public final class EquipoSession {
/// A departing session can never become current again, even if a read
/// or credential renewal ignores cancellation and completes later.
+ /// Local window identity, never sent or persisted as a credential.
+ public let presentationID = UUID()
public let lifetime: SignInLifetime
let settings = SettingsPresentation()
let previews = PreviewPresentation()
diff --git a/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift b/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
index 8b7ba1ae..dd008d37 100644
--- a/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
+++ b/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
@@ -66,6 +66,9 @@ private struct NeedsFixtureTransport: EquipoTransport {
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"
+ var review = step("approved", specialist: "review", headline: "Keep the sign-in button visible")
+ review["candidate_sha"] = task["candidate_sha"]; review["verdict"] = "approve"; review["review_label"] = "other_family"
+ task["steps"] = [review]
return task
}
private var question: [String: Any] {
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
index bea29989..e4c6d1f0 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
@@ -17,11 +17,18 @@ enum TaskDetailTab: String, CaseIterable, Identifiable {
/// The same task detail on phone and Mac. The task owns its reads and keeps
/// the decision outside the scrolling evidence on every tab.
public struct TaskScreen: View {
- @State private var model: TaskDetailModel
+ private let macContext: MacTaskContext?
+ @State private var ownedModel: TaskDetailModel?
+ var model: TaskDetailModel { macContext?.detail ?? ownedModel! }
@State private var tab: TaskDetailTab = .overview
@State private var talking = false
public init(session: EquipoSession, taskID: String) {
- _model = State(initialValue: TaskDetailModel(session: session, taskID: taskID))
+ macContext = nil
+ _ownedModel = State(initialValue: TaskDetailModel(session: session, taskID: taskID))
+ }
+ public init(context: MacTaskContext) {
+ macContext = context
+ _ownedModel = State(initialValue: nil)
}
public var body: some View {
@Bindable var model = model
@@ -41,7 +48,7 @@ public struct TaskScreen: View {
heading(task)
if let failure = model.readFailure {
Text(failure).foregroundStyle(Palette.negative)
- Button(EquipoStrings.text("read.retry")) { Task { await model.load() } }
+ Button(EquipoStrings.text("read.retry")) { Task { await load() } }
}
switch tab {
case .overview: overview(task)
@@ -67,7 +74,7 @@ public struct TaskScreen: View {
} else if let failure = model.readFailure {
ContentUnavailableView { Label(EquipoStrings.text("read.failed_title"), systemImage: "wifi.exclamationmark") }
description: { Text(failure) }
- actions: { Button(EquipoStrings.text("read.retry")) { Task { await model.load() } } }
+ actions: { Button(EquipoStrings.text("read.retry")) { Task { await load() } } }
} else { ProgressView().accessibilityLabel(EquipoStrings.text("work.details.task")) }
}
.scrollDismissesKeyboard(.interactively)
@@ -77,8 +84,8 @@ public struct TaskScreen: View {
if (ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] ?? "").hasPrefix("changes") { tab = .changes }
}
#endif
- .task(id: model.session.task(model.taskID)?.revision) { await model.load() }
- .refreshable { await model.session.refresh(); await model.load() }
+ .task(id: ReadKey(revision: model.session.task(model.taskID)?.revision, cursor: macContext == nil ? nil : model.session.cursor)) { await load() }
+ .refreshable { await model.session.refresh(); await load() }
.sheet(item: $model.confirmation) { confirm in TaskConfirmationSheet(model: model, confirmation: confirm) }
.sheet(isPresented: $model.moving) { TaskMoveSheet(model: model) }
.modifier(PreviewSheetPresenter(session: model.session))
@@ -86,6 +93,11 @@ public struct TaskScreen: View {
.onChange(of: model.decision.card?.id) { model.directionNote = "" }
}
+ private struct ReadKey: Equatable { let revision: Int64?; let cursor: Int64? }
+ private func load() async {
+ if let macContext { await macContext.load() } else { await model.load() }
+ }
+
private func heading(_ task: ThinTask) -> some View {
let report = TaskReport(task, needsYou: model.session.waitsOnYou(task), mine: model.session.isMine(task))
return VStack(alignment: .leading, spacing: 10) {
@@ -116,7 +128,7 @@ public struct TaskScreen: View {
Panel { StepsView(task: task, client: model.session.client) }
}
Button(talking ? EquipoStrings.text("task.hide_talk") : EquipoStrings.text("task.talk")) { talking.toggle() }
- if talking { TaskThread(session: model.session, task: task) { Task { await model.load() } } }
+ if talking { TaskThread(session: model.session, task: task) { Task { await load() } } }
Button(EquipoStrings.text("task.open_web")) { openWeb(task) }
}
private func detail(_ label: String, _ value: String) -> some View {
@@ -172,6 +184,7 @@ public struct TaskScreen: View {
}
}
@ViewBuilder private func decisionBar(_ task: ThinTask) -> some View {
+ @Bindable var model = model
VStack(alignment: .leading, spacing: 8) {
if let reverted = model.revertedTask {
NavigationLink(reverted.title) { TaskScreen(session: model.session, taskID: reverted.id) }
diff --git a/native/apple/Sources/EquipoMac/EquipoMacApp.swift b/native/apple/Sources/EquipoMac/EquipoMacApp.swift
index e83d5eb5..b83fbf5b 100644
--- a/native/apple/Sources/EquipoMac/EquipoMacApp.swift
+++ b/native/apple/Sources/EquipoMac/EquipoMacApp.swift
@@ -6,7 +6,7 @@ import EquipoKit
import RastrilloApple
import SwiftUI
-/// Equipo for the Mac. One window: pairing until there is a team, then the
+/// Equipo for the Mac. Pairing until there is a team, then the
/// conversation, Needs you and Tasks. Settings shows the team and this
/// device, and signs out.
@main struct EquipoMacApp: App {
@@ -19,17 +19,18 @@ 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_PREVIEW_FIXTURE"] != nil || 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 }
+ if ProcessInfo.processInfo.environment["EQUIPO_MAC_POWER_FIXTURE"] != nil || ProcessInfo.processInfo.environment["EQUIPO_PREVIEW_FIXTURE"] != nil || 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)
}()
#endif
var body: some Scene {
- WindowGroup(EquipoStrings.text("app.name")) {
+ Window(EquipoStrings.text("app.name"), id: "main") {
Group {
#if DEBUG
- if ProcessInfo.processInfo.environment["EQUIPO_PREVIEW_FIXTURE"] != nil { PreviewFixture() }
+ if ProcessInfo.processInfo.environment["EQUIPO_MAC_POWER_FIXTURE"] != nil { MacPowerFixture(model: model) }
+ else if ProcessInfo.processInfo.environment["EQUIPO_PREVIEW_FIXTURE"] != nil { PreviewFixture() }
else 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() }
@@ -50,10 +51,15 @@ import SwiftUI
.commands {
// First: About, Hide and Quit say "Equipo", not the Finder name.
PlainAppNameCommands()
+ MacPowerCommands(model: model)
#if canImport(RastrilloMacUpdates)
if let updater { NativeUpdateCommands(updater: updater) }
#endif
}
+ WindowGroup(EquipoStrings.text("task.title"), id: "task", for: MacTaskWindowID.self) { $identity in
+ MacTaskWindow(model: model, identity: identity)
+ }.defaultSize(width: 820, height: 900)
+ .restorationBehavior(.disabled)
Settings { MacSettings(model: model) }
}
}
@@ -66,11 +72,19 @@ import SwiftUI
final class EquipoMacDelegate: NSObject, NSApplicationDelegate {
let notifications = SystemNotifications()
private let shareService = ShareService()
- private(set) lazy var model = EquipoAppModel(notifications: notifications)
+ private(set) lazy var model: EquipoAppModel = {
+ #if DEBUG
+ if ProcessInfo.processInfo.environment["EQUIPO_MAC_POWER_FIXTURE"] != nil { return NeedsViewFixture.makeModel() }
+ #endif
+ return EquipoAppModel(notifications: notifications)
+ }()
func applicationWillFinishLaunching(_ notification: Notification) {
NSApp.servicesProvider = shareService
NSUpdateDynamicServices()
+ #if DEBUG
+ if ProcessInfo.processInfo.environment["EQUIPO_MAC_POWER_FIXTURE"] != nil { NSApp.appearance = NSAppearance(named: .aqua) }
+ #endif
notifications.onRoute = { [weak self] route in
self?.model.open(route)
NSApp.activate()
@@ -100,14 +114,7 @@ struct MacRoot: View {
}
.tint(Color(nsColor: .webAccent))
.frame(minWidth: 860, minHeight: 560)
- .task { model.foreground(); await model.runRenewals() }
- .onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in model.foreground() }
- // Live while a window can be seen, even beside another app.
- .onReceive(NotificationCenter.default.publisher(for: NSApplication.didChangeOcclusionStateNotification)) { _ in
- NSApp.occlusionState.contains(.visible) ? model.foreground() : model.background()
- }
- .onChange(of: model.session?.status) { _, status in if status == .signedOut { model.sessionEnded() } }
- .onChange(of: model.session?.needsYouCount) { _, count in model.needsYouChanged(count) }
+ .modifier(MacSessionLifecycle(model: model))
}
}
@@ -126,3 +133,18 @@ struct MacSettings: View {
.padding(.vertical, 8)
}
}
+
+struct MacSessionLifecycle: ViewModifier {
+ let model: EquipoAppModel
+ func body(content: Content) -> some View {
+ content
+ .task { model.foreground(); await model.runRenewals() }
+ .onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in model.foreground() }
+ // Live while a window can be seen, even beside another app.
+ .onReceive(NotificationCenter.default.publisher(for: NSApplication.didChangeOcclusionStateNotification)) { _ in
+ NSApp.occlusionState.contains(.visible) ? model.foreground() : model.background()
+ }
+ .onChange(of: model.session?.status) { _, status in if status == .signedOut { model.sessionEnded() } }
+ .onChange(of: model.session?.needsYouCount) { _, count in model.needsYouChanged(count) }
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/LiveTranscript.swift b/native/apple/Sources/EquipoMac/LiveTranscript.swift
index 633c7295..3ca4f4d6 100644
--- a/native/apple/Sources/EquipoMac/LiveTranscript.swift
+++ b/native/apple/Sources/EquipoMac/LiveTranscript.swift
@@ -57,8 +57,17 @@ final class LiveTranscript: NSView {
private var contentHeight: CGFloat = 0
private var laidOutWidth: CGFloat = 0
private var hasScrolledOnce = false
+ private var wantsComposerFocus = false
+ func focusComposer() {
+ wantsComposerFocus = true
+ if let window { window.makeFirstResponder(composer.editor); wantsComposerFocus = false }
+ }
+ override func viewDidMoveToWindow() {
+ super.viewDidMoveToWindow()
+ if wantsComposerFocus { focusComposer() }
+ }
- init(session: EquipoSession, openTask: @escaping (String) -> Void) {
+ init(session: EquipoSession, openTask: @escaping (String) -> Void, draft: MacComposerDraft? = nil) {
self.session = session
selectionHost = NSHostingView(rootView: ProjectSelectionChip(catalog: session.projectCatalog))
self.openTask = openTask
@@ -70,6 +79,8 @@ final class LiveTranscript: NSView {
addSubview(scroll)
addSubview(composer)
addSubview(selectionHost)
+ composer.setText(draft?.text ?? "")
+ composer.onTextChange = { [weak draft] text in draft?.text = text }
composer.attach(session.attachments)
composer.onHeightChange = { [weak self] in self?.needsLayout = true }
composer.onSend = { [weak self] text in
@@ -647,9 +658,13 @@ struct TranscriptView: NSViewRepresentable {
let session: EquipoSession
@Binding var focusCard: String?
var openTask: (String) -> Void
+ var composerFocus: Int = 0
+ var draft: MacComposerDraft? = nil
+ final class Coordinator { var focus = -1 }
+ func makeCoordinator() -> Coordinator { Coordinator() }
func makeNSView(context: Context) -> LiveTranscript {
- let view = LiveTranscript(session: session, openTask: openTask)
+ let view = LiveTranscript(session: session, openTask: openTask, draft: draft)
view.update(items: items)
focus(view)
return view
@@ -658,6 +673,13 @@ struct TranscriptView: NSViewRepresentable {
view.openTask = openTask
view.update(items: items)
focus(view)
+ if context.coordinator.focus != composerFocus {
+ context.coordinator.focus = composerFocus
+ if composerFocus > 0 { Task { @MainActor [weak view] in
+ guard let view else { return }
+ view.focusComposer()
+ } }
+ }
}
/// Brings the card into view once the feed has it; reads again if not yet.
private func focus(_ view: LiveTranscript) {
diff --git a/native/apple/Sources/EquipoMac/MacComposer.swift b/native/apple/Sources/EquipoMac/MacComposer.swift
index 31137e6f..a5376a57 100644
--- a/native/apple/Sources/EquipoMac/MacComposer.swift
+++ b/native/apple/Sources/EquipoMac/MacComposer.swift
@@ -3,6 +3,8 @@ import EquipoKit
import SwiftUI
import Observation
+@MainActor @Observable final class MacComposerDraft { var text = "" }
+
/// The composer's text view: Return sends, Shift-Return starts a new line,
/// and an input method's marked text is never sent half typed.
final class ComposerEditor: NSTextView {
@@ -66,6 +68,7 @@ final class MacComposer: NSView, NSTextViewDelegate {
let pill = ComposerPill()
let textScroll = NSScrollView()
var onSend: ((String) -> Void)?
+ var onTextChange: ((String) -> Void)?
var onHeightChange: (() -> Void)?
private(set) var desiredHeight: CGFloat = 44
private var updating = false
@@ -158,7 +161,7 @@ final class MacComposer: NSView, NSTextViewDelegate {
var text: String { editor.string }
private var canSend: Bool { draft?.canSend(text: editor.string) ?? !editor.string.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty }
- func textDidChange(_ notification: Notification) { refresh() }
+ func textDidChange(_ notification: Notification) { onTextChange?(editor.string); refresh() }
func textDidBeginEditing(_ notification: Notification) { pill.needsDisplay = true }
func textDidEndEditing(_ notification: Notification) { pill.needsDisplay = true }
@@ -179,12 +182,12 @@ final class MacComposer: NSView, NSTextViewDelegate {
return panel
}
- func setText(_ text: String) { editor.string = text; editor.needsDisplay = true; refresh() }
+ func setText(_ text: String) { editor.string = text; editor.needsDisplay = true; onTextChange?(text); refresh() }
func submit() {
let value = editor.string.trimmingCharacters(in: .whitespacesAndNewlines)
guard canSend else { return }
- editor.string = ""; editor.needsDisplay = true
+ editor.string = ""; editor.needsDisplay = true; onTextChange?("")
refresh(); onSend?(value)
window?.makeFirstResponder(editor)
}
diff --git a/native/apple/Sources/EquipoMac/MacJumpPalette.swift b/native/apple/Sources/EquipoMac/MacJumpPalette.swift
new file mode 100644
index 00000000..439f8f90
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/MacJumpPalette.swift
@@ -0,0 +1,163 @@
+import AppKit
+import EquipoKit
+import SwiftUI
+
+struct MacJumpPalette: View {
+ @Bindable var workspace: MacWorkspace
+ @Environment(\.dismiss) private var dismiss
+ @Environment(\.openWindow) private var openWindow
+ @FocusState private var searchFocused: Bool
+ @State private var query = ""
+ @State private var selected: MacDestination?
+ @State private var selectedAction: MacTaskAction?
+ @State private var taskContext: MacTaskContext?
+
+ private var results: [MacJumpResult] { workspace.index.results(query) }
+ private var taskResults: [MacJumpResult] { results.filter { if case .task = $0.target { true } else { false } } }
+ private var otherResults: [MacJumpResult] { results.filter { if case .task = $0.target { false } else { true } } }
+ private var context: MacTaskContext? { taskContext ?? workspace.context }
+ private var actions: [MacTaskAction] {
+ guard let context else { return [] }
+ // Task matches keep their actions visible while a title is typed.
+ return context.actions.filter { !results.isEmpty || MacJumpIndex.score(query, in: $0.title) != nil }
+ }
+ private var rowIDs: [String] { taskResults.map { String(describing: $0.id) } + actions.map { "action:" + $0.rawValue } + otherResults.map { String(describing: $0.id) } }
+ private var selectedID: String? { selectedAction.map { "action:" + $0.rawValue } ?? selected.map { String(describing: $0) } }
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 0) {
+ TextField(EquipoStrings.text("native.mac.search"), text: $query)
+ .textFieldStyle(.plain).font(.title3).padding(20).focused($searchFocused)
+ .accessibilityIdentifier("mac-jump-search")
+ Divider()
+ ScrollViewReader { proxy in
+ ScrollView {
+ LazyVStack(alignment: .leading, spacing: 3) {
+ ForEach(taskResults) { result in resultRow(result) }
+ if !actions.isEmpty, let context {
+ VStack(alignment: .leading, spacing: 4) {
+ Text(EquipoStrings.text("native.mac.selected_task")).font(.caption).foregroundStyle(.secondary)
+ Text(context.title).font(.callout.weight(.medium)).lineLimit(2)
+ }.padding(10)
+ ForEach(actions) { action in actionRow(action) }
+ }
+ ForEach(otherResults) { result in resultRow(result) }
+ if results.isEmpty && actions.isEmpty {
+ Text(EquipoStrings.text("native.mac.no_results")).foregroundStyle(.secondary).padding(20)
+ }
+ }.padding(10)
+ }.frame(height: 380)
+ .onChange(of: selectedID) { _, id in if let id { proxy.scrollTo(id) } }
+ }
+ Divider()
+ HStack {
+ Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { dismiss() }
+ Spacer()
+ Button(EquipoStrings.text("native.mac.open_window")) {
+ if let selected { activate(selected, window: true) }
+ }.disabled(!selectedIsTask)
+ }.padding(12)
+ }
+ .frame(width: 620)
+ .background(Color(nsColor: .webBackground))
+ .defaultFocus($searchFocused, true)
+ .onAppear {
+ resetSelection()
+ #if DEBUG
+ if ProcessInfo.processInfo.environment["EQUIPO_MAC_POWER_FIXTURE"] .map({ ["palette", "keyboard"].contains($0) }) == true { query = "button" }
+ #endif
+ }
+ .onChange(of: query) { resetSelection() }
+ .onChange(of: rowIDs) { if selectedID == nil || !rowIDs.contains(selectedID!) { resetSelection() } }
+ .onKeyPress(.downArrow) { move(1); return .handled }
+ .onKeyPress(.upArrow) { move(-1); return .handled }
+ .onKeyPress(keys: [.return], phases: .down) { event in
+ guard Self.canActivate(firstResponder: NSApp.keyWindow?.firstResponder) else { return .ignored }
+ if let action = selectedAction { activate(action) }
+ else if let selected { activate(selected, window: event.modifiers.contains(.command)) }
+ return .handled
+ }
+ .onExitCommand { dismiss() }
+ .task(id: taskContext?.taskID) { await taskContext?.load() }
+ .accessibilityElement(children: .contain)
+ .accessibilityLabel(EquipoStrings.text("native.mac.jump"))
+ }
+ static func canActivate(firstResponder: NSResponder?) -> Bool {
+ (firstResponder as? NSTextInputClient)?.hasMarkedText() != true
+ }
+ private func resultRow(_ result: MacJumpResult) -> some View {
+ Button { activate(result.target, window: false) } label: {
+ HStack {
+ Image(systemName: symbol(result.target))
+ VStack(alignment: .leading, spacing: 3) {
+ Text(result.title).lineLimit(2)
+ if !result.subtitle.isEmpty { Text(result.subtitle).font(.caption).foregroundStyle(.secondary) }
+ }
+ Spacer()
+ if result.needsYou { Image(systemName: "tray").accessibilityLabel(EquipoStrings.text("tab.needs")) }
+ }.frame(maxWidth: .infinity, alignment: .leading).padding(10)
+ }
+ .buttonStyle(.plain)
+ .background(selected == result.target && selectedAction == nil ? Color.accentColor.opacity(0.14) : .clear, in: .rect(cornerRadius: 7))
+ .accessibilityAddTraits(selected == result.target && selectedAction == nil ? .isSelected : [])
+ .id(String(describing: result.id))
+ }
+ private func actionRow(_ action: MacTaskAction) -> some View {
+ Button(action.title, role: action == .cancel ? .destructive : nil) { activate(action) }
+ .buttonStyle(.plain).padding(10).frame(maxWidth: .infinity, alignment: .leading)
+ .background(selectedAction == action ? Color.accentColor.opacity(0.14) : .clear, in: .rect(cornerRadius: 7))
+ .accessibilityAddTraits(selectedAction == action ? .isSelected : [])
+ .id("action:" + action.rawValue)
+ }
+ private var selectedIsTask: Bool { if case .task = selected, selectedAction == nil { true } else { false } }
+ private func resetSelection() { select(results.first?.target); selectedAction = results.isEmpty ? actions.first : nil }
+ private func select(_ target: MacDestination?) {
+ selected = target
+ if case .task(let id) = target, taskContext?.taskID != id {
+ taskContext = workspace.context?.taskID == id ? workspace.context : MacTaskContext(session: workspace.session, taskID: id)
+ }
+ }
+ private func move(_ offset: Int) {
+ let ids = rowIDs
+ guard !ids.isEmpty else { return }
+ let previous = selectedID.flatMap { ids.firstIndex(of: $0) } ?? (offset > 0 ? -1 : ids.count)
+ let index = min(max(previous + offset, 0), ids.count - 1)
+ let id = ids[index]
+ if let result = results.first(where: { String(describing: $0.id) == id }) { selectedAction = nil; select(result.target) }
+ else { selectedAction = actions.first { "action:" + $0.rawValue == id } }
+ if NSWorkspace.shared.isVoiceOverEnabled {
+ let label = selectedAction.map { $0.title + "\n" + (context?.title ?? "") }
+ ?? results.first(where: { $0.target == selected }).map { $0.title + "\n" + $0.subtitle }
+ if let label, let app = NSApp {
+ NSAccessibility.post(element: app, notification: .announcementRequested,
+ userInfo: [.announcement: label, .priority: NSAccessibilityPriorityLevel.medium.rawValue])
+ }
+ }
+ }
+ private func activate(_ target: MacDestination, window: Bool) {
+ if window, case .task(let id) = target {
+ openWindow(id: "task", value: MacTaskWindowID(taskID: id, session: workspace.session))
+ } else { workspace.go(target); if workspace.standalone { openWindow(id: "main") } }
+ dismiss()
+ }
+ private func activate(_ action: MacTaskAction) {
+ guard let context, context.actions.contains(action) else { return }
+ if workspace.queuePaletteAction(action, context: context) { openWindow(id: "main") }
+ dismiss()
+ }
+ private func symbol(_ target: MacDestination) -> String {
+ switch target { case .task: "checklist"; case .project: "folder"; case .pane(.conversation): "bubble.left.and.bubble.right"; case .pane(.needs): "tray"; case .pane(.tasks): "checklist"; case .pane(.projects): "folder" }
+ }
+}
+
+struct MacWorkspacePresenter: ViewModifier {
+ @Bindable var workspace: MacWorkspace
+ func body(content: Content) -> some View {
+ content.sheet(isPresented: $workspace.palette, onDismiss: {
+ let pending = workspace.pendingAction
+ workspace.pendingAction = nil
+ if let pending { Task { await workspace.performRoutedAction(pending.action, context: pending.context, navigation: pending.navigation) } }
+ }) { MacJumpPalette(workspace: workspace) }
+ .focusedSceneValue(workspace)
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/MacMainView.swift b/native/apple/Sources/EquipoMac/MacMainView.swift
index 0c2f633f..585ab922 100644
--- a/native/apple/Sources/EquipoMac/MacMainView.swift
+++ b/native/apple/Sources/EquipoMac/MacMainView.swift
@@ -9,16 +9,16 @@ struct MacMainView: View {
let session: EquipoSession
typealias Pane = Destination.Pane
- @State private var pane: Pane = .conversation
- @State private var inspectedTask: String?
- @State private var inspectedProject: String?
- @State private var showsInspector = false
- /// A card to bring into view (a tapped notification).
- @State private var focusCard: String?
+ @State private var workspace: MacWorkspace
+ init(model: EquipoAppModel, session: EquipoSession) {
+ self.model = model; self.session = session
+ _workspace = State(initialValue: MacWorkspace(app: model, session: session))
+ }
var body: some View {
+ @Bindable var workspace = workspace
NavigationSplitView {
- List(selection: $pane) {
+ List(selection: Binding(get: { workspace.pane }, set: { workspace.go(.pane($0)) })) {
Label(EquipoStrings.text("tab.conversation"), systemImage: "bubble.left.and.bubble.right").tag(Pane.conversation)
needsRow.tag(Pane.needs)
Label(EquipoStrings.text("tab.tasks"), systemImage: "checklist").tag(Pane.tasks)
@@ -30,15 +30,16 @@ struct MacMainView: View {
detail
.safeAreaInset(edge: .top, spacing: 0) { NativeOfflineBanner(origin: session.origin) }
.navigationTitle(session.teamName)
- .navigationSubtitle(title(for: pane))
+ .navigationSubtitle(title(for: workspace.pane))
}
- .inspector(isPresented: $showsInspector) {
+ .inspector(isPresented: $workspace.inspector) {
Group {
- if let id = inspectedTask { TaskScreen(session: session, taskID: id).id(id) }
+ if let context = workspace.context { TaskScreen(context: context).id(context.taskID) }
else { Text(EquipoStrings.text("task.none_selected")).foregroundStyle(.secondary) }
}
.inspectorColumnWidth(min: 300, ideal: 360, max: 480)
}
+ .modifier(MacWorkspacePresenter(workspace: workspace))
.onChange(of: model.destination, initial: true) { _, destination in
guard let destination else { return }
go(destination)
@@ -47,7 +48,7 @@ struct MacMainView: View {
.toolbar {
ToolbarItem(placement: .primaryAction) { needsPill }
ToolbarItem(placement: .primaryAction) {
- Button { showsInspector.toggle() } label: { Image(systemName: "sidebar.right") }
+ Button { workspace.inspector.toggle() } label: { Image(systemName: "sidebar.right") }
.help(EquipoStrings.text("task.inspector"))
.accessibilityLabel(EquipoStrings.text("task.inspector"))
}
@@ -55,17 +56,17 @@ struct MacMainView: View {
}
@ViewBuilder private var detail: some View {
- switch pane {
+ switch workspace.pane {
case .conversation:
- TranscriptView(projectSelectionID: session.projectCatalog.selection?.id, projectSelectionNotice: session.projectCatalog.selectionNotice, items: Feed.build(session), session: session, focusCard: $focusCard, openTask: open)
+ TranscriptView(projectSelectionID: session.projectCatalog.selection?.id, projectSelectionNotice: session.projectCatalog.selectionNotice, items: Feed.build(session), session: session, focusCard: Binding(get: { workspace.focusCard }, set: { workspace.focusCard = $0 }), openTask: open, composerFocus: workspace.composerFocus, draft: workspace.composerDraft)
case .projects:
HStack(spacing: 0) {
- ProjectsScreen(session: session) { inspectedProject = $0 }
+ ProjectsScreen(session: session) { workspace.go(.project($0)) }
.frame(minWidth: 260, idealWidth: 340, maxWidth: 420)
Divider()
- if let id = inspectedProject {
+ if let id = workspace.projectID {
ProjectDetailScreen(session: session, projectID: id) { project in
- session.projectCatalog.selection = project; pane = .conversation
+ session.projectCatalog.selection = project; workspace.go(.pane(.conversation))
} openTask: { open($0) }
} else { Color.clear.frame(maxWidth: .infinity) }
}
@@ -86,7 +87,7 @@ struct MacMainView: View {
/// The web's Needs you pill: an inbox and its count, only when known.
private var needsPill: some View {
- Button { pane = .needs } label: {
+ Button { workspace.go(.pane(.needs)) } label: {
HStack(spacing: 6) {
Image(systemName: "tray")
if let count = session.needsYouCount { Text(count.formatted()).monospacedDigit() }
@@ -108,13 +109,10 @@ struct MacMainView: View {
/// A tapped notification: the conversation at its card, or the task in
/// the inspector beside Tasks.
private func go(_ destination: Destination) {
- pane = destination.pane
- focusCard = destination.cardID
- if let task = destination.taskID { open(task) }
+ workspace.open(destination)
}
private func open(_ taskID: String) {
- inspectedTask = taskID
- showsInspector = true
+ workspace.go(.task(taskID))
}
}
diff --git a/native/apple/Sources/EquipoMac/MacPowerCommands.swift b/native/apple/Sources/EquipoMac/MacPowerCommands.swift
new file mode 100644
index 00000000..c6b286d1
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/MacPowerCommands.swift
@@ -0,0 +1,60 @@
+import AppKit
+import EquipoKit
+import SwiftUI
+
+struct MacPowerCommands: Commands {
+ let model: EquipoAppModel
+ @FocusedValue(MacWorkspace.self) private var workspace
+ @Environment(\.openWindow) private var openWindow
+ var body: some Commands {
+ CommandGroup(replacing: .newItem) {
+ Button(EquipoStrings.text("native.mac.new_message")) {
+ MacWorkspace.newMessage(app: model, focused: workspace)
+ if workspace == nil || workspace?.standalone == true { openWindow(id: "main") }
+ }.keyboardShortcut("n")
+ }
+ CommandMenu(EquipoStrings.text("native.mac.go")) {
+ Button(EquipoStrings.text("native.mac.jump")) {
+ workspace?.palette = true
+ }.keyboardShortcut("k").disabled(workspace == nil)
+ Divider()
+ pane("tab.conversation", .conversation, "1")
+ pane("tab.needs", .needs, "2")
+ pane("tab.tasks", .tasks, "3")
+ pane("nav.projects", .projects, "4")
+ Divider()
+ Button(EquipoStrings.text("native.mac.back")) { workspace?.back() }.keyboardShortcut("[").disabled(workspace?.history.canBack != true || workspace?.standalone == true)
+ Button(EquipoStrings.text("native.mac.forward")) { workspace?.forward() }.keyboardShortcut("]").disabled(workspace?.history.canForward != true || workspace?.standalone == true)
+ Button(EquipoStrings.text("native.mac.refresh")) { Task { await workspace?.refresh() } }.keyboardShortcut("r").disabled(workspace == nil)
+ }
+ CommandMenu(EquipoStrings.text("task.title")) {
+ Button(EquipoStrings.text("native.mac.open_window")) {
+ if let workspace, let context = workspace.context {
+ openWindow(id: "task", value: MacTaskWindowID(taskID: context.taskID, session: workspace.session))
+ }
+ }.disabled(workspace?.context == nil)
+ // ⌘Return belongs to Send in an editor, and opens a task only in
+ // the palette. No global shortcut can steal an unfinished message.
+ Divider()
+ action(.merge, shortcut: "m")
+ action(.retry)
+ action(.move)
+ action(.web)
+ Divider()
+ action(.cancel)
+ }
+ }
+ private func pane(_ key: String, _ pane: Destination.Pane, _ keyEquivalent: KeyEquivalent) -> some View {
+ Button(EquipoStrings.text(.init(key))) {
+ workspace?.go(.pane(pane)); if workspace?.standalone == true { openWindow(id: "main") }
+ }.keyboardShortcut(keyEquivalent).disabled(workspace == nil)
+ }
+ @ViewBuilder private func action(_ action: MacTaskAction, shortcut: KeyEquivalent? = nil) -> some View {
+ let button = Button(action.title, role: action == .cancel ? .destructive : nil) {
+ let target = workspace
+ Task { await target?.performMenuAction(action) }
+ }.disabled(workspace?.context?.actions.contains(action) != true || workspace?.palette == true)
+ if let shortcut { button.keyboardShortcut(shortcut, modifiers: [.command, .shift]) }
+ else { button }
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/MacPowerFixture.swift b/native/apple/Sources/EquipoMac/MacPowerFixture.swift
new file mode 100644
index 00000000..fd235503
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/MacPowerFixture.swift
@@ -0,0 +1,80 @@
+#if DEBUG
+import AppKit
+import EquipoKit
+import SwiftUI
+
+/// Offline evidence from the real main window, commands and task WindowGroup.
+struct MacPowerFixture: View {
+ let model: EquipoAppModel
+ @Environment(\.openWindow) private var openWindow
+ var body: some View {
+ if let session = model.session {
+ MacMainView(model: model, session: session)
+ .preferredColorScheme(.light)
+ .task {
+ await session.refresh()
+ guard let task = session.tasks.first(where: { $0.needsYou == "merge" }) else { return }
+ let mode = ProcessInfo.processInfo.environment["EQUIPO_MAC_POWER_FIXTURE"] ?? "palette"
+ model.destination = Destination(pane: .tasks, taskID: mode == "window-merge" ? "retry" : task.id)
+ try? await Task.sleep(for: .seconds(2))
+ if mode.hasPrefix("window") {
+ openWindow(id: "task", value: MacTaskWindowID(taskID: task.id, session: session))
+ try? await Task.sleep(for: .seconds(2))
+ }
+ if mode != "window" {
+ NSApp.activate()
+ let target = mode == "window-merge" ? NSApp.windows.first { $0.title == task.title && !$0.isSheet } : NSApp.windows.first { $0.isVisible && !$0.isSheet }
+ target?.makeKeyAndOrderFront(nil)
+ try? await Task.sleep(for: .milliseconds(500))
+ // A direct performKeyEquivalent does not open SwiftUI's
+ // menus. Run their normal opening lifecycle first, so
+ // validation reads the current scene and task.
+ @MainActor func prepare(_ menu: NSMenu) {
+ menu.delegate?.menuNeedsUpdate?(menu)
+ menu.delegate?.menuWillOpen?(menu)
+ menu.update()
+ for item in menu.items {
+ if item.keyEquivalent == "k" { log("Jump enabled=\(item.isEnabled)") }
+ if let submenu = item.submenu { prepare(submenu) }
+ }
+ }
+ if let menu = NSApp.mainMenu { prepare(menu) }
+ let event = NSEvent.keyEvent(with: .keyDown, location: .zero, modifierFlags: mode.hasSuffix("merge") ? [.command, .shift] : .command,
+ timestamp: 0, windowNumber: NSApp.keyWindow?.windowNumber ?? 0, context: nil,
+ characters: mode.hasSuffix("merge") ? "M" : "k", charactersIgnoringModifiers: mode.hasSuffix("merge") ? "m" : "k", isARepeat: false, keyCode: mode.hasSuffix("merge") ? 46 : 40)!
+ let invoked = NSApp.mainMenu?.performKeyEquivalent(with: event) == true
+ log("Mac power fixture command invoked: \(invoked)")
+ guard invoked else { return }
+ }
+ try? await Task.sleep(for: .seconds(2))
+ if mode == "keyboard" {
+ guard let sheet = NSApp.windows.first(where: { $0.isVisible && $0.isSheet }) else { log("Keyboard fixture: no palette sheet"); return }
+ sheet.makeKeyAndOrderFront(nil)
+ try? await Task.sleep(for: .milliseconds(300))
+ for (characters, code) in [(String(UnicodeScalar(0xF701)!), UInt16(125)), ("\r", UInt16(36))] {
+ let event = NSEvent.keyEvent(with: .keyDown, location: .zero, modifierFlags: [], timestamp: 0,
+ windowNumber: sheet.windowNumber, context: nil,
+ characters: characters, charactersIgnoringModifiers: characters,
+ isARepeat: false, keyCode: code)!
+ sheet.sendEvent(event)
+ try? await Task.sleep(for: .milliseconds(500))
+ }
+ }
+ try? await Task.sleep(for: .seconds(2))
+ guard let path = ProcessInfo.processInfo.environment["EQUIPO_FIXTURE_CAPTURE"] else { return }
+ let windows = NSApp.windows.filter { $0.isVisible }
+ let window = mode == "window" ? windows.first(where: { !$0.isSheet && $0.title == task.title }) : windows.first(where: \.isSheet) ?? NSApp.keyWindow
+ guard let window, let view = window.contentView else { return }
+ window.appearance = NSAppearance(named: .aqua)
+ view.layoutSubtreeIfNeeded(); window.displayIfNeeded()
+ if let bitmap = view.bitmapImageRepForCachingDisplay(in: view.bounds) {
+ view.cacheDisplay(in: view.bounds, to: bitmap)
+ try? bitmap.representation(using: .png, properties: [:])?.write(to: URL(fileURLWithPath: path))
+ }
+ log("Mac power fixture captured: \(window.title)")
+ }
+ }
+ }
+ private func log(_ text: String) { try? FileHandle.standardOutput.write(contentsOf: Data((text + "\n").utf8)) }
+}
+#endif
diff --git a/native/apple/Sources/EquipoMac/MacTaskWindow.swift b/native/apple/Sources/EquipoMac/MacTaskWindow.swift
new file mode 100644
index 00000000..fe609d9c
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/MacTaskWindow.swift
@@ -0,0 +1,44 @@
+import EquipoKit
+import SwiftUI
+
+struct MacTaskWindow: View {
+ let model: EquipoAppModel
+ let identity: MacTaskWindowID?
+ @Environment(\.dismiss) private var dismiss
+ var body: some View {
+ Group {
+ if let identity, let session = model.session, identity.matches(session), !model.needsPairing {
+ MacTaskWindowContent(app: model, session: session, identity: identity)
+ .id(identity)
+ } else { Color.clear.task { dismiss() } }
+ }.modifier(MacSessionLifecycle(model: model))
+ }
+}
+
+private struct MacTaskWindowContent: View {
+ let session: EquipoSession
+ let identity: MacTaskWindowID
+ @State private var workspace: MacWorkspace
+ @State private var initialRepo: String?
+ @Environment(\.dismiss) private var dismiss
+ init(app: EquipoAppModel, session: EquipoSession, identity: MacTaskWindowID) {
+ self.session = session; self.identity = identity
+ _workspace = State(initialValue: MacWorkspace(app: app, session: session, taskID: identity.taskID))
+ _initialRepo = State(initialValue: session.task(identity.taskID)?.repo)
+ }
+ private var shouldClose: Bool {
+ workspace.context?.refused == true || !identity.matches(session) ||
+ MacTaskWindowPolicy.shouldClose(task: workspace.context?.task, initialRepo: initialRepo, status: nil)
+ }
+ var body: some View {
+ Group {
+ if let context = workspace.context { TaskScreen(context: context) }
+ }
+ .navigationTitle(workspace.context?.title ?? EquipoStrings.text("task.title"))
+ .frame(minWidth: 520, minHeight: 480)
+ .modifier(MacWorkspacePresenter(workspace: workspace))
+ .onChange(of: shouldClose, initial: true) { _, close in if close { dismiss() } }
+ .onChange(of: workspace.context?.task?.repo) { _, repo in if initialRepo == nil { initialRepo = repo } }
+
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/MacWorkspace.swift b/native/apple/Sources/EquipoMac/MacWorkspace.swift
new file mode 100644
index 00000000..85b23eac
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/MacWorkspace.swift
@@ -0,0 +1,124 @@
+import EquipoKit
+import Observation
+import SwiftUI
+
+/// One focused window's navigation and task selection. Commands never use a
+/// global selected task, so moving focus between windows changes authority.
+@MainActor @Observable final class MacWorkspace {
+ let session: EquipoSession
+ let app: EquipoAppModel
+ let standalone: Bool
+ let history = MacNavigationHistory()
+ var pane = Destination.Pane.conversation
+ var projectID: String?
+ var focusCard: String?
+ var inspector = false
+ var palette = false
+ struct QueuedAction { let action: MacTaskAction; let context: MacTaskContext; let navigation: Int }
+ private var navigationRevision = 0
+ var pendingAction: QueuedAction?
+ let composerDraft = MacComposerDraft()
+ var composerFocus = 0
+ var context: MacTaskContext?
+ var mainRequest = 0
+ init(app: EquipoAppModel, session: EquipoSession, taskID: String? = nil) {
+ self.app = app; self.session = session; standalone = taskID != nil
+ if let taskID { context = MacTaskContext(session: session, taskID: taskID) }
+ }
+ private struct IndexSource: Equatable {
+ let tasks: [ThinTask]; let needs: [ThinTask]; let projects: [ThinProject]
+ }
+ @ObservationIgnored private var indexSource: IndexSource?
+ @ObservationIgnored private var cachedIndex = MacJumpIndex(tasks: [], needs: [], projects: [])
+ @ObservationIgnored private(set) var indexGeneration = 0
+ var index: MacJumpIndex {
+ let source = IndexSource(tasks: session.tasks, needs: session.needsYou ?? [], projects: session.projectCatalog.items)
+ if source != indexSource {
+ cachedIndex = MacJumpIndex(tasks: source.tasks, needs: source.needs, projects: source.projects)
+ indexSource = source; indexGeneration += 1
+ }
+ return cachedIndex
+ }
+ func open(_ destination: Destination) {
+ go(.pane(destination.pane))
+ focusCard = destination.cardID
+ if destination.focusComposer { composerFocus += 1 }
+ if let project = destination.projectID { go(.project(project)) }
+ if let task = destination.taskID { go(.task(task)) }
+ if let action = destination.macAction, let context {
+ let navigation = navigationRevision
+ Task { await performRoutedAction(action, context: context, navigation: navigation) }
+ }
+ }
+ func performMenuAction(_ action: MacTaskAction) async {
+ guard let context, !palette, context.actions.contains(action) else { return }
+ inspector = true
+ await context.perform(action)
+ }
+ func go(_ destination: MacDestination, record: Bool = true) {
+ navigationRevision += 1
+ palette = false; pendingAction = nil
+ if standalone {
+ switch destination {
+ case .pane(let pane): app.destination = Destination(pane: pane)
+ case .task(let id): app.destination = Destination(pane: .tasks, taskID: id)
+ case .project(let id): app.destination = Destination(pane: .projects, projectID: id)
+ }
+ mainRequest += 1
+ return
+ }
+ if record { history.go(destination) }
+ switch destination {
+ case .pane(let value): pane = value
+ case .project(let id): pane = .projects; projectID = id
+ case .task(let id):
+ pane = history.pane
+ if context?.taskID != id { context = MacTaskContext(session: session, taskID: id) }
+ inspector = true
+ }
+ }
+ func back() { if let destination = history.back() { go(destination, record: false) } }
+ func forward() { if let destination = history.forward() { go(destination, record: false) } }
+ func newMessage() {
+ go(.pane(.conversation)); composerFocus += 1
+ if standalone { app.destination = Destination(pane: .conversation, focusComposer: true) }
+ }
+ static func newMessage(app: EquipoAppModel, focused: MacWorkspace?) {
+ if let focused { focused.newMessage() }
+ else { app.destination = Destination(pane: .conversation, focusComposer: true) }
+ }
+ /// A task window keeps its identity. Actions for another highlighted task
+ /// are presented in the main window, bound to that task and a fresh read.
+ func queuePaletteAction(_ action: MacTaskAction, context: MacTaskContext) -> Bool {
+ guard context.actions.contains(action) else { return false }
+ if standalone && self.context?.taskID != context.taskID {
+ app.destination = Destination(pane: .tasks, taskID: context.taskID, macAction: action)
+ return true
+ }
+ self.context = context; inspector = true
+ pendingAction = QueuedAction(action: action, context: context, navigation: navigationRevision)
+ return false
+ }
+ func performRoutedAction(_ action: MacTaskAction, context: MacTaskContext, navigation: Int? = nil) async {
+ let expected = navigation ?? navigationRevision
+ await context.load()
+ guard self.context === context, expected == navigationRevision else { return }
+ await context.perform(action)
+ }
+ func refresh() async { if let context { await context.refresh() } else { await session.refresh() } }
+}
+
+struct MacTaskWindowID: Codable, Hashable {
+ let taskID: String
+ let origin: String
+ let account: String
+ @MainActor init(taskID: String, session: EquipoSession) {
+ self.taskID = taskID; origin = session.origin.absoluteString
+ // Local lifetime identity is deliberately not a credential. Restored
+ // windows after a restart close; they cannot follow an account switch.
+ account = session.presentationID.uuidString
+ }
+ @MainActor func matches(_ session: EquipoSession) -> Bool {
+ origin == session.origin.absoluteString && account == session.presentationID.uuidString && session.lifetime.isActive
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift b/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift
new file mode 100644
index 00000000..471a6923
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/MacPowerReviewTests.swift
@@ -0,0 +1,141 @@
+#if os(macOS)
+import AppKit
+import SwiftUI
+import Testing
+@testable import EquipoKit
+@testable import EquipoMac
+
+@MainActor @Suite(.serialized) struct MacPowerReviewTests {
+ @Test func paneNavigationKeepsInspectorAndDraftButClearsQueuedAction() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ await detail.load()
+ let workspace = MacWorkspace(app: EquipoAppModel(store: MemorySecretStore()), session: detail.session)
+ let context = MacTaskContext(detail: detail)
+ _ = workspace.queuePaletteAction(.cancel, context: context)
+ workspace.composerDraft.text = "unfinished message"
+ workspace.go(.pane(.needs))
+ let cleared = workspace.pendingAction == nil
+ #expect(cleared)
+ #expect(workspace.context === context && workspace.inspector)
+ workspace.go(.pane(.conversation))
+ #expect(workspace.composerDraft.text == "unfinished message")
+ let first = LiveTranscript(session: detail.session, openTask: { _ in }, draft: workspace.composerDraft)
+ #expect(first.composer.text == "unfinished message")
+ first.composer.editor.string = "still writing"
+ first.composer.textDidChange(Notification(name: NSText.didChangeNotification))
+ let second = LiveTranscript(session: detail.session, openTask: { _ in }, draft: workspace.composerDraft)
+ #expect(second.composer.text == "still writing")
+ second.composer.submit()
+ #expect(workspace.composerDraft.text.isEmpty)
+ }
+ @Test(arguments: ["notification", "palette", "task-window"])
+ func sameTaskReopenUsesVisibleModelAndRevealsHiddenInspector(_ source: String) async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ let workspace = MacWorkspace(app: EquipoAppModel(store: MemorySecretStore()), session: detail.session)
+ workspace.go(.task(detail.taskID))
+ let old = try #require(workspace.context)
+ await old.load()
+ if source == "palette" {
+ let fresh = MacTaskContext(session: detail.session, taskID: detail.taskID)
+ await fresh.load()
+ _ = workspace.queuePaletteAction(.merge, context: fresh)
+ } else if source == "task-window" {
+ let other = MacWorkspace(app: workspace.app, session: detail.session, taskID: "other")
+ other.go(.task(detail.taskID))
+ workspace.open(try #require(workspace.app.destination))
+ } else {
+ workspace.open(Destination(pane: .tasks, taskID: detail.taskID))
+ }
+ let current = try #require(workspace.context)
+ let screen = TaskScreen(context: current)
+ #expect(screen.model === current.detail)
+ workspace.inspector = false
+ await workspace.performMenuAction(.merge)
+ #expect(workspace.inspector)
+ #expect(screen.model.confirmation?.action == .merge)
+ }
+ @Test func replacingSameTaskContextInMountedScreenPresentsItsSheet() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ let old = MacTaskContext(detail: detail); await old.load()
+ let host = NSHostingView(rootView: TaskScreen(context: old))
+ let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 820, height: 900), styleMask: [.titled], backing: .buffered, defer: false)
+ window.isReleasedWhenClosed = false
+ window.contentView = host; window.makeKeyAndOrderFront(nil)
+ defer { if let sheet = window.attachedSheet { window.endSheet(sheet) }; window.orderOut(nil); window.contentView = nil; window.close() }
+ try await Task.sleep(for: .milliseconds(150))
+ let fresh = MacTaskContext(session: detail.session, taskID: detail.taskID)
+ await fresh.load()
+ host.rootView = TaskScreen(context: fresh)
+ host.layoutSubtreeIfNeeded()
+ try await Task.sleep(for: .milliseconds(150))
+ await fresh.perform(.merge)
+ for _ in 0..<30 where window.attachedSheet == nil { try await Task.sleep(for: .milliseconds(50)) }
+ #expect(window.attachedSheet != nil)
+ #expect(old.detail.confirmation == nil)
+ #expect(fresh.detail.confirmation?.action == .merge)
+ }
+ @Test func navigationCancelsQueuedActionEvenWhenInspectorKeepsItsContext() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer()); await detail.load()
+ let workspace = MacWorkspace(app: EquipoAppModel(store: MemorySecretStore()), session: detail.session)
+ let context = MacTaskContext(detail: detail)
+ _ = workspace.queuePaletteAction(.cancel, context: context)
+ let pending = try #require(workspace.pendingAction)
+ workspace.go(.pane(.needs))
+ await workspace.performRoutedAction(pending.action, context: pending.context, navigation: pending.navigation)
+ #expect(detail.confirmation == nil)
+ }
+ @Test func taskWindowActionStaysOnItsOwnTask() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ let app = EquipoAppModel(store: MemorySecretStore())
+ let workspace = MacWorkspace(app: app, session: detail.session, taskID: detail.taskID)
+ let own = try #require(workspace.context); await own.load()
+ #expect(!workspace.queuePaletteAction(.cancel, context: own))
+ #expect(workspace.pendingAction?.context === own)
+ #expect(app.destination == nil)
+ await workspace.performMenuAction(.cancel)
+ #expect(own.detail.confirmation?.action == .cancel)
+ }
+ @Test func briefOnlyMatchesWholeWordsAndTitlesWin() throws {
+ var title = try TaskDetailTests.task(); title.id = "title"; title.title = "Fix login button"; title.brief = ""; title.project = "zz"; title.repo = "zz"; title.branch = "zz"
+ var partial = title; partial.id = "partial"; partial.title = "Fix rebuttoning"; partial.brief = ""
+ var brief = title; brief.id = "brief"; brief.title = "Unrelated"; brief.brief = "button narrow"
+ let index = MacJumpIndex(tasks: [brief, partial, title], needs: [], projects: [])
+ #expect(index.results("button").prefix(3).map(\.target) == [.task("title"), .task("partial"), .task("brief")])
+ #expect(!index.results("but").contains { $0.target == .task("brief") })
+ #expect(!index.results("bn").contains { $0.target == .task("brief") })
+ brief.brief = "a button"; brief.title = "XYZ"
+ #expect(!MacJumpIndex(tasks: [brief], needs: [], projects: []).results("a").contains { $0.target == .task("brief") })
+ }
+ @Test func indexRebuildsForDataChangesButNotQueries() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ let workspace = MacWorkspace(app: EquipoAppModel(store: MemorySecretStore()), session: detail.session)
+ _ = workspace.index
+ let generation = workspace.indexGeneration
+ _ = workspace.index.results("one"); _ = workspace.index.results("two")
+ #expect(workspace.indexGeneration == generation)
+ await detail.session.refresh()
+ _ = workspace.index.results("Swipe")
+ #expect(workspace.indexGeneration == generation + 1)
+ }
+ @Test func presentationContractsKeepChildrenAndUseTheCurrentContext() throws {
+ let sources = URL(fileURLWithPath: #filePath).deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().appendingPathComponent("Sources")
+ let palette = try String(contentsOf: sources.appendingPathComponent("EquipoMac/MacJumpPalette.swift"), encoding: .utf8)
+ #expect(palette.contains(".accessibilityElement(children: .contain)\n .accessibilityLabel"))
+ for key in ["chat.card.not_now", "native.mac.open_window"] { #expect(palette.contains("Button(EquipoStrings.text(\"" + key + "\")")) }
+ #expect(palette.contains("Text(result.title)"))
+ #expect(palette.contains("guard Self.canActivate(firstResponder: NSApp.keyWindow?.firstResponder)"))
+ let screen = try String(contentsOf: sources.appendingPathComponent("EquipoKit/UI/Screens/TaskDetailScreen.swift"), encoding: .utf8)
+ #expect(screen.contains("macContext?.detail ?? ownedModel!"))
+ let app = try String(contentsOf: sources.appendingPathComponent("EquipoMac/EquipoMacApp.swift"), encoding: .utf8)
+ #expect(app.contains(".restorationBehavior(.disabled)"))
+ let commands = try String(contentsOf: sources.appendingPathComponent("EquipoMac/MacPowerCommands.swift"), encoding: .utf8)
+ #expect(commands.contains("performMenuAction(action)"))
+ }
+ @Test func markedTextDoesNotActivatePalette() {
+ let editor = NSTextView()
+ #expect(MacJumpPalette.canActivate(firstResponder: editor))
+ editor.setMarkedText("未", selectedRange: NSRange(location: 0, length: 0), replacementRange: NSRange(location: NSNotFound, length: 0))
+ #expect(!MacJumpPalette.canActivate(firstResponder: editor))
+ }
+}
+#endif
diff --git a/native/apple/Tests/EquipoKitTests/MacPowerTests.swift b/native/apple/Tests/EquipoKitTests/MacPowerTests.swift
new file mode 100644
index 00000000..e248e448
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/MacPowerTests.swift
@@ -0,0 +1,138 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@MainActor @Suite struct MacPowerTests {
+ @Test func fuzzySearchIsOrderedCaseAndDiacriticInsensitive() {
+ #expect(MacJumpIndex.score("tile", in: "Tile labels")! > MacJumpIndex.score("tile", in: "The icon labels overlap")!)
+ #expect(MacJumpIndex.score("cafe", in: "Café") != nil)
+ #expect(MacJumpIndex.score("abc", in: "cba") == nil)
+ #expect(MacJumpIndex.score("", in: "anything") != nil)
+ }
+ @Test func searchIncludesBriefBranchProjectsAndNeedsWithoutDuplicateTasks() throws {
+ var task = try TaskDetailTests.task(); task.brief = "Fix narrow phones"; task.branch = "equipo/retina"
+ let projects: ThinList<ThinProject> = try Fixture.decode("thin/projects")
+ let index = MacJumpIndex(tasks: [task], needs: [task], projects: projects.items ?? [])
+ #expect(index.results("narrow").map(\.target) == [.task(task.id)])
+ #expect(index.results("retina").first?.target == .task(task.id))
+ #expect(index.results("").filter { $0.target == .task(task.id) }.count == 1)
+ #expect(index.results("").first { $0.target == .task(task.id) }?.needsYou == true)
+ #expect(index.results("").contains { $0.target == .pane(.conversation) })
+ #expect(index.results("").contains { if case .project = $0.target { true } else { false } })
+ }
+ @Test func duplicateSearchUsesTheLatestRevisionAndHidesArchivedProjects() throws {
+ var old = try TaskDetailTests.task(); old.title = "Old title"; old.revision = 1
+ var latest = old; latest.title = "Latest title"; latest.revision = 2
+ var projects: ThinList<ThinProject> = try Fixture.decode("thin/projects")
+ projects.items?[0].state = "archived"
+ for (tasks, needs) in [([latest], [old]), ([old], [latest])] {
+ let index = MacJumpIndex(tasks: tasks, needs: needs, projects: projects.items ?? [])
+ #expect(index.results("Latest title").first?.title == "Latest title")
+ #expect(index.results("").filter { $0.target == .task(old.id) }.count == 1)
+ #expect(!index.results("").contains { $0.target == .project(projects.items![0].id) })
+ }
+ }
+ @Test func historyDoesNotRepeatAndNewNavigationDropsForward() {
+ let history = MacNavigationHistory()
+ history.go(.pane(.tasks)); history.go(.task("a")); history.go(.task("a"))
+ #expect(history.back() == .pane(.tasks))
+ #expect(history.back() == .pane(.conversation))
+ #expect(history.back() == nil)
+ #expect(history.forward() == .pane(.tasks))
+ history.go(.project("p")); #expect(history.forward() == nil)
+ }
+ @Test func paletteAndMenuReuseTaskRulesAndConfirmBeforeWriting() async throws {
+ for action in [MacTaskAction.merge, .cancel] {
+ let server = TaskDetailServer(), detail = try TaskDetailModelTests.model(server)
+ await detail.load(); detail.loaded?.mergeOffered = true
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ snapshot.cards = snapshot.cards?.map { var card = $0; card.state = "answered"; card.revision += 1; return card }
+ detail.session.apply(snapshot)
+ #expect(detail.decision.card == nil)
+ let context = MacTaskContext(detail: detail)
+ #expect(context.actions.contains(action))
+ await context.perform(action)
+ #expect(await server.writes == 0)
+ #expect(detail.confirmation?.action == (action == .merge ? .merge : .cancel))
+ await detail.confirm(); #expect(await server.writes == 1)
+ }
+ }
+ @Test func actionsRequireFreshReadOwnerCreatorAndNotBusy() async throws {
+ let server = TaskDetailServer(), detail = try TaskDetailModelTests.model(server)
+ let context = MacTaskContext(detail: detail)
+ #expect(context.actions.isEmpty)
+ await detail.load(); detail.loaded?.mergeOffered = true
+ #expect(context.actions.contains(.merge))
+ detail.busy = true; #expect(context.actions.isEmpty)
+ await context.perform(.merge); #expect(detail.confirmation == nil)
+ detail.busy = false
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ snapshot.me.address = "other@example.com"; detail.session.apply(snapshot)
+ #expect(!context.actions.contains(.merge)); #expect(!context.actions.contains(.cancel))
+ #expect(context.actions.contains(.move))
+ snapshot.me.role = "member"; detail.session.apply(snapshot)
+ #expect(!context.actions.contains(.move))
+ detail.readFailure = "offline"; #expect(context.actions.isEmpty)
+ }
+ @Test func mergeCardUsesCardConfirmationAndRetryUsesTerminatedGuard() async throws {
+ let server = TaskDetailServer(), detail = try TaskDetailModelTests.model(server)
+ await detail.load()
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ let card = try TaskDecisionTests.card(try #require(detail.task)); snapshot.cards = [card]
+ detail.session.apply(snapshot)
+ let context = MacTaskContext(detail: detail)
+ await context.perform(.merge)
+ #expect(detail.confirmation?.card?.id == card.id)
+ #expect(await server.writes == 0)
+ detail.loaded?.steps?[2].state = "failed"; detail.loaded?.steps?[2].terminated = true
+ #expect(context.actions.contains(.retry))
+ detail.loaded?.steps?[2].terminated = false
+ #expect(!context.actions.contains(.retry))
+ }
+ @Test func webActionRequiresAReadableTaskAndUsesTheFixedAllowlistedPath() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ var opened: [URL] = []
+ let context = MacTaskContext(detail: detail, openWeb: { url, _ in opened.append(url) })
+ await context.perform(.web); #expect(opened.isEmpty)
+ await context.load(); await context.perform(.web)
+ #expect(opened.map(\.absoluteString) == ["https://task-detail.invalid/tasks/tkqsrho7oq3n"])
+ detail.busy = true; await context.perform(.web); #expect(opened.count == 1)
+ }
+ @Test func refusedAndStaleContextsCannotActAndNetworkErrorsDoNotCloseAWindow() async throws {
+ let server = TaskDetailServer(), detail = try TaskDetailModelTests.model(server)
+ let context = MacTaskContext(detail: detail)
+ await context.load(); detail.loaded?.mergeOffered = true
+ #expect(context.actions.contains(.merge))
+ let loaded = detail.loaded
+ await detail.session.refresh()
+ detail.loaded?.revision = 0
+ #expect(context.actions.isEmpty)
+ detail.loaded = loaded
+ for status in [401, 403, 404] {
+ await server.refuseRead(status); await context.load()
+ #expect(context.refused); #expect(context.actions.isEmpty)
+ detail.readFailure = nil; #expect(context.actions.isEmpty)
+ await context.perform(.cancel); #expect(detail.confirmation == nil)
+ }
+ await server.refuseRead(500); await context.load()
+ #expect(!context.refused); #expect(context.actions.isEmpty)
+ await server.refuseRead(200); await context.load()
+ #expect(!context.actions.isEmpty)
+ detail.session.lifetime.end()
+ #expect(context.actions.isEmpty)
+ }
+ @Test func windowClosesOnlyForTerminalStateOrVerifiedLossOfVisibility() throws {
+ var task = try TaskDetailTests.task()
+ #expect(!MacTaskWindowPolicy.shouldClose(task: task, initialRepo: task.repo, status: nil))
+ #expect(!MacTaskWindowPolicy.shouldClose(task: nil, initialRepo: task.repo, status: 500))
+ #expect(!MacTaskWindowPolicy.shouldClose(task: task, initialRepo: nil, status: nil))
+ for status in [401, 403, 404] { #expect(MacTaskWindowPolicy.shouldClose(task: nil, initialRepo: task.repo, status: status)) }
+ task.stage = "cancelled"
+ #expect(MacTaskWindowPolicy.shouldClose(task: task, initialRepo: task.repo, status: nil))
+ task.stage = "done"
+ #expect(!MacTaskWindowPolicy.shouldClose(task: task, initialRepo: task.repo, status: nil))
+ #expect(MacTaskWindowPolicy.shouldClose(task: task, initialRepo: "another/repo", status: nil))
+ task.moving = true
+ #expect(MacTaskWindowPolicy.shouldClose(task: task, initialRepo: task.repo, status: nil))
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift b/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift
new file mode 100644
index 00000000..f4dd6b86
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/MacWorkspaceTests.swift
@@ -0,0 +1,98 @@
+#if os(macOS)
+import AppKit
+import SwiftUI
+import Testing
+@testable import EquipoKit
+@testable import EquipoMac
+
+@MainActor @Suite(.serialized) struct MacWorkspaceTests {
+ @Test func eachWindowOwnsSelectionAndHistory() async throws {
+ let detail = try TaskDetailModelTests.model(TaskDetailServer())
+ let app = EquipoAppModel(store: MemorySecretStore())
+ let one = MacWorkspace(app: app, session: detail.session)
+ let two = MacWorkspace(app: app, session: detail.session)
+ one.go(.task(detail.taskID)); two.go(.task("other"))
+ #expect(one.context?.taskID == detail.taskID)
+ #expect(two.context?.taskID == "other")
+ one.go(.project("project")); #expect(one.pane == .projects); #expect(one.projectID == "project")
+ one.back(); #expect(one.context?.taskID == detail.taskID); #expect(one.pane == .conversation)
+ one.back(); #expect(one.pane == .conversation); #expect(one.inspector)
+ one.forward(); #expect(one.inspector)
+ one.newMessage(); #expect(one.pane == .conversation); #expect(one.composerFocus == 1)
+ #expect(two.context?.taskID == "other")
+ }
+ @Test func windowsCannotFollowAccountChangesOrRestoredOldSessions() throws {
+ let session = try TaskDetailModelTests.model(TaskDetailServer()).session
+ let other = try TaskDetailModelTests.model(TaskDetailServer()).session
+ let identity = MacTaskWindowID(taskID: "task", session: session)
+ #expect(identity.matches(session))
+ #expect(!identity.matches(other))
+ let encoded = try JSONEncoder().encode(identity)
+ #expect(try JSONDecoder().decode(MacTaskWindowID.self, from: encoded) == identity)
+ #expect(!String(decoding: encoded, as: UTF8.self).contains("token"))
+ var changedOrigin = try #require(JSONSerialization.jsonObject(with: encoded) as? [String: Any])
+ changedOrigin["origin"] = "https://other-team.invalid"
+ let changed = try JSONDecoder().decode(MacTaskWindowID.self, from: JSONSerialization.data(withJSONObject: changedOrigin))
+ #expect(!changed.matches(session))
+ session.lifetime.end()
+ #expect(!identity.matches(session))
+ }
+ @Test func taskWindowsRouteGoToTheMainWindow() throws {
+ let session = try TaskDetailModelTests.model(TaskDetailServer()).session
+ let app = EquipoAppModel(store: MemorySecretStore())
+ let window = MacWorkspace(app: app, session: session, taskID: "task")
+ window.go(.project("project"))
+ #expect(app.destination?.projectID == "project")
+ #expect(window.context?.taskID == "task")
+ #expect(window.mainRequest == 1)
+ window.newMessage(); #expect(app.destination?.pane == .conversation)
+ }
+ @Test func paletteActionForAnotherTaskRoutesWithoutReplacingItsWindow() async throws {
+ let server = TaskDetailServer(), detail = try TaskDetailModelTests.model(server)
+ await detail.load()
+ let target = MacTaskContext(detail: detail)
+ let app = EquipoAppModel(store: MemorySecretStore())
+ let window = MacWorkspace(app: app, session: detail.session, taskID: "original")
+ detail.busy = true
+ #expect(!window.queuePaletteAction(.cancel, context: target)); #expect(app.destination == nil)
+ detail.busy = false
+ #expect(window.queuePaletteAction(.cancel, context: target))
+ #expect(window.context?.taskID == "original")
+ #expect(app.destination?.taskID == target.taskID)
+ #expect(app.destination?.macAction == .cancel)
+ #expect(await server.writes == 0)
+ let main = MacWorkspace(app: app, session: detail.session)
+ #expect(!main.queuePaletteAction(.cancel, context: target))
+ #expect(main.pendingAction?.action == .cancel && main.context === target)
+ await main.performRoutedAction(.cancel, context: target)
+ #expect(detail.confirmation?.action == .cancel)
+ #expect(await server.writes == 0)
+ detail.confirmation = nil; main.go(.task("other"))
+ await main.performRoutedAction(.cancel, context: target)
+ #expect(detail.confirmation == nil)
+ MacWorkspace.newMessage(app: app, focused: nil)
+ #expect(app.destination?.pane == .conversation && app.destination?.focusComposer == true)
+ }
+ @Test func commandReturnSendsButShiftReturnAndMarkedTextDoNot() throws {
+ let editor = ComposerEditor(); var sends = 0
+ editor.onSubmit = { sends += 1 }
+ let event = try #require(NSEvent.keyEvent(with: .keyDown, location: .zero, modifierFlags: .command, timestamp: 0,
+ windowNumber: 0, context: nil, characters: "\r", charactersIgnoringModifiers: "\r", isARepeat: false, keyCode: 36))
+ editor.keyDown(with: event); #expect(sends == 1)
+ let shifted = try #require(NSEvent.keyEvent(with: .keyDown, location: .zero, modifierFlags: [.command, .shift], timestamp: 0,
+ windowNumber: 0, context: nil, characters: "\r", charactersIgnoringModifiers: "\r", isARepeat: false, keyCode: 36))
+ editor.keyDown(with: shifted); #expect(sends == 1)
+ editor.setMarkedText("unfinished", selectedRange: NSRange(location: 0, length: 0), replacementRange: NSRange(location: NSNotFound, length: 0))
+ editor.keyDown(with: event); #expect(sends == 1)
+ }
+ @Test func focusRequestSurvivesAttachingTheConversationToAWindow() throws {
+ let session = try TaskDetailModelTests.model(TaskDetailServer()).session
+ let transcript = LiveTranscript(session: session, openTask: { _ in })
+ transcript.focusComposer()
+ let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 900, height: 700), styleMask: [.titled], backing: .buffered, defer: false)
+ window.contentView = transcript
+ #expect(window.firstResponder === transcript.composer.editor)
+ window.contentView = nil
+ }
+}
+#endif
diff --git a/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift b/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift
index 476839cc..94837ecc 100644
--- a/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift
+++ b/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift
@@ -260,7 +260,7 @@ import Testing
}
-private actor TaskDetailServer: EquipoTransport {
+actor TaskDetailServer: EquipoTransport {
nonisolated let origin = URL(string: "https://task-detail.invalid")!
var requests: [APIRequest] = []
var projectReads = 0
@@ -271,6 +271,8 @@ private actor TaskDetailServer: EquipoTransport {
var held = false
var conflict = false
var revision = 9
+ var readStatus = 200
+ func refuseRead(_ status: Int) { readStatus = status }
var pending: [CheckedContinuation<Void, Never>] = []
func configure(held: Bool = false, conflict: Bool = false) { self.held = held; self.conflict = conflict }
func finish() { held = false; for c in pending { c.resume() }; pending = [] }
@@ -278,6 +280,7 @@ private actor TaskDetailServer: EquipoTransport {
requests.append(request)
if request.method == "GET", request.path == "/tasks/tkqsrho7oq3n" {
reads += 1
+ if readStatus != 200 { return APIResponse(status: readStatus, data: Data()) }
var json = try JSONSerialization.jsonObject(with: Fixture.data("thin/task")) as! [String: Any]
json["revision"] = revision
return APIResponse(status: 200, data: try JSONSerialization.data(withJSONObject: json))
diff --git a/native/scripts/check-strings.py b/native/scripts/check-strings.py
index 294b5e06..d0ee7e51 100755
--- a/native/scripts/check-strings.py
+++ b/native/scripts/check-strings.py
@@ -20,7 +20,7 @@ plurals = json.loads((native / 'scripts/plurals.json').read_text())
def catalog():
return {'sourceLanguage': 'en', 'version': '1.0', 'strings': {
- k: {**({'comment': ('COPY APPROVED: Luna, 2026-11-27.' if k == 'native.share.earlier_unconfirmed' else 'COPY APPROVED: Luna, 2026-11-26.')} if k.startswith(('native.changes.', 'native.share.', 'native.screenshot.')) or k in ('api.preview_changed', 'api.preview_expired') else {}), 'extractionState': 'manual', 'localizations': {'en': plurals.get(k, {'stringUnit': {'state': 'translated', 'value': v}})}}
+ k: {**({'comment': ('COPY APPROVED: Luna, 2026-11-27.' if k == 'native.share.earlier_unconfirmed' or k.startswith('native.mac.') else 'COPY APPROVED: Luna, 2026-11-26.')} if k.startswith(('native.changes.', 'native.share.', 'native.screenshot.', 'native.mac.')) or k in ('api.preview_changed', 'api.preview_expired') else {}), 'extractionState': 'manual', 'localizations': {'en': plurals.get(k, {'stringUnit': {'state': 'translated', 'value': v}})}}
for k, v in sorted(source.items())}}
def used_keys():
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index 6f6ff7ed..60f0272e 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -503,6 +503,16 @@
"native.needs.merged_at": "Merged into %1$@ at %2$@",
"api.preview_changed": "The change has been updated. Review it again.",
"api.preview_expired": "This preview expired. Open it again.",
+ "native.mac.back": "Back",
+ "native.mac.forward": "Forward",
+ "native.mac.go": "Go",
+ "native.mac.jump": "Jump to…",
+ "native.mac.new_message": "New Message",
+ "native.mac.no_results": "No matches",
+ "native.mac.open_window": "Open in New Window",
+ "native.mac.refresh": "Refresh",
+ "native.mac.search": "Search tasks, projects and actions",
+ "native.mac.selected_task": "For the selected task",
"native.share.title": "Send to Equipo",
"native.share.automatic": "Equipo will choose",
"native.share.signed_out": "Open Equipo and sign in, then share this again.",
diff --git a/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings b/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
index 60d9d5eb..7e6bb3b5 100644
--- a/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
+++ b/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
@@ -1517,6 +1517,126 @@
}
}
},
+ "native.mac.back": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Back"
+ }
+ }
+ }
+ },
+ "native.mac.forward": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Forward"
+ }
+ }
+ }
+ },
+ "native.mac.go": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Go"
+ }
+ }
+ }
+ },
+ "native.mac.jump": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Jump to…"
+ }
+ }
+ }
+ },
+ "native.mac.new_message": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "New Message"
+ }
+ }
+ }
+ },
+ "native.mac.no_results": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No matches"
+ }
+ }
+ }
+ },
+ "native.mac.open_window": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open in New Window"
+ }
+ }
+ }
+ },
+ "native.mac.refresh": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Refresh"
+ }
+ }
+ }
+ },
+ "native.mac.search": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Search tasks, projects and actions"
+ }
+ }
+ }
+ },
+ "native.mac.selected_task": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "For the selected task"
+ }
+ }
+ }
+ },
"native.needs.done_at": {
"extractionState": "manual",
"localizations": {