Show stopped work reasons and recovery actions in native apps
28 files changed,
+2,871
−25
.rastrillo/budgets.txt+1 −1docs/superpowers/plans/CONTROLLER-REPORT-native-stopped-work.md+129 −0internal/equipo/chat/step_log_visibility_test.go+39 −0internal/equipo/chat/tasks.go+11 −0native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings+1,045 −0native/apple/Sources/EquipoKit/API/Client.swift+3 −3native/apple/Sources/EquipoKit/API/StoppedWork.swift+51 −0native/apple/Sources/EquipoKit/API/Thin.swift+13 −0native/apple/Sources/EquipoKit/Presentation/HeldLead.swift+25 −0native/apple/Sources/EquipoKit/Presentation/Pause.swift+31 −4native/apple/Sources/EquipoKit/Presentation/StoppedReason.swift+9 −0native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings+1,045 −0native/apple/Sources/EquipoKit/UI/Components.swift+5 −1native/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/TaskScreens.swift+2 −2native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift+36 −0native/apple/Sources/EquipoKit/UI/StepLogView.swift+41 −0native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift+80 −0native/apple/Sources/EquipoKit/UI/TaskPauseActions.swift+61 −0native/apple/Sources/EquipoMac/EquipoMacApp.swift+18 −4native/apple/Sources/EquipoMac/LiveTranscript.swift+1 −1native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift+107 −0native/ios/Sources/EquipoPhoneApp.swift+8 −1native/scripts/check-parity.py+4 −1native/scripts/check-strings.py+1 −1native/scripts/strings.json+96 −1
CI cancelled — superseded by a newer push — 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/native__stopped-work: Type Size Avail | ext4 96G 86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type Size Avail | ext4 96G 86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.4s
ci-box: codex: fetched and verified in 3.6s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.0s
ci-box: clone deepened in 3.8s
ci-box: file times set from content: 3006 files, 193 directories
ci-box: ready in 17.5s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok amadan.net/oficina/equipo/internal/equipotest 0.146s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
3.9s
+ go list -export -test -tags testbuild -f ./...
3.8s
+ go list -export -test -tags browser,testbuild -f ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
3.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
receipt: test step 1m15.254s 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.7s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.7s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 63.88, cpu waiting 36.35%, memory waiting 0.00%, io waiting 0.46%
--- 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.124s 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.595s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m13.59s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 63.88, cpu waiting 36.35%, memory waiting 0.00%, io waiting 0.46%
--- 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.785s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.014s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.77s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.06s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.18s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 63.88, cpu waiting 36.43%, memory waiting 0.00%, io waiting 0.45%
--- 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 1m12.187s 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 1m10.561s amadan.net/oficina/equipo/internal/headless
receipt: slow test 34.57s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 18.6s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.79s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.6s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 64.39, cpu waiting 35.72%, memory waiting 0.00%, io waiting 0.50%
--- 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 1m30.328s 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 1m28.69s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m0.34s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.83s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.93s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.59s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 62.14, cpu waiting 36.60%, memory waiting 0.00%, io waiting 0.36%
--- 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 2m41.665s 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 2m39.786s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m35.34s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.23s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.58s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.52s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.39s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 22.52, cpu waiting 12.54%, memory waiting 0.00%, io waiting 0.10%
--- 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.379s 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 2m5.848s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.12s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.76s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.86s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.69s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.45s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 38.01, cpu waiting 21.94%, memory waiting 0.00%, io waiting 0.19%
--- 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 1m36.738s 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.065s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.22s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.48s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractRetryFailedPreviewAfterMerge
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 56.43, cpu waiting 34.90%, memory waiting 0.00%, io waiting 0.32%
--- 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
amadan: job cancelled — a newer push superseded it
--- 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.72s 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.443s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.41s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 67.88, cpu waiting 32.27%, memory waiting 0.00%, io waiting 0.69%
--- 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.702s 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.749s amadan.net/oficina/equipo/internal/runner
receipt: slow test 47.59s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 42.53s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.73s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 69.49, cpu waiting 35.39%, memory waiting 0.00%, io waiting 0.61%
--- 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 35.571s 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 34.638s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.2s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.54s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 45.12, cpu waiting 20.52%, memory waiting 0.00%, io waiting 0.91%
--- 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.3%, load 32.38
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.194s 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.354s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.97s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.89s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.86s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.95s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfiguration
receipt: slow test 22.93s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 56.43, cpu waiting 34.90%, memory waiting 0.00%, io waiting 0.32%
--- 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.3%, load 32.38
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.058s 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.157s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.26s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.24s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.23s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 20.22s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 20.21s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 49.82, cpu waiting 30.06%, memory waiting 0.00%, io waiting 0.27%
--- 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.3%, load 32.38
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 1m15.093s 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.753s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.46s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.36s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.33s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 53.11, cpu waiting 31.01%, memory waiting 0.00%, io waiting 0.28%
--- 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.3%, load 32.38
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest
receipt: test step 1m8.536s 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.728s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.04s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.89s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.86s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.11s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 23.02s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 56.43, cpu waiting 33.95%, memory waiting 0.00%, io waiting 0.31%
--- 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.3%, load 32.38
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.097s 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.101s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.7s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.3s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 62.85, cpu waiting 36.12%, memory waiting 0.00%, io waiting 0.40%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 39.3%, load 32.38
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/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/cmd/equipo-runner: 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/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
budget note: internal/equipo took 50.892s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 18.012s, 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 1m52.948s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 23.057s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 49.882s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 10.815s, over the 10s the default allows; reported only, timing fails on CI
receipt: test step 2m29.525s against a 60s target (the gate's other steps are not in this figure)
receipt: 23 packages ran, 43 cached, 17 without tests, 0 failed
receipt: slow package 1m52.948s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m5.044s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.676s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 50.892s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 50.666s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 52.79s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.78s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.74s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 44.99s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 43.32s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
machine: 32 CPUs, load 18.18, cpu waiting 9.29%, memory waiting 0.00%, io waiting 0.07%
--- 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 1m23.571s 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.131s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.22s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.76s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.24s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.26s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.03s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 62.85, cpu waiting 36.44%, memory waiting 0.00%, io waiting 0.39%
--- 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 1m28.269s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m26.41s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.98s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 20.38s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.62s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 8.5s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 62.14, cpu waiting 36.60%, memory waiting 0.00%, io waiting 0.36%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
receipt: test step 1m51.343s 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 1m49.844s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.5s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.22s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.07s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 46.23, cpu waiting 28.19%, memory waiting 0.00%, io waiting 0.25%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN TestBrowserCopyContinue
time=2026-11-25T22:17:29.146Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-25T22:17:29.146Z level=INFO msg="startup phase done" phase=state_lock took=136µs
time=2026-11-25T22:17:29.146Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-25T22:17:29.146Z level=INFO msg="startup phase done" phase=claim_roots took=117µs
time=2026-11-25T22:17:29.146Z level=INFO msg="startup phase" phase=sweep
time=2026-11-25T22:17:29.200Z level=INFO msg="startup phase done" phase=sweep took=53.465ms
time=2026-11-25T22:17:29.202Z level=INFO msg="startup phase" phase=credentials
time=2026-11-25T22:17:29.202Z level=INFO msg="startup phase done" phase=credentials took=148µs
time=2026-11-25T22:17:29.202Z level=INFO msg="startup phase" phase=open_state
time=2026-11-25T22:17:29.262Z level=INFO msg="startup phase done" phase=open_state took=59.917ms
time=2026-11-25T22:17:29.265Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-25T22:17:29.267Z level=INFO msg=connecting host=127.0.0.1:38611 protocol=30
rastrillo: budget test: go test failed
time=2026-11-25T22:17:29.269Z level=INFO msg=connected host=127.0.0.1:38611 took=2.112ms
time=2026-11-25T22:17:29.269Z level=INFO msg="capabilities gathering"
time=2026-11-25T22:17:29.270Z level=INFO msg="capabilities gathered" took=1ms tags=linux,claude,go
time=2026-11-25T22:17:29.276Z level=INFO msg="hello sent" protocol=30
time=2026-11-25T22:17:29.280Z 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.41s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m31.408s
FAIL amadan.net/oficina/equipo/internal/headless 91.611s
receipt: test step 1m32.842s 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.408s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.87s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.45s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.28s 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 4cce59207d074bc59726d4b9010ba751a6e00e71 6.41s 59.16
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 56.43, cpu waiting 34.90%, memory waiting 0.00%, io waiting 0.32%
--- 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.004s 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 576ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 580ms 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.559s, over the 10s the default allows; reported only, timing fails on CI
receipt: test step 11.751s 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.559s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.12s 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.587s 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.125s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.12s 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 3m35.925s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m34.277s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 22.77s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.43s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.05s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.65s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 7.65, cpu waiting 3.65%, 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.66s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.25s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.40s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.41s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.36s
+ 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 (53s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.21s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.82s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.05s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 18.12s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (20s)
ok ./internal/headless TestMixedVersions 18.40s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.79s
+ 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 67.88, cpu waiting 33.48%, memory waiting 0.00%, io waiting 0.67%
--- 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.511s 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.657s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 172ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 74ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.51s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.73s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms 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.513s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.072s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 18.09, cpu waiting 8.42%, memory waiting 0.00%, io waiting 1.27%
--- 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.3%, load 32.38
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2719 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.468s
machine: 32 CPUs, load 66.77, cpu waiting 35.97%, memory waiting 0.00%, io waiting 0.53%
--- 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.3%, load 32.38
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 60.12, cpu waiting 27.89%, memory waiting 0.00%, io waiting 0.77%
--- 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.3%, load 32.38
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 45.12, cpu waiting 22.17%, memory waiting 0.00%, io waiting 0.88%
--- 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.3%, load 32.38
shard 28: make gitleaks
[90m10:17PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m10:17PM[0m [32mINF[0m [1m1154 commits scanned.[0m
[90m10:17PM[0m [32mINF[0m [1mscanned ~65982633 bytes (65.98 MB) in 23.8s[0m
[90m10:17PM[0m [32mINF[0m [1mno leaks found[0m
machine: 32 CPUs, load 67.88, cpu waiting 33.48%, memory waiting 0.00%, io waiting 0.67%
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..5961bdb1 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-stopped-work.md |
| @@ -0,0 +1,129 @@ |
| +# 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 scrolls both ways, bounded to 200 lines and 32 KiB. 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. |
| +- `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. |
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..a8b36455 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,787 @@ |
| } |
| } |
| }, |
| + "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.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..9e6c7d87 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/API/StoppedWork.swift |
| @@ -0,0 +1,51 @@ |
| +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 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 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..0105c709 100644 |
| --- a/native/apple/Sources/EquipoKit/Presentation/Pause.swift |
| +++ b/native/apple/Sources/EquipoKit/Presentation/Pause.swift |
| @@ -21,6 +21,10 @@ 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 settingsPath: String? |
| + public var settingsLabel: String? |
| + public var resumeStep: ThinStep? |
| public struct RunNow: Sendable, Equatable { |
| public var label: String |
| @@ -36,9 +40,19 @@ 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 = task.needsYou == "review_blocked" && mine && step?.state == "failed" && 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 +60,19 @@ 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 |
| } |
| - self.init(tone: .negative, stop: EquipoStrings.text("work.stage.stopped"), lead: "", next: EquipoStrings.text("work.pause.next.try_again")) |
| + if step.reason == "machine_removed" && step.terminated != true { return nil } |
| + 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 +88,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: 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")) |
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..a8b36455 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,787 @@ |
| } |
| } |
| }, |
| + "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.stage.needs_you": { |
| "extractionState": "manual", |
| "localizations": { |
diff --git a/native/apple/Sources/EquipoKit/UI/Components.swift b/native/apple/Sources/EquipoKit/UI/Components.swift| index 8d37ae7f..b8619ade 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) { |
| @@ -54,12 +57,13 @@ struct StepsView: View { |
| .foregroundStyle(step.state == "queued" ? Palette.secondary : Palette.text) |
| .fixedSize(horizontal: false, vertical: true) |
| } |
| + if step.state == "failed", let client { StepLogView(stepID: step.id, client: client) } |
| if let finished = step.finishedAt { |
| Text(finished.formatted(date: .abbreviated, time: .shortened)).font(Typo.caption).foregroundStyle(Palette.faint) |
| } |
| }.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/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..cedee7cf |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift |
| @@ -0,0 +1,36 @@ |
| +import SwiftUI |
| +import WebKit |
| +#if os(iOS) |
| +import SafariServices |
| +#endif |
| + |
| +/// Settings use a browser session, never the device bearer. The persistent |
| +/// browser store keeps sign-in across sheets; the site asks for it if absent. |
| +struct SettingsWebSheet: View { |
| + let url: URL |
| + @Environment(\.dismiss) private var dismiss |
| + var body: some View { |
| + #if os(iOS) |
| + SafariSettingsView(url: url).ignoresSafeArea() |
| + #else |
| + NavigationStack { |
| + WebView(url: url) |
| + .navigationTitle(EquipoStrings.text("task.open_web")) |
| + .toolbar { |
| + ToolbarItem(placement: .cancellationAction) { |
| + Button(EquipoStrings.text("team.close")) { dismiss() } |
| + } |
| + } |
| + } |
| + .frame(minWidth: 680, minHeight: 560) |
| + #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..c25d4700 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/StepLogView.swift |
| @@ -0,0 +1,41 @@ |
| +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 failed = false |
| + |
| + var body: some View { |
| + DisclosureGroup(isExpanded: $expanded) { |
| + Group { |
| + if let tail { |
| + ScrollView([.horizontal, .vertical]) { |
| + Text(verbatim: tail).font(.system(.caption, design: .monospaced)) |
| + .textSelection(.enabled).padding(8) |
| + } |
| + .frame(height: 160) |
| + .background(Palette.surface2, in: .rect(cornerRadius: 8)) |
| + } else if failed { |
| + Text(EquipoStrings.text("read.failed")).font(Typo.secondary) |
| + Button(EquipoStrings.text("read.retry")) { Task { await load() } } |
| + } else { ProgressView() } |
| + } |
| + .task { await load() } |
| + } label: { |
| + // COPY APPROVED (Luna via controller, 2026-11-25). |
| + Text(EquipoStrings.text("native.step.log_tail")).font(Typo.secondary) |
| + } |
| + } |
| + |
| + private func load() async { |
| + failed = false |
| + do { tail = try await client.stepLog(stepID).boundedTail } |
| + catch { failed = true } |
| + } |
| +} |
diff --git a/native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift b/native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift| new file mode 100644 |
| index 00000000..4768fcd8 |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/StoppedWorkFixture.swift |
| @@ -0,0 +1,80 @@ |
| +#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() { |
| + 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) |
| + session = 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")) |
| + } |
| + .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 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": [], "turns": [], "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 "/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 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"]] |
| + } |
| + 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": 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..46d6626d |
| --- /dev/null |
| +++ b/native/apple/Sources/EquipoKit/UI/TaskPauseActions.swift |
| @@ -0,0 +1,61 @@ |
| +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 webPage: SettingsPage? |
| + @State private var connection: ResumeConnection? |
| + |
| + var body: some View { |
| + VStack(alignment: .leading, spacing: 8) { |
| + PauseLead(pause: pause) { run in |
| + perform { await session.runNow(task: taskID, run); return nil } |
| + } |
| + 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.resumeStep != nil, let connection { |
| + RosterButton(title: EquipoStrings.text("work.hold.resume"), primary: true) { |
| + perform { |
| + do { try await session.client.resumeConnection(connection); return nil } |
| + catch { return EquipoStrings.text("card.failed") } |
| + } |
| + } |
| + } |
| + if let path = pause.settingsPath, let label = pause.settingsLabel { |
| + RosterButton(title: label) { webPage = SettingsPage(url: session.origin.appendingPathComponent(path)) } |
| + } |
| + if let message { Text(message).font(Typo.secondary).foregroundStyle(Palette.negative) } |
| + if busy { ProgressView() } |
| + } |
| + .disabled(busy) |
| + .sheet(item: $webPage, onDismiss: { Task { await session.refresh() } }) { page in SettingsWebSheet(url: page.url) } |
| + .task(id: pause.resumeStep) { |
| + connection = nil |
| + if let step = pause.resumeStep, let list = try? await session.client.resumeConnections() { |
| + connection = StoppedWorkActions.connection(for: step, in: list.items ?? []) |
| + } |
| + } |
| + } |
| + |
| + 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 |
| + } |
| + } |
| +} |
| + |
| +private struct SettingsPage: Identifiable { |
| + let url: URL |
| + var id: URL { url } |
| +} |
diff --git a/native/apple/Sources/EquipoMac/EquipoMacApp.swift b/native/apple/Sources/EquipoMac/EquipoMacApp.swift| index ce7ea393..7af82b12 100644 |
| --- a/native/apple/Sources/EquipoMac/EquipoMacApp.swift |
| +++ b/native/apple/Sources/EquipoMac/EquipoMacApp.swift |
| @@ -15,15 +15,29 @@ 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"] != 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 +46,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..2ca8b22f 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 { |
diff --git a/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift| new file mode 100644 |
| index 00000000..3a57ef8c |
| --- /dev/null |
| +++ b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift |
| @@ -0,0 +1,107 @@ |
| +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 == (reason == "review_blocked")) |
| + } |
| + } |
| + |
| + @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.") |
| + } |
| + |
| +} |
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..7ad85fd4 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')): |
| 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..d3d2661d 100644 |
| --- a/native/scripts/strings.json |
| +++ b/native/scripts/strings.json |
| @@ -254,5 +254,100 @@ |
| "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" |
| } |