oficina / equipo Public

Bind native task evidence and decisions to current work

Paul Campbell pushed by claude agent, operated by paul@keymail.dev dc5e8d8c647485ff8c0657b491d690bd810141d3 parent 4f8b678
27 files changed, +799 −105
  • .rastrillo/budgets.txt +2 −2
  • docs/api/equipo-v1.openapi.json +22 −0
  • docs/superpowers/plans/CONTROLLER-REPORT-native-task-view.md +172 −0
  • internal/equipo/chat/step_hosted_view_test.go +44 −0
  • internal/equipo/chat/tasks.go +13 −1
  • internal/wire/tasks.go +10 −3
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +33 −0
  • native/apple/Sources/EquipoKit/API/Thin.swift +5 −0
  • native/apple/Sources/EquipoKit/Presentation/CheckSections.swift +22 −9
  • native/apple/Sources/EquipoKit/Presentation/Roster.swift +1 −1
  • native/apple/Sources/EquipoKit/Presentation/TaskDecision.swift +5 −3
  • native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift +48 −2
  • native/apple/Sources/EquipoKit/Presentation/TaskPage.swift +10 −1
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +33 −0
  • native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift +23 −45
  • native/apple/Sources/EquipoKit/UI/Screens/TaskEvidenceViews.swift +32 −14
  • native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift +21 −10
  • native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift +6 −4
  • native/apple/Tests/EquipoKitTests/HostedSectionTests.swift +58 −0
  • native/apple/Tests/EquipoKitTests/TaskCandidateTests.swift +56 −0
  • native/apple/Tests/EquipoKitTests/TaskDecisionTests.swift +20 −0
  • native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift +105 −7
  • native/apple/Tests/EquipoKitTests/TaskDetailTests.swift +2 −2
  • native/apple/Tests/EquipoKitTests/TaskWebNavigationTests.swift +32 −0
  • native/ios/UITests/TaskViewUITests.swift +20 −0
  • native/scripts/check-parity.py +1 −1
  • native/scripts/strings.json +3 −0

CI failed — run details

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

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

receipt: test step 1m18.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 1m16.089s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.09s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 68.25, cpu waiting 43.26%, memory waiting 0.00%, io waiting 0.48%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m18.543s 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.129s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.13s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 68.25, cpu waiting 43.26%, memory waiting 0.00%, io waiting 0.48%
--- 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 1m18.654s 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.113s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m6.38s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.32s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.42s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 68.25, cpu waiting 43.26%, memory waiting 0.00%, io waiting 0.48%
--- 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 1m14.575s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m12.56s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.41s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.66s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.88s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.62s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 68.25, cpu waiting 42.76%, 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 1m33.602s 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 1m31.729s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m2.89s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.21s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.14s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.96s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.53s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 68.16, cpu waiting 42.67%, memory waiting 0.00%, io waiting 0.37%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 2m45.112s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m42.922s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m38.06s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.39s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.64s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.39s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 27.93, cpu waiting 14.19%, 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 2m12.314s 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 2m10.288s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.24s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.88s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 45.22, cpu waiting 24.95%, 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
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
=== RUN   TestContractPausedJob
    assistant_paused_contract_test.go:175: carry on {Card:{ID: Revision:0 Kind: State: Question: Options:[] Links:[] Result: Job: Detail: StartedAt:<nil> CarryOn:false}} HTTP 409: {"code":"carry_on_unavailable","copy_key":"api.carry_on_unavailable","request_id":"PMCZMBH6LFPJNFLXZLDRYXSDNU","card":{"id":"c_m3m6ipkgpqzy4w4g7dbaobgda2","revision":6,"kind":"job","state":"paused","question":"Login is broken","options":[],"links":[{"label":"Open in Equipo","url":"http://127.0.0.1:35133/jobs/h_jzcygr7de7fdqrikwe7diahe6s","rel":"equipo"}],"result":"Paused until 11:40","detail":"It has reached the limit on its plan for now. It will carry on by itself at 11:40 (in 9 hours).","started_at":"2026-11-26T02:39:51.047647489Z"}}
--- FAIL: TestContractPausedJob (0.99s)

--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractWorkerTaintIsSticky
=== RUN   TestContractWorkerTaintIsSticky
    placement_contract_test.go:558: waiting for send_pack: failed to get reader: context deadline exceeded
--- FAIL: TestContractWorkerTaintIsSticky (45.34s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 2m16.338s
FAIL	amadan.net/oficina/equipo/internal/thintest	136.585s


receipt: test step 2m18.512s 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 2m16.338s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 45.34s amadan.net/oficina/equipo/internal/thintest TestContractWorkerTaintIsSticky
receipt: slow test 8.91s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.84s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.48s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractRetryFailedPreviewAfterMerge
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' -v -run '^TestContractPausedJob$|^TestContractWorkerTaintIsSticky$' -count=1 ./internal/thintest   (retry, once)
FAILED TWICE ./internal/thintest:TestContractPausedJob thintest-contract
FAILED TWICE ./internal/thintest:TestContractWorkerTaintIsSticky thintest-contract
=== RUN   TestContractPausedJob
    assistant_paused_contract_test.go:175: carry on {Card:{ID: Revision:0 Kind: State: Question: Options:[] Links:[] Result: Job: Detail: StartedAt:<nil> CarryOn:false}} HTTP 409: {"code":"carry_on_unavailable","copy_key":"api.carry_on_unavailable","request_id":"7V4EI3KABBLNRW5FVYJI6OGTIR","card":{"id":"c_phrwvnc6u4kk4bkb2dilixbs6h","revision":6,"kind":"job","state":"paused","question":"Login is broken","options":[],"links":[{"label":"Open in Equipo","url":"http://127.0.0.1:36635/jobs/h_exmw666rhe5pvvge2rlfgosqy4","rel":"equipo"}],"result":"Paused until 11:42","detail":"It has reached the limit on its plan for now. It will carry on by itself at 11:42 (in 9 hours).","started_at":"2026-11-26T02:42:08.045807298Z"}}
--- FAIL: TestContractPausedJob (2.03s)
=== RUN   TestContractWorkerTaintIsSticky
--- PASS: TestContractWorkerTaintIsSticky (0.57s)
FAIL
rastrillo-budget/v1 ran 2.607s
FAIL	amadan.net/oficina/equipo/internal/thintest	2.765s
FAIL
machine: 32 CPUs, load 39.55, cpu waiting 21.15%, memory waiting 0.00%, io waiting 0.16%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 7 of 29 failed: exit status 2
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 4m47.461s, over the 45s its record on line 44 allows; reported only, timing fails on CI

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

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

receipt: test step 1m1.724s 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 59.922s amadan.net/oficina/equipo/internal/runner
receipt: slow test 49.83s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 46.16s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 65.35, cpu waiting 40.80%, memory waiting 0.00%, io waiting 0.63%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 36.265s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 35.165s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.27s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.78s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 30.68, cpu waiting 23.32%, memory waiting 0.00%, io waiting 0.95%
--- 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 40.9%, load 24.04
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.841s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.072s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.57s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.49s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.47s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.62s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.43s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelDuplicates
machine: 32 CPUs, load 64.47, cpu waiting 40.58%, memory waiting 0.00%, io waiting 0.33%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 40.9%, load 24.04
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.27s 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.583s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.38s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.35s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 20.32s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.28s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 20.2s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
machine: 32 CPUs, load 62.11, cpu waiting 36.26%, memory waiting 0.00%, io waiting 0.29%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 40.9%, load 24.04
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 1m16.559s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m11.167s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16.75s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.48s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.33s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.33s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 62.11, cpu waiting 36.26%, memory waiting 0.00%, io waiting 0.29%
--- 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 40.9%, load 24.04
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.715s 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.964s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.29s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.31s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.23s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.39s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 23.36s amadan.net/oficina/equipo/internal/equipotest TestSigninCSRF
machine: 32 CPUs, load 68.16, cpu waiting 41.68%, memory waiting 0.00%, io waiting 0.34%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 40.9%, load 24.04
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 54.897s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 52.776s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.8s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.81s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.46s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.3s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 66.76, cpu waiting 43.02%, memory waiting 0.00%, io waiting 0.42%
--- 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 40.9%, load 24.04
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/checks TestDependencyStage
=== RUN   TestDependencyStage
    testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/TestDependencyStage2948591192/011/.config/go/telemetry: directory not empty
--- FAIL: TestDependencyStage (0.05s)

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

budget note: internal/equipo took 57.346s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 19.383s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 10.699s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m2.385s, 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 50.628s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 22.356s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 15.069s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m20.464s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 13.849s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m8.956s against a 60s target (the gate's other steps are not in this figure)
receipt: 35 packages ran, 30 cached, 17 without tests, 1 failed
receipt: slow package 2m2.385s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m20.464s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m10.294s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 58.862s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 57.346s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 54.72s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.19s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 45.84s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 45.72s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.31s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestDependencyStage$' -count=1 ./internal/runner/checks   (retry, once)
FAILED TWICE ./internal/runner/checks:TestDependencyStage rest
=== RUN   TestDependencyStage
    testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/TestDependencyStage2305693157: directory not empty
--- FAIL: TestDependencyStage (0.03s)
FAIL
rastrillo-budget/v1 ran 34ms
FAIL	amadan.net/oficina/equipo/internal/runner/checks	0.038s
FAIL
machine: 32 CPUs, load 30.10, cpu waiting 15.68%, memory waiting 0.00%, io waiting 0.11%
make: *** [Makefile:113: ci-shard] Error 1

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

receipt: test step 1m25.492s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.702s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.83s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.46s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.28s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.38s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 66.76, cpu waiting 43.02%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m31.902s 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 1m30.197s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.97s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.91s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.51s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 68.70, cpu waiting 42.67%, memory waiting 0.00%, io waiting 0.37%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m53.721s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m51.975s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.49s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.36s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.26s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.38s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 11.32s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
machine: 32 CPUs, load 54.24, cpu waiting 31.92%, 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

receipt: test step 1m31.213s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m29.403s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.73s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.82s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.28s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.63s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.6s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
machine: 32 CPUs, load 68.70, cpu waiting 42.59%, memory waiting 0.00%, io waiting 0.38%
--- 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.453s 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 646ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 650ms 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.292s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 11.501s 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.292s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.2s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.09s 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.597s 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.148s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.15s 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 3m38.69s 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 3m36.977s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 22.93s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.42s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.07s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.67s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.94s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.62, cpu waiting 4.27%, memory waiting 0.00%, io waiting 0.02%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.61s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.16s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.10s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.55s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.90s
+ 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   (55s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 11.96s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.31s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.90s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 18.72s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.35s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.89s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 58.85, cpu waiting 36.97%, memory waiting 0.00%, io waiting 0.70%
--- 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 13.599s 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.982s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 228ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 166ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.53s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.8s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 540ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 230ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 160ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.509s 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.097s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 14.68, cpu waiting 10.81%, memory waiting 0.00%, io waiting 1.33%
--- 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 40.9%, load 24.04
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2761 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.469s
machine: 32 CPUs, load 68.25, cpu waiting 42.51%, memory waiting 0.00%, io waiting 0.51%
--- 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 40.9%, load 24.04
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 56.22, cpu waiting 34.12%, memory waiting 0.00%, io waiting 0.75%
--- 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 40.9%, load 24.04
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 30.68, cpu waiting 23.32%, memory waiting 0.00%, io waiting 0.95%
--- 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 40.9%, load 24.04
shard 28: make gitleaks
2:40AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
2:40AM INF 1165 commits scanned.
2:40AM INF scanned ~66403426 bytes (66.40 MB) in 23.8s
2:40AM INF no leaks found
machine: 32 CPUs, load 56.22, cpu waiting 35.75%, memory waiting 0.00%, io waiting 0.72%

amadan: job failed at step check shards 7, 17 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index f898bde0..eb9d2566 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -15,7 +15,7 @@ time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial re
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
size internal/equipo 22598 - Stuck tasks: the task page Retry on a failed preview and the coordinator's retried attempt on the timeline (2026-11-25); measured 22598 source lines.
-size internal/wire 7060 - Protocol 30: the runner's tool health, offer_retry and retry_step, a step's retried_by (2026-11-25); measured 7060 source lines.
+size internal/wire 7067 - Native task evidence: additive device StepHosted failed job names; measured 7067 source lines (2026-11-26).
size internal/equipotest - 12017 Task 21 repairs historical migration and conversation fixtures after Plan 3, and the Rastrillo upgrade contract comparing served assets with what Assets serves; measured 0/12017 source/test lines.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 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.
+size internal/equipo/chat 34835 9583 Native task evidence: minimal hosted job projection and absence/privacy regression; measured 34835/9583 (2026-11-26).
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index 83cc183e..f154878d 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -22140,6 +22140,9 @@
"Step": {
"type": "object",
"properties": {
+ "hosted": {
+ "$ref": "#/components/schemas/StepHosted"
+ },
"base_checks": {
"type": "string"
},
@@ -24145,6 +24148,25 @@
],
"additionalProperties": false,
"x-go-type": "wire.ToolHealth"
+ },
+ "StepHosted": {
+ "type": "object",
+ "properties": {
+ "failed": {
+ "type": [
+ "array",
+ "null"
+ ],
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "failed"
+ ],
+ "additionalProperties": false,
+ "x-go-type": "wire.StepHosted"
}
},
"responses": {
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-task-view.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-task-view.md
index ad21a4bd..f12e710e 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-native-task-view.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-task-view.md
@@ -303,3 +303,175 @@ screenshots were recaptured from this branch; Mac and iPhone Overview and
iPhone Checks were inspected for these changes. The existing large-type tab
capture, menu and confirmation were refreshed too. The isolated simulator
and fixture Mac process were stopped after capture.
+
+## Fable delta review (2026-11-26)
+
+This delta supersedes the earlier statement that selecting the last Review was
+sufficient. Evidence must also belong to the current candidate SHA. Overview
+and Checks now select the last matching Review/Checks step. A missing current
+Review shows the exact reviewed web `runner.verdict.skipped` words, “Not run”.
+Running or queued Checks show their state without fetching an empty log.
+
+Hosted logs use the optional device-only `Step.hosted.failed` projection approved
+by the controller. It exposes failed job names only, from stored HostedCI,
+without repo, branch, URL, log, token or runner metadata. It is part of the
+existing task-authorized step representation; no new GET route or runner
+protocol change is involved. Non-hosted and malformed/missing stored results
+omit the field. OpenAPI and native decoding include the additive field; older
+payloads still decode. Native uses these names as the marker allowlist. Only
+when the field is absent does it fall back to the header's `Failed:` names.
+The hosted header appears as a summary and every named failed job is marked.
+
+Local section markers accept only basename-shaped names, excluding whitespace,
+paths and Go test markers. Section boundaries retain the original marker line,
+the prefix before the first marker, and every other bounded log line. Failed
+local sections move first; source-order ids let tests reconstruct the exact
+bounded log. A tool can spoof a basename marker such as `=== 20-check`, so the
+local failure indication remains a hint. Follow-up: the runner should send
+structured section names and byte offsets, or escape marker-like tool output.
+
+Merge, Undo and Cancel now create a confirmation intent in TaskDetailModel;
+only confirming that intent can send the write. Cancel appears last after a
+divider, uses the destructive role, and remains hidden during merging.
+Cancel title and detail are approved **Luna, 2026-11-26**:
+`native.task.cancel_confirm` = “Cancel this task?”;
+`native.task.cancel_detail` = “Equipo will stop this task. You cannot resume it,
+and nothing will be merged.” Buttons reuse reviewed web strings.
+
+Decision cards are restricted to merge, direction and held. Unknown options
+hide only themselves, preserving recognized choices. Successful direction
+answers clear the draft note, and other answer types never carry it. All task,
+Preview, Move and Changed files links go through the shared checked opener:
+fixed origin-relative task paths, or a Changed files URL on the exact session
+origin or HTTPS amadan.net. Credentials, unexpected ports, lookalike hosts and
+other forges are refused. Mac opens the default browser; iPhone uses the
+parent-owned Safari sheet.
+
+Test-first commands and observations:
+
+- `swift test --package-path native/apple --filter TaskCandidateTests`: red,
+ 10 assertions failed before current-candidate selection; green after it.
+- `swift test --package-path native/apple --filter TaskDetailModelTests`: model
+ confirmation tests red with 6 assertions before intent enforcement; green
+ after implementation. Wire assertions distinguish receipt revision 72 from
+ task revision 9 and preserve the urgent deadline.
+- `swift test --package-path native/apple --filter TaskDecisionTests`: red,
+ 5 assertions for newer unknown/question cards and unknown options; green.
+- `swift test --package-path native/apple --filter HostedSectionTests`: red for
+ hosted grouping, summary, all-failed labeling and lossless local splitting;
+ green after implementation. A test encoding setup used numeric dates first;
+ corrected to use raw server JSON before the final decoding assertion.
+- `swift test --package-path native/apple --filter TaskWebNavigationTests`:
+ red for fixed task pages and unchecked Changed files URLs; green after the
+ allowlist implementation.
+- `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/equipo/chat -run
+ '^TestStepHostedDeviceView' -count=1`: red (field missing), then green.
+- Wire schema regenerated through `EQUIPO_DEVICE_SCHEMAS=<scratch>
+ GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/wire/wireschema -run
+ '^TestDump$' -count=1`. The device contract test passed.
+
+The source budget increases are precisely the approved minimal projection:
+wire 7067 lines, chat 34835 source / 9583 test lines. Existing exemptions now
+record those measured counts and the reason; no route/performance exemption
+was added.
+
+Initial delta validation checkpoint: all 314 Swift tests passed (one existing
+known issue). Go build and vet passed with `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0
+GOOS=linux GOARCH=amd64 make build vet`; the Make target also compiles/vets the
+Darwin runner. Native staticcheck v0.7.0 and govulncheck v1.8.0, analyzing with
+`GOOS=linux GOARCH=amd64`, passed. Govulncheck reported no reachable vulnerable
+code. `make fmt-check spacing copy-release-check lanes-check budget` and
+`make migration-check` passed. The formatting tool came from the Go 1.26.11
+GOROOT prepended to PATH.
+
+Local runner-host cannot pass on this Mac: runner prerequisites fail, and the
+quarantine checks require Codex 0.165.0 while the local binary reports 0.154.0.
+`make test-quarantine` records 11 prerequisite/provider failures; no test or
+provider contract was weakened. The Linux hub run is the required final gate.
+
+Mutation command: for each listed edit, `swift test --package-path native/apple
+--filter <suite>`; each source restored in a `finally` block before the next
+mutation. All 31 compiled and failed assertions (no compile failures counted).
+
+| Mutation | Suite | Result |
+| --- | --- | --- |
+| undo-task-revision | TaskDetailModelTests | killed |
+| perform-busy | TaskDetailModelTests | killed |
+| merge-confirmation | TaskDetailModelTests | killed |
+| undoMerge-confirmation | TaskDetailModelTests | killed |
+| cancel-confirmation | TaskDetailModelTests | killed |
+| merge-card-confirmation | TaskDetailModelTests | killed |
+| explore-revision | TaskDetailModelTests | killed |
+| urgent-deadline | TaskDetailModelTests | killed |
+| direction-clear | TaskDetailModelTests | killed |
+| direction-note-only | TaskDetailModelTests | killed |
+| review-last | TaskCandidateTests | killed |
+| review-candidate | TaskCandidateTests | killed |
+| checks-last | TaskCandidateTests | killed |
+| checks-candidate | TaskCandidateTests | killed |
+| running-checks-empty-log | TaskCandidateTests | killed |
+| decision-kind | TaskDecisionTests | killed |
+| merge-unknown-option | TaskDecisionTests | killed |
+| direction-unknown-option | TaskDecisionTests | killed |
+| hosted-only-last-failed | HostedSectionTests | killed |
+| hosted-not-split | HostedSectionTests | killed |
+| hosted-header-not-summary | HostedSectionTests | killed |
+| hosted-empty-field-fallback | HostedSectionTests | killed |
+| hosted-allowlist | HostedSectionTests | killed |
+| local-prose-marker | HostedSectionTests | killed |
+| marker-lines-dropped | HostedSectionTests | killed |
+| prefix-dropped | HostedSectionTests | killed |
+| web-allowlist | TaskWebNavigationTests | killed |
+| forge-allowlist | TaskWebNavigationTests | killed |
+| forge-credentials | TaskWebNavigationTests | killed |
+| forge-port | TaskWebNavigationTests | killed |
+| cancel-merging | TaskDetailModelTests | killed |
+
+Three final edge regressions were added test-first: the facts block borrowing
+an older candidate's gate, a truncated hosted log being styled as a header,
+and a merge-card confirmation surviving a task revision change. The focused
+run failed four assertions before the fixes, then passed 23 tests. Removing
+each fix separately also failed its assertions: `facts-current-candidate`,
+`truncated-hosted-is-log`, and `merge-card-task-revision` (three more mutations).
+A truncated prefix remains in the bounded monospaced log view; only an actual
+Hosted CI header is rendered as the summary. Merge card confirmations now bind
+both the task revision and the existing card revision.
+
+The four Go mutations also failed the intended mapping assertions:
+`hosted-mapping-absent`, `hosted-drop-name`, `hosted-local-exposed`, and
+`hosted-omit-guard`. They ran with `go test -overlay=<mutation.json>
+./internal/equipo/chat -run '^TestStepHostedDeviceView' -count=1`, under
+`GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`; overlays isolate them from other reads
+without changing the checked-out source. The unmutilated mapping and device
+contract tests were run again afterwards. **38 delta mutations killed: 34
+native and 4 Go.** The ten review survivors are all represented, including both
+last/current-candidate selectors and both model-level confirmations.
+
+Final native gate: `native/scripts/check-native.sh` passed, 316 tests in 41
+suites (one existing known issue), 485 catalog strings, 327 exact web parity
+strings, and both native builds. The rebuilt Mac bundle passed and was captured
+through its own NSWindow. TaskViewUI ran all five scenarios: Overview/menu/Merge,
+local failing Checks, hosted Checks, Cancel confirmation, and large-type tabs.
+The first hosted UI assertion counted accessibility text-view objects (8 rather
+than 2), although both log boxes were visibly correct. It now checks the actual
+visible text of both jobs; rerunning that test passed. The other four scenarios
+passed on the first run. All captures were inspected and replaced in
+`site/build/slice3/`; the new additional captures are `iphone-checks-hosted.png`
+and `iphone-cancel-confirmation.png`. The fixture process and isolated simulator
+were stopped after capture.
+
+`make test` was attempted locally. The repository-wide command cannot pass on
+Darwin: a direct `go test ./internal/toolproxy` reproduces the existing
+`undefined: unix.O_PATH` compilation error at stdio.go:112 and :118. After
+11 minutes the broad command was still running thin tests; its own process
+group was stopped once that platform blocker was confirmed. No Linux test
+result is inferred from the interrupted local run. Linux hub CI remains the
+required verdict. The focused changed-package tests pass on this Mac.
+
+Final changed-package validation: `go test ./internal/equipo/chat
+./internal/wire/...` passed with Go 1.26.11 and CGO disabled. `make perf` ran
+TestPerfScreens and TestPerfBoot but the repository-wide command failed on the
+same Darwin toolproxy compilation issue; no route or performance budget was
+changed. Final `make fmt-check budget` passed. Gate logs and the individual
+mutation transcripts are retained in `site/build/slice3/delta-validation/`.
+There are no outstanding copy questions. No merge or release was performed.
diff --git a/internal/equipo/chat/step_hosted_view_test.go b/internal/equipo/chat/step_hosted_view_test.go
new file mode 100644
index 00000000..f8390feb
--- /dev/null
+++ b/internal/equipo/chat/step_hosted_view_test.go
@@ -0,0 +1,44 @@
+package chat
+
+import (
+ "encoding/json"
+ "reflect"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func TestStepHostedDeviceViewExposesOnlyFailedNames(t *testing.T) {
+ stored := `{"repo":"oficina/equipo","branch":"fix","sha":"candidate","state":"failure","reported_at":123,"failed":["check shard 5 of 23","format"],"url":"https://private.invalid","token":"not-for-devices"}`
+ for _, tc := range []struct {
+ name, gate, stored string
+ present bool
+ }{
+ {"hosted", wire.GateHosted, stored, true},
+ {"local", ".amadan/ci.d", stored, false},
+ {"missing", wire.GateHosted, "", false},
+ {"malformed", wire.GateHosted, "{", false},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ view := stepView(stepRecord{ID: "s", Gate: tc.gate, HostedCI: tc.stored})
+ raw, err := json.Marshal(view)
+ if err != nil {
+ t.Fatal(err)
+ }
+ var body map[string]any
+ if err := json.Unmarshal(raw, &body); err != nil {
+ t.Fatal(err)
+ }
+ hosted, exists := body["hosted"]
+ if exists != tc.present {
+ t.Fatalf("hosted present = %v, want %v", exists, tc.present)
+ }
+ if tc.present {
+ want := map[string]any{"failed": []any{"check shard 5 of 23", "format"}}
+ if !reflect.DeepEqual(hosted, want) {
+ t.Fatalf("hosted = %#v; want only %#v", hosted, want)
+ }
+ }
+ })
+ }
+}
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index ac5219b2..52d18800 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -464,11 +464,23 @@ func (t *txn) latestStep(taskID string) (stepRecord, bool, error) {
}
func stepView(s stepRecord) wire.Step {
- return wire.Step{RunnerID: s.RunnerID, Needs: decodeList(s.Needs), Placement: s.Placement, Publication: s.Publication, TerminationKind: s.TerminationKind, ChecksSandbox: s.ChecksSandbox, ID: s.ID, Revision: s.Revision, TaskID: s.TaskID, Index: s.Idx, Specialist: s.Specialist, State: s.State, Reason: s.Reason, Attempt: s.Attempt, BaseSHA: s.BaseSHA, CandidateSHA: s.CandidateSHA, Pushed: s.Pushed, Terminated: s.Terminated, Summary: s.Summary, Headline: s.Headline, LogTail: s.LogTail, StartedAt: s.StartedAt, FinishedAt: s.FinishedAt,
+ return wire.Step{Hosted: stepHostedView(s), RunnerID: s.RunnerID, Needs: decodeList(s.Needs), Placement: s.Placement, Publication: s.Publication, TerminationKind: s.TerminationKind, ChecksSandbox: s.ChecksSandbox, ID: s.ID, Revision: s.Revision, TaskID: s.TaskID, Index: s.Idx, Specialist: s.Specialist, State: s.State, Reason: s.Reason, Attempt: s.Attempt, BaseSHA: s.BaseSHA, CandidateSHA: s.CandidateSHA, Pushed: s.Pushed, Terminated: s.Terminated, Summary: s.Summary, Headline: s.Headline, LogTail: s.LogTail, StartedAt: s.StartedAt, FinishedAt: s.FinishedAt,
Round: s.Round, Family: s.Family, Account: s.Account, Model: s.Model, Verdict: s.Verdict, ReviewLabel: s.ReviewLabel, Findings: decodeFindings(s.Findings), BaseChecks: s.BaseChecks, Checks: s.Checks, Gate: s.Gate, ExitCode: s.ExitCode, Askable: s.Askable,
Rebase: s.Rebase, MergeSHA: s.MergeSHA, Into: s.MergeInto, Strategy: s.MergeStrategy, WithoutChecks: s.WithoutChecks, Activity: decodeActivity(s.Activity), Preview: decodePreview(s.Preview), Publish: decodePublish(s.Publish), RetriedBy: retriedBy(s)}
}
+// stepHostedView projects only names already visible in the task's CI log.
+func stepHostedView(s stepRecord) *wire.StepHosted {
+ if s.Gate != wire.GateHosted || s.HostedCI == "" {
+ return nil
+ }
+ var result wire.HostedResult
+ if json.Unmarshal([]byte(s.HostedCI), &result) != nil {
+ return nil
+ }
+ return &wire.StepHosted{Failed: result.Failed}
+}
+
// retriedBy says who started the step's current attempt, when it was the
// coordinator (retry_step).
func retriedBy(s stepRecord) string {
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go
index 3cd955cf..951c8126 100644
--- a/internal/wire/tasks.go
+++ b/internal/wire/tasks.go
@@ -224,6 +224,12 @@ type ThreadEntry struct {
At time.Time `json:"at"`
}
+// StepHosted is the device-visible hosted CI evidence. Runner reports retain
+// the full result; devices need only the failed job names for log sections.
+type StepHosted struct {
+ Failed []string `json:"failed"`
+}
+
// Step is one specialist's run on the task branch. CandidateSHA is the
// commit the runner made from the step's changes; Pushed is true once
// forge confirmed the branch points at it. Terminated is the runner's
@@ -268,9 +274,10 @@ type Step struct {
// Checks: the outcome on CandidateSHA, the gate that ran (".amadan/
// ci.d", ".amadan/ci", "make ci" or ""), its exit code (null when it
// did not run); the last 200 lines are GET /steps/{id}/log.
- Checks string `json:"checks"`
- Gate string `json:"gate"`
- ExitCode *int `json:"exit_code"`
+ Checks string `json:"checks"`
+ Gate string `json:"gate"`
+ ExitCode *int `json:"exit_code"`
+ Hosted *StepHosted `json:"hosted,omitempty"`
// Askable is true while the runner keeps the step's own session, so
// the task's creator can ask it a question (Engineering and Review).
Askable bool `json:"askable"`
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index ebf20e77..fc9366ad 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -1344,6 +1344,28 @@
}
}
},
+ "native.task.cancel_confirm": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cancel this task?"
+ }
+ }
+ }
+ },
+ "native.task.cancel_detail": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Equipo will stop this task. You cannot resume it, and nothing will be merged."
+ }
+ }
+ }
+ },
"native.task.changes": {
"extractionState": "manual",
"localizations": {
@@ -2697,6 +2719,17 @@
}
}
},
+ "runner.verdict.skipped": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Not run"
+ }
+ }
+ }
+ },
"settings.not_paired": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift
index 595e67d8..06282ed1 100644
--- a/native/apple/Sources/EquipoKit/API/Thin.swift
+++ b/native/apple/Sources/EquipoKit/API/Thin.swift
@@ -76,7 +76,12 @@ public struct ThreadEntry: Codable, Sendable, Identifiable, Equatable {
public var at: Date
}
+public struct ThinStepHosted: Codable, Sendable, Equatable {
+ public var failed: [String]?
+}
+
public struct ThinStep: Codable, Sendable, Identifiable, Equatable {
+ public var hosted: ThinStepHosted? = nil
public var baseChecks: String? = nil
public var revision: Int64? = nil
public var taskId: String? = nil
diff --git a/native/apple/Sources/EquipoKit/Presentation/CheckSections.swift b/native/apple/Sources/EquipoKit/Presentation/CheckSections.swift
index f99440e0..eddd2528 100644
--- a/native/apple/Sources/EquipoKit/Presentation/CheckSections.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/CheckSections.swift
@@ -5,26 +5,39 @@ struct CheckSection: Identifiable, Equatable, Sendable {
let name: String
let text: String
let failed: Bool
+ var isSummary = false
static func split(_ log: StepLog, step: ThinStep) -> [Self] {
let tail = log.boundedTail
let failed = step.checks == "failed" || (step.exitCode.map { $0 != 0 } ?? false)
- guard step.gate == ".amadan/ci.d" else { return [Self(id: 0, name: "", text: tail, failed: failed)] }
+ let hosted = step.gate == "hosted CI"
+ guard step.gate == ".amadan/ci.d" || hosted else { return [Self(id: 0, name: "", text: tail, failed: failed)] }
+ let source = tail.components(separatedBy: "\n")
+ // Older devices receive no hosted field. Only then can the header
+ // supply the allowlist; a present empty field is authoritative.
+ let headerNames = source.prefix { !$0.hasPrefix("=== ") }.first { $0.hasPrefix("Failed: ") }
+ .map { String($0.dropFirst(8)).components(separatedBy: "; ") } ?? []
+ let names = Set(step.hosted.map { $0.failed ?? [] } ?? headerNames)
var chunks: [(name: String, lines: [String])] = []
var name = "", lines: [String] = []
- for line in tail.components(separatedBy: "\n") {
- let testingMarker = ["=== RUN ", "=== PAUSE ", "=== CONT ", "=== NAME "].contains { line.hasPrefix($0) }
- if line.hasPrefix("=== "), line.count > 4, !testingMarker {
+ for line in source {
+ let candidate = String(line.dropFirst(4))
+ let basename = candidate.range(of: #"^[A-Za-z0-9_@+-][A-Za-z0-9._@+-]*$"#, options: .regularExpression) != nil
+ && !["RUN", "PAUSE", "CONT", "NAME"].contains(candidate)
+ let marker = line.hasPrefix("=== ") && (hosted ? names.contains(candidate) : basename)
+ if marker {
if !name.isEmpty || !lines.isEmpty { chunks.append((name, lines)) }
- name = String(line.dropFirst(4)); lines = []
+ name = candidate; lines = [line]
} else { lines.append(line) }
}
if !name.isEmpty || !lines.isEmpty { chunks.append((name, lines)) }
var sections = chunks.enumerated().map { index, chunk in
- Self(id: index, name: chunk.name, text: chunk.lines.joined(separator: "\n"), failed: failed && index == chunks.count - 1)
+ Self(id: index, name: chunk.name, text: chunk.lines.joined(separator: "\n"),
+ failed: failed && (hosted ? !chunk.name.isEmpty : index == chunks.count - 1),
+ isSummary: hosted && chunk.name.isEmpty && chunk.lines.first?.hasPrefix("Hosted CI on ") == true)
}
- // ciDScript exits at the first failed script. The last retained section
- // is therefore the failing one; other sections keep their source order.
- if failed, let last = sections.popLast() { sections.insert(last, at: 0) }
+ // Local ci.d stops at the first failure. This is a hint: tool output
+ // can imitate a basename marker. Grouping never removes any log line.
+ if failed, !hosted, let last = sections.popLast() { sections.insert(last, at: 0) }
return sections
}
}
diff --git a/native/apple/Sources/EquipoKit/Presentation/Roster.swift b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
index 1839828e..f66b58f9 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Roster.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
@@ -86,7 +86,7 @@ public struct TaskReport: Sendable, Equatable {
detail = EquipoStrings.text(.init(["needs_macos": "checks.needs_macos", "needs_network": "checks.needs_network",
"checks_timeout": "checks.timeout"][task.checksReason] ?? "checks.unavailable"))
case "passed", "failed":
- if let ran = steps.last(where: { $0.specialist == "checks" && $0.state == "done" }), !ran.gate.isEmpty {
+ if let ran = steps.last(where: { $0.specialist == "checks" && $0.state == "done" && $0.candidateSha == task.candidateSha }), !ran.gate.isEmpty {
detail = ran.gate
if task.checks == "failed", let code = ran.exitCode {
detail = String(localized: "checks.exit \(ran.gate) \(String(code))", bundle: .module)
diff --git a/native/apple/Sources/EquipoKit/Presentation/TaskDecision.swift b/native/apple/Sources/EquipoKit/Presentation/TaskDecision.swift
index 9463fcb9..8b47604b 100644
--- a/native/apple/Sources/EquipoKit/Presentation/TaskDecision.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/TaskDecision.swift
@@ -9,10 +9,12 @@ struct TaskDecision {
init(task: ThinTask, cards: [ThinCard], mine: Bool, owner: Bool) {
guard mine, owner, !["done", "cancelled", "merging"].contains(task.stage),
task.moving != true, task.stopping != true, task.copyHold != true, task.copyCanSkip != true else { return }
- card = cards.sorted { ($0.createdAt, $0.id) < ($1.createdAt, $1.id) }.last { $0.taskId == task.id && $0.isOpen && !["task", "merge_receipt"].contains($0.kind) }
+ card = cards.sorted { ($0.createdAt, $0.id) < ($1.createdAt, $1.id) }.last { $0.taskId == task.id && $0.isOpen && ["merge", "direction", "held"].contains($0.kind) }
guard let card else { return }
if card.kind == "merge", task.kind == "explore" { self.card = nil; return }
- if let decision = Feed.decision(card, task: task), decision.open { choices = decision.choices; return }
+ var knownCard = card
+ knownCard.options = card.options?.filter { Feed.webText("chat.card." + $0) != nil }
+ if let decision = Feed.decision(knownCard, task: task), decision.open { choices = decision.choices; return }
let allowed: Set<String>
switch card.kind {
case "direction": allowed = ["build", "again", "drop"]
@@ -21,7 +23,7 @@ struct TaskDecision {
}
var result: [DecisionView.Choice] = []
for value in card.options ?? [] {
- guard allowed.contains(value), let label = Feed.webText("chat.card." + value) else { return }
+ guard allowed.contains(value), let label = Feed.webText("chat.card." + value) else { continue }
result.append(.init(value: value, label: label, primary: value == "build" || value == "run_now"))
}
choices = result
diff --git a/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift b/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
index 85381d11..511eb612 100644
--- a/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
@@ -5,6 +5,23 @@ import Observation
let session: EquipoSession
let taskID: String
@ObservationIgnored private let openMovePage: (URL, String) -> Void
+ var confirmation: TaskConfirmation?
+ var directionNote = ""
+ var menuActions: [TaskAction] {
+ TaskAction.allCases.filter { $0 != .cancel && rules.available.contains($0) }
+ + (rules.available.contains(.cancel) ? [.cancel] : [])
+ }
+ func confirm() async {
+ guard !busy, let intent = confirmation else { return }
+ confirmation = nil
+ if let card = intent.card {
+ guard task?.revision == intent.revision else {
+ failure = EquipoStrings.text("card.changed"); await refreshAfterAction(); return
+ }
+ await sendAnswer(card, choice: "merge", note: "")
+ }
+ else { await execute(intent.action, seenRevision: intent.revision, receiptRevision: intent.receiptRevision) }
+ }
var loaded: ThinTask?
var busy = false
var failure: String?
@@ -41,7 +58,17 @@ import Observation
catch { failure = TaskActionFailure.words(error) }
}
func perform(_ action: TaskAction, seenRevision: Int64? = nil, receiptRevision: Int64? = nil, repo: String? = nil) async {
- guard !busy, let task, rules.available.contains(action) else { return }
+ guard !busy else { return }
+ guard let task, rules.available.contains(action) else { return }
+ if [.merge, .undoMerge, .cancel].contains(action) {
+ confirmation = TaskConfirmation(action: action, revision: seenRevision ?? task.revision,
+ receiptRevision: receiptRevision ?? rules.undoReceipt?.revision)
+ return
+ }
+ await execute(action, seenRevision: seenRevision, receiptRevision: receiptRevision, repo: repo)
+ }
+ private func execute(_ action: TaskAction, seenRevision: Int64? = nil, receiptRevision: Int64? = nil, repo: String? = nil) async {
+ guard let task, rules.available.contains(action) else { return }
if let seenRevision, seenRevision != task.revision {
failure = EquipoStrings.text("card.changed"); await load(); return
}
@@ -85,6 +112,16 @@ import Observation
}
func answer(_ card: ThinCard, choice: String, note: String) async {
guard !busy else { return }
+ if choice == "merge", decision.card?.id == card.id, decision.card?.revision == card.revision,
+ decision.canAnswer(choice, note: "") {
+ confirmation = TaskConfirmation(action: .merge, revision: task?.revision ?? 0, card: card)
+ return
+ }
+ await sendAnswer(card, choice: choice, note: note)
+ }
+ private func sendAnswer(_ card: ThinCard, choice: String, note: String) async {
+ guard !busy else { return }
+ let note = card.kind == "direction" ? note : ""
guard let current = decision.card, current.id == card.id, current.revision == card.revision else {
failure = EquipoStrings.text("card.changed"); await refreshAfterAction(); return
}
@@ -92,7 +129,8 @@ import Observation
busy = true; failure = nil
defer { busy = false }
switch await session.answer(card, choice: choice, note: note.isEmpty ? nil : note) {
- case .answered: break
+ case .answered:
+ if card.kind == "direction" { directionNote = "" }
case .changed: failure = EquipoStrings.text("card.changed")
case .offline: failure = EquipoStrings.text("card.offline")
case .failed: failure = session.answerNotices[card.id] ?? EquipoStrings.text("card.failed")
@@ -104,3 +142,11 @@ import Observation
await load()
}
}
+
+struct TaskConfirmation: Identifiable {
+ let id = UUID()
+ var action: TaskAction
+ var revision: Int64
+ var receiptRevision: Int64? = nil
+ var card: ThinCard? = nil
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/TaskPage.swift b/native/apple/Sources/EquipoKit/Presentation/TaskPage.swift
index 0e812883..7c5361cd 100644
--- a/native/apple/Sources/EquipoKit/Presentation/TaskPage.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/TaskPage.swift
@@ -5,7 +5,16 @@ import Foundation
enum TaskPage {
// Wire steps are ordered oldest to newest, as on the web task timeline.
static func latestReview(_ task: ThinTask) -> ThinStep? {
- task.steps?.last { $0.specialist == "review" }
+ guard !task.candidateSha.isEmpty else { return nil }
+ return task.steps?.last { $0.specialist == "review" && $0.candidateSha == task.candidateSha }
+ }
+ static func latestChecks(_ task: ThinTask) -> ThinStep? {
+ guard !task.candidateSha.isEmpty else { return nil }
+ return task.steps?.last { $0.specialist == "checks" && $0.candidateSha == task.candidateSha }
+ }
+ static func checksLogStep(_ task: ThinTask) -> ThinStep? {
+ guard let step = latestChecks(task), ["done", "failed"].contains(step.state) else { return nil }
+ return step
}
static func placementLead(_ task: ThinTask) -> String? {
guard task.moving == true || task.stopping == true else { return nil }
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index ebf20e77..fc9366ad 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -1344,6 +1344,28 @@
}
}
},
+ "native.task.cancel_confirm": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cancel this task?"
+ }
+ }
+ }
+ },
+ "native.task.cancel_detail": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Equipo will stop this task. You cannot resume it, and nothing will be merged."
+ }
+ }
+ }
+ },
"native.task.changes": {
"extractionState": "manual",
"localizations": {
@@ -2697,6 +2719,17 @@
}
}
},
+ "runner.verdict.skipped": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Not run"
+ }
+ }
+ }
+ },
"settings.not_paired": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
index a9ed1a67..b6fc3017 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
@@ -20,10 +20,6 @@ public struct TaskScreen: View {
@State private var model: TaskDetailModel
@State private var tab: TaskDetailTab = .overview
@State private var talking = false
- @State private var answering = false
- @State private var note = ""
- @State private var confirmation: TaskConfirmation?
- @Environment(\.openURL) private var openURL
public init(session: EquipoSession, taskID: String) {
_model = State(initialValue: TaskDetailModel(session: session, taskID: taskID))
}
@@ -69,17 +65,9 @@ public struct TaskScreen: View {
.background(Palette.background)
.task(id: model.session.task(model.taskID)?.revision) { await model.load() }
.refreshable { await model.session.refresh(); await model.load() }
- .sheet(item: $confirmation) { confirm in confirmationSheet(confirm) }
+ .sheet(item: $model.confirmation) { confirm in confirmationSheet(confirm) }
.sheet(isPresented: $model.moving) { TaskMoveSheet(model: model) }
- .onChange(of: model.decision.card?.id) {
- if model.decision.card?.kind != "question" { answering = false }
- }
- .sheet(isPresented: $answering) {
- if let card = model.decision.card, card.kind == "question" {
- ScrollView { LiveQuestionCard(card: card, taskTitle: model.task?.title, session: model.session).padding(20) }
- .presentationDetents([.medium, .large])
- }
- }
+ .onChange(of: model.decision.card?.id) { model.directionNote = "" }
}
private func heading(_ task: ThinTask) -> some View {
@@ -123,19 +111,23 @@ public struct TaskScreen: View {
}
private func webEvidence(_ task: ThinTask, preview: Bool) -> some View {
Button {
- if preview { openURL(model.session.origin.appendingPathComponent("tasks/\(task.id)/preview")) }
- else if let url = TaskReport(task, needsYou: false).amadanURL { openURL(url) }
+ if preview { model.session.settings.open(origin: model.session.origin, path: "/tasks/\(task.id)/preview") }
+ else if let url = TaskReport(task, needsYou: false).amadanURL { model.session.settings.openChanges(origin: model.session.origin, url: url) }
else { openWeb(task) }
} label: {
Label(EquipoStrings.text("task.open_web"), systemImage: "arrow.up.right")
}.buttonStyle(.bordered)
}
- private func openWeb(_ task: ThinTask) { openURL(model.session.origin.appendingPathComponent("tasks/\(task.id)")) }
+ private func openWeb(_ task: ThinTask) { model.session.settings.open(origin: model.session.origin, path: "/tasks/\(task.id)") }
private func menu(_ task: ThinTask) -> some View {
Menu {
- ForEach(TaskAction.allCases.filter { model.rules.available.contains($0) }, id: \.self) { action in
- Button(action.title, role: action == .cancel ? .destructive : nil) { perform(action, task: task) }
+ ForEach(model.menuActions.filter { $0 != .cancel }, id: \.self) { action in
+ Button(action.title) { perform(action, task: task) }
+ }
+ if model.menuActions.contains(.cancel) {
+ Divider()
+ Button(TaskAction.cancel.title, role: .destructive) { perform(.cancel, task: task) }
}
} label: { Image(systemName: "ellipsis").frame(minWidth: 44, minHeight: 44) }
.accessibilityLabel(EquipoStrings.text("work.menu.more")).accessibilityIdentifier("task-more")
@@ -146,8 +138,6 @@ public struct TaskScreen: View {
}
private func perform(_ action: TaskAction, task: ThinTask) {
switch action {
- case .merge, .undoMerge:
- confirmation = .init(action: action, revision: task.revision, receiptRevision: model.rules.undoReceipt?.revision)
case .move: Task { await model.beginMove() }
default: Task { await model.perform(action, seenRevision: task.revision) }
}
@@ -160,12 +150,10 @@ public struct TaskScreen: View {
if let failure = model.failure { Text(failure).font(Typo.secondary).foregroundStyle(Palette.negative).fixedSize(horizontal: false, vertical: true) }
if model.busy { ProgressView(EquipoStrings.text("action.sending")) }
if let card = model.decision.card {
- if card.kind == "question" {
- RosterButton(title: EquipoStrings.text("chat.card.answer"), primary: true) { answering = true }
- } else if !model.decision.choices.isEmpty {
+ if !model.decision.choices.isEmpty {
if card.kind == "direction" {
Text(card.question).font(Typo.secondary)
- TextField(EquipoStrings.text("chat.card.direction_note"), text: $note, axis: .vertical).lineLimit(2...4)
+ TextField(EquipoStrings.text("chat.card.direction_note"), text: $model.directionNote, axis: .vertical).lineLimit(2...4)
.textFieldStyle(.roundedBorder)
}
ViewThatFits(in: .horizontal) {
@@ -187,17 +175,18 @@ public struct TaskScreen: View {
@ViewBuilder private func decisionChoices(_ card: ThinCard) -> some View {
ForEach(model.decision.choices) { choice in
RosterButton(title: choice.label, primary: choice.primary) {
- if choice.value == "merge" {
- confirmation = .init(action: .merge, revision: model.task?.revision ?? 0, card: card)
- } else { Task { await model.answer(card, choice: choice.value, note: note) } }
- }.disabled(!model.decision.canAnswer(choice.value, note: note))
+ Task { await model.answer(card, choice: choice.value, note: model.directionNote) }
+ }.disabled(!model.decision.canAnswer(choice.value, note: model.directionNote))
}
}
private func confirmationSheet(_ confirmation: TaskConfirmation) -> some View {
VStack(alignment: .leading, spacing: 18) {
- Text(confirmation.action == .undoMerge ? EquipoStrings.text("native.task.undo_confirm") : EquipoStrings.text("work.decide.adopt_ask"))
+ // COPY APPROVED: Luna, 2026-11-26 (cancel title and detail).
+ Text(EquipoStrings.text(confirmation.action == .cancel ? "native.task.cancel_confirm" : confirmation.action == .undoMerge ? "native.task.undo_confirm" : "work.decide.adopt_ask"))
.font(.title2.bold())
- if confirmation.action == .undoMerge {
+ if confirmation.action == .cancel {
+ Text(EquipoStrings.text("native.task.cancel_detail"))
+ } else if confirmation.action == .undoMerge {
// COPY APPROVED (Luna via controller, 2026-11-26).
Text(EquipoStrings.text("native.task.undo_detail"))
} else if let task = model.task {
@@ -207,26 +196,15 @@ public struct TaskScreen: View {
if !task.branch.isEmpty { detail(EquipoStrings.text("work.details.branch"), task.branch) }
if !task.candidateSha.isEmpty { detail(EquipoStrings.text("work.details.commit"), task.candidateSha) }
}
- Button(confirmation.action.title) {
- self.confirmation = nil
- Task {
- if let card = confirmation.card { await model.answer(card, choice: "merge", note: note) }
- else { await model.perform(confirmation.action, seenRevision: confirmation.revision, receiptRevision: confirmation.receiptRevision) }
- }
+ Button(confirmation.action.title, role: confirmation.action == .cancel ? .destructive : nil) {
+ Task { await model.confirm() }
}.buttonStyle(.borderedProminent).accessibilityIdentifier("task-confirm")
- Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { self.confirmation = nil }
+ Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { model.confirmation = nil }
}.padding(24).frame(minWidth: 280, maxWidth: 540, alignment: .leading)
.presentationDetents([.medium, .large])
}
}
-private struct TaskConfirmation: Identifiable {
- let id = UUID()
- var action: TaskAction
- var revision: Int64
- var receiptRevision: Int64? = nil
- var card: ThinCard? = nil
-}
extension TaskAction {
var title: String {
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskEvidenceViews.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskEvidenceViews.swift
index 470e1b1c..61582b48 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskEvidenceViews.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskEvidenceViews.swift
@@ -3,12 +3,16 @@ import SwiftUI
struct TaskReviewSummary: View {
let task: ThinTask
var body: some View {
- if let review = TaskPage.latestReview(task), !review.summary.isEmpty {
- VStack(alignment: .leading, spacing: 8) {
- SectionTitle(text: EquipoStrings.text("fact.review"))
- if !review.headline.isEmpty { Text(review.headline).font(.headline) }
- Text(review.summary).font(Typo.body).textSelection(.enabled).fixedSize(horizontal: false, vertical: true)
- }
+ VStack(alignment: .leading, spacing: 8) {
+ SectionTitle(text: EquipoStrings.text("fact.review"))
+ if let review = TaskPage.latestReview(task) {
+ if ["running", "queued"].contains(review.state) {
+ Text(EquipoStrings.text("review.running")).foregroundStyle(Palette.secondary)
+ } else {
+ if !review.headline.isEmpty { Text(review.headline).font(.headline) }
+ if !review.summary.isEmpty { Text(review.summary).font(Typo.body).textSelection(.enabled).fixedSize(horizontal: false, vertical: true) }
+ }
+ } else { Text(EquipoStrings.text("runner.verdict.skipped")).foregroundStyle(Palette.secondary) }
}
}
}
@@ -18,29 +22,43 @@ struct TaskChecksView: View {
let client: EquipoClient
@State private var sections: [CheckSection] = []
@State private var failure: String?
- private var step: ThinStep? { task.steps?.last { $0.specialist == "checks" } }
+ @State private var loadedStep: String?
+ private var step: ThinStep? { TaskPage.checksLogStep(task) }
var body: some View {
VStack(alignment: .leading, spacing: 16) {
if let step {
- if let failure {
+ if loadedStep == step.id, let failure {
Text(failure).foregroundStyle(Palette.negative)
Button(EquipoStrings.text("read.retry")) { Task { await load(step) } }
- } else if sections.isEmpty {
+ } else if loadedStep != step.id {
ProgressView().accessibilityLabel(EquipoStrings.text("fact.checks"))
} else {
- ForEach(sections) { section in CheckSectionView(section: section) }
+ ForEach(sections) { section in
+ if section.isSummary { Text(section.text).font(Typo.body).textSelection(.enabled).fixedSize(horizontal: false, vertical: true) }
+ else { CheckSectionView(section: section) }
+ }
}
} else {
- FactsView(facts: TaskReport(task, needsYou: !task.needsYou.isEmpty).facts.filter { $0.label == EquipoStrings.text("fact.checks") }, wide: false)
+ VStack(alignment: .leading, spacing: 8) {
+ SectionTitle(text: EquipoStrings.text("fact.checks"))
+ Text(EquipoStrings.text(TaskPage.latestChecks(task) == nil ? "runner.verdict.skipped" : "checks.running"))
+ .foregroundStyle(Palette.secondary)
+ }
}
TaskReviewSummary(task: task)
}
- .task(id: task.revision) { sections = []; if let step { await load(step) } }
+ .task(id: task.revision) { sections = []; loadedStep = nil; if let step { await load(step) } }
}
private func load(_ step: ThinStep) async {
failure = nil
- do { sections = CheckSection.split(try await client.stepLog(step.id), step: step) }
- catch { failure = StoppedWorkActions.logFailure(error) }
+ do {
+ let log = try await client.stepLog(step.id)
+ try Task.checkCancellation()
+ sections = CheckSection.split(log, step: step); loadedStep = step.id
+ } catch {
+ guard !Task.isCancelled else { return }
+ failure = StoppedWorkActions.logFailure(error); loadedStep = step.id
+ }
}
}
diff --git a/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift b/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift
index fc1f8e9a..0d0403c5 100644
--- a/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift
+++ b/native/apple/Sources/EquipoKit/UI/SettingsWebSheet.swift
@@ -6,12 +6,19 @@ import SafariServices
import AppKit
#endif
-/// Only fixed settings routes and a task move page can leave the app here.
+/// Fixed task/settings routes and checked forge links share the same opener.
enum SettingsNavigation {
+ static func openChanges(origin: URL, url: URL, opener: (URL) -> Void) {
+ guard url.user == nil, url.password == nil else { return }
+ let sameOrigin = url.scheme == origin.scheme && url.host == origin.host && url.port == origin.port
+ let forge = url.scheme == "https" && url.host == "amadan.net" && (url.port == nil || url.port == 443)
+ guard sameOrigin || forge, ["http", "https"].contains(url.scheme) else { return }
+ opener(url)
+ }
static func open(origin: URL, path: String, opener: (URL) -> Void) {
let fixedSettings = ["/conversation/settings/machines", "/conversation/settings/connections", "/conversation/settings/connections/add"].contains(path)
- let taskMove = path.range(of: #"^/tasks/[A-Za-z0-9_-]+/move\z"#, options: .regularExpression) != nil
- guard fixedSettings || taskMove,
+ let taskPage = path.range(of: #"^/tasks/[A-Za-z0-9_-]+(?:/move|/preview)?\z"#, options: .regularExpression) != nil
+ guard fixedSettings || taskPage,
var url = URLComponents(url: origin, resolvingAgainstBaseURL: false) else { return }
url.path = path; url.query = nil; url.fragment = nil
if let destination = url.url { opener(destination) }
@@ -22,13 +29,17 @@ enum SettingsNavigation {
struct Page: Identifiable { let url: URL; var id: URL { url } }
var page: Page?
func open(origin: URL, path: String) {
- SettingsNavigation.open(origin: origin, path: path) { url in
- #if os(macOS)
- NSWorkspace.shared.open(url)
- #else
- page = Page(url: url)
- #endif
- }
+ SettingsNavigation.open(origin: origin, path: path, opener: present)
+ }
+ func openChanges(origin: URL, url: URL) {
+ SettingsNavigation.openChanges(origin: origin, url: url, opener: present)
+ }
+ private func present(_ url: URL) {
+ #if os(macOS)
+ NSWorkspace.shared.open(url)
+ #else
+ page = Page(url: url)
+ #endif
}
}
diff --git a/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift b/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift
index 970d384f..cc54e279 100644
--- a/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift
+++ b/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift
@@ -45,15 +45,17 @@ public struct TaskViewFixture: View {
}
private struct TaskViewFixtureTransport: EquipoTransport {
+ private var hosted: Bool { ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "hosted" }
+ private var failed: Bool { hosted || ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "checks" }
let origin = URL(string: "https://fixture.invalid")!
func send(_ request: APIRequest) async throws -> APIResponse {
let value: [String: Any]
switch request.path {
case "/snapshot":
- value = ["me": ["id": "fixture", "address": "paul@example.com", "role": "owner", "team_id": "fixture", "team_name": "Oficina", "revision": 1], "cursor": 1, "tasks": [task], "messages": [], "turns": [], "cards": ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "checks" ? [] : [card], "projects": []]
+ value = ["me": ["id": "fixture", "address": "paul@example.com", "role": "owner", "team_id": "fixture", "team_name": "Oficina", "revision": 1], "cursor": 1, "tasks": [task], "messages": [], "turns": [], "cards": failed ? [] : [card], "projects": []]
case "/tasks", "/needs-you": value = ["items": [task]]
case "/tasks/tk_fixture": value = task
- case "/steps/checks/log": value = ["step_id": "checks", "attempt": 1, "tail": "=== formatting\nFormatting passed.\n=== native-tests\nRunning EquipoKitTests\nTest needsBadgeClearsAfterSignOut failed\nExpected: 0\nReceived: 1\nThe signed-out account still contributes to the Needs you badge.\nexit status 1"]
+ case "/steps/checks/log": value = ["step_id": "checks", "attempt": 1, "tail": hosted ? "Hosted CI on oficina/equipo at 3f9c2a1: failed.\nFailed: format; check shard 5 of 23\n=== format\nThe changed Swift file needs formatting.\n=== check shard 5 of 23\nTest needsBadgeClearsAfterSignOut failed\nExpected: 0\nReceived: 1\n" : "=== formatting\nFormatting passed.\n=== native-tests\nRunning EquipoKitTests\nTest needsBadgeClearsAfterSignOut failed\nExpected: 0\nReceived: 1\nThe signed-out account still contributes to the Needs you badge.\nexit status 1"]
case "/projects": value = ["items": [], "allowed": ["oficina/equipo", "oficina/notes"]]
default: value = [:]
}
@@ -64,12 +66,12 @@ private struct TaskViewFixtureTransport: EquipoTransport {
["id": "card_merge", "revision": 3, "kind": "merge", "state": "open", "turn_id": "", "project_id": "project", "name": "", "question": "Merge the fix for the Needs you badge?", "options": ["merge", "not_now"], "choice": "", "task_id": "tk_fixture", "created_at": "2026-11-26T09:42:00Z", "updated_at": "2026-11-26T09:42:00Z"]
}
private var task: [String: Any] {
- let failed = ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "checks"
func step(_ id: String, _ specialist: String, _ headline: String, _ summary: String = "") -> [String: Any] {
- ["id": id, "specialist": specialist, "state": "done", "reason": "", "headline": headline, "summary": summary, "verdict": "", "review_label": "", "checks": "", "gate": "", "started_at": "2026-11-26T09:42:00Z", "finished_at": "2026-11-26T09:48:00Z"]
+ ["id": id, "specialist": specialist, "candidate_sha": "3f9c2a167de8", "state": "done", "reason": "", "headline": headline, "summary": summary, "verdict": "", "review_label": "", "checks": "", "gate": "", "started_at": "2026-11-26T09:42:00Z", "finished_at": "2026-11-26T09:48:00Z"]
}
var checks = step("checks", "checks", failed ? "One test failed" : "Native checks passed")
checks["checks"] = failed ? "failed" : "passed"; checks["gate"] = ".amadan/ci.d"; checks["exit_code"] = failed ? 1 : 0
+ if hosted { checks["gate"] = "hosted CI"; checks["hosted"] = ["failed": ["format", "check shard 5 of 23"]] }
var review = step("review", "review", "Approved", "The badge now resets when the person signs out. The account lifetime guard also prevents late updates from restoring the old count.")
review["verdict"] = "approve"; review["review_label"] = "approved"
let earlierReview = review
diff --git a/native/apple/Tests/EquipoKitTests/HostedSectionTests.swift b/native/apple/Tests/EquipoKitTests/HostedSectionTests.swift
new file mode 100644
index 00000000..a7736984
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/HostedSectionTests.swift
@@ -0,0 +1,58 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@Suite struct HostedSectionTests {
+ @Test func hostedNamesDecodeAndOlderStepsStillDecode() throws {
+ let task: ThinTask = try Fixture.decode("thin/task")
+ let old = try #require(task.steps?.first)
+ #expect(old.hosted == nil)
+ let raw = try JSONSerialization.jsonObject(with: Fixture.data("thin/task")) as! [String: Any]
+ var body = (raw["steps"] as! [[String: Any]])[0]
+ body["hosted"] = ["failed": ["check shard 5 of 23", "format"]]
+ let step = try EquipoJSON.decoder.decode(ThinStep.self, from: JSONSerialization.data(withJSONObject: body))
+ #expect(step.hosted?.failed == ["check shard 5 of 23", "format"])
+ }
+ @Test func hostedHeaderIsSummaryAndEveryFailedJobIsMarked() throws {
+ var step = try #require(try TaskDetailTests.task().steps?.first)
+ step.gate = "hosted CI"; step.checks = "failed"; step.exitCode = 1
+ step.hosted = .init(failed: ["format", "check shard 5 of 23"])
+ let tail = "Hosted CI on oficina/equipo at abc123: failed.\nFailed: format; check shard 5 of 23\n\n=== format\nformat failed\n=== check shard 5 of 23\n=== not-a-job\ncheck failed\n"
+ let log = StepLog(stepId: step.id, attempt: 1, tail: tail)
+ let sections = CheckSection.split(log, step: step)
+ #expect(sections.map(\.name) == ["", "format", "check shard 5 of 23"])
+ #expect(sections.first?.isSummary == true)
+ #expect(sections.first?.failed == false)
+ #expect(sections.filter(\.failed).map(\.name) == ["format", "check shard 5 of 23"])
+ #expect(sections.last?.text.contains("=== not-a-job") == true)
+ #expect(restored(sections) == tail)
+ step.hosted = nil
+ #expect(CheckSection.split(log, step: step) == sections)
+ step.hosted = .init(failed: [])
+ #expect(CheckSection.split(log, step: step).count == 1)
+ }
+ @Test func localMarkersAreConservativeAndSpoofsNeverHideOutput() throws {
+ var step = try #require(try TaskDetailTests.task().steps?.first)
+ step.gate = ".amadan/ci.d"; step.checks = "failed"; step.exitCode = 1
+ let tail = "before any marker\n=== 10-format\n=== prose from a tool\n=== RUN TestThing\n=== ../secret\n=== 20-check\nspoofed section still visible\n"
+ let log = StepLog(stepId: step.id, attempt: 1, tail: tail)
+ let sections = CheckSection.split(log, step: step)
+ #expect(sections.map(\.name) == ["20-check", "", "10-format"])
+ #expect(restored(sections) == tail)
+ #expect(sections.first?.text.contains("spoofed section still visible") == true)
+ }
+ @Test func missingHostedHeaderAndTruncatedLogsRemainVisible() throws {
+ var step = try #require(try TaskDetailTests.task().steps?.first)
+ step.gate = "hosted CI"; step.checks = "failed"
+ let log = StepLog(stepId: step.id, attempt: 1, tail: (0..<300).map { "line \($0)" }.joined(separator: "\n") + "\n=== format\nfailure")
+ #expect(restored(CheckSection.split(log, step: step)) == log.boundedTail)
+ step.hosted = .init(failed: ["format"])
+ let split = CheckSection.split(log, step: step)
+ #expect(split.count == 2)
+ #expect(split.first?.isSummary == false)
+ #expect(restored(split) == log.boundedTail)
+ }
+ private func restored(_ sections: [CheckSection]) -> String {
+ sections.sorted { $0.id < $1.id }.map(\.text).joined(separator: "\n")
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/TaskCandidateTests.swift b/native/apple/Tests/EquipoKitTests/TaskCandidateTests.swift
new file mode 100644
index 00000000..8a7eb0c6
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/TaskCandidateTests.swift
@@ -0,0 +1,56 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@Suite struct TaskCandidateTests {
+ @Test func fixRoundDoesNotReuseOlderCandidateEvidence() throws {
+ var task = try TaskDetailTests.task(); task.candidateSha = "B"
+ var review = task.steps![0]; review.id = "review-A"; review.specialist = "review"
+ review.candidateSha = "A"; review.state = "done"; review.summary = "Changes requested on A"
+ var checks = review; checks.id = "checks-B"; checks.specialist = "checks"
+ checks.candidateSha = "B"; checks.state = "running"; checks.summary = ""
+ task.steps = [review, checks]
+ #expect(TaskPage.latestReview(task) == nil)
+ #expect(TaskPage.latestChecks(task)?.id == "checks-B")
+ #expect(TaskPage.checksLogStep(task) == nil)
+ var first = review; first.id = "first-B"; first.candidateSha = "B"
+ var last = first; last.id = "last-B"; last.summary = "Latest B review"
+ var stale = review; stale.id = "late-A"
+ task.steps = [review, first, last, stale]
+ #expect(TaskPage.latestReview(task)?.id == "last-B")
+ first.specialist = "checks"; last.specialist = "checks"; stale.specialist = "checks"
+ task.steps = [first, last, stale]
+ #expect(TaskPage.latestChecks(task)?.id == "last-B")
+ #expect(TaskPage.checksLogStep(task)?.id == "last-B")
+ task.candidateSha = "C"
+ #expect(TaskPage.latestReview(task) == nil)
+ #expect(TaskPage.latestChecks(task) == nil)
+ task.candidateSha = ""; task.steps = [first]
+ task.steps![0].candidateSha = ""
+ #expect(TaskPage.latestChecks(task) == nil)
+ task.steps![0].specialist = "review"
+ #expect(TaskPage.latestReview(task) == nil)
+ }
+
+ @Test func factsDoNotBorrowAnOlderCandidatesGate() throws {
+ var task = try TaskDetailTests.task(); task.candidateSha = "B"; task.checks = "failed"
+ var old = task.steps![0]; old.specialist = "checks"; old.candidateSha = "A"
+ old.state = "done"; old.gate = "old-gate"; old.exitCode = 9
+ task.steps = [old]
+ let fact = try #require(TaskReport(task, needsYou: false).facts.first { $0.label == EquipoStrings.text("fact.checks") })
+ #expect(fact.detail == nil)
+ }
+
+ @Test func runningAndQueuedChecksNeverReadEmptyLogs() throws {
+ var task = try TaskDetailTests.task(); task.candidateSha = "B"
+ var checks = task.steps![0]; checks.specialist = "checks"; checks.candidateSha = "B"
+ for state in ["running", "queued"] {
+ checks.state = state; task.steps = [checks]
+ #expect(TaskPage.checksLogStep(task) == nil)
+ }
+ checks.state = "done"; task.steps = [checks]
+ #expect(TaskPage.checksLogStep(task)?.id == checks.id)
+ checks.state = "failed"; task.steps = [checks]
+ #expect(TaskPage.checksLogStep(task)?.id == checks.id)
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/TaskDecisionTests.swift b/native/apple/Tests/EquipoKitTests/TaskDecisionTests.swift
index 6e087992..5a803776 100644
--- a/native/apple/Tests/EquipoKitTests/TaskDecisionTests.swift
+++ b/native/apple/Tests/EquipoKitTests/TaskDecisionTests.swift
@@ -59,3 +59,23 @@ extension TaskDecisionTests {
#expect(TaskDecision(task: task, cards: [wrong], mine: true, owner: true).choices.isEmpty)
}
}
+
+extension TaskDecisionTests {
+ @Test func newerQuestionsAndUnknownCardsCannotReplaceTheDecision() throws {
+ let task = try TaskDetailTests.task()
+ let merge = try Self.card(task)
+ var question = try Self.card(task, kind: "question"); question.id = "new-question"; question.createdAt = merge.createdAt.addingTimeInterval(1)
+ var unknown = question; unknown.id = "new-unknown"; unknown.kind = "future"; unknown.createdAt = question.createdAt.addingTimeInterval(1)
+ #expect(TaskDecision(task: task, cards: [merge, question, unknown], mine: true, owner: true).card?.id == merge.id)
+ #expect(TaskDecision(task: task, cards: [question, unknown], mine: true, owner: true).card == nil)
+ }
+ @Test func unknownOptionsHideOnlyThemselves() throws {
+ let task = try TaskDetailTests.task()
+ for (kind, known) in [("merge", ["merge", "wait"]), ("direction", ["build", "again", "drop"]), ("held", ["run_now", "wait"])] {
+ let card = try Self.card(task, kind: kind, options: [known[0], "future_option"] + known.dropFirst())
+ let d = TaskDecision(task: task, cards: [card], mine: true, owner: true)
+ #expect(d.choices.map(\.value) == known)
+ #expect(!d.canAnswer("future_option", note: ""))
+ }
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift b/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift
index 8bcd64d6..81dbf366 100644
--- a/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift
+++ b/native/apple/Tests/EquipoKitTests/TaskDetailModelTests.swift
@@ -10,24 +10,99 @@ import Testing
session.apply(try Fixture.decode("thin/snapshot"))
return TaskDetailModel(session: session, taskID: "tkqsrho7oq3n")
}
- @Test func taskActionsRefreshTheFullTaskAndRejectOtherCreators() async throws {
+ @Test func mergeUndoAndCancelRequireAConfirmedModelIntent() async throws {
+ for action in [TaskAction.merge, .undoMerge, .cancel] {
+ let server = TaskDetailServer(), model = try Self.model(server)
+ await model.load(); model.loaded?.mergeOffered = true
+ model.loaded?.undoOffered = true
+ model.loaded?.merged = ThinMerged(sha: "hub-sha", withoutChecks: true, at: Date())
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ var receipt = try TaskDecisionTests.card(try #require(model.task), kind: "merge_receipt", options: ["undo"])
+ receipt.revision = 72; snapshot.cards = [receipt]; model.session.apply(snapshot)
+ await model.perform(action)
+ #expect(await server.writes == 0)
+ #expect(model.confirmation?.action == action)
+ await model.confirm()
+ #expect(await server.writes == 1)
+ #expect(model.confirmation == nil)
+ if action == .undoMerge {
+ let request = try #require(await server.requests.last { $0.path.hasSuffix("/undo-merge") })
+ let body = try JSONSerialization.jsonObject(with: try #require(request.body)) as! [String: Int]
+ #expect(body["revision"] == 72)
+ }
+ await model.confirm(); #expect(await server.writes == 1)
+ }
+ }
+ @Test func busyPerformRejectsAnImmediateSecondIntent() async throws {
+ let server = TaskDetailServer(), model = try Self.model(server)
+ await model.load(); model.busy = true
+ await model.perform(.urgent)
+ #expect(await server.writes == 0)
+ #expect(model.busy)
+ }
+ @Test func modelSendsCurrentRevisionAndPreservesUrgentDeadline() async throws {
let server = TaskDetailServer(), model = try Self.model(server)
await model.load()
+ await model.perform(.explore)
+ let kind = try #require(await server.requests.last { $0.path.hasSuffix("/kind") })
+ let kindBody = try JSONSerialization.jsonObject(with: try #require(kind.body)) as! NSDictionary
+ #expect(kindBody == ["kind": "explore", "revision": 9] as NSDictionary)
+ let deadline = Date(timeIntervalSince1970: 1_800_000_000)
+ model.loaded?.priority = ThinPriority(priority: "normal", by: deadline)
+ await model.perform(.urgent)
+ let urgent = try #require(await server.requests.last { $0.path.hasSuffix("/priority") })
+ let urgentBody = try JSONSerialization.jsonObject(with: try #require(urgent.body)) as! NSDictionary
+ #expect(urgentBody == ["priority": "urgent", "revision": 9, "by": "2027-01-15T08:00:00Z"] as NSDictionary)
+ }
+
+ @Test func directionNoteClearsAfterSuccessAndNeverGoesWithMerge() async throws {
+ let server = TaskDetailServer(), model = try Self.model(server)
+ await model.load()
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ let direction = try TaskDecisionTests.card(try #require(model.task), kind: "direction", options: ["build", "again", "drop"])
+ snapshot.cards = [direction]; model.session.apply(snapshot)
+ await server.answerSuccessfully(direction)
+ model.directionNote = "Use the smaller control"
+ await model.answer(direction, choice: "again", note: model.directionNote)
+ #expect(model.failure == nil)
+ #expect(model.directionNote.isEmpty)
+ let sent = try #require(await server.requests.last { $0.path.contains("/answer") })
+ let body = try JSONSerialization.jsonObject(with: try #require(sent.body)) as! [String: Any]
+ #expect(body["note"] as? String == "Use the smaller control")
+ let merge = try TaskDecisionTests.card(try #require(model.task))
+ snapshot.cards = [merge]; model.session.apply(snapshot)
+ await model.answer(merge, choice: "wait", note: "A stale direction note")
+ let next = try #require(await server.requests.last { $0.path.contains("/answer") })
+ let nextBody = try JSONSerialization.jsonObject(with: try #require(next.body)) as! [String: Any]
+ #expect(nextBody["note"] == nil)
+ }
+ @Test func cancelIsLastAndHiddenWhileMerging() async throws {
+ let model = try Self.model(TaskDetailServer()); await model.load()
+ #expect(model.menuActions.last == .cancel)
+ model.loaded?.stage = "merging"
+ #expect(!model.menuActions.contains(.cancel))
await model.perform(.cancel)
+ #expect(model.confirmation == nil)
+ }
+
+ @Test func taskActionsRefreshTheFullTaskAndRejectOtherCreators() async throws {
+ let server = TaskDetailServer(), model = try Self.model(server)
+ await model.load()
+ await model.perform(.cancel); await model.confirm()
#expect(await server.writes == 1)
#expect(await server.reads >= 2)
var snapshot: Snapshot = try Fixture.decode("thin/snapshot"); snapshot.me.address = "another@example.com"
model.session.apply(snapshot)
- await model.perform(.cancel)
+ await model.perform(.cancel); await model.confirm()
#expect(await server.writes == 1)
}
@Test func doubleTapCannotSendTwice() async throws {
let server = TaskDetailServer(), model = try Self.model(server)
await model.load(); await server.configure(held: true)
- let first = Task { await model.perform(.cancel) }
+ let first = Task { await model.perform(.urgent) }
for _ in 0..<100 { if await server.writes > 0 { break }; try await Task.sleep(for: .milliseconds(10)) }
#expect(model.busy)
- let second = Task { await model.perform(.cancel) }
+ let second = Task { await model.perform(.urgent) }
try await Task.sleep(for: .milliseconds(20))
#expect(await server.writes == 1)
await server.finish(); await first.value; await second.value
@@ -36,7 +111,7 @@ import Testing
@Test func conflictsRemainVisibleAndRefetchTheTaskRevision() async throws {
let server = TaskDetailServer(), model = try Self.model(server)
await model.load(); await server.configure(conflict: true)
- await model.perform(.cancel)
+ await model.perform(.cancel); await model.confirm()
#expect(model.failure == EquipoStrings.text("api.revision_conflict"))
#expect(model.loaded?.revision == 10)
#expect(!model.busy)
@@ -44,10 +119,22 @@ import Testing
@Test func confirmationCannotApplyAfterTheViewedTaskChanges() async throws {
let server = TaskDetailServer(), model = try Self.model(server)
await model.load()
- await model.perform(.cancel, seenRevision: 8)
+ await model.perform(.cancel, seenRevision: 8); await model.confirm()
+ #expect(await server.writes == 0)
+ #expect(model.failure == EquipoStrings.text("card.changed"))
+ }
+ @Test func mergeCardConfirmationBindsTheTaskRevisionToo() async throws {
+ let server = TaskDetailServer(), model = try Self.model(server); await model.load()
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ let card = try TaskDecisionTests.card(try #require(model.task)); snapshot.cards = [card]
+ model.session.apply(snapshot)
+ await model.answer(card, choice: "merge", note: "")
+ model.loaded?.revision += 1
+ await model.confirm()
#expect(await server.writes == 0)
#expect(model.failure == EquipoStrings.text("card.changed"))
}
+
@Test func cardAnswerBindsTheCurrentCardRevisionAndOptions() async throws {
let server = TaskDetailServer(), model = try Self.model(server)
await model.load()
@@ -69,6 +156,8 @@ import Testing
#expect(await server.writes == 0)
#expect(model.failure == EquipoStrings.text("card.changed"))
await model.answer(card, choice: "merge", note: "")
+ #expect(await server.writes == 0)
+ await model.confirm()
#expect(await server.writes == 1)
// This server returns malformed JSON: it must never look successful.
#expect(model.failure == EquipoStrings.text("card.failed"))
@@ -115,7 +204,7 @@ import Testing
var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
var receipt = try TaskDecisionTests.card(try #require(model.task), kind: "merge_receipt", options: ["undo"])
receipt.revision = 72; snapshot.cards = [receipt]; model.session.apply(snapshot)
- await model.perform(.undoMerge, receiptRevision: 71)
+ await model.perform(.undoMerge, receiptRevision: 71); await model.confirm()
#expect(await server.writes == 0)
#expect(model.failure == EquipoStrings.text("card.changed"))
}
@@ -150,9 +239,12 @@ import Testing
private actor TaskDetailServer: EquipoTransport {
nonisolated let origin = URL(string: "https://task-detail.invalid")!
+ var requests: [APIRequest] = []
var projectReads = 0
var writes = 0
var reads = 0
+ var answeredCard: ThinCard?
+ func answerSuccessfully(_ card: ThinCard) { answeredCard = card }
var held = false
var conflict = false
var revision = 9
@@ -160,6 +252,7 @@ private actor TaskDetailServer: EquipoTransport {
func configure(held: Bool = false, conflict: Bool = false) { self.held = held; self.conflict = conflict }
func finish() { held = false; for c in pending { c.resume() }; pending = [] }
func send(_ request: APIRequest) async throws -> APIResponse {
+ requests.append(request)
if request.method == "GET", request.path == "/tasks/tkqsrho7oq3n" {
reads += 1
var json = try JSONSerialization.jsonObject(with: Fixture.data("thin/task")) as! [String: Any]
@@ -180,6 +273,11 @@ private actor TaskDetailServer: EquipoTransport {
revision = 10
return APIResponse(status: 409, data: Data(#"{"code":"revision_conflict","copy_key":"api.revision_conflict","request_id":"fixture"}"#.utf8))
}
+ if request.path.contains("/answer"), var card = answeredCard {
+ card.state = "answered"
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ return APIResponse(status: 200, data: try encoder.encode(Answered(card: card)))
+ }
return APIResponse(status: 202, data: Data("{}".utf8))
}
func lines(_ request: APIRequest) async throws -> AsyncThrowingStream<String, Error> { AsyncThrowingStream { $0.finish() } }
diff --git a/native/apple/Tests/EquipoKitTests/TaskDetailTests.swift b/native/apple/Tests/EquipoKitTests/TaskDetailTests.swift
index e19f1da7..5a8f1503 100644
--- a/native/apple/Tests/EquipoKitTests/TaskDetailTests.swift
+++ b/native/apple/Tests/EquipoKitTests/TaskDetailTests.swift
@@ -127,7 +127,7 @@ extension TaskDetailTests {
var opened: [URL] = []
SettingsNavigation.open(origin: origin, path: "/tasks/tk_fixture-2/move") { opened.append($0) }
#expect(opened.map(\.absoluteString) == ["https://team.example:8443/tasks/tk_fixture-2/move"])
- for path in ["/evil", "https://evil.example/tasks/tk/move", "//evil.example", "/tasks/../move", "/tasks/tk%2Fother/move", "/tasks/tk/move?next=https://evil.example", "/tasks/tk/preview", "/tasks/tk/move\n"] {
+ for path in ["/evil", "https://evil.example/tasks/tk/move", "//evil.example", "/tasks/../move", "/tasks/tk%2Fother/move", "/tasks/tk/move?next=https://evil.example", "/tasks/tk/preview/extra", "/tasks/tk/move\n"] {
SettingsNavigation.open(origin: origin, path: path) { opened.append($0) }
}
#expect(opened.count == 1)
@@ -166,7 +166,7 @@ extension TaskDetailTests {
extension TaskDetailTests {
@Test func latestReviewWinsAcrossRoundsAndTrailingSteps() throws {
var task = try Self.task()
- var old = task.steps![0]; old.id = "old-review"; old.specialist = "review"
+ var old = task.steps![0]; old.candidateSha = task.candidateSha; old.id = "old-review"; old.specialist = "review"
old.headline = "Approved"; old.summary = "Earlier round approved."
var latest = old; latest.id = "latest-review"
latest.headline = "Changes requested"; latest.summary = "The latest round still needs a fix."
diff --git a/native/apple/Tests/EquipoKitTests/TaskWebNavigationTests.swift b/native/apple/Tests/EquipoKitTests/TaskWebNavigationTests.swift
new file mode 100644
index 00000000..86ef1295
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/TaskWebNavigationTests.swift
@@ -0,0 +1,32 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@Suite struct TaskWebNavigationTests {
+ @Test func taskPagesUseTheOriginAndFixedPathsOnly() {
+ let origin = URL(string: "https://team.example:8443/old?token=secret#fragment")!
+ for path in ["/tasks/task_1", "/tasks/task_1/preview", "/tasks/task_1/move"] {
+ var opened: URL?
+ SettingsNavigation.open(origin: origin, path: path) { opened = $0 }
+ #expect(opened?.absoluteString == "https://team.example:8443" + path)
+ }
+ for path in ["/evil", "/tasks/t/evil", "/tasks/../evil", "/tasks/t?redirect=evil", "https://evil.example/tasks/t", "/tasks/t/preview/extra", "/tasks/a%2fb"] {
+ var opened = false
+ SettingsNavigation.open(origin: origin, path: path) { _ in opened = true }
+ #expect(!opened)
+ }
+ }
+ @Test func changesOnlyOpenOnTheSessionOriginOrKnownForge() {
+ let origin = URL(string: "https://team.example:8443")!
+ for address in ["https://team.example:8443/change/1", "https://amadan.net/team/repo/commit/abc"] {
+ var opened: URL?
+ SettingsNavigation.openChanges(origin: origin, url: URL(string: address)!) { opened = $0 }
+ #expect(opened?.absoluteString == address)
+ }
+ for address in ["https://evil.example/change", "https://amadan.net.evil.example/change", "https://evil.amadan.net/change", "https://amadan.net:444/change", "https://user:password@amadan.net/change", "http://amadan.net/change", "javascript:alert(1)", "https://team.example/change", "https://github.com/team/repo"] {
+ var opened = false
+ SettingsNavigation.openChanges(origin: origin, url: URL(string: address)!) { _ in opened = true }
+ #expect(!opened)
+ }
+ }
+}
diff --git a/native/ios/UITests/TaskViewUITests.swift b/native/ios/UITests/TaskViewUITests.swift
index f2b89c5d..84b221f8 100644
--- a/native/ios/UITests/TaskViewUITests.swift
+++ b/native/ios/UITests/TaskViewUITests.swift
@@ -23,6 +23,26 @@ final class TaskViewUITests: XCTestCase {
XCTAssertFalse(app.staticTexts["Approved"].exists)
capture("iphone-checks")
}
+ @MainActor func testHostedFailedSections() {
+ let app = launch("hosted")
+ XCTAssertTrue(app.segmentedControls.buttons["Checks"].waitForExistence(timeout: 15))
+ app.segmentedControls.buttons["Checks"].tap()
+ XCTAssertTrue(app.staticTexts["check shard 5 of 23"].waitForExistence(timeout: 10))
+ XCTAssertTrue(app.staticTexts["format"].exists)
+ let visibleLogs = app.textViews.allElementsBoundByIndex.compactMap { $0.value as? String }.joined(separator: "\n")
+ XCTAssertTrue(visibleLogs.contains("The changed Swift file needs formatting."))
+ XCTAssertTrue(visibleLogs.contains("Test needsBadgeClearsAfterSignOut failed"))
+ capture("iphone-checks-hosted")
+ }
+ @MainActor func testCancelConfirmation() {
+ let app = launch("overview")
+ XCTAssertTrue(app.buttons["task-more"].waitForExistence(timeout: 15))
+ app.buttons["task-more"].tap()
+ app.buttons["Cancel this task"].tap()
+ XCTAssertTrue(app.staticTexts["Cancel this task?"].waitForExistence(timeout: 5))
+ XCTAssertTrue(app.buttons["task-confirm"].exists)
+ capture("iphone-cancel-confirmation")
+ }
@MainActor func testLargeTextTabs() {
let app = launch("overview", large: true)
XCTAssertTrue(app.buttons["task-more"].waitForExistence(timeout: 15))
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py
index 22b4d302..dc2cf93c 100755
--- a/native/scripts/check-parity.py
+++ b/native/scripts/check-parity.py
@@ -22,7 +22,7 @@ for key in sorted(set(re.findall(r'"(work\.reason\.[^"]+)":', copy))):
if key not in strings:
problems.append(f'{key}: native must carry every reviewed stop reason')
for key, text in sorted(strings.items()):
- if not key.startswith(('work.', 'placement.', 'chat.card.', 'chat.paste.', 'chat.attach.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')):
+ if not key.startswith(('runner.verdict.skipped', 'work.', 'placement.', 'chat.card.', 'chat.paste.', 'chat.attach.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')):
continue
found = re.findall(r'"' + re.escape(key) + r'":\s*"((?:[^"\\]|\\.)*)"', copy)
if len(found) != 1:
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index 2021dbc5..f68353fa 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -121,6 +121,8 @@
"native.attach.paste": "Paste",
"native.attach.photos": "Photos",
"native.step.log_tail": "Last lines of the log",
+ "native.task.cancel_confirm": "Cancel this task?",
+ "native.task.cancel_detail": "Equipo will stop this task. You cannot resume it, and nothing will be merged.",
"native.task.changes": "Changed files",
"native.task.overview": "Overview",
"native.task.undo_confirm": "Undo this merge?",
@@ -244,6 +246,7 @@
"roster.setting_aside": "Setting aside…",
"roster.stopping": "Stopping…",
"roster.undo": "Undo",
+ "runner.verdict.skipped": "Not run",
"settings.not_paired": "Pair this Mac with a team to see its settings.",
"specialist.checks": "Checks",
"specialist.coordinator": "Coordinator",