Merge branch 'native/stopped-work' into main
35 files changed,
+3,379
−49
.rastrillo/budgets.txt+1 −1docs/superpowers/plans/CONTROLLER-REPORT-native-stopped-work.md+205 −0internal/equipo/chat/step_log_visibility_test.go+39 −0internal/equipo/chat/tasks.go+11 −0native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings+1,056 −0native/apple/Sources/EquipoKit/API/Client.swift+3 −3native/apple/Sources/EquipoKit/API/StoppedWork.swift+72 −0native/apple/Sources/EquipoKit/API/Thin.swift+13 −0native/apple/Sources/EquipoKit/Presentation/HeldLead.swift+25 −0native/apple/Sources/EquipoKit/Presentation/Pause.swift+42 −4native/apple/Sources/EquipoKit/Presentation/ResumeAction.swift+21 −0native/apple/Sources/EquipoKit/Presentation/StoppedReason.swift+9 −0native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings+1,056 −0native/apple/Sources/EquipoKit/Session/EquipoSession.swift+5 −3native/apple/Sources/EquipoKit/UI/Components.swift+23 −17native/apple/Sources/EquipoKit/UI/LiveCards.swift+7 −3native/apple/Sources/EquipoKit/UI/RosterViews.swift+1 −1native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift+1 −1native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift+1 −0native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift+2 −2native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift+54 −0native/apple/Sources/EquipoKit/UI/StepLogView.swift+61 −0native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift+99 −0native/apple/Sources/EquipoKit/UI/TaskPauseActions.swift+62 −0native/apple/Sources/EquipoKit/UI/WrappingLogText.swift+34 −0native/apple/Sources/EquipoMac/EquipoMacApp.swift+19 −4native/apple/Sources/EquipoMac/LiveTranscript.swift+11 −6native/apple/Sources/EquipoMac/ResizingHostingView.swift+31 −0native/apple/Sources/EquipoMac/StoppedConversationFixture.swift+26 −0native/apple/Tests/EquipoKitTests/ResizingHostTests.swift+38 −0native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift+241 −0native/ios/Sources/EquipoPhoneApp.swift+8 −1native/scripts/check-parity.py+4 −1native/scripts/check-strings.py+1 −1native/scripts/strings.json+97 −1
CI passed — run details
CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/main: Type Size Avail | ext4 96G 86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type Size Avail | ext4 96G 86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: image pulled in 9.8s
ci-box: claude: fetched and verified in 15.7s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.2s
ci-box: libwrap: fetched and verified in 0.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: pi: installed and verified in 7.2s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 3.7s
ci-box: file times set from content: 3011 files, 193 directories
ci-box: ready in 29.3s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok amadan.net/oficina/equipo/internal/equipotest 0.145s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
4.0s
+ go list -export -test -tags testbuild -f ./...
3.9s
+ go list -export -test -tags browser,testbuild -f ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
3.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
receipt: test step 1m15.532s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m13.67s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.67s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 55.93, cpu waiting 36.65%, memory waiting 0.00%, io waiting 0.42%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
receipt: test step 1m15.942s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m14.268s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m14.27s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 55.93, cpu waiting 36.85%, memory waiting 0.00%, io waiting 0.40%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
receipt: test step 1m16.596s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m14.52s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.15s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.06s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.31s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 55.93, cpu waiting 36.85%, memory waiting 0.00%, io waiting 0.40%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
receipt: test step 1m13.282s 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 1m11.257s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.05s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 18.77s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.89s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.55s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 55.49, cpu waiting 36.67%, memory waiting 0.00%, io waiting 0.43%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
receipt: test step 1m31.214s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m29.432s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m0.63s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.02s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.12s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.07s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.59s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 59.27, cpu waiting 36.73%, memory waiting 0.00%, io waiting 0.32%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
receipt: test step 2m43.771s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m41.887s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m36.35s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.42s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.55s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.44s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 25.33, cpu waiting 12.38%, memory waiting 0.00%, io waiting 0.09%
--- 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 2m7.952s 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 2m6.369s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.17s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.66s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.53s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 40.82, cpu waiting 21.66%, memory waiting 0.00%, io waiting 0.16%
--- 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 1m37.42s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m35.659s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.1s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.5s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/thintest TestContractRetryFailedPreviewAfterMerge
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 59.81, cpu waiting 35.68%, memory waiting 0.00%, io waiting 0.28%
--- 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 4m45.199s, over the 45s its record on line 44 allows; reported only, timing fails on CI
receipt: test step 4m59.15s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 4m45.199s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.94s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.79s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.58, cpu waiting 1.28%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 50.318s 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 49.051s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.02s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 52.06, cpu waiting 31.65%, memory waiting 0.00%, io waiting 0.63%
--- 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 59.623s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 57.564s amadan.net/oficina/equipo/internal/runner
receipt: slow test 47.48s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 43.96s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 56.07, cpu waiting 35.48%, memory waiting 0.00%, io waiting 0.55%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed
receipt: test step 36.23s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 35.176s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.31s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.89s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 37.33, cpu waiting 21.71%, memory waiting 0.00%, io waiting 0.79%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 39.4%, load 26.65
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
receipt: test step 1m8.515s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.545s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.03s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.93s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.82s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.08s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.06s amadan.net/oficina/equipo/internal/equipotest TestAccountConcurrentDuplicate
machine: 32 CPUs, load 59.81, cpu waiting 34.70%, memory waiting 0.00%, io waiting 0.27%
--- 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 39.4%, load 26.65
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest
receipt: test step 1m18.685s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.793s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.72s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 20.7s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.68s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.67s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.67s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 52.67, cpu waiting 29.75%, memory waiting 0.00%, io waiting 0.23%
--- 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 39.1%, load 26.65
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
receipt: test step 1m14.474s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m9.218s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.14s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.41s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.39s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 10.32s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 7.35s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 52.67, cpu waiting 31.69%, memory waiting 0.00%, io waiting 0.25%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 39.4%, load 26.65
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest
receipt: test step 1m9.243s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.287s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.88s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.38s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.35s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.45s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
receipt: slow test 23.39s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 59.81, cpu waiting 34.70%, memory waiting 0.00%, io waiting 0.27%
--- 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 39.1%, load 26.65
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test
receipt: test step 54.226s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 52.108s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.74s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.28s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 59.47, cpu waiting 36.64%, memory waiting 0.00%, io waiting 0.35%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 39.4%, load 26.65
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/testci: its inputs changed
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/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/cmd/equipo-runner: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: 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
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeFailureDiagnostics
=== RUN TestClaudeFailureDiagnostics
--- FAIL: TestClaudeFailureDiagnostics (0.77s)
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude TestClaudeFailureDiagnostics/partial
=== RUN TestClaudeFailureDiagnostics/partial
live_turn_test.go:66: opaque failure: {"Reason":"protocol_rejected","LastFrame":"malformed","Stderr":"empty","ExitCode":null,"Signal":null,"EgressDenials":null}
--- FAIL: TestClaudeFailureDiagnostics/partial (0.21s)
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/claude (package output)
FAIL
rastrillo-budget/v1 ran 25.928s
FAIL amadan.net/oficina/equipo/internal/runner/provider/claude 26.586s
budget note: internal/equipo took 50.61s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 15.626s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 11.631s, 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 1m48.671s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 23.057s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 48.126s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 11.729s, over the 10s the default allows; reported only, timing fails on CI
receipt: test step 2m30.917s against a 60s target (the gate's other steps are not in this figure)
receipt: 22 packages ran, 43 cached, 17 without tests, 1 failed
receipt: slow package 1m48.671s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m5.885s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 53.063s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 50.61s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 49.431s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 53.49s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.94s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.71s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 45.68s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.53s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestClaudeFailureDiagnostics$/^partial$' -count=1 ./internal/runner/provider/claude (retry, once)
##############################################################################
FLAKE ./internal/runner/provider/claude:TestClaudeFailureDiagnostics/partial rest 94a3684e135674998b6337edf11aa0e717f18d82 0.21s 18.85
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 18.85, cpu waiting 8.87%, memory waiting 0.00%, io waiting 0.06%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
receipt: test step 1m24.339s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.749s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.49s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.71s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.43s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.45s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.25s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 59.47, cpu waiting 36.64%, memory waiting 0.00%, io waiting 0.35%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
receipt: test step 1m29.554s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m27.716s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.4s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 20.46s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.78s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 9.02s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 59.27, cpu waiting 36.73%, memory waiting 0.00%, io waiting 0.32%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
receipt: test step 1m52.184s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m50.714s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.85s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.41s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.34s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.29s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 49.49, cpu waiting 27.90%, memory waiting 0.00%, io waiting 0.22%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN TestBrowserCopyContinue
time=2026-11-25T22:55:27.684Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-25T22:55:27.684Z level=INFO msg="startup phase done" phase=state_lock took=95µs
time=2026-11-25T22:55:27.684Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-25T22:55:27.684Z level=INFO msg="startup phase done" phase=claim_roots took=99µs
time=2026-11-25T22:55:27.684Z level=INFO msg="startup phase" phase=sweep
time=2026-11-25T22:55:27.722Z level=INFO msg="startup phase done" phase=sweep took=37.343ms
time=2026-11-25T22:55:27.722Z level=INFO msg="startup phase" phase=credentials
time=2026-11-25T22:55:27.722Z level=INFO msg="startup phase done" phase=credentials took=168µs
time=2026-11-25T22:55:27.722Z level=INFO msg="startup phase" phase=open_state
time=2026-11-25T22:55:27.770Z level=INFO msg="startup phase done" phase=open_state took=48.292ms
time=2026-11-25T22:55:27.771Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-25T22:55:27.772Z level=INFO msg=connecting host=127.0.0.1:43001 protocol=30
time=2026-11-25T22:55:27.776Z level=INFO msg=connected host=127.0.0.1:43001 took=3.81ms
time=2026-11-25T22:55:27.776Z level=INFO msg="capabilities gathering"
time=2026-11-25T22:55:27.779Z level=INFO msg="capabilities gathered" took=2.683ms tags=linux,claude,go
time=2026-11-25T22:55:27.783Z level=INFO msg="hello sent" protocol=30
time=2026-11-25T22:55:27.785Z level=INFO msg=welcome protocol=30 role=primary generation=1
browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.37s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m31.707s
FAIL amadan.net/oficina/equipo/internal/headless 91.932s
receipt: test step 1m33.26s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m31.707s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.64s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.81s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.67s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.38s 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 94a3684e135674998b6337edf11aa0e717f18d82 6.37s 59.27
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 59.81, cpu waiting 34.70%, memory waiting 0.00%, io waiting 0.27%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo
receipt: test step 2.312s 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 690ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 690ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 10.907s, over the 10s the default allows; reported only, timing fails on CI
receipt: test step 12.208s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 10.907s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.08s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test
receipt: test step 3.684s 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.19s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.19s 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 3m37.333s 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 3m35.78s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.07s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.43s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.04s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.74s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.29s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 8.10, cpu waiting 3.61%, memory waiting 0.00%, io waiting 0.02%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.86s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.27s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.59s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.06s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.69s
+ 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 (62s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.93s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.89s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.15s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 15.29s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (20s)
ok ./internal/headless TestMixedVersions 17.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ 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 56.07, cpu waiting 36.12%, memory waiting 0.00%, io waiting 0.53%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
receipt: test step 11.973s 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.847s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 176ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 65ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.69s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.72s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment
receipt: test step 3.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 2.989s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 16.65, cpu waiting 8.44%, memory waiting 0.00%, io waiting 1.15%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 39.4%, load 26.65
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2724 text files, 3228 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok amadan.net/oficina/equipo/internal/equipo 2.446s
machine: 32 CPUs, load 56.14, cpu waiting 36.41%, memory waiting 0.00%, io waiting 0.46%
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 39.4%, load 24.70
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 47.28, cpu waiting 27.52%, memory waiting 0.00%, io waiting 0.69%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 39.1%, load 26.65
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===
No vulnerabilities found.
Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 3
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 37.33, cpu waiting 23.26%, memory waiting 0.00%, io waiting 0.77%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 39.4%, load 24.70
shard 28: make gitleaks
[90m10:55PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m10:55PM[0m [32mINF[0m [1m1156 commits scanned.[0m
[90m10:55PM[0m [32mINF[0m [1mscanned ~66014858 bytes (66.01 MB) in 22s[0m
[90m10:55PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 52.06, cpu waiting 31.65%, memory waiting 0.00%, io waiting 0.63%
=== 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 1ms, worst 1.054ms, budget 150ms
perf: GET /api/runner/protocol: median 75µs, worst 95µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 559µs, worst 620µs, budget 150ms
perf: GET /api/v1/accounts: median 401µs, worst 446µs, budget 150ms
perf: GET /api/v1/auth/devices: median 420µs, worst 491µs, budget 150ms
perf: GET /api/v1/budgets: median 459µs, worst 537µs, budget 150ms
perf: GET /api/v1/capabilities: median 241µs, worst 263µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.182ms, worst 1.199ms, budget 150ms
perf: GET /api/v1/connections: median 608µs, worst 664µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 577µs, worst 602µs, budget 150ms
perf: GET /api/v1/conversation: median 937µs, worst 974µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.514ms, worst 1.592ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.846ms, worst 1.908ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 449µs, worst 465µs, budget 150ms
perf: GET /api/v1/journey: median 7.803ms, worst 7.973ms, budget 150ms
perf: GET /api/v1/me: median 414µs, worst 470µs, budget 150ms
perf: GET /api/v1/me/settings: median 511µs, worst 546µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.622ms, worst 10.471ms, budget 150ms
perf: GET /api/v1/notifications: median 1.664ms, worst 1.722ms, budget 150ms
perf: GET /api/v1/onboarding: median 403µs, worst 433µs, budget 150ms
perf: GET /api/v1/people: median 456µs, worst 499µs, budget 150ms
perf: GET /api/v1/playbooks: median 609µs, worst 632µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 533µs, worst 565µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 848µs, worst 889µs, budget 150ms
perf: GET /api/v1/preferences: median 749µs, worst 805µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 476µs, worst 521µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 571µs, worst 596µs, budget 150ms
perf: GET /api/v1/roster: median 454µs, worst 510µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 429µs, worst 475µs, budget 150ms
perf: GET /api/v1/specialists: median 8.201ms, worst 8.254ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.113ms, worst 8.261ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 830µs, worst 859µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.09ms, worst 1.217ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 719µs, worst 768µs, budget 150ms
perf: GET /api/v1/teams: median 421µs, worst 445µs, budget 150ms
perf: GET /api/v1/templates: median 580µs, worst 604µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 427µs, worst 456µs, budget 150ms
perf: GET /auth/callback: median 77µs, worst 102µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.792ms, worst 3.869ms, budget 150ms
perf: GET /auth/verify: median 72µs, worst 109µs, budget 150ms
perf: GET /connections: median 4.182ms, worst 4.288ms, budget 150ms
perf: GET /conversation: median 8.178ms, worst 8.318ms, budget 150ms
perf: GET /conversation/connections: median 258µs, worst 292µs, budget 150ms
perf: GET /conversation/notebook: median 229µs, worst 257µs, budget 150ms
perf: GET /conversation/settings: median 4.374ms, worst 4.481ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.493ms, worst 6.026ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.888ms, worst 7.021ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.209ms, worst 7.433ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.458ms, worst 4.543ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.568ms, worst 4.634ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.817ms, worst 4.922ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.776ms, worst 4.818ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.749ms, worst 3.811ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.347ms, worst 4.569ms, budget 150ms
perf: GET /housekeeping: median 4.43ms, worst 6.226ms, budget 150ms
perf: GET /invites/new: median 599µs, worst 681µs, budget 150ms
perf: GET /invites/{id}: median 659µs, worst 686µs, budget 150ms
perf: GET /jobs: median 3.882ms, worst 4.1ms, budget 150ms
perf: GET /jobs/{id}: median 5.067ms, worst 5.188ms, budget 150ms
perf: GET /journey: median 14.398ms, worst 14.815ms, budget 150ms
perf: GET /nav/rail: median 3.946ms, worst 4.074ms, budget 150ms
perf: GET /needs-you: median 13.975ms, worst 14.217ms, budget 150ms
perf: GET /onboarding: median 5.113ms, worst 5.156ms, budget 150ms
perf: GET /people: median 4.436ms, worst 4.533ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.921ms, worst 7.299ms, budget 150ms
perf: GET /playbooks: median 4.381ms, worst 4.867ms, budget 150ms
perf: GET /playbooks/new: median 4.637ms, worst 4.681ms, budget 150ms
perf: GET /playbooks/{id}: median 4.965ms, worst 5.082ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.921ms, worst 5.043ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.061ms, worst 4.253ms, budget 150ms
perf: GET /preferences: median 4.548ms, worst 4.691ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.321ms, worst 4.506ms, budget 150ms
perf: GET /projects: median 6.014ms, worst 6.246ms, budget 150ms
perf: GET /projects/accounts: median 3.951ms, worst 4.139ms, budget 150ms
perf: GET /projects/new: median 4.011ms, worst 4.095ms, budget 150ms
perf: GET /projects/{id}: median 12.406ms, worst 14.413ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.273ms, worst 4.424ms, budget 150ms
perf: GET /runners/enrol: median 4.817ms, worst 5.043ms, budget 150ms
perf: GET /settings: median 3.85ms, worst 3.934ms, budget 150ms
perf: GET /settings/coordinator: median 6.009ms, worst 6.092ms, budget 150ms
perf: GET /settings/devices: median 3.777ms, worst 3.936ms, budget 150ms
perf: GET /settings/recovery: median 3.932ms, worst 4.036ms, budget 150ms
perf: GET /settings/recovery/release: median 3.948ms, worst 4.221ms, budget 150ms
perf: GET /settings/thinking: median 241µs, worst 279µs, budget 150ms
perf: GET /signed-out: median 267µs, worst 282µs, budget 150ms
perf: GET /signin: median 276µs, worst 311µs, budget 150ms
perf: GET /specialists/new: median 3.824ms, worst 3.872ms, budget 150ms
perf: GET /specialists/{key}: median 11.431ms, worst 14.182ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.188ms, worst 4.213ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.208ms, worst 4.404ms, budget 150ms
perf: GET /tasks: median 6.14ms, worst 6.188ms, budget 150ms
perf: GET /tasks/new: median 3.661ms, worst 3.752ms, budget 150ms
perf: GET /tasks/{id}: median 6.098ms, worst 6.172ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.165ms, worst 5.219ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.067ms, worst 5.201ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.322ms, worst 6.719ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.606ms, worst 1.701ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 6.283ms, worst 6.544ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.25ms, worst 5.599ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.836ms, worst 5.057ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.294ms, worst 8.44ms, budget 150ms
perf: GET /team/{specialist}: median 4.779ms, worst 4.843ms, budget 150ms
perf: GET /teams: median 10.378ms, worst 10.589ms, budget 150ms
perf: GET /templates: median 3.873ms, worst 3.926ms, budget 150ms
perf: GET /usage: median 4.684ms, worst 4.73ms, budget 150ms
perf: GET /work: median 3.546ms, worst 3.601ms, 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 160ms of [157.051868ms 159.609763ms 161.056416ms], budget 500ms
receipt: test step 43.43s 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.518s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 9.98s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 540ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.46 GiB in 24314 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt| index 8323a629..f898bde0 100644 |
| --- a/.rastrillo/budgets.txt |
| +++ b/.rastrillo/budgets.txt |
| @@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device |
| perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen. |
| perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen. |
| perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen. |
| -size internal/equipo/chat 34812 9500 Stuck tasks: offer_retry, retry_step, a failed preview run again behind a merge, the scanner health in status (2026-11-25); measured 34812/9500. |
| +size internal/equipo/chat 34823 9539 Stopped work: step logs resolve the parent task read shape; missing task/project and revoked-member regressions (2026-11-25); measured 34823/9539. |
| perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}. |
| perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}. |
| perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections. |
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-stopped-work.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-stopped-work.md| new file mode 100644 |
| index 00000000..aff7c7a2 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-stopped-work.md |
| @@ -0,0 +1,205 @@ |
| +# Native stopped work |
| + |
| +Branch: `native/stopped-work`, based on `origin/main` at `2950f604`. |
| + |
| +## Behavior |
| + |
| +- Native carries all 70 `work.reason.*` entries, the stopped lead, and the |
| + reviewed Needs you/held words. `check-parity.py` checks values and completeness. |
| +- Stopped work leads with its finished time in the device's zone and the web's |
| + reason, including the web's `no_further_changes` distinction. Retry requires |
| + the creator and a terminated failed step. The 409 `not_retryable` answer uses |
| + `api.not_retryable` and the screen refreshes after the action. |
| +- Run now retains its offer/revision contract. Resume resolves the held runner, |
| + local connection and provider against the person's connections and sends the |
| + observed `pause_revision`. Settings actions use the web's exact destinations. |
| +- iPhone uses SFSafariViewController; Mac uses WebKit's native SwiftUI WebView |
| + in a sheet (macOS 26 minimum). Browser sessions persist independently of the |
| + API bearer. With no browser session, the site asks the person to sign in. |
| +- Failed steps load their stored log on disclosure. The selectable monospaced |
| + view wraps by character on iPhone and scrolls horizontally on Mac, bounded |
| + to 200 lines and 32 KiB. Its height fits the content up to 180 points, then |
| + scrolls vertically. UIKit selection preserves the original log text. This is the same |
| + runner-redacted stored tail/output that the web uses; it never fetches a raw |
| + runner file or introduces a new endpoint. |
| +- StepLog resolves the parent through `loadTask` and `taskView`, within the |
| + current-roster checked read transaction used by Task. Tasks remain team-visible. |
| + The controller confirmed this on 2026-11-25: the negative cases are an absent |
| + or unreadable parent and revoked membership, not a creator-only read rule. |
| +- No new GET route: the existing `/api/v1/steps/{id}/log` perf record remains. |
| + The existing chat size exemption increases by the measured authorization and |
| + regression-test lines, with its reason updated. |
| + |
| +## Copy |
| + |
| +All web strings are copied unchanged (only `%s` becomes Foundation's `%@`). |
| +`native.step.log_tail` = “Last lines of the log”, disclosure label: **approved |
| +by Luna, 2026-11-25**, delivered by the controller in message |
| +`9e9de3e8-cb73-4bfd-9e2b-0c04d16fe3dd`. Also marked at its view call site. |
| +There are no open copy questions. No whole-log or Copy action was added. |
| + |
| +## Test-first evidence |
| + |
| +Before implementation: |
| + |
| +``` |
| +swift test --package-path native/apple --filter StoppedWorkTests |
| +``` |
| + |
| +Failed: `TaskPause.canRetry`, `StoppedReason`, and `StoppedWorkActions` did not |
| +exist. The tests were written first for the reviewed words, local stop time, |
| +creator/termination rules, Needs you leads and the 409 response. |
| + |
| +``` |
| +GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/equipo/chat -run TestStepLogTaskVisibility -count=1 |
| +``` |
| + |
| +Failed: `missing_task` and `missing_project` each returned `private log` after |
| +Task refused the parent. After implementation, all four cases passed. |
| + |
| +``` |
| +swift test --package-path native/apple --filter 'StoppedWorkTests|PausedTests' |
| +``` |
| + |
| +Passed initially: 16 tests, including request paths/bearer, Resume's exact connection and |
| +pause revision, bounded log and retained redaction marker. |
| + |
| +Final edge tests first failed (three issues) for optional triage.reason, a |
| +step-less direction lead, and Retry on a blocked review. After correction, |
| +`swift test --package-path native/apple --filter 'StoppedWorkTests|PausedTests'` |
| +passed all 18 tests. The final full native gate passed 217 tests. |
| + |
| +## Deliberate guard mutations |
| + |
| +Each mutation was restored immediately after its targeted test failed. |
| + |
| +| Mutation | Command | Result | |
| +| --- | --- | --- | |
| +| Ignore parent task and taskView errors in StepLog | Go command above | Failed `missing_task`, `missing_project`: leaked tail | |
| +| Ignore CurrentPerson refusal in StepLog | Go command above | Failed `revoked_member`: leaked tail | |
| +| Return wrong words for all reason codes | `swift test --package-path native/apple --filter StoppedWorkTests` | Failed 72 expectations, including every reviewed reason and stopped lead | |
| +| Remove creator predicate from canRetry | Same Swift command | Failed non-creator retry assertion | |
| +| Remove terminated predicate from canRetry | Same Swift command | Failed unterminated-step retry assertion | |
| +| Return success for 409 not_retryable | Same Swift command | Failed reviewed conflict-message assertion | |
| +| Remove log byte bound | Same Swift command | Failed 32 KiB assertion | |
| +| Remove runner predicate from Resume matching | Same Swift command | Failed connection identity / request assertions | |
| + |
| +## Gates and captures |
| + |
| +- `native/scripts/check-native.sh`: passed string/schema/differential checks, |
| + 217 Swift tests in 26 suites (one existing known issue), Mac build and iPhone |
| + Simulator build. Repeated after visual/UTF-8 refinements and the controller |
| + follow-up for character wrapping and content-sized log height. The recaptured |
| + iPhone stopped screen shows complete branch/error lines with no empty fixed |
| + log area; the Mac capture shows all four lines aligned at the top left. |
| +- `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make build`: |
| + Linux build plus the Make target's Darwin runner cross-build passed. |
| +- `make fmt-check spacing budget migration-check` with the Go 1.26.11 |
| + GOROOT/bin prepended to PATH: passed (budget after its measured adjustment). |
| +- Staticcheck v0.7.0: installed as a host executable, then run with |
| + `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 staticcheck |
| + -tags browser,perf,testbuild ./...`: passed. `make staticcheck` with GOOS set |
| + tries to execute a Linux tool on macOS, so the host tool is necessary. |
| +- `make gitleaks`: passed, no leaks. |
| +- Local `make build`, `make vet`, `make govulncheck`, `make test`, and `make perf` |
| + hit the existing macOS toolproxy `unix.O_PATH` build error. The broad test |
| + run also reported unavailable runner-install fixtures, a 15-minute thin |
| + runner test timeout, and browser failures because Chromium is absent (147 |
| + browser tests failed). These are not treated as passes or suppressed; Linux |
| + hub CI is the gate. Perf's screen/boot tests themselves ran. |
| +- Targeted Go authorization/paused tests passed after mutation restoration. |
| + |
| +The isolated simulator is named `Equipo Stopped Work`. Both platforms use |
| +`StoppedWorkFixture`, compiled only in Debug, with an in-memory account and |
| +an offline transport at fixture.invalid. It never reads saved credentials, |
| +contacts a server, or bypasses authentication. The Mac fixture disables its |
| +updater so a previously downloaded published app cannot replace the debug |
| +build during capture; normal app launches retain their updater. `EQUIPO_STOPPED_FIXTURE=stopped` |
| +and `paused` select the two task states. Debug's stopped fixture expands the |
| +real log disclosure so the capture includes the actual bounded log view. |
| + |
| +Mac screen recording is unavailable on this host; the debug fixture captures |
| +its own actual NSWindow content using AppKit's cacheDisplay. It does not render |
| +another mockup or read another app. `EQUIPO_FIXTURE_CAPTURE` names the PNG path. |
| + |
| +Screenshots are saved in the audit site's `build/slice1` directory: |
| +`iphone-stopped.png`, `iphone-paused.png`, `mac-stopped.png`, `mac-paused.png`. |
| +Post-commit `python3 scripts/runner-dead-references.py`: passed, 2,719 text |
| +files, 3,228 matches, zero failures. Push uses the requested normal |
| +`agent-tools/push.sh <worktree> "native stopped work" origin native/stopped-work`. |
| +Hub verdict is read with |
| +`AMADAN_HOME="$HOME/.amadan-claude-agent" amadan ci status oficina/equipo -branch |
| +native/stopped-work -json` redirected to a scratch JSON file; the final handoff |
| +reports that verdict. No merge, deploy or release. |
| + |
| +## Fable review follow-up (2026-11-25) |
| + |
| +The controller requested changes to `a0dbde6a`, before slice 2 proceeds. |
| +Mac settings now use the default browser through `NSWorkspace.open`, with a |
| +fixed-path allowlist and an injected-opener test. iPhone retains Safari; its |
| +presentation is owned by the signed-in tab container, so a disappearing pause |
| +cannot dismiss the page. This supersedes the original Mac WebKit choice above. |
| + |
| +AppKit's report/thinking hosts now measure their SwiftUI content after layout |
| +changes, shift sibling content and subsequent rows by the height difference, |
| +and preserve the person's scroll position. A real-window test grows and |
| +shrinks content after mounting. Debug captures use the actual conversation: |
| +Resume arrives after a delayed connections response; Try again calls the fake |
| +endpoint and displays its failure. The next message remains below the report. |
| + |
| +Needs-you reasons offer Retry for a failed, terminated last step, creator only. |
| +Recover uses the web's failed `machine_removed`, not-terminated, creator guards |
| +and `POST /tasks/{id}/recover`. The held lead splits already-worded text at its |
| +first colon. Resume reloads its connection and pause revision after refusal. |
| +Run now returns reviewed failure words to the action view instead of swallowing |
| +errors. Logs distinguish offline, malformed answers and other read failures. |
| +Step details are one combined accessibility element; log disclosure is separate. |
| +Both progress indicators have existing reviewed labels. Only `work.recover` |
| +was added to copy, unchanged from the reviewed web entry and checked by parity. |
| + |
| +Test-first commands: |
| + |
| +- `swift test --package-path native/apple --filter StoppedWorkReviewTests`: |
| + failed for absent Recover, log-error mapping and browser opener support. |
| +- `swift test --package-path native/apple --filter ResizingHostTests`: |
| + failed because the resizing host did not exist. |
| +- `swift test --package-path native/apple --filter |
| + 'ResizingHostTests|StoppedWorkReviewTests|StoppedWorkTests|PausedTests'`: |
| + passed 30 tests after implementation. |
| + |
| +The review mutations each use |
| +`swift test --package-path native/apple --filter StoppedWorkReviewTests`. |
| +The mutation runner restores the original source in a `finally` block and |
| +requires an actual expectation failure, not a compilation failure. |
| + |
| +All 14 review mutations failed assertions and were restored: |
| + |
| +| Removed or changed guard | Result | |
| +| --- | --- | |
| +| Needs-you retry creator (including review_blocked) | Non-creator retry assertion failed | |
| +| Needs-you retry termination | Unterminated-step assertion failed | |
| +| Update runner creator | Settings-path assertion failed | |
| +| Raise budget creator (both branches) | Settings-path assertion failed | |
| +| Resume creator | Resume-step assertion failed | |
| +| no_further_changes mapping | Reason assertion failed | |
| +| machine_removed unterminated branch | Recovery/tone assertion failed | |
| +| Moving, stopping, copy-hold suppression | Transitional-task assertions failed | |
| +| Triage restricted to rebasing only | Retrying/rechecking/waiting assertions failed | |
| +| Resume spend.unknown match | Connection assertion failed | |
| +| Resume local-id match | Connection assertion failed | |
| +| Resume provider match | Connection assertion failed | |
| +| Non-409 retry errors treated as success | Reviewed failure-message assertion failed | |
| +| Held deadline condition | Deadline lead assertion failed | |
| + |
| +The first full gate found a timing assumption in the new resizing test: its |
| +fixed 200 ms wait was too short under the full parallel suite. The test now |
| +waits for each measured height with a bounded deadline, before changing the |
| +next state. The runtime resizing code did not change for this correction. |
| + |
| +Final follow-up gate: `native/scripts/check-native.sh` passed 229 tests in 28 |
| +suites (one pre-existing known issue), 206 parity strings, Mac build and iPhone |
| +Simulator build. The two actual AppKit conversation captures were inspected: |
| +`site/build/slice1/mac-conversation-resume.png` and |
| +`site/build/slice1/mac-conversation-retry-failed.png`. The following message |
| +stays below the enlarged report in both. No server code changed in this delta; |
| +Linux hub CI remains the final gate, reported with the pushed SHA. |
diff --git a/internal/equipo/chat/step_log_visibility_test.go b/internal/equipo/chat/step_log_visibility_test.go| new file mode 100644 |
| index 00000000..3c4c398d |
| --- /dev/null |
| +++ b/internal/equipo/chat/step_log_visibility_test.go |
| @@ -0,0 +1,39 @@ |
| +package chat |
| + |
| +import ( |
| + "context" |
| + "errors" |
| + "testing" |
| + |
| + "amadan.net/oficina/equipo/internal/wire" |
| + "gorm.io/gorm" |
| +) |
| + |
| +func TestStepLogTaskVisibility(t *testing.T) { |
| + for _, scenario := range []string{"team member", "missing task", "missing project", "revoked member"} { |
| + t.Run(scenario, func(t *testing.T) { |
| + r, _ := pausedRig(t, wire.StepHold{Reason: wire.HoldBusy}) |
| + db := r.s.db.G |
| + if err := db.Model(&stepRecord{}).Where("id = ?", "s1").Update("log_tail", "private log").Error; err != nil { |
| + t.Fatal(err) |
| + } |
| + switch scenario { |
| + case "missing task": |
| + db.Where("id = ?", "tk1").Delete(&taskRecord{}) |
| + case "missing project": |
| + db.Where("id = ?", "p_1").Delete(&projectRecord{}) |
| + case "revoked member": |
| + r.s.authority.CurrentPerson = func(context.Context, *gorm.DB) error { return ErrForbidden } |
| + } |
| + _, taskErr := r.s.Task(context.Background(), "member@example.com", "tk1") |
| + log, logErr := r.s.StepLog(context.Background(), "member@example.com", "s1") |
| + if scenario == "team member" { |
| + if taskErr != nil || logErr != nil || log.Tail != "private log" { |
| + t.Fatalf("team read: task=%v log=%+v err=%v", taskErr, log, logErr) |
| + } |
| + } else if taskErr == nil || logErr == nil || !errors.Is(logErr, taskErr) || log.Tail != "" { |
| + t.Fatalf("log must follow task visibility: task=%v log=%+v err=%v", taskErr, log, logErr) |
| + } |
| + }) |
| + } |
| +} |
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go| index 1c19fc41..ac5219b2 100644 |
| --- a/internal/equipo/chat/tasks.go |
| +++ b/internal/equipo/chat/tasks.go |
| @@ -2140,6 +2140,17 @@ func (s *Store) StepLog(ctx context.Context, person, id string) (out wire.StepLo |
| } else if err != nil { |
| return err |
| } |
| + // Resolve the parent through the same read shape as GET /tasks/{id}. |
| + // Team visibility is intentional; an orphaned or unreadable task |
| + // must never leave its log independently readable. |
| + t := &txn{s: s, db: tx} |
| + k, err := t.loadTask(st.TaskID) |
| + if err != nil { |
| + return err |
| + } |
| + if _, err := t.taskView(k); err != nil { |
| + return err |
| + } |
| // Checks keep their last 200 lines beside the SHA; other steps a tail. |
| out = wire.StepLog{StepID: st.ID, Attempt: st.Attempt, Tail: firstSet(st.Output, st.LogTail)} |
| return nil |
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings| index 305cd7f0..79908096 100644 |
| --- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings |
| +++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings |
| @@ -629,6 +629,83 @@ |
| } |
| } |
| }, |
| + "chat.held.budget": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ has reached its budget. Raise it, or wait for the budget to reset." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.run.after_by": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d run it now: %@ resets %@, after %@." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.run.no_connection": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d run it now: it needs a connection billed per token." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.run.no_reset": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d run it now: %@ has no reported reset in the next three days." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.spend_unknown": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Spend unknown. Check your spending at %@, then choose Resume." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.wait.before": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d wait: %@ resets %@, before %@." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.wait.reset": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d wait: %@ resets %@." |
| + } |
| + } |
| + } |
| + }, |
| "chat.paste.command": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -959,6 +1036,17 @@ |
| } |
| } |
| }, |
| + "native.step.log_tail": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Last lines of the log" |
| + } |
| + } |
| + } |
| + }, |
| "nav.projects": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2257,6 +2345,17 @@ |
| } |
| } |
| }, |
| + "team.close": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Close" |
| + } |
| + } |
| + } |
| + }, |
| "thinking.stop": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2444,6 +2543,17 @@ |
| } |
| } |
| }, |
| + "time.when_in": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ (%@)" |
| + } |
| + } |
| + } |
| + }, |
| "track.position %@ %@": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2466,6 +2576,28 @@ |
| } |
| } |
| }, |
| + "work.hold.raise_budget": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Raise the budget" |
| + } |
| + } |
| + } |
| + }, |
| + "work.hold.resume": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Resume" |
| + } |
| + } |
| + } |
| + }, |
| "work.hold.run_now": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2477,6 +2609,116 @@ |
| } |
| } |
| }, |
| + "work.needs.branch_moved": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: the branch moved on Amadan after it was checked" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.direction": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo is waiting for your choice." |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.fix_rounds": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: still not approved after two fix rounds" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.machine_removed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Stopped: the machine was removed mid-step. Make sure it's switched off, then Recover" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.many": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%d decisions, each in one tap." |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.merge_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: it still conflicts with the default branch after a rebase" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.one": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "One decision, in one tap." |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.review_blocked": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: the review ended without a verdict" |
| + } |
| + } |
| + } |
| + }, |
| + "work.pause.check_machine": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Check the machine" |
| + } |
| + } |
| + } |
| + }, |
| + "work.pause.connect": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Connect a model" |
| + } |
| + } |
| + } |
| + }, |
| "work.pause.lead.no_connection": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2499,6 +2741,17 @@ |
| } |
| } |
| }, |
| + "work.pause.lead.stopped": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Stopped at %@: %@" |
| + } |
| + } |
| + } |
| + }, |
| "work.pause.lead.too_old": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2741,6 +2994,17 @@ |
| } |
| } |
| }, |
| + "work.pause.try_again": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Try again" |
| + } |
| + } |
| + } |
| + }, |
| "work.pause.until": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2752,6 +3016,798 @@ |
| } |
| } |
| }, |
| + "work.pause.update_runner": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Update the runner" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.account_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "no model account was ready" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.amadan_ci_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Amadan's own CI did not pass" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.amadan_ci_pending": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Amadan's own CI had not finished" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.base_checks_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the base version's checks failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.base_gate_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the check files from the base version could not be loaded" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.branch_moved": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the branch moved on Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.candidate_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the commit was not on Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.checks_timeout": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the checks ran out of time" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.checks_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this runner cannot run the checks" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.clone_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner could not copy the project from Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_budget": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy cannot review all these strings within this task’s token allowance. Continue without Copy or ask the coordinator." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_budget_unknown": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy’s token use is unknown. Check the last attempt before continuing." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_question": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy needs you to clarify the meaning." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_update_required": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Update the runner to continue the Copy review." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.interrupted": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner lost track of it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.limited": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "its model account reached its limit" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.machine_removed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the machine was removed mid-step" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it conflicts with the default branch" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Amadan did not merge it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_forbidden": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo may not merge in this repository" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_not_authorized": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "my rules require me to ask before merging" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_unborn_default": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the first merge into this empty repository needs an Amadan update" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.needs_macos": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it needs a Mac" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.needs_network": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the checks need a network connection" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_changes": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "nothing needed changing" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_connection": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "nothing connected can run it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_further_changes": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it made no further changes to the candidate" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_verdict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the review gave no verdict" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.other": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "something went wrong" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.placement_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "no runner could take it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.policy_rejected": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo's rules blocked it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_cap": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the account already has 20 previews" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_config": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this version cannot use release/preview.json" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_expired": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this task's preview expired and its name is still taken" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "a Carloku command for the preview failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_header_missing": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "The preview host did not serve the safety header." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_headers": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview host needs an update before it can apply the required security headers" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_host": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview host could not be verified" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_public_disabled": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "public previews are off for this project" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_scanner": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview was not published because its secret scan could not be completed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_secrets": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview was not published because its files may contain a secret" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_state": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo could not read the preview's state" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_too_large": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview exceeds 2,000 files, 10 MiB per file or 50 MiB in total" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.proposal_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the branch was pushed, but the review request could not be created" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.provider_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the model connection failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.provider_rejected": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the model service declined the request" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_app_taken": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Carloku already has an app with this name" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_config": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this version cannot use release/preview.json" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the Carloku deploy failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_not_merged": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the merged commit is not on the default branch" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_off": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this runner is not set up to publish sites" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_too_large": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the site exceeds 2,000 files, 10 MiB per file or 50 MiB in total" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.push_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the branch changed on Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.push_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the push to Amadan failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_no_grant": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it’s no longer on your team" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_no_inventory": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the primary machine reported no public internet address" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_no_sources": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "there was nothing to read" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_unsupported": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner needs an update to run Research" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.runner_offline": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner it needs was offline too long" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.runner_outdated": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner needs an update for previews" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.runner_restarted": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner restarted" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.sandbox_unproven": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the Mac's sandbox is not proven yet" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.sign_in_again": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "a model account needs you to sign in again" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.step_timeout": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it ran out of time" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.superseded": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "newer work replaced it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.tools_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo refused the commands it needed to run" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.transfer_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the work could not move between runners" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.unknown": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner reported a problem this version of Equipo does not recognise" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.withdrawn": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it was withdrawn before it started" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.workspace_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner could not set up a place to work" |
| + } |
| + } |
| + } |
| + }, |
| + "work.recover": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Recover" |
| + } |
| + } |
| + } |
| + }, |
| "work.stage.needs_you": { |
| "extractionState": "manual", |
| "localizations": { |
diff --git a/native/apple/Sources/EquipoKit/API/Client.swift b/native/apple/Sources/EquipoKit/API/Client.swift| index 55cd90d6..82d6e233 100644 |
| --- a/native/apple/Sources/EquipoKit/API/Client.swift |
| +++ b/native/apple/Sources/EquipoKit/API/Client.swift |
| @@ -98,13 +98,13 @@ public struct EquipoClient: Sendable { |
| // MARK: Plumbing |
| - private func escape(_ id: String) -> String { |
| + func escape(_ id: String) -> String { |
| id.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed.subtracting(CharacterSet(charactersIn: "/"))) ?? id |
| } |
| - private func get<T: Decodable>(_ path: String, _ query: [URLQueryItem] = []) async throws -> T { |
| + func get<T: Decodable>(_ path: String, _ query: [URLQueryItem] = []) async throws -> T { |
| try await send(APIRequest("GET", path, query: query, bearer: token)) |
| } |
| - private func post<T: Decodable>(_ path: String, _ write: PendingWrite) async throws -> T { |
| + func post<T: Decodable>(_ path: String, _ write: PendingWrite) async throws -> T { |
| try await send(APIRequest("POST", path, body: write.body, bearer: token, idempotencyKey: write.key, ifMatch: write.ifMatch)) |
| } |
| func send<T: Decodable>(_ request: APIRequest) async throws -> T { |
diff --git a/native/apple/Sources/EquipoKit/API/StoppedWork.swift b/native/apple/Sources/EquipoKit/API/StoppedWork.swift| new file mode 100644 |
| index 00000000..78ee2963 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/API/StoppedWork.swift |
| @@ -0,0 +1,72 @@ |
| +import Foundation |
| + |
| +public struct StepLog: Codable, Sendable { |
| + public var stepId: String |
| + public var attempt: Int64 |
| + public var tail: String |
| + |
| + /// The server bounds stored logs; also bound unexpected older responses. |
| + public var boundedTail: String { |
| + let bytes = tail.utf8.suffix(32 * 1024).drop(while: { $0 & 0xc0 == 0x80 }) |
| + return String(decoding: bytes, as: UTF8.self).split(separator: "\n", omittingEmptySubsequences: false).suffix(200).joined(separator: "\n") |
| + } |
| +} |
| + |
| +struct TaskAccepted: Decodable, Sendable { let attempt: Int64 } |
| + |
| +struct ResumeConnection: Codable, Sendable { |
| + let id: String |
| + let runnerId: String |
| + let localId: String |
| + let provider: String |
| + let spend: Spend? |
| + struct Spend: Codable, Sendable { |
| + let unknown: Bool |
| + let pauseRevision: Int64 |
| + } |
| +} |
| + |
| +extension EquipoClient { |
| + public func stepLog(_ id: String) async throws -> StepLog { try await get("/steps/\(escape(id))/log") } |
| + func retryTask(_ id: String) async throws -> TaskAccepted { try await post("/tasks/\(escape(id))/retry", Self.empty()) } |
| + func recoverTask(_ id: String) async throws -> TaskAccepted { try await post("/tasks/\(escape(id))/recover", Self.empty()) } |
| + func resumeConnections() async throws -> ThinList<ResumeConnection> { try await get("/connections") } |
| + func resumeConnection(_ connection: ResumeConnection) async throws { |
| + guard let spend = connection.spend, spend.unknown else { return } |
| + let _: EmptyResponse = try await post("/connections/\(escape(connection.id))/resume", try .json(["pause_revision": spend.pauseRevision])) |
| + } |
| +} |
| + |
| +enum StoppedWorkActions { |
| + static func retry(client: EquipoClient, task: String) async -> String? { |
| + do { _ = try await client.retryTask(task); return nil } |
| + catch let error as EquipoAPIError where error.status == 409 && error.code == "not_retryable" { |
| + return EquipoStrings.text("api.not_retryable") |
| + } catch { return EquipoStrings.text("card.failed") } |
| + } |
| + |
| + static func recover(client: EquipoClient, task: String) async -> String? { |
| + do { _ = try await client.recoverTask(task); return nil } |
| + catch { return EquipoStrings.text("card.failed") } |
| + } |
| + |
| + static func runNow(client: EquipoClient, task: String, run: TaskPause.RunNow) async -> String? { |
| + do { _ = try await client.runNow(task: task, step: run.step, revision: run.revision, offer: run.offer); return nil } |
| + catch let error as EquipoAPIError where error.status == 409 { return EquipoStrings.text("api.not_retryable") } |
| + catch { return EquipoStrings.text("card.failed") } |
| + } |
| + |
| + static func logFailure(_ error: Error) -> String { |
| + if let error = error as? EquipoAPIError { |
| + if error == .undecodable { return EquipoStrings.text("read.failed") } |
| + if error == .offline { return EquipoStrings.text("card.offline") } |
| + } |
| + if error is URLError { return EquipoStrings.text("card.offline") } |
| + return EquipoStrings.text("read.failed_title") |
| + } |
| + |
| + static func connection(for step: ThinStep, in connections: [ResumeConnection]) -> ResumeConnection? { |
| + guard let runner = step.runnerId, let hold = step.hold else { return nil } |
| + return connections.first { $0.runnerId == runner && $0.localId == hold.connection && $0.provider == hold.provider && $0.spend?.unknown == true } |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift| index 0cdbd879..021878c5 100644 |
| --- a/native/apple/Sources/EquipoKit/API/Thin.swift |
| +++ b/native/apple/Sources/EquipoKit/API/Thin.swift |
| @@ -76,6 +76,10 @@ public struct ThreadEntry: Codable, Sendable, Identifiable, Equatable { |
| } |
| public struct ThinStep: Codable, Sendable, Identifiable, Equatable { |
| + public var terminated: Bool? = nil |
| + public var pushed: Bool? = nil |
| + public var candidateSha: String? = nil |
| + public var runnerId: String? = nil |
| public var id: String |
| public var specialist: String |
| public var state: String |
| @@ -135,6 +139,12 @@ public struct ThinRunNow: Codable, Sendable, Equatable { |
| } |
| public struct ThinTask: Codable, Sendable, Identifiable, Equatable { |
| + public var priority: ThinPriority? = nil |
| + public var triage: ThinTriage? = nil |
| + public var moving: Bool? = nil |
| + public var stopping: Bool? = nil |
| + public var copyHold: Bool? = nil |
| + public var copyCanSkip: Bool? = nil |
| public var id: String |
| public var revision: Int64 |
| public var projectId: String |
| @@ -220,3 +230,6 @@ struct RunNowInput: Codable, Sendable { var step: String; var stepRevision: Int6 |
| public struct RunNowAccepted: Codable, Sendable, Equatable { public var release: String } |
| /// The person's time zone (wire.TimeZone). |
| public struct TimeZoneValue: Codable, Sendable, Equatable { public var timeZone: String } |
| + |
| +public struct ThinPriority: Codable, Sendable, Equatable { public var by: Date? } |
| +public struct ThinTriage: Codable, Sendable, Equatable { public var kind: String; public var reason: String? } |
diff --git a/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift b/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift| new file mode 100644 |
| index 00000000..b9a7da29 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/Presentation/HeldLead.swift |
| @@ -0,0 +1,25 @@ |
| +import Foundation |
| + |
| +/// The web's chat.HeldWords, for holds that need the person's choice. |
| +enum HeldLead { |
| + static func words(_ hold: ThinHold, name: String, due: Date?, words: TimeWords) -> String { |
| + func when(_ date: Date) -> String { String(format: EquipoStrings.text("time.when_in"), words.when(date), words.inWords(date.timeIntervalSince(words.now))) } |
| + func day(_ date: Date) -> String { |
| + let formatter = DateFormatter() |
| + formatter.locale = words.locale; formatter.timeZone = words.zone |
| + formatter.dateFormat = "EEEE d MMM" |
| + return formatter.string(from: date) |
| + } |
| + if let reset = hold.resetsAt, let due, reset < due { |
| + return String(format: EquipoStrings.text("chat.held.wait.before"), name, when(reset), day(due)) |
| + } |
| + if let reset = hold.resetsAt, reset.timeIntervalSince(words.now) <= 72 * 3600, hold.needsPerson != "deadline" { |
| + return String(format: EquipoStrings.text("chat.held.wait.reset"), name, when(reset)) |
| + } |
| + if let reset = hold.resetsAt, let due { |
| + return String(format: EquipoStrings.text("chat.held.run.after_by"), name, when(reset), day(due)) |
| + } |
| + if hold.reason == "budget" { return String(format: EquipoStrings.text("chat.held.budget"), name) } |
| + return String(format: EquipoStrings.text("chat.held.run.no_reset"), name) |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/Presentation/Pause.swift b/native/apple/Sources/EquipoKit/Presentation/Pause.swift| index 075e127e..939372c3 100644 |
| --- a/native/apple/Sources/EquipoKit/Presentation/Pause.swift |
| +++ b/native/apple/Sources/EquipoKit/Presentation/Pause.swift |
| @@ -21,6 +21,11 @@ public struct TaskPause: Sendable, Equatable { |
| /// Run now, as the instance predicts it, for the task's creator. |
| public var runNow: RunNow? |
| public var note: String? |
| + public var canRetry = false |
| + public var canRecover = false |
| + public var settingsPath: String? |
| + public var settingsLabel: String? |
| + public var resumeStep: ThinStep? |
| public struct RunNow: Sendable, Equatable { |
| public var label: String |
| @@ -36,9 +41,20 @@ extension TaskPause { |
| /// The task's pause at now in zone, nil while nothing waits. mine: the |
| /// person is the task's creator (only they are offered Run now). |
| public init?(_ task: ThinTask, mine: Bool, now: Date = Date(), zone: TimeZone = .current, locale: Locale = .current) { |
| + if let triage = task.triage, ["retrying", "rebasing", "rechecking"].contains(triage.kind) || triage.kind == "waiting" && triage.reason == "merge_unborn_default" { return nil } |
| let final = ["done", "cancelled"].contains(task.stage) |
| - guard !final, let step = (task.steps ?? []).last(where: { !["preview", "research", "publish"].contains($0.specialist) }) else { return nil } |
| - if !task.needsYou.isEmpty && !["retry", "held"].contains(task.needsYou) { return nil } |
| + guard !final, task.moving != true, task.stopping != true, task.copyHold != true, task.copyCanSkip != true else { return nil } |
| + let step = (task.steps ?? []).last(where: { !["preview", "research", "publish"].contains($0.specialist) }) |
| + if !task.needsYou.isEmpty && !["retry", "held"].contains(task.needsYou) { |
| + let key = "work.needs." + task.needsYou |
| + let lead = String(localized: String.LocalizationValue(key), bundle: .module) |
| + guard lead != key else { return nil } |
| + self.init(tone: .warning, stop: EquipoStrings.text("work.stage.needs_you"), lead: Self.format(lead), next: "") |
| + canRetry = mine && step?.state == "failed" && step?.terminated == true |
| + canRecover = mine && step?.state == "failed" && step?.reason == "machine_removed" && step?.terminated != true |
| + return |
| + } |
| + guard let step else { return nil } |
| let words = TimeWords(now: now, zone: zone, locale: locale) |
| if step.state == "failed" { |
| // A runner too old for the step waits for its update (amber), |
| @@ -46,13 +62,23 @@ extension TaskPause { |
| // reasons' words are the web's; the task page there says which. |
| if ["runner_outdated", "runner_too_old", "copy_update_required", "research_unsupported"].contains(step.reason), let machine = step.runnerLabel, !machine.isEmpty { |
| self.init(tone: .warning, stop: EquipoStrings.text("work.stage.needs_you"), lead: Self.format(EquipoStrings.text("work.pause.lead.too_old"), machine), next: EquipoStrings.text("work.pause.next.update")) |
| + if mine { settingsPath = "/conversation/settings/machines"; settingsLabel = EquipoStrings.text("work.pause.update_runner") } |
| + return |
| + } |
| + if step.reason == "machine_removed" && step.terminated != true { |
| + self.init(tone: .warning, stop: EquipoStrings.text("work.stage.needs_you"), lead: EquipoStrings.text("work.needs.machine_removed"), next: "") |
| + canRecover = mine |
| return |
| } |
| - self.init(tone: .negative, stop: EquipoStrings.text("work.stage.stopped"), lead: "", next: EquipoStrings.text("work.pause.next.try_again")) |
| + var reason = step.reason |
| + if reason == "no_changes", (task.steps ?? []).prefix(while: { $0.id != step.id }).contains(where: { $0.pushed == true && !($0.candidateSha ?? "").isEmpty && ($0.specialist == "engineering" || $0.specialist == "copy" && $0.state == "done") }) { reason = "no_further_changes" } |
| + self.init(tone: .negative, stop: EquipoStrings.text("work.stage.stopped"), lead: Self.format(EquipoStrings.text("work.pause.lead.stopped"), words.clockOrDay(step.finishedAt ?? now), StoppedReason.words(reason)), next: EquipoStrings.text("work.pause.next.try_again")) |
| + canRetry = mine && step.terminated == true |
| return |
| } |
| guard ["queued", "running"].contains(step.state) else { return nil } |
| if step.paused?.offline == true { |
| + defer { if mine { settingsPath = "/conversation/settings/machines"; settingsLabel = EquipoStrings.text("work.pause.check_machine") } } |
| guard let machine = step.runnerLabel, !machine.isEmpty else { |
| self.init(tone: .paused, stop: EquipoStrings.text("work.stage.paused"), lead: "", next: "") |
| return |
| @@ -68,14 +94,21 @@ extension TaskPause { |
| switch hold.reason { |
| case _ where hold.needsPerson == "no_connection" || hold.reason == "no_connection": |
| self.init(tone: .warning, stop: needs, lead: EquipoStrings.text("work.pause.lead.no_connection"), next: EquipoStrings.text("work.pause.next.choose")) |
| + if mine { settingsPath = "/conversation/settings/connections/add"; settingsLabel = EquipoStrings.text("work.pause.connect") } |
| case "spend_unknown": |
| let next = String(format: EquipoStrings.text("work.pause.next.spend_unknown"), name, name) |
| self.init(tone: .warning, stop: needs, lead: Self.format(EquipoStrings.text("work.pause.lead.spend_unknown"), name), next: next) |
| + if mine { resumeStep = step } |
| return |
| case _ where !(hold.needsPerson ?? "").isEmpty: |
| - self.init(tone: .warning, stop: needs, lead: "", next: EquipoStrings.text("work.pause.next.choose")) |
| + self.init(tone: .warning, stop: needs, lead: Self.splitLead(HeldLead.words(hold, name: name, due: task.priority?.by, words: words)), next: EquipoStrings.text("work.pause.next.choose")) |
| + if hold.reason == "budget" { |
| + if mine { settingsPath = "/conversation/settings/connections"; settingsLabel = EquipoStrings.text("work.hold.raise_budget") } |
| + return |
| + } |
| case "budget": |
| self.init(tone: .paused, stop: paused, lead: Self.until(hold.wakeAt, since: step.paused?.since, reason: String(format: EquipoStrings.text("work.pause.reason.budget"), name), words: words), next: EquipoStrings.text("work.pause.next.budget")) |
| + if mine { settingsPath = "/conversation/settings/connections"; settingsLabel = EquipoStrings.text("work.hold.raise_budget") } |
| return |
| case "busy": |
| self.init(tone: .paused, stop: paused, lead: Self.format(EquipoStrings.text("work.pause.moment"), String(format: EquipoStrings.text("work.pause.reason.busy"), name)), next: EquipoStrings.text("work.pause.next.busy")) |
| @@ -111,6 +144,11 @@ extension TaskPause { |
| } |
| } |
| + static func splitLead(_ words: String) -> (String, String) { |
| + guard let colon = words.firstIndex(of: ":") else { return ("", words) } |
| + return (String(words[...colon]), String(words[words.index(after: colon)...])) |
| + } |
| + |
| private init(tone: StageTone, stop: String, lead: (String, String), next: String) { |
| self.init(tone: tone, stop: stop, strong: lead.0, rest: lead.1, next: next) |
| } |
diff --git a/native/apple/Sources/EquipoKit/Presentation/ResumeAction.swift b/native/apple/Sources/EquipoKit/Presentation/ResumeAction.swift| new file mode 100644 |
| index 00000000..43edd10d |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/Presentation/ResumeAction.swift |
| @@ -0,0 +1,21 @@ |
| +import Foundation |
| +import Observation |
| + |
| +@MainActor @Observable final class ResumeAction { |
| + var connection: ResumeConnection? |
| + func load(client: EquipoClient, step: ThinStep) async { |
| + connection = nil |
| + if let list = try? await client.resumeConnections() { |
| + connection = StoppedWorkActions.connection(for: step, in: list.items ?? []) |
| + } |
| + } |
| + func perform(client: EquipoClient, step: ThinStep) async -> String? { |
| + guard let connection else { return nil } |
| + do { try await client.resumeConnection(connection); return nil } |
| + catch { |
| + // A stale pause revision must never be offered for the next tap. |
| + await load(client: client, step: step) |
| + return EquipoStrings.text("card.failed") |
| + } |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/Presentation/StoppedReason.swift b/native/apple/Sources/EquipoKit/Presentation/StoppedReason.swift| new file mode 100644 |
| index 00000000..eaff7ca2 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/Presentation/StoppedReason.swift |
| @@ -0,0 +1,9 @@ |
| +import Foundation |
| + |
| +enum StoppedReason { |
| + static func words(_ reason: String) -> String { |
| + let key = "work.reason." + reason |
| + let value = String(localized: String.LocalizationValue(key), bundle: .module) |
| + return value == key ? EquipoStrings.text("work.reason.other") : value |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings| index 305cd7f0..79908096 100644 |
| --- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings |
| +++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings |
| @@ -629,6 +629,83 @@ |
| } |
| } |
| }, |
| + "chat.held.budget": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ has reached its budget. Raise it, or wait for the budget to reset." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.run.after_by": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d run it now: %@ resets %@, after %@." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.run.no_connection": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d run it now: it needs a connection billed per token." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.run.no_reset": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d run it now: %@ has no reported reset in the next three days." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.spend_unknown": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Spend unknown. Check your spending at %@, then choose Resume." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.wait.before": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d wait: %@ resets %@, before %@." |
| + } |
| + } |
| + } |
| + }, |
| + "chat.held.wait.reset": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "I’d wait: %@ resets %@." |
| + } |
| + } |
| + } |
| + }, |
| "chat.paste.command": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -959,6 +1036,17 @@ |
| } |
| } |
| }, |
| + "native.step.log_tail": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Last lines of the log" |
| + } |
| + } |
| + } |
| + }, |
| "nav.projects": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2257,6 +2345,17 @@ |
| } |
| } |
| }, |
| + "team.close": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Close" |
| + } |
| + } |
| + } |
| + }, |
| "thinking.stop": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2444,6 +2543,17 @@ |
| } |
| } |
| }, |
| + "time.when_in": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ (%@)" |
| + } |
| + } |
| + } |
| + }, |
| "track.position %@ %@": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2466,6 +2576,28 @@ |
| } |
| } |
| }, |
| + "work.hold.raise_budget": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Raise the budget" |
| + } |
| + } |
| + } |
| + }, |
| + "work.hold.resume": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Resume" |
| + } |
| + } |
| + } |
| + }, |
| "work.hold.run_now": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2477,6 +2609,116 @@ |
| } |
| } |
| }, |
| + "work.needs.branch_moved": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: the branch moved on Amadan after it was checked" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.direction": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo is waiting for your choice." |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.fix_rounds": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: still not approved after two fix rounds" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.machine_removed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Stopped: the machine was removed mid-step. Make sure it's switched off, then Recover" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.many": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%d decisions, each in one tap." |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.merge_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: it still conflicts with the default branch after a rebase" |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.one": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "One decision, in one tap." |
| + } |
| + } |
| + } |
| + }, |
| + "work.needs.review_blocked": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you: the review ended without a verdict" |
| + } |
| + } |
| + } |
| + }, |
| + "work.pause.check_machine": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Check the machine" |
| + } |
| + } |
| + } |
| + }, |
| + "work.pause.connect": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Connect a model" |
| + } |
| + } |
| + } |
| + }, |
| "work.pause.lead.no_connection": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2499,6 +2741,17 @@ |
| } |
| } |
| }, |
| + "work.pause.lead.stopped": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Stopped at %@: %@" |
| + } |
| + } |
| + } |
| + }, |
| "work.pause.lead.too_old": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2741,6 +2994,17 @@ |
| } |
| } |
| }, |
| + "work.pause.try_again": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Try again" |
| + } |
| + } |
| + } |
| + }, |
| "work.pause.until": { |
| "extractionState": "manual", |
| "localizations": { |
| @@ -2752,6 +3016,798 @@ |
| } |
| } |
| }, |
| + "work.pause.update_runner": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Update the runner" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.account_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "no model account was ready" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.amadan_ci_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Amadan's own CI did not pass" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.amadan_ci_pending": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Amadan's own CI had not finished" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.base_checks_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the base version's checks failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.base_gate_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the check files from the base version could not be loaded" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.branch_moved": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the branch moved on Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.candidate_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the commit was not on Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.checks_timeout": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the checks ran out of time" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.checks_unavailable": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this runner cannot run the checks" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.clone_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner could not copy the project from Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_budget": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy cannot review all these strings within this task’s token allowance. Continue without Copy or ask the coordinator." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_budget_unknown": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy’s token use is unknown. Check the last attempt before continuing." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_question": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy needs you to clarify the meaning." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.copy_update_required": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Update the runner to continue the Copy review." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.interrupted": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner lost track of it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.limited": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "its model account reached its limit" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.machine_removed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the machine was removed mid-step" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it conflicts with the default branch" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Amadan did not merge it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_forbidden": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo may not merge in this repository" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_not_authorized": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "my rules require me to ask before merging" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.merge_unborn_default": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the first merge into this empty repository needs an Amadan update" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.needs_macos": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it needs a Mac" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.needs_network": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the checks need a network connection" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_changes": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "nothing needed changing" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_connection": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "nothing connected can run it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_further_changes": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it made no further changes to the candidate" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.no_verdict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the review gave no verdict" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.other": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "something went wrong" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.placement_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "no runner could take it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.policy_rejected": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo's rules blocked it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_cap": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the account already has 20 previews" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_config": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this version cannot use release/preview.json" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_expired": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this task's preview expired and its name is still taken" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "a Carloku command for the preview failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_header_missing": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "The preview host did not serve the safety header." |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_headers": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview host needs an update before it can apply the required security headers" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_host": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview host could not be verified" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_public_disabled": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "public previews are off for this project" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_scanner": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview was not published because its secret scan could not be completed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_secrets": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview was not published because its files may contain a secret" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_state": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo could not read the preview's state" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.preview_too_large": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the preview exceeds 2,000 files, 10 MiB per file or 50 MiB in total" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.proposal_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the branch was pushed, but the review request could not be created" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.provider_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the model connection failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.provider_rejected": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the model service declined the request" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_app_taken": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Carloku already has an app with this name" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_config": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this version cannot use release/preview.json" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the Carloku deploy failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_not_merged": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the merged commit is not on the default branch" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_off": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "this runner is not set up to publish sites" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.publish_too_large": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the site exceeds 2,000 files, 10 MiB per file or 50 MiB in total" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.push_conflict": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the branch changed on Amadan" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.push_failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the push to Amadan failed" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_no_grant": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it’s no longer on your team" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_no_inventory": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the primary machine reported no public internet address" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_no_sources": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "there was nothing to read" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.research_unsupported": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner needs an update to run Research" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.runner_offline": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner it needs was offline too long" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.runner_outdated": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner needs an update for previews" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.runner_restarted": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner restarted" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.sandbox_unproven": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the Mac's sandbox is not proven yet" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.sign_in_again": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "a model account needs you to sign in again" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.step_timeout": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it ran out of time" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.superseded": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "newer work replaced it" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.tools_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo refused the commands it needed to run" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.transfer_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the work could not move between runners" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.unknown": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner reported a problem this version of Equipo does not recognise" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.withdrawn": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "it was withdrawn before it started" |
| + } |
| + } |
| + } |
| + }, |
| + "work.reason.workspace_refused": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "the runner could not set up a place to work" |
| + } |
| + } |
| + } |
| + }, |
| + "work.recover": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Recover" |
| + } |
| + } |
| + } |
| + }, |
| "work.stage.needs_you": { |
| "extractionState": "manual", |
| "localizations": { |
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift| index 6d4df225..44de5f95 100644 |
| --- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift |
| +++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift |
| @@ -28,6 +28,7 @@ public final class EquipoSession { |
| /// A departing session can never become current again, even if a read |
| /// or credential renewal ignores cancellation and completes later. |
| public let lifetime: SignInLifetime |
| + let settings = SettingsPresentation() |
| public let markdown = MarkdownTranscript() |
| private var questionDrafts: [String: QuestionAnswerDraft] = [:] |
| /// The zone this session told Equipo (paused work): sent once, and again |
| @@ -105,10 +106,11 @@ public final class EquipoSession { |
| /// The tap carries what the button showed; if Run now would now do |
| /// anything else it is refused (409 offer_changed). Either way the task |
| /// is read again, so the screen shows the offer as it is. |
| - public func runNow(task id: String, _ run: TaskPause.RunNow) async { |
| - guard lifetime.isActive else { return } |
| - _ = try? await client.runNow(task: id, step: run.step, revision: run.revision, offer: run.offer) |
| + @discardableResult public func runNow(task id: String, _ run: TaskPause.RunNow) async -> String? { |
| + guard lifetime.isActive else { return nil } |
| + let message = await StoppedWorkActions.runNow(client: client, task: id, run: run) |
| await refresh() |
| + return message |
| } |
| /// Tells Equipo this device's time zone, so the times it words for the |
diff --git a/native/apple/Sources/EquipoKit/UI/Components.swift b/native/apple/Sources/EquipoKit/UI/Components.swift| index 8d37ae7f..8afb3673 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/Components.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/Components.swift |
| @@ -12,6 +12,8 @@ struct StepMark: View { |
| switch state { |
| case "done": |
| Image(systemName: "checkmark.circle.fill").resizable().foregroundStyle(Palette.positive) |
| + case "failed": |
| + Image(systemName: "exclamationmark.circle.fill").resizable().foregroundStyle(Palette.negative) |
| case "waiting": |
| Image(systemName: needsYou ? "hand.raised.circle.fill" : "pause.circle.fill").resizable() |
| .foregroundStyle(Palette.warning) |
| @@ -28,6 +30,7 @@ struct StepMark: View { |
| /// it went, and the step's own headline. |
| struct StepsView: View { |
| let task: ThinTask |
| + var client: EquipoClient? |
| var body: some View { |
| let steps = task.steps ?? [] |
| VStack(alignment: .leading, spacing: 0) { |
| @@ -35,31 +38,34 @@ struct StepsView: View { |
| let last = index == steps.count - 1 |
| HStack(alignment: .top, spacing: 12) { |
| VStack(spacing: 4) { |
| - StepMark(state: step.state, needsYou: false) |
| + StepMark(state: step.state, needsYou: false).accessibilityHidden(true) |
| if !last { |
| Capsule().fill(step.state == "done" ? Palette.positive.opacity(0.55) : Palette.border) |
| .frame(width: 2).frame(maxHeight: .infinity) |
| } |
| }.padding(.bottom, last ? 0 : 4) |
| VStack(alignment: .leading, spacing: 4) { |
| - HStack(alignment: .firstTextBaseline) { |
| - SpecialistLabel(category: step.specialist, tone: step.state == "queued" ? Palette.secondary : Palette.text) |
| - Spacer(minLength: 8) |
| - Text(Self.label(step.state)).font(Typo.caption) |
| - .foregroundStyle(step.state == "failed" ? Palette.negative : step.state == "done" ? Palette.positive : Palette.secondary) |
| - } |
| - let line = step.headline.isEmpty ? step.summary : step.headline |
| - if !line.isEmpty { |
| - Text(line).font(Typo.secondary) |
| - .foregroundStyle(step.state == "queued" ? Palette.secondary : Palette.text) |
| - .fixedSize(horizontal: false, vertical: true) |
| - } |
| - if let finished = step.finishedAt { |
| - Text(finished.formatted(date: .abbreviated, time: .shortened)).font(Typo.caption).foregroundStyle(Palette.faint) |
| - } |
| + VStack(alignment: .leading, spacing: 4) { |
| + HStack(alignment: .firstTextBaseline) { |
| + SpecialistLabel(category: step.specialist, tone: step.state == "queued" ? Palette.secondary : Palette.text) |
| + Spacer(minLength: 8) |
| + Text(Self.label(step.state)).font(Typo.caption) |
| + .foregroundStyle(step.state == "failed" ? Palette.negative : step.state == "done" ? Palette.positive : Palette.secondary) |
| + } |
| + let line = step.headline.isEmpty ? step.summary : step.headline |
| + if !line.isEmpty { |
| + Text(line).font(Typo.secondary) |
| + .foregroundStyle(step.state == "queued" ? Palette.secondary : Palette.text) |
| + .fixedSize(horizontal: false, vertical: true) |
| + } |
| + if let finished = step.finishedAt { |
| + Text(finished.formatted(date: .abbreviated, time: .shortened)).font(Typo.caption).foregroundStyle(Palette.faint) |
| + } |
| + }.accessibilityElement(children: .combine) |
| + if step.state == "failed", let client { StepLogView(stepID: step.id, client: client) } |
| }.padding(.bottom, last ? 0 : 20) |
| }.fixedSize(horizontal: false, vertical: true) |
| - .accessibilityElement(children: .combine) |
| + .accessibilityElement(children: .contain) |
| } |
| } |
| } |
diff --git a/native/apple/Sources/EquipoKit/UI/LiveCards.swift b/native/apple/Sources/EquipoKit/UI/LiveCards.swift| index 21a5513b..b460994f 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/LiveCards.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/LiveCards.swift |
| @@ -301,12 +301,13 @@ struct AsideStub: View { |
| /// facts; one line while its decision is open beside it. |
| public struct LiveReport: View { |
| let report: TaskReport |
| + var session: EquipoSession? |
| var compact = false |
| var wide = false |
| var onOpen: () -> Void = {} |
| var onRunNow: ((TaskPause.RunNow) -> Void)? = nil |
| - public init(report: TaskReport, compact: Bool = false, wide: Bool = false, onRunNow: ((TaskPause.RunNow) -> Void)? = nil, onOpen: @escaping () -> Void = {}) { |
| - self.report = report; self.compact = compact; self.wide = wide; self.onRunNow = onRunNow; self.onOpen = onOpen |
| + public init(report: TaskReport, session: EquipoSession? = nil, compact: Bool = false, wide: Bool = false, onRunNow: ((TaskPause.RunNow) -> Void)? = nil, onOpen: @escaping () -> Void = {}) { |
| + self.report = report; self.session = session; self.compact = compact; self.wide = wide; self.onRunNow = onRunNow; self.onOpen = onOpen |
| } |
| public var body: some View { |
| VStack(alignment: .leading, spacing: Metric.gap) { |
| @@ -332,7 +333,10 @@ public struct LiveReport: View { |
| Text(report.title).font(Typo.reportTitle).foregroundStyle(Palette.text) |
| .fixedSize(horizontal: false, vertical: true) |
| } |
| - if let pause = report.pause { PauseLead(pause: pause, onRunNow: onRunNow) } |
| + if let pause = report.pause { |
| + if let session { TaskPauseActions(pause: pause, taskID: report.task.id, session: session) } |
| + else { PauseLead(pause: pause, onRunNow: onRunNow) } |
| + } |
| if !report.cancelled { StageTrack(track: report.track, allLabels: wide) } |
| if !report.facts.isEmpty { FactsView(facts: report.facts, wide: wide) } |
| QuietLink(title: String(localized: "task.open", bundle: .module), icon: "chevron.right", action: onOpen) |
diff --git a/native/apple/Sources/EquipoKit/UI/RosterViews.swift b/native/apple/Sources/EquipoKit/UI/RosterViews.swift| index 81b77d5f..79e81cc3 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/RosterViews.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/RosterViews.swift |
| @@ -678,7 +678,7 @@ struct PauseLead: View { |
| var body: some View { |
| VStack(alignment: .leading, spacing: 8) { |
| if !pause.strong.isEmpty || !pause.rest.isEmpty { |
| - (Text(pause.strong).bold().foregroundStyle(pause.tone.dot) + Text(pause.rest).foregroundStyle(Palette.text)) |
| + Text("\(Text(pause.strong).bold().foregroundStyle(pause.tone.dot))\(Text(pause.rest).foregroundStyle(Palette.text))") |
| .font(Typo.body).fixedSize(horizontal: false, vertical: true) |
| } |
| if !pause.next.isEmpty { |
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift| index 6a2eefe0..dce40e57 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift |
| @@ -80,7 +80,7 @@ public struct ConversationScreen: View { |
| case .report(_, let byline, let report, let compact): |
| VStack(alignment: .leading, spacing: 8) { |
| Byline(byline: byline) |
| - LiveReport(report: report, compact: compact, onRunNow: { run in Task { await session.runNow(task: report.task.id, run) } }) { openTask(report.task.id) } |
| + LiveReport(report: report, session: session, compact: compact, onRunNow: { run in Task { await session.runNow(task: report.task.id, run) } }) { openTask(report.task.id) } |
| } |
| case .question(let card, let byline): |
| VStack(alignment: .leading, spacing: 8) { |
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift b/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift| index e15da3ad..849710e5 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/Screens/PhoneRoot.swift |
| @@ -84,6 +84,7 @@ struct PhoneTabs: View { |
| } |
| } |
| } |
| + .modifier(SettingsSheetPresenter(session: session)) |
| .sheet(isPresented: $showingAccount) { |
| NavigationStack { AccountScreen(model: model, session: session).navigationTitle(session.teamName) } |
| } |
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift| index dbc4ae61..900f4955 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift |
| @@ -163,7 +163,7 @@ public struct TaskScreen: View { |
| if report.pause == nil { Text(report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow) } |
| Text(task.title).font(Typo.reportTitle).foregroundStyle(Palette.text).fixedSize(horizontal: false, vertical: true) |
| } |
| - if let pause = report.pause { PauseLead(pause: pause) { run in Task { await session.runNow(task: task.id, run) } } } |
| + if let pause = report.pause { TaskPauseActions(pause: pause, taskID: task.id, session: session) } |
| if !report.cancelled { StageTrack(track: report.track, allLabels: true) } |
| if !report.facts.isEmpty { FactsView(facts: report.facts, wide: false) } |
| TaskCards(session: session, task: task) |
| @@ -177,7 +177,7 @@ public struct TaskScreen: View { |
| if !(task.steps ?? []).isEmpty { |
| VStack(alignment: .leading, spacing: 10) { |
| SectionTitle(text: String(localized: "task.steps", bundle: .module)) |
| - Panel { StepsView(task: task) } |
| + Panel { StepsView(task: task, client: session.client) } |
| } |
| } |
| if !task.brief.isEmpty { |
diff --git a/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift b/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift| new file mode 100644 |
| index 00000000..9dc176bc |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift |
| @@ -0,0 +1,54 @@ |
| +import SwiftUI |
| +import Observation |
| +#if os(iOS) |
| +import SafariServices |
| +#else |
| +import AppKit |
| +#endif |
| + |
| +/// Only the fixed settings routes offered by the task can leave the app. |
| +enum SettingsNavigation { |
| + static func open(origin: URL, path: String, opener: (URL) -> Void) { |
| + guard ["/conversation/settings/machines", "/conversation/settings/connections", "/conversation/settings/connections/add"].contains(path), |
| + var url = URLComponents(url: origin, resolvingAgainstBaseURL: false) else { return } |
| + url.path = path; url.query = nil; url.fragment = nil |
| + if let destination = url.url { opener(destination) } |
| + } |
| +} |
| + |
| +@MainActor @Observable final class SettingsPresentation { |
| + struct Page: Identifiable { let url: URL; var id: URL { url } } |
| + var page: Page? |
| + func open(origin: URL, path: String) { |
| + SettingsNavigation.open(origin: origin, path: path) { url in |
| + #if os(macOS) |
| + NSWorkspace.shared.open(url) |
| + #else |
| + page = Page(url: url) |
| + #endif |
| + } |
| + } |
| +} |
| + |
| +/// Owned by the signed-in tab container, which survives changing task pauses. |
| +struct SettingsSheetPresenter: ViewModifier { |
| + let session: EquipoSession |
| + func body(content: Content) -> some View { |
| + #if os(iOS) |
| + @Bindable var presentation = session.settings |
| + content.sheet(item: $presentation.page, onDismiss: { Task { await session.refresh() } }) { page in |
| + SafariSettingsView(url: page.url).ignoresSafeArea() |
| + } |
| + #else |
| + content |
| + #endif |
| + } |
| +} |
| + |
| +#if os(iOS) |
| +private struct SafariSettingsView: UIViewControllerRepresentable { |
| + let url: URL |
| + func makeUIViewController(context: Context) -> SFSafariViewController { SFSafariViewController(url: url) } |
| + func updateUIViewController(_ controller: SFSafariViewController, context: Context) {} |
| +} |
| +#endif |
diff --git a/native/apple/Sources/EquipoKit/UI/StepLogView.swift b/native/apple/Sources/EquipoKit/UI/StepLogView.swift| new file mode 100644 |
| index 00000000..afcb4e8d |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/StepLogView.swift |
| @@ -0,0 +1,61 @@ |
| +import SwiftUI |
| + |
| +struct StepLogView: View { |
| + let stepID: String |
| + let client: EquipoClient |
| + #if DEBUG |
| + @State private var expanded = ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] == "stopped" |
| + #else |
| + @State private var expanded = false |
| + #endif |
| + @State private var tail: String? |
| + @State private var failure: String? |
| + @State private var contentHeight: CGFloat = 44 |
| + |
| + var body: some View { |
| + DisclosureGroup(isExpanded: $expanded) { |
| + Group { |
| + if let tail { |
| + ScrollView(scrollAxes) { |
| + logText(tail) |
| + .padding(8) |
| + .onGeometryChange(for: CGFloat.self) { $0.size.height } action: { contentHeight = $0 } |
| + } |
| + .defaultScrollAnchor(.topLeading) |
| + .frame(height: min(max(contentHeight, 44), 180)) |
| + .background(Palette.surface2, in: .rect(cornerRadius: 8)) |
| + } else if let failure { |
| + Text(failure).font(Typo.secondary) |
| + Button(EquipoStrings.text("read.retry")) { Task { await load() } } |
| + } else { ProgressView(EquipoStrings.text("native.step.log_tail")) } |
| + } |
| + .task { await load() } |
| + } label: { |
| + // COPY APPROVED (Luna via controller, 2026-11-25). |
| + Text(EquipoStrings.text("native.step.log_tail")).font(Typo.secondary) |
| + } |
| + } |
| + |
| + private var scrollAxes: Axis.Set { |
| + #if os(iOS) |
| + .vertical |
| + #else |
| + [.horizontal, .vertical] |
| + #endif |
| + } |
| + |
| + @ViewBuilder private func logText(_ tail: String) -> some View { |
| + #if os(iOS) |
| + WrappingLogText(text: tail) |
| + #else |
| + Text(verbatim: tail).font(.system(.caption, design: .monospaced)) |
| + .textSelection(.enabled).fixedSize() |
| + #endif |
| + } |
| + |
| + private func load() async { |
| + failure = nil |
| + do { tail = try await client.stepLog(stepID).boundedTail } |
| + catch { failure = StoppedWorkActions.logFailure(error) } |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift b/native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift| new file mode 100644 |
| index 00000000..21a8e4c6 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift |
| @@ -0,0 +1,99 @@ |
| +#if DEBUG |
| +import SwiftUI |
| +#if os(macOS) |
| +import AppKit |
| +#endif |
| + |
| +/// Offline visual fixture. Only compiled into Debug builds; never touches a |
| +/// saved account, keychain or network. Launch with EQUIPO_STOPPED_FIXTURE. |
| +public struct StoppedWorkFixture: View { |
| + @State private var session: EquipoSession |
| + public init() { session = Self.makeSession() } |
| + public static func makeSession() -> EquipoSession { |
| + let transport = StoppedFixtureTransport() |
| + var account = DeviceAccount.new(origin: transport.origin, label: "Fixture") |
| + account.credential = DeviceCredential(id: "fixture", token: "fixture", audience: "equipo.person.v1", instanceId: "fixture", expiresAt: .distantFuture) |
| + return EquipoSession(account: account, accounts: DeviceAccounts(store: MemorySecretStore()), transport: transport) |
| + } |
| + public var body: some View { |
| + NavigationStack { |
| + TaskScreen(session: session, taskID: "fixture") |
| + .navigationTitle(EquipoStrings.text("task.title")) |
| + } |
| + .modifier(SettingsSheetPresenter(session: session)) |
| + .task { |
| + await session.refresh() |
| + #if os(macOS) |
| + // Capture this app's own native window when desktop recording is |
| + // unavailable. No other app or screen is read. |
| + if let path = ProcessInfo.processInfo.environment["EQUIPO_FIXTURE_CAPTURE"] { |
| + try? await Task.sleep(for: .seconds(2)) |
| + if let window = NSApp.windows.first(where: { $0.isVisible && !$0.isSheet }), let view = window.contentView { |
| + window.setContentSize(NSSize(width: 800, height: 850)) |
| + view.layoutSubtreeIfNeeded() |
| + window.displayIfNeeded() |
| + if let bitmap = view.bitmapImageRepForCachingDisplay(in: view.bounds) { |
| + view.cacheDisplay(in: view.bounds, to: bitmap) |
| + if let data = bitmap.representation(using: .png, properties: [:]) { |
| + _ = FileManager.default.createFile(atPath: path, contents: data) |
| + } |
| + } |
| + } |
| + } |
| + #endif |
| + } |
| + } |
| +} |
| + |
| +private struct StoppedFixtureTransport: EquipoTransport { |
| + let origin = URL(string: "https://fixture.invalid")! |
| + private var resume: Bool { ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] == "conversation-resume" } |
| + private var paused: Bool { ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] == "paused" } |
| + func send(_ request: APIRequest) async throws -> APIResponse { |
| + let data: Data |
| + switch request.path { |
| + case "/snapshot": |
| + data = try JSONSerialization.data(withJSONObject: ["me": ["id": "fixture", "address": "paul@example.com", "role": "owner", "team_id": "fixture", "team_name": "Oficina", "revision": 1], "cursor": 1, "tasks": [task], "messages": messages, "turns": [], "cards": cards, "projects": []]) |
| + case "/needs-you" where paused: data = Data(#"{"items":[]}"#.utf8) |
| + case "/tasks", "/needs-you": data = try JSONSerialization.data(withJSONObject: ["items": [task]]) |
| + case "/tasks/fixture": data = try JSONSerialization.data(withJSONObject: task) |
| + case "/steps/failed/log": data = try JSONSerialization.data(withJSONObject: ["step_id": "failed", "attempt": 1, "tail": "git push amadan equipo/needs-badge-sign-out\nremote: HTTP 429 Too Many Requests\nfatal: the remote end hung up unexpectedly\nexit status 128"]) |
| + case "/connections": |
| + try await Task.sleep(for: .milliseconds(1500)) |
| + data = Data(#"{"items":[{"id":"cn_fixture","runner_id":"runner","local_id":"codex-1","provider":"codex","spend":{"unknown":true,"pause_revision":7}}]}"#.utf8) |
| + case "/tasks/fixture/retry": return APIResponse(status: 500, data: Data()) |
| + case "/projects": data = Data(#"{"items":[]}"#.utf8) |
| + default: data = Data("{}".utf8) |
| + } |
| + return APIResponse(status: 200, data: data) |
| + } |
| + func lines(_ request: APIRequest) async throws -> AsyncThrowingStream<String, Error> { AsyncThrowingStream { $0.finish() } } |
| + private var cards: [[String: Any]] { |
| + guard ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"]?.hasPrefix("conversation-") == true else { return [] } |
| + return [["id": "report", "revision": 1, "kind": "task", "state": "open", "turn_id": "", "project_id": "project", "name": "", "question": "", "choice": "", "task_id": "fixture", "created_at": "2026-11-25T10:42:00Z", "updated_at": "2026-11-25T10:42:00Z"]] |
| + } |
| + private var messages: [[String: Any]] { |
| + guard !cards.isEmpty else { return [] } |
| + return [["id": "followup", "revision": 1, "role": "person", "text": "Please keep the current branch.", "turn_id": "", "created_at": "2026-11-25T10:43:00Z"]] |
| + } |
| + private var task: [String: Any] { |
| + let calendar = Calendar.current |
| + let today = calendar.startOfDay(for: Date()) |
| + let stop = calendar.date(byAdding: .minute, value: 10 * 60 + 42, to: today)! |
| + let resetToday = calendar.date(byAdding: .hour, value: 21, to: today)! |
| + let reset = resetToday > Date() ? resetToday : calendar.date(byAdding: .day, value: 1, to: resetToday)! |
| + let iso = ISO8601DateFormatter() |
| + var step: [String: Any] = ["id": "failed", "specialist": "engineering", "state": "failed", "reason": "push_failed", "terminated": true, "headline": "Push the branch", "summary": "", "verdict": "", "review_label": "", "checks": "", "gate": "", "finished_at": iso.string(from: stop)] |
| + if paused { |
| + step["state"] = "queued"; step["reason"] = ""; step["headline"] = ""; step.removeValue(forKey: "finished_at") |
| + step["hold"] = ["reason": "headroom", "provider": "claude", "connection": "claude-1", "step_revision": 4, "resets_at": iso.string(from: reset)] |
| + step["paused"] = ["since": iso.string(from: stop), "used_percent": 100, "run_now": ["connection": "codex-1", "name": "Codex", "provider": "codex", "billing": "subscription"]] |
| + } |
| + if resume { |
| + step["state"] = "queued"; step["reason"] = ""; step["runner_id"] = "runner" |
| + step["hold"] = ["reason": "spend_unknown", "provider": "codex", "connection": "codex-1", "step_revision": 4] |
| + } |
| + return ["id": "fixture", "revision": 1, "project_id": "project", "project": "Equipo", "title": paused ? "Show the stop reason on the native task view" : "Fix the Needs you badge after sign-out", "brief": "", "stage": "in_progress", "branch": "equipo/needs-badge-sign-out", "url": "", "candidate_sha": "3f9c2a1", "checks": "", "checks_reason": "", "verdict": "", "review_label": "", "needs_you": resume ? "held" : paused ? "" : "retry", "creator": "paul@example.com", "created_at": iso.string(from: stop), "updated_at": iso.string(from: stop), "steps": [step]] |
| + } |
| +} |
| +#endif |
diff --git a/native/apple/Sources/EquipoKit/UI/TaskPauseActions.swift b/native/apple/Sources/EquipoKit/UI/TaskPauseActions.swift| new file mode 100644 |
| index 00000000..cbf30bc5 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/TaskPauseActions.swift |
| @@ -0,0 +1,62 @@ |
| +import SwiftUI |
| + |
| +/// The same pause and actions on a task and its conversation report. |
| +struct TaskPauseActions: View { |
| + let pause: TaskPause |
| + let taskID: String |
| + let session: EquipoSession |
| + @State private var busy = false |
| + @State private var message: String? |
| + @State private var resume = ResumeAction() |
| + |
| + var body: some View { |
| + VStack(alignment: .leading, spacing: 8) { |
| + PauseLead(pause: pause) { run in |
| + perform { await session.runNow(task: taskID, run) } |
| + } |
| + if pause.canRetry { |
| + RosterButton(title: EquipoStrings.text("work.pause.try_again"), primary: true, expanded: true) { |
| + perform { await StoppedWorkActions.retry(client: session.client, task: taskID) } |
| + } |
| + } |
| + if pause.canRecover { |
| + RosterButton(title: EquipoStrings.text("work.recover"), primary: true) { |
| + perform { await StoppedWorkActions.recover(client: session.client, task: taskID) } |
| + } |
| + } |
| + if let step = pause.resumeStep, resume.connection != nil { |
| + RosterButton(title: EquipoStrings.text("work.hold.resume"), primary: true) { |
| + perform { await resume.perform(client: session.client, step: step) } |
| + } |
| + } |
| + if let path = pause.settingsPath, let label = pause.settingsLabel { |
| + RosterButton(title: label) { session.settings.open(origin: session.origin, path: path) } |
| + } |
| + if let message { Text(message).font(Typo.secondary).foregroundStyle(Palette.negative) } |
| + if busy { ProgressView(EquipoStrings.text("action.sending")) } |
| + } |
| + .disabled(busy) |
| + #if DEBUG |
| + .task { |
| + if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] == "conversation-retry" { |
| + try? await Task.sleep(for: .milliseconds(700)) |
| + perform { await StoppedWorkActions.retry(client: session.client, task: taskID) } |
| + } |
| + } |
| + #endif |
| + .task(id: pause.resumeStep) { |
| + resume.connection = nil |
| + if let step = pause.resumeStep { await resume.load(client: session.client, step: step) } |
| + } |
| + } |
| + |
| + private func perform(_ action: @escaping @MainActor () async -> String?) { |
| + guard !busy else { return } |
| + busy = true; message = nil |
| + Task { |
| + message = await action() |
| + await session.refresh() |
| + busy = false |
| + } |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/UI/WrappingLogText.swift b/native/apple/Sources/EquipoKit/UI/WrappingLogText.swift| new file mode 100644 |
| index 00000000..490c0d06 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/WrappingLogText.swift |
| @@ -0,0 +1,34 @@ |
| +#if os(iOS) |
| +import SwiftUI |
| +import UIKit |
| + |
| +/// UIKit supplies character wrapping without inserting characters into the |
| +/// log, so selection and copying preserve the exact stored text. |
| +struct WrappingLogText: UIViewRepresentable { |
| + let text: String |
| + |
| + func makeUIView(context: Context) -> UITextView { |
| + let view = UITextView() |
| + view.isEditable = false |
| + view.isSelectable = true |
| + view.isScrollEnabled = false |
| + view.backgroundColor = .clear |
| + view.textContainerInset = .zero |
| + view.textContainer.lineFragmentPadding = 0 |
| + view.textContainer.lineBreakMode = .byCharWrapping |
| + view.adjustsFontForContentSizeCategory = true |
| + return view |
| + } |
| + |
| + func updateUIView(_ view: UITextView, context: Context) { |
| + view.text = text |
| + view.textColor = .label |
| + view.font = UIFontMetrics(forTextStyle: .caption1).scaledFont(for: .monospacedSystemFont(ofSize: 12, weight: .regular)) |
| + } |
| + |
| + func sizeThatFits(_ proposal: ProposedViewSize, uiView: UITextView, context: Context) -> CGSize? { |
| + guard let width = proposal.width else { return nil } |
| + return uiView.sizeThatFits(CGSize(width: width, height: .greatestFiniteMagnitude)) |
| + } |
| +} |
| +#endif |
diff --git a/native/apple/Sources/EquipoMac/EquipoMacApp.swift b/native/apple/Sources/EquipoMac/EquipoMacApp.swift| index ce7ea393..1b8cb729 100644 |
| --- a/native/apple/Sources/EquipoMac/EquipoMacApp.swift |
| +++ b/native/apple/Sources/EquipoMac/EquipoMacApp.swift |
| @@ -15,15 +15,30 @@ import SwiftUI |
| #if canImport(RastrilloMacUpdates) |
| // Quiet, as the other Oficina apps: a scheduled check never opens a |
| // window; an update downloads in the background and installs on quit. |
| - @State private var updater = NativeUpdater(policy: .quiet) |
| + @State private var updater: NativeUpdater? = { |
| + #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_STOPPED_FIXTURE"] != nil { return nil } |
| + #endif |
| + return NativeUpdater(policy: .quiet) |
| + }() |
| #endif |
| var body: some Scene { |
| WindowGroup(EquipoStrings.text("app.name")) { |
| - MacRoot(model: model) |
| + Group { |
| + #if DEBUG |
| + if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"]?.hasPrefix("conversation-") == true { StoppedConversationFixture() } |
| + else if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil { StoppedWorkFixture() } |
| + else { MacRoot(model: model) } |
| + #else |
| + MacRoot(model: model) |
| + #endif |
| + } |
| #if canImport(RastrilloMacUpdates) |
| .safeAreaInset(edge: .bottom) { |
| - if updater.canInstallPendingUpdate { NativeUpdateNotice(updater: updater).padding(.bottom, 12) } |
| + if let updater, updater.canInstallPendingUpdate { NativeUpdateNotice(updater: updater).padding(.bottom, 12) } |
| } |
| #endif |
| } |
| @@ -32,7 +47,7 @@ import SwiftUI |
| // First: About, Hide and Quit say "Equipo", not the Finder name. |
| PlainAppNameCommands() |
| #if canImport(RastrilloMacUpdates) |
| - NativeUpdateCommands(updater: updater) |
| + if let updater { NativeUpdateCommands(updater: updater) } |
| #endif |
| } |
| Settings { MacSettings(model: model) } |
diff --git a/native/apple/Sources/EquipoMac/LiveTranscript.swift b/native/apple/Sources/EquipoMac/LiveTranscript.swift| index fa322fc1..c28db873 100644 |
| --- a/native/apple/Sources/EquipoMac/LiveTranscript.swift |
| +++ b/native/apple/Sources/EquipoMac/LiveTranscript.swift |
| @@ -215,7 +215,7 @@ final class LiveTranscript: NSView { |
| case .report(_, let byline, let report, let compact): |
| place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap) |
| let session = self.session |
| - place(hosted(LiveReport(report: report, compact: compact, wide: true, onRunNow: { run in Task { await session.runNow(task: report.task.id, run) } }) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24) |
| + place(hosted(LiveReport(report: report, session: session, compact: compact, wide: true, onRunNow: { run in Task { await session.runNow(task: report.task.id, run) } }) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24) |
| case .question(let card, let byline): |
| place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap) |
| if card.rememberName != nil || card.isTypedProjectChoice { |
| @@ -275,9 +275,12 @@ final class LiveTranscript: NSView { |
| /// A SwiftUI Roster view (the report's track and facts, the thinking |
| /// line), sized to the column. |
| private func hosted<V: View>(_ view: V, width: CGFloat) -> NSView { |
| - let host = NSHostingView(rootView: view.frame(width: width, alignment: .leading)) |
| - host.frame.size = NSSize(width: width, height: ceil(host.fittingSize.height)) |
| - return host |
| + ResizingHostingView(content: view, width: width) { [weak self] host, height in |
| + guard let self else { return } |
| + let pinned = self.isAtBottom |
| + self.resizeHost(host, measuredHeight: height) |
| + if pinned { self.scrollToBottom() } |
| + } |
| } |
| private func receiptRow(_ card: ThinCard, width: CGFloat) -> NSView { |
| @@ -324,12 +327,14 @@ final class LiveTranscript: NSView { |
| resizeHost(host) |
| } |
| - private func resizeHost(_ host: NSView) { |
| + private func resizeHost(_ host: NSView, measuredHeight: CGFloat? = nil) { |
| guard let row = host.superview, row.superview === document else { return } |
| - let height = ceil(host.fittingSize.height) |
| + let height = measuredHeight ?? ceil(host.fittingSize.height) |
| let delta = height - host.frame.height |
| guard abs(delta) > 0.5 else { return } |
| let top = row.frame.minY |
| + let previousBottom = host.frame.maxY |
| + for sibling in row.subviews where sibling !== host && sibling.frame.minY >= previousBottom { sibling.frame.origin.y += delta } |
| host.frame.size.height = height |
| row.frame.size.height += delta |
| for view in document.subviews where view !== row && view.frame.minY > top { |
diff --git a/native/apple/Sources/EquipoMac/ResizingHostingView.swift b/native/apple/Sources/EquipoMac/ResizingHostingView.swift| new file mode 100644 |
| index 00000000..2b6a54ad |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoMac/ResizingHostingView.swift |
| @@ -0,0 +1,31 @@ |
| +import AppKit |
| +import SwiftUI |
| + |
| +/// SwiftUI reports its natural height even after asynchronous content changes. |
| +/// The transcript keeps its row identity and shifts everything below it. |
| +@MainActor final class ResizingHostingView<Content: View>: NSHostingView<MeasuredContent<Content>> { |
| + init(content: Content, width: CGFloat, onHeightChange: @escaping (NSView, CGFloat) -> Void) { |
| + super.init(rootView: MeasuredContent(content: content, width: width, changed: { _ in })) |
| + rootView = MeasuredContent(content: content, width: width) { [weak self] height in |
| + Task { @MainActor [weak self] in |
| + await Task.yield() |
| + guard let self else { return } |
| + onHeightChange(self, ceil(height)) |
| + } |
| + } |
| + frame.size = NSSize(width: width, height: ceil(fittingSize.height)) |
| + } |
| + required init(rootView: MeasuredContent<Content>) { super.init(rootView: rootView) } |
| + required init?(coder: NSCoder) { fatalError() } |
| +} |
| + |
| +struct MeasuredContent<Content: View>: View { |
| + let content: Content |
| + let width: CGFloat |
| + let changed: (CGFloat) -> Void |
| + var body: some View { |
| + content.frame(width: width, alignment: .leading) |
| + .fixedSize(horizontal: false, vertical: true) |
| + .onGeometryChange(for: CGFloat.self) { $0.size.height } action: { changed($0) } |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoMac/StoppedConversationFixture.swift b/native/apple/Sources/EquipoMac/StoppedConversationFixture.swift| new file mode 100644 |
| index 00000000..297f7850 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoMac/StoppedConversationFixture.swift |
| @@ -0,0 +1,26 @@ |
| +#if DEBUG |
| +import AppKit |
| +import EquipoKit |
| +import SwiftUI |
| + |
| +/// Captures the real AppKit conversation after its asynchronous actions settle. |
| +struct StoppedConversationFixture: View { |
| + @State private var session = StoppedWorkFixture.makeSession() |
| + var body: some View { |
| + TranscriptView(projectSelectionID: nil, projectSelectionNotice: nil, items: Feed.build(session), session: session, focusCard: .constant(nil), openTask: { _ in }) |
| + .frame(minWidth: 800, minHeight: 760) |
| + .task { |
| + await session.refresh() |
| + try? await Task.sleep(for: .seconds(4)) |
| + guard let path = ProcessInfo.processInfo.environment["EQUIPO_FIXTURE_CAPTURE"], |
| + let window = NSApp.windows.first(where: { $0.isVisible && !$0.isSheet }), let view = window.contentView else { return } |
| + window.setContentSize(NSSize(width: 900, height: 900)) |
| + view.layoutSubtreeIfNeeded(); window.displayIfNeeded() |
| + if let bitmap = view.bitmapImageRepForCachingDisplay(in: view.bounds) { |
| + view.cacheDisplay(in: view.bounds, to: bitmap) |
| + if let data = bitmap.representation(using: .png, properties: [:]) { _ = FileManager.default.createFile(atPath: path, contents: data) } |
| + } |
| + } |
| + } |
| +} |
| +#endif |
diff --git a/native/apple/Tests/EquipoKitTests/ResizingHostTests.swift b/native/apple/Tests/EquipoKitTests/ResizingHostTests.swift| new file mode 100644 |
| index 00000000..66899b31 |
| --- /dev/null |
| +++ b/native/apple/Tests/EquipoKitTests/ResizingHostTests.swift |
| @@ -0,0 +1,38 @@ |
| +#if os(macOS) |
| +import AppKit |
| +import SwiftUI |
| +import Observation |
| +import Testing |
| +@testable import EquipoMac |
| + |
| +@MainActor @Observable private final class GrowingContent { var expanded = false } |
| +@MainActor @Suite(.serialized) struct ResizingHostTests { |
| + @Test func lateContentRemeasuresItsHost() async throws { |
| + let state = GrowingContent() |
| + var heights: [CGFloat] = [] |
| + let host = ResizingHostingView(content: GrowingView(state: state), width: 300) { _, height in heights.append(height) } |
| + let window = NSWindow(contentRect: NSRect(x: 0, y: 0, width: 400, height: 400), styleMask: [.borderless], backing: .buffered, defer: false) |
| + window.contentView = host |
| + defer { window.contentView = nil } |
| + window.orderFront(nil) |
| + func waitForHeight(_ height: CGFloat) async throws { |
| + for _ in 0..<250 { |
| + host.layoutSubtreeIfNeeded() |
| + if heights.last == height { return } |
| + try await Task.sleep(for: .milliseconds(20)) |
| + } |
| + #expect(heights.last == height) |
| + } |
| + try await waitForHeight(30) |
| + state.expanded = true |
| + try await waitForHeight(160) |
| + state.expanded = false |
| + try await waitForHeight(30) |
| + window.orderOut(nil) |
| + } |
| +} |
| +private struct GrowingView: View { |
| + var state: GrowingContent |
| + var body: some View { Color.clear.frame(height: state.expanded ? 160 : 30) } |
| +} |
| +#endif |
diff --git a/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift| new file mode 100644 |
| index 00000000..ba8dbb45 |
| --- /dev/null |
| +++ b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift |
| @@ -0,0 +1,241 @@ |
| +import Foundation |
| +import Testing |
| +@testable import EquipoKit |
| + |
| +@MainActor @Suite struct StoppedWorkTests { |
| + private func stopped(reason: String = "push_failed", terminated: Bool = true) throws -> ThinTask { |
| + var task: ThinTask = try Fixture.decode("thin/task") |
| + task.stage = "in_progress"; task.needsYou = "retry" |
| + task.steps = [try EquipoJSON.decoder.decode(ThinStep.self, from: Data(""" |
| + {"id":"stopped","specialist":"engineering","state":"failed","reason":"\(reason)","terminated":\(terminated),"summary":"","headline":"Push the branch","verdict":"","review_label":"","checks":"","gate":"","finished_at":"2026-11-25T10:42:00Z"} |
| + """.utf8))] |
| + return task |
| + } |
| + |
| + @Test func stoppedLeadUsesTheWebWordsAndLocalTime() throws { |
| + let task = try stopped() |
| + let now = ISO8601DateFormatter().date(from: "2026-11-25T12:00:00Z")! |
| + let pause = try #require(TaskPause(task, mine: true, now: now, zone: TimeZone(identifier: "Europe/Madrid")!, locale: Locale(identifier: "en_GB"))) |
| + #expect(pause.strong == "Stopped at 11:42:") |
| + #expect(pause.rest == " the push to Amadan failed") |
| + } |
| + |
| + @Test func retryIsOnlyForCreatorAndTerminatedStep() throws { |
| + #expect(TaskPause(try stopped(), mine: true)?.canRetry == true) |
| + #expect(TaskPause(try stopped(), mine: false)?.canRetry == false) |
| + #expect(TaskPause(try stopped(terminated: false), mine: true)?.canRetry == false) |
| + } |
| + |
| + @Test func everyReasonUsesReviewedWords() throws { |
| + let url = URL(fileURLWithPath: #filePath).deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().appendingPathComponent("internal/equipo/copy.go") |
| + let source = try String(contentsOf: url, encoding: .utf8) |
| + let regex = try NSRegularExpression(pattern: #""work\.reason\.([^"]+)":\s*("(?:[^"\\]|\\.)*")"#) |
| + let ns = source as NSString |
| + let matches = regex.matches(in: source, range: NSRange(location: 0, length: ns.length)) |
| + #expect(matches.count >= 70) |
| + for match in matches { |
| + let reason = ns.substring(with: match.range(at: 1)) |
| + let words = try JSONDecoder().decode(String.self, from: Data(ns.substring(with: match.range(at: 2)).utf8)) |
| + #expect(StoppedReason.words(reason) == words, "\(reason)") |
| + } |
| + #expect(StoppedReason.words("future_reason") == "something went wrong") |
| + } |
| + |
| + @Test func needsReasonsHaveALead() throws { |
| + var task = try stopped() |
| + for reason in ["fix_rounds", "branch_moved", "review_blocked", "merge_conflict", "direction", "machine_removed"] { |
| + task.needsYou = reason |
| + let pause = try #require(TaskPause(task, mine: true)) |
| + #expect(pause.tone == .warning) |
| + #expect(!(pause.strong + pause.rest).isEmpty) |
| + #expect(pause.canRetry == true) |
| + } |
| + } |
| + |
| + @Test func retryConflictUsesReviewedMessage() async throws { |
| + let transport = ScriptedTransport() |
| + transport.on("POST /tasks/tk1/retry", .success(APIResponse(status: 409, data: Data(#"{"code":"not_retryable","copy_key":"api.not_retryable","request_id":"r"}"#.utf8)))) |
| + let result = await StoppedWorkActions.retry(client: EquipoClient(transport: transport, token: "fixture"), task: "tk1") |
| + #expect(result == "This work cannot be retried now. Check its latest status.") |
| + } |
| + @Test func retrySuccessAndLogReadUseDeviceAPI() async throws { |
| + let transport = ScriptedTransport() |
| + transport.on("POST /tasks/tk1/retry", .success(APIResponse(status: 202, data: Data(#"{"attempt":2}"#.utf8)))) |
| + transport.on("GET /steps/s1/log", .success(APIResponse(status: 200, data: Data(#"{"step_id":"s1","attempt":1,"tail":"remote: [redacted]\nexit status 128"}"#.utf8)))) |
| + let client = EquipoClient(transport: transport, token: "fixture") |
| + #expect(await StoppedWorkActions.retry(client: client, task: "tk1") == nil) |
| + #expect(try await client.stepLog("s1").boundedTail == "remote: [redacted]\nexit status 128") |
| + #expect(transport.requests.allSatisfy { $0.bearer == "fixture" }) |
| + } |
| + |
| + @Test func logIsBoundedByLinesAndBytes() { |
| + let lines = (0..<300).map { "line \($0)" }.joined(separator: "\n") |
| + #expect(StepLog(stepId: "s", attempt: 1, tail: lines).boundedTail.split(separator: "\n").count == 200) |
| + #expect(StepLog(stepId: "s", attempt: 1, tail: String(repeating: "x", count: 40000)).boundedTail.utf8.count <= 32768) |
| + let unicode = StepLog(stepId: "s", attempt: 1, tail: String(repeating: "€", count: 20000)).boundedTail |
| + #expect(unicode.utf8.count <= 32768 && !unicode.contains("�")) |
| + } |
| + |
| + @Test func resumeUsesMatchingRunnerAndPauseRevision() async throws { |
| + var task = try stopped() |
| + task.steps![0].runnerId = "runner1" |
| + task.steps![0].hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "tensorx", stepRevision: 4) |
| + let right = ResumeConnection(id: "cn_right", runnerId: "runner1", localId: "local", provider: "tensorx", spend: .init(unknown: true, pauseRevision: 7)) |
| + let wrong = ResumeConnection(id: "cn_wrong", runnerId: "runner2", localId: "local", provider: "tensorx", spend: .init(unknown: true, pauseRevision: 8)) |
| + let connection = try #require(StoppedWorkActions.connection(for: task.steps![0], in: [wrong, right])) |
| + #expect(connection.id == "cn_right") |
| + let transport = ScriptedTransport() |
| + transport.on("POST /connections/cn_right/resume", .success(APIResponse(status: 202, data: Data()))) |
| + try await EquipoClient(transport: transport, token: "fixture").resumeConnection(connection) |
| + let body = try #require(transport.requests.first?.body) |
| + #expect(try JSONDecoder().decode([String: Int].self, from: body) == ["pause_revision": 7]) |
| + } |
| + |
| + @Test func triageWithoutReasonDecodesAndSuppressesRetry() throws { |
| + let triage = try EquipoJSON.decoder.decode(ThinTriage.self, from: Data(#"{"kind":"rebasing"}"#.utf8)) |
| + var task = try stopped() |
| + task.triage = triage |
| + #expect(TaskPause(task, mine: true) == nil) |
| + } |
| + |
| + @Test func directionWithoutAStepStillLeads() throws { |
| + var task = try stopped() |
| + task.needsYou = "direction"; task.steps = [] |
| + #expect(TaskPause(task, mine: true)?.rest == "Equipo is waiting for your choice.") |
| + } |
| + |
| +} |
| + |
| +@MainActor @Suite struct StoppedWorkReviewTests { |
| + func task(_ reason: String = "push_failed", needs: String = "retry", terminated: Bool = true) throws -> ThinTask { |
| + var task: ThinTask = try Fixture.decode("thin/task") |
| + task.stage = "in_progress"; task.needsYou = needs; task.triage = nil |
| + var step = task.steps!.first! |
| + step.state = "failed"; step.reason = reason; step.terminated = terminated |
| + step.runnerLabel = "Mac mini"; step.runnerId = "runner"; step.hold = nil; step.paused = nil |
| + task.steps = [step] |
| + return task |
| + } |
| + @Test func needsRetryHasBothGuardsForEveryReason() throws { |
| + for needs in ["review_blocked", "fix_rounds", "branch_moved", "merge_conflict", "direction"] { |
| + #expect(TaskPause(try task(needs: needs), mine: true)?.canRetry == true) |
| + #expect(TaskPause(try task(needs: needs), mine: false)?.canRetry == false) |
| + #expect(TaskPause(try task(needs: needs, terminated: false), mine: true)?.canRetry == false) |
| + } |
| + } |
| + @Test func settingsAndResumeBelongToCreator() throws { |
| + let outdated = try task("runner_outdated") |
| + #expect(TaskPause(outdated, mine: true)?.settingsPath == "/conversation/settings/machines") |
| + #expect(TaskPause(outdated, mine: false)?.settingsPath == nil) |
| + for reason in ["budget", "spend_unknown"] { |
| + for needs in [nil, "budget"] as [String?] { |
| + var t = try task(); t.steps![0].state = "queued" |
| + t.steps![0].hold = ThinHold(reason: reason, provider: "codex", needsPerson: needs, stepRevision: 2) |
| + let mine = TaskPause(t, mine: true), other = TaskPause(t, mine: false) |
| + if reason == "budget" { #expect(mine?.settingsPath != nil) } else { #expect(mine?.resumeStep != nil) } |
| + #expect(other?.settingsPath == nil && other?.resumeStep == nil) |
| + } |
| + } |
| + } |
| + @Test func noFurtherChangesDependsOnPriorPushedWork() throws { |
| + var t = try task("no_changes") |
| + var earlier = t.steps![0]; earlier.id = "earlier"; earlier.state = "done"; earlier.specialist = "engineering"; earlier.pushed = true; earlier.candidateSha = "abc" |
| + t.steps!.insert(earlier, at: 0) |
| + #expect(TaskPause(t, mine: true)?.rest.contains(StoppedReason.words("no_further_changes")) == true) |
| + t.steps![0].pushed = false |
| + #expect(TaskPause(t, mine: true)?.rest.contains(StoppedReason.words("no_changes")) == true) |
| + } |
| + @Test func recoveryUsesTheWebGuards() throws { |
| + let waiting = try task("machine_removed", needs: "machine_removed", terminated: false) |
| + #expect(TaskPause(waiting, mine: true)?.canRecover == true) |
| + #expect(TaskPause(waiting, mine: true)?.canRetry == false) |
| + #expect(TaskPause(waiting, mine: false)?.canRecover == false) |
| + #expect(TaskPause(try task("machine_removed", terminated: false), mine: true)?.tone != .negative) |
| + #expect(TaskPause(try task("machine_removed"), mine: true)?.canRecover == false) |
| + #expect(TaskPause(try task(), mine: true)?.canRecover == false) |
| + } |
| + @Test func transitionalWorkSuppressesActions() throws { |
| + for key in ["moving", "stopping", "copyHold", "copyCanSkip"] { |
| + var t = try task() |
| + switch key { case "moving": t.moving = true; case "stopping": t.stopping = true; case "copyHold": t.copyHold = true; default: t.copyCanSkip = true } |
| + #expect(TaskPause(t, mine: true) == nil, "\(key)") |
| + } |
| + for kind in ["retrying", "rebasing", "rechecking", "waiting"] { |
| + var t = try task(); t.triage = ThinTriage(kind: kind, reason: kind == "waiting" ? "merge_unborn_default" : nil) |
| + #expect(TaskPause(t, mine: true) == nil, "\(kind)") |
| + } |
| + } |
| + @Test func resumeMatchesEveryIdentityAndUnknownSpend() throws { |
| + var step = try task().steps![0] |
| + step.hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "codex", stepRevision: 2) |
| + for wrong in [ |
| + ResumeConnection(id: "wrong", runnerId: "runner", localId: "local", provider: "codex", spend: .init(unknown: false, pauseRevision: 1)), |
| + ResumeConnection(id: "wrong", runnerId: "runner", localId: "other", provider: "codex", spend: .init(unknown: true, pauseRevision: 1)), |
| + ResumeConnection(id: "wrong", runnerId: "runner", localId: "local", provider: "claude", spend: .init(unknown: true, pauseRevision: 1)) |
| + ] { #expect(StoppedWorkActions.connection(for: step, in: [wrong]) == nil) } |
| + } |
| + @Test func deadlineAndHeldBoldSplitMatchWeb() throws { |
| + let now = Date(timeIntervalSince1970: 1795608000) |
| + var t = try task(); t.steps![0].state = "queued" |
| + t.priority = ThinPriority(by: now.addingTimeInterval(3600)) |
| + t.steps![0].hold = ThinHold(reason: "headroom", provider: "codex", resetsAt: now.addingTimeInterval(7200), needsPerson: "deadline", stepRevision: 2) |
| + let words = TimeWords(now: now, zone: .gmt, locale: Locale(identifier: "en_GB")) |
| + let lead = HeldLead.words(t.steps![0].hold!, name: "Codex", due: t.priority?.by, words: words) |
| + #expect(lead == String(format: EquipoStrings.text("chat.held.run.after_by"), "Codex", String(format: EquipoStrings.text("time.when_in"), words.when(now.addingTimeInterval(7200)), words.inWords(7200)), "Wednesday 25 Nov")) |
| + let pause = try #require(TaskPause(t, mine: true, now: now, zone: .gmt, locale: Locale(identifier: "en_GB"))) |
| + #expect(pause.strong + pause.rest == lead) |
| + if let colon = lead.firstIndex(of: ":") { #expect(pause.strong == String(lead[...colon])) } |
| + } |
| + @Test func failuresAndRecoverUseReviewedWords() async throws { |
| + let transport = ScriptedTransport() |
| + transport.on("POST /tasks/t/retry", .failure(EquipoAPIError.offline)) |
| + let client = EquipoClient(transport: transport, token: "fixture") |
| + #expect(await StoppedWorkActions.retry(client: client, task: "t") == EquipoStrings.text("card.failed")) |
| + transport.on("POST /tasks/t/recover", .success(APIResponse(status: 202, data: Data(#"{"attempt":2}"#.utf8)))) |
| + #expect(await StoppedWorkActions.recover(client: client, task: "t") == nil) |
| + #expect(transport.requests.last?.path == "/tasks/t/recover") |
| + #expect(StoppedWorkActions.logFailure(EquipoAPIError.offline) == EquipoStrings.text("card.offline")) |
| + #expect(StoppedWorkActions.logFailure(EquipoAPIError.undecodable) == EquipoStrings.text("read.failed")) |
| + #expect(StoppedWorkActions.logFailure(EquipoAPIError.status(500)) == EquipoStrings.text("read.failed_title")) |
| + } |
| + @Test func macSettingsUsesFixedPathAndOpener() { |
| + var opened: URL? |
| + let origin = URL(string: "https://team.example")! |
| + SettingsNavigation.open(origin: origin, path: "/conversation/settings/connections") { opened = $0 } |
| + #expect(opened?.absoluteString == "https://team.example/conversation/settings/connections") |
| + opened = nil |
| + SettingsNavigation.open(origin: origin, path: "https://evil.example") { opened = $0 } |
| + #expect(opened == nil) |
| + } |
| +} |
| + |
| +extension StoppedWorkReviewTests { |
| + @Test func staleResumeReloadsRevisionBeforeAnotherTap() async throws { |
| + var step = try task().steps![0] |
| + step.hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "codex", stepRevision: 2) |
| + let transport = ScriptedTransport() |
| + func connection(_ revision: Int) -> APIResponse { |
| + APIResponse(status: 200, data: Data(""" |
| + {"items":[{"id":"cn","runner_id":"runner","local_id":"local","provider":"codex","spend":{"unknown":true,"pause_revision":\(revision)}}]} |
| + """.utf8)) |
| + } |
| + transport.on("GET /connections", .success(connection(7)), .success(connection(8))) |
| + transport.on("POST /connections/cn/resume", .success(APIResponse(status: 409, data: Data())), .success(APIResponse(status: 202, data: Data()))) |
| + let client = EquipoClient(transport: transport, token: "fixture") |
| + let resume = ResumeAction() |
| + await resume.load(client: client, step: step) |
| + #expect(await resume.perform(client: client, step: step) == EquipoStrings.text("card.failed")) |
| + #expect(resume.connection?.spend?.pauseRevision == 8) |
| + #expect(await resume.perform(client: client, step: step) == nil) |
| + let sent = transport.sent("POST /connections/cn/resume") |
| + #expect(try JSONDecoder().decode([String: Int].self, from: sent.last!.body!) == ["pause_revision": 8]) |
| + } |
| + @Test func runNowFailureNeverLooksSuccessful() async { |
| + let transport = ScriptedTransport() |
| + transport.on("POST /tasks/t/run-now", .failure(EquipoAPIError.offline), .success(APIResponse(status: 409, data: Data()))) |
| + let client = EquipoClient(transport: transport, token: "fixture") |
| + let run = TaskPause.RunNow(label: "Codex", step: "s", revision: 2) |
| + #expect(await StoppedWorkActions.runNow(client: client, task: "t", run: run) == EquipoStrings.text("card.failed")) |
| + #expect(await StoppedWorkActions.runNow(client: client, task: "t", run: run) == EquipoStrings.text("api.not_retryable")) |
| + } |
| +} |
diff --git a/native/ios/Sources/EquipoPhoneApp.swift b/native/ios/Sources/EquipoPhoneApp.swift| index 91e68d83..06e8d6f6 100644 |
| --- a/native/ios/Sources/EquipoPhoneApp.swift |
| +++ b/native/ios/Sources/EquipoPhoneApp.swift |
| @@ -5,6 +5,13 @@ import SwiftUI |
| struct EquipoPhoneApp: App { |
| @UIApplicationDelegateAdaptor(EquipoPhoneDelegate.self) private var delegate |
| var body: some Scene { |
| - WindowGroup { PhoneRoot(model: delegate.model) } |
| + WindowGroup { |
| + #if DEBUG |
| + if ProcessInfo.processInfo.environment["EQUIPO_STOPPED_FIXTURE"] != nil { StoppedWorkFixture() } |
| + else { PhoneRoot(model: delegate.model) } |
| + #else |
| + PhoneRoot(model: delegate.model) |
| + #endif |
| + } |
| } |
| } |
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py| index 19c16832..64023c8a 100755 |
| --- a/native/scripts/check-parity.py |
| +++ b/native/scripts/check-parity.py |
| @@ -18,8 +18,11 @@ for pattern in (r'chat\.card\.merge_chose_\w+', r'chat\.card\.ships_chose_\w+'): |
| for key in sorted(set(re.findall('"(' + pattern + ')":', copy))): |
| if key not in strings: |
| problems.append(f'{key}: the web has this outcome; native has no words for it') |
| +for key in sorted(set(re.findall(r'"(work\.reason\.[^"]+)":', copy))): |
| + if key not in strings: |
| + problems.append(f'{key}: native must carry every reviewed stop reason') |
| for key, text in sorted(strings.items()): |
| - if not key.startswith(('chat.card.', 'chat.paste.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'work.pause.', 'work.stage.', 'time.', 'work.hold.run_now')): |
| + if not key.startswith(('chat.card.', 'chat.paste.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')): |
| continue |
| found = re.findall(r'"' + re.escape(key) + r'":\s*"((?:[^"\\]|\\.)*)"', copy) |
| if len(found) != 1: |
diff --git a/native/scripts/check-strings.py b/native/scripts/check-strings.py| index c6bf1f88..e02953d4 100755 |
| --- a/native/scripts/check-strings.py |
| +++ b/native/scripts/check-strings.py |
| @@ -46,6 +46,6 @@ for p in problems: print(p) |
| if problems: sys.exit(1) |
| # Facts look their words up by a key made from the wire value |
| # (TaskReport.facts); FactWordsTests checks each one resolves. |
| -computed = {k for k in source if k.startswith(('checks.', 'review.', 'chat.card.', 'work.tl.'))} |
| +computed = {k for k in source if k.startswith(('checks.', 'review.', 'chat.card.', 'work.tl.', 'work.reason.', 'work.needs.'))} |
| unused = sorted(source.keys() - used_keys() - computed) |
| print(f'{len(source)} strings, all used keys present' + (f'; unused: {unused}' if unused else '')) |
diff --git a/native/scripts/strings.json b/native/scripts/strings.json| index 7d509a08..321def33 100644 |
| --- a/native/scripts/strings.json |
| +++ b/native/scripts/strings.json |
| @@ -254,5 +254,101 @@ |
| "work.stage.stopped": "Stopped", |
| "work.star.add": "Star %@", |
| "work.star.remove": "Unstar %@", |
| - "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration." |
| + "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration.", |
| + "work.reason.preview_headers": "the preview host needs an update before it can apply the required security headers", |
| + "work.reason.preview_header_missing": "The preview host did not serve the safety header.", |
| + "work.reason.base_checks_failed": "the base version's checks failed", |
| + "work.reason.base_gate_unavailable": "the check files from the base version could not be loaded", |
| + "work.reason.preview_secrets": "the preview was not published because its files may contain a secret", |
| + "work.reason.preview_scanner": "the preview was not published because its secret scan could not be completed", |
| + "work.reason.preview_public_disabled": "public previews are off for this project", |
| + "work.reason.preview_host": "the preview host could not be verified", |
| + "work.reason.copy_budget": "Copy cannot review all these strings within this task’s token allowance. Continue without Copy or ask the coordinator.", |
| + "work.reason.copy_budget_unknown": "Copy’s token use is unknown. Check the last attempt before continuing.", |
| + "work.reason.copy_update_required": "Update the runner to continue the Copy review.", |
| + "work.reason.copy_question": "Copy needs you to clarify the meaning.", |
| + "work.reason.runner_restarted": "the runner restarted", |
| + "work.reason.no_changes": "nothing needed changing", |
| + "work.reason.no_further_changes": "it made no further changes to the candidate", |
| + "work.reason.tools_refused": "Equipo refused the commands it needed to run", |
| + "work.reason.proposal_failed": "the branch was pushed, but the review request could not be created", |
| + "work.reason.push_failed": "the push to Amadan failed", |
| + "work.reason.push_conflict": "the branch changed on Amadan", |
| + "work.reason.step_timeout": "it ran out of time", |
| + "work.reason.interrupted": "the runner lost track of it", |
| + "work.reason.other": "something went wrong", |
| + "work.reason.provider_failed": "the model connection failed", |
| + "work.reason.provider_rejected": "the model service declined the request", |
| + "work.reason.policy_rejected": "Equipo's rules blocked it", |
| + "work.reason.sign_in_again": "a model account needs you to sign in again", |
| + "work.reason.workspace_refused": "the runner could not set up a place to work", |
| + "work.reason.clone_failed": "the runner could not copy the project from Amadan", |
| + "work.reason.superseded": "newer work replaced it", |
| + "work.reason.needs_macos": "it needs a Mac", |
| + "work.reason.checks_timeout": "the checks ran out of time", |
| + "work.reason.checks_unavailable": "this runner cannot run the checks", |
| + "work.reason.needs_network": "the checks need a network connection", |
| + "work.reason.placement_refused": "no runner could take it", |
| + "work.reason.withdrawn": "it was withdrawn before it started", |
| + "work.reason.transfer_refused": "the work could not move between runners", |
| + "work.reason.runner_offline": "the runner it needs was offline too long", |
| + "work.reason.sandbox_unproven": "the Mac's sandbox is not proven yet", |
| + "work.reason.unknown": "the runner reported a problem this version of Equipo does not recognise", |
| + "work.needs.machine_removed": "Stopped: the machine was removed mid-step. Make sure it's switched off, then Recover", |
| + "work.reason.machine_removed": "the machine was removed mid-step", |
| + "work.needs.fix_rounds": "Needs you: still not approved after two fix rounds", |
| + "work.needs.branch_moved": "Needs you: the branch moved on Amadan after it was checked", |
| + "work.needs.review_blocked": "Needs you: the review ended without a verdict", |
| + "work.reason.no_verdict": "the review gave no verdict", |
| + "work.reason.candidate_unavailable": "the commit was not on Amadan", |
| + "work.reason.account_unavailable": "no model account was ready", |
| + "work.reason.preview_cap": "the account already has 20 previews", |
| + "work.reason.preview_expired": "this task's preview expired and its name is still taken", |
| + "work.reason.preview_config": "this version cannot use release/preview.json", |
| + "work.reason.preview_too_large": "the preview exceeds 2,000 files, 10 MiB per file or 50 MiB in total", |
| + "work.reason.preview_state": "Equipo could not read the preview's state", |
| + "work.reason.preview_failed": "a Carloku command for the preview failed", |
| + "work.reason.runner_outdated": "the runner needs an update for previews", |
| + "work.needs.merge_conflict": "Needs you: it still conflicts with the default branch after a rebase", |
| + "work.reason.merge_conflict": "it conflicts with the default branch", |
| + "work.reason.branch_moved": "the branch moved on Amadan", |
| + "work.reason.amadan_ci_pending": "Amadan's own CI had not finished", |
| + "work.reason.amadan_ci_failed": "Amadan's own CI did not pass", |
| + "work.reason.merge_forbidden": "Equipo may not merge in this repository", |
| + "work.reason.merge_failed": "Amadan did not merge it", |
| + "work.reason.merge_unborn_default": "the first merge into this empty repository needs an Amadan update", |
| + "work.hold.raise_budget": "Raise the budget", |
| + "work.hold.resume": "Resume", |
| + "chat.held.wait.before": "I’d wait: %@ resets %@, before %@.", |
| + "chat.held.wait.reset": "I’d wait: %@ resets %@.", |
| + "chat.held.run.after_by": "I’d run it now: %@ resets %@, after %@.", |
| + "chat.held.run.no_reset": "I’d run it now: %@ has no reported reset in the next three days.", |
| + "chat.held.run.no_connection": "I’d run it now: it needs a connection billed per token.", |
| + "chat.held.spend_unknown": "Spend unknown. Check your spending at %@, then choose Resume.", |
| + "chat.held.budget": "%@ has reached its budget. Raise it, or wait for the budget to reset.", |
| + "work.reason.limited": "its model account reached its limit", |
| + "work.reason.no_connection": "nothing connected can run it", |
| + "work.needs.one": "One decision, in one tap.", |
| + "work.needs.many": "%d decisions, each in one tap.", |
| + "work.needs.direction": "Equipo is waiting for your choice.", |
| + "work.reason.research_no_sources": "there was nothing to read", |
| + "work.reason.research_no_grant": "it’s no longer on your team", |
| + "work.reason.research_unsupported": "the runner needs an update to run Research", |
| + "work.reason.research_no_inventory": "the primary machine reported no public internet address", |
| + "work.reason.merge_not_authorized": "my rules require me to ask before merging", |
| + "work.reason.publish_app_taken": "Carloku already has an app with this name", |
| + "work.reason.publish_off": "this runner is not set up to publish sites", |
| + "work.reason.publish_not_merged": "the merged commit is not on the default branch", |
| + "work.reason.publish_config": "this version cannot use release/preview.json", |
| + "work.reason.publish_too_large": "the site exceeds 2,000 files, 10 MiB per file or 50 MiB in total", |
| + "work.reason.publish_failed": "the Carloku deploy failed", |
| + "work.pause.check_machine": "Check the machine", |
| + "work.pause.update_runner": "Update the runner", |
| + "work.pause.connect": "Connect a model", |
| + "work.pause.try_again": "Try again", |
| + "work.pause.lead.stopped": "Stopped at %@: %@", |
| + "native.step.log_tail": "Last lines of the log", |
| + "time.when_in": "%@ (%@)", |
| + "team.close": "Close", |
| + "work.recover": "Recover" |
| } |