oficina / equipo Public

Add inline Needs you actions and Today decisions

Paul Campbell pushed by claude agent, operated by paul@keymail.dev dd5f67df31d7147c45f69404fe6f2265fa382599 parent 3a2fc7a
23 files changed, +690 −52
  • docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md +140 −2
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +22 −0
  • native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift +35 −0
  • native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift +41 −0
  • native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift +11 −0
  • native/apple/Sources/EquipoKit/Presentation/Pause.swift +4 −0
  • native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift +1 −0
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +22 −0
  • native/apple/Sources/EquipoKit/UI/LiveCards.swift +10 −0
  • native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift +5 −2
  • native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift +9 −8
  • native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift +54 −0
  • native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift +2 −25
  • native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift +4 −2
  • native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift +39 −9
  • native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift +37 −0
  • native/apple/Sources/EquipoMac/MacNeedsFixture.swift +8 −2
  • native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift +84 −0
  • native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift +111 −0
  • native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift +12 −1
  • native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift +11 −0
  • native/ios/UITests/NeedsYouUITests.swift +25 −0
  • native/scripts/strings.json +3 −1

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__needs-you: 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.4s
ci-box: claude: fetched and verified in 1.4s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
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.2s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.4s
ci-box: clone deepened in 3.7s
ci-box: file times set from content: 3066 files, 197 directories
ci-box: ready in 17.1s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.146s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  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.598s 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.49s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.49s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 78.83, cpu waiting 43.93%, memory waiting 0.00%, io waiting 0.42%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m18.619s 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.952s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.95s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 78.83, cpu waiting 43.93%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m17.647s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.617s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.65s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.35s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.61s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 77.95, cpu waiting 43.96%, memory waiting 0.00%, io waiting 0.43%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless

receipt: test step 1m15.564s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m13.724s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.73s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.34s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.04s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.62s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 77.95, cpu waiting 43.55%, memory waiting 0.00%, io waiting 0.45%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 1m35.253s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m33.366s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.31s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.29s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.02s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.66s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 76.24, cpu waiting 43.79%, memory waiting 0.00%, io waiting 0.32%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 2m45.962s 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 2m43.764s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m38.38s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.41s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.68s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.6s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.31s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 28.97, cpu waiting 14.69%, memory waiting 0.00%, io waiting 0.09%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 2m10.526s 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 2m8.857s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.3s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.95s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.56s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 48.60, cpu waiting 25.83%, memory waiting 0.00%, io waiting 0.17%
--- 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 TestContractAutoMerge
=== RUN   TestContractAutoMerge
    merge_contract_test.go:82: api/task-merged.json: $.done_at: unexpected
        {"id":"tkwdyvoxpgab","revision":12,"project_id":"p_slvf2ftlxklfavq3jvidyjw2a6","project":"Sample","repo":"amadan.net/oficina/sample","title":"Fix the README typo","brief":"The README says teh.\n\nFix it.","stage":"done","branch":"equipo/tkwdyvoxpgab-fix-the-readme-typo","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tkwdyvoxpgab-fix-the-readme-typo","creator":"owner@example.com","turn_id":"t_jw2pmvckldzjen3ga4k43f42mo","findings":[],"steps":[{"id":"s_eclluddknpbxbro3ipbn3lndct","revision":3,"task_id":"tkwdyvoxpgab","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:22:37.85163813Z","finished_at":"2026-11-26T04:22:37.860527425Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RX5GOXUM4LDSNXBTUMRBA7FGMX","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_7njl3fvsxgb33vvla4rmwlkc4v","revision":2,"task_id":"tkwdyvoxpgab","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:22:37.879619958Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RX5GOXUM4LDSNXBTUMRBA7FGMX","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_ntp7atic4bckudvoamguqqqybg","revision":2,"task_id":"tkwdyvoxpgab","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"Read the change.","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:22:37.900085916Z","round":0,"family":"claude","account":"claude-b","verdict":"approve","review_label":"same_family","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"RX5GOXUM4LDSNXBTUMRBA7FGMX","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_un62cpkdtbkgoidoq3r4ndifke","revision":3,"task_id":"tkwdyvoxpgab","index":4,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:22:37.924349052Z","finished_at":"2026-11-26T04:22:37.942965249Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"switched":null,"activity":[],"runner_id":"RX5GOXUM4LDSNXBTUMRBA7FGMX","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""}],"thread":[],"created_at":"2026-11-26T04:22:37.831610682Z","updated_at":"2026-11-26T04:22:37.944769904Z","done_at":"2026-11-26T04:22:37.944731378Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"","fix_rounds":0,"branch_head":"","questions":[],"merged":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"at":"2026-11-26T04:22:37.942970843Z"},"reports":0,"ask_open":true,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"policy","reasons":[{"name":"approved_exact_sha","ok":true},{"name":"first_ready_checked","ok":true},{"name":"checked_in_sandbox","ok":true},{"name":"trusted_base_checks","ok":true},{"name":"runner_protocol","ok":true},{"name":"facts_present","ok":true},{"name":"gate_files_unchanged","ok":true},{"name":"review_diff_complete","ok":true},{"name":"not_sensitive","ok":true},{"name":"policy_allows","ok":true,"value":"rules"},{"name":"no_hold","ok":true}],"at":"2026-11-26T04:22:37.908453672Z"},"creator_name":"Owner","source_message_id":"m_krd7eaprr4bvogaqhnwtaf5ojr","source_at":"2026-11-26T04:22:37.819772733Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":[],"engineering_runner":"RX5GOXUM4LDSNXBTUMRBA7FGMX"}
--- FAIL: TestContractAutoMerge (0.29s)

--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractPublishSite
=== RUN   TestContractPublishSite
    publish_contract_test.go:217: api/task-published.json: $.done_at: unexpected
        {"id":"tk7lo66krk7o","revision":18,"project_id":"p_55mv23y56oedyfqlhjtbhogz5w","project":"Sample","repo":"amadan.net/oficina/sample","title":"Quick website","brief":"The README says teh.\n\nFix it.","stage":"done","branch":"equipo/tk7lo66krk7o-quick-website","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk7lo66krk7o-quick-website","creator":"owner@example.com","turn_id":"t_mgb7pxnrtmehv6gkoerxrhowpi","findings":[],"steps":[{"id":"s_4hswifs2b3ev45ivoij7jyrwfs","revision":3,"task_id":"tk7lo66krk7o","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:09.496164637Z","finished_at":"2026-11-26T04:23:09.504143566Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_vkg4ggixoirsw5yxu5hds7urcm","revision":2,"task_id":"tk7lo66krk7o","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:23:09.520730923Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"none","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_uk3fbqccjqowlgea4pyd3bf7an","revision":2,"task_id":"tk7lo66krk7o","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"Read it.","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:23:09.542285489Z","round":0,"family":"codex","account":"codex-a","verdict":"approve","review_label":"other_family","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_7fsta3b63wxzpqejrsjdanlpva","revision":3,"task_id":"tk7lo66krk7o","index":4,"specialist":"preview","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:09.578335794Z","finished_at":"2026-11-26T04:23:09.590112855Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","preview":{"phase":"done","app":"eq-tk7lo66krk7o","url":"https://eq-tk7lo66krk7o.docs-t1.example.ts.net/","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":12,"bytes":348160,"outcome":"deployed"}},{"id":"s_rbn6v334jp7e6imidaglrlfccm","revision":3,"task_id":"tk7lo66krk7o","index":5,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:09.659126909Z","finished_at":"2026-11-26T04:23:09.667702709Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"switched":null,"activity":[],"runner_id":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_yzaw4igacn65gsmau43qjp6k6j","revision":3,"task_id":"tk7lo66krk7o","index":6,"specialist":"publish","state":"done","reason":"","attempt":1,"base_sha":"","candidate_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:09.75946049Z","finished_at":"2026-11-26T04:23:09.806110522Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","publish":{"phase":"done","app":"site-sample-xiteas","url":"https://site-sample-xiteas.bds.oncarlos.com/","version":"s-eeeeeeeeeeee-x-1","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":2,"bytes":40,"outcome":"published"}}],"thread":[],"created_at":"2026-11-26T04:23:09.467534965Z","updated_at":"2026-11-26T04:23:09.80744408Z","done_at":"2026-11-26T04:23:09.671802064Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"none","checks_reason":"","verdict":"approve","review_label":"other_family","needs_you":"","fix_rounds":0,"branch_head":"","questions":[],"merged":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"at":"2026-11-26T04:23:09.66770961Z"},"reports":0,"ask_open":true,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"person:owner@example.com","reasons":[{"name":"approved_exact_sha","ok":true}],"at":"2026-11-26T04:23:09.636485683Z"},"creator_name":"Owner","source_message_id":"m_wzt7ylagu4p7lo3njouq2quvp6","source_at":"2026-11-26T04:23:09.449985872Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":[],"engineering_runner":"ZSA7LAY3MRRZKEP6GZXR7M4AUP","site":{"app":"site-sample-xiteas","sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","state":"published","url":"https://site-sample-xiteas.bds.oncarlos.com/","at":"2026-11-26T04:23:09.806110522Z"}}
--- FAIL: TestContractPublishSite (0.54s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 1m37.634s
FAIL	amadan.net/oficina/equipo/internal/thintest	97.908s


receipt: test step 1m39.934s 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 1m37.634s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.14s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.16s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.54s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.91s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
receipt: slow test 2.39s 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 '^TestContractAutoMerge$|^TestContractPublishSite$' -count=1 ./internal/thintest   (retry, once)
FAILED TWICE ./internal/thintest:TestContractAutoMerge thintest-contract
FAILED TWICE ./internal/thintest:TestContractPublishSite thintest-contract
=== RUN   TestContractAutoMerge
    merge_contract_test.go:82: api/task-merged.json: $.done_at: unexpected
        {"id":"tk422fyvm7s5","revision":12,"project_id":"p_eyquemltxqq3sbgwnh4ltcqyw7","project":"Sample","repo":"amadan.net/oficina/sample","title":"Fix the README typo","brief":"The README says teh.\n\nFix it.","stage":"done","branch":"equipo/tk422fyvm7s5-fix-the-readme-typo","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk422fyvm7s5-fix-the-readme-typo","creator":"owner@example.com","turn_id":"t_iojs4zmmhefg3t3hh4busubq7p","findings":[],"steps":[{"id":"s_i4l2u3xhr6hu7su3acaukjcoer","revision":3,"task_id":"tk422fyvm7s5","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:52.128089927Z","finished_at":"2026-11-26T04:23:52.133110012Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZXTOBM7YW7YJJHQRZABS2DMCGB","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_3shkzgkcbws6abe5d33ff5jflc","revision":2,"task_id":"tk422fyvm7s5","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:23:52.148147519Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"passed","gate":"make ci","exit_code":0,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZXTOBM7YW7YJJHQRZABS2DMCGB","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_cefmqbmxsb7iuf6uxvfdr366mf","revision":2,"task_id":"tk422fyvm7s5","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"Read the change.","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:23:52.163327427Z","round":0,"family":"claude","account":"claude-b","verdict":"approve","review_label":"same_family","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"ZXTOBM7YW7YJJHQRZABS2DMCGB","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_ldchgpx5bmpu44cwsykwjgtwzu","revision":3,"task_id":"tk422fyvm7s5","index":4,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:52.182527492Z","finished_at":"2026-11-26T04:23:52.197855824Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"switched":null,"activity":[],"runner_id":"ZXTOBM7YW7YJJHQRZABS2DMCGB","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""}],"thread":[],"created_at":"2026-11-26T04:23:52.108315382Z","updated_at":"2026-11-26T04:23:52.199574384Z","done_at":"2026-11-26T04:23:52.199530993Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"passed","checks_reason":"","verdict":"approve","review_label":"same_family","needs_you":"","fix_rounds":0,"branch_head":"","questions":[],"merged":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":false,"at":"2026-11-26T04:23:52.197861752Z"},"reports":0,"ask_open":true,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"policy","reasons":[{"name":"approved_exact_sha","ok":true},{"name":"first_ready_checked","ok":true},{"name":"checked_in_sandbox","ok":true},{"name":"trusted_base_checks","ok":true},{"name":"runner_protocol","ok":true},{"name":"facts_present","ok":true},{"name":"gate_files_unchanged","ok":true},{"name":"review_diff_complete","ok":true},{"name":"not_sensitive","ok":true},{"name":"policy_allows","ok":true,"value":"rules"},{"name":"no_hold","ok":true}],"at":"2026-11-26T04:23:52.169988565Z"},"creator_name":"Owner","source_message_id":"m_lx3s4r5lf73jdbyoofw2jlw5qa","source_at":"2026-11-26T04:23:52.097353724Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":[],"engineering_runner":"ZXTOBM7YW7YJJHQRZABS2DMCGB"}
--- FAIL: TestContractAutoMerge (1.36s)
=== RUN   TestContractPublishSite
    publish_contract_test.go:217: api/task-published.json: $.done_at: unexpected
        {"id":"tklgrcqyx6tw","revision":18,"project_id":"p_wjrcn3mxvrsqlv6paimcirewsm","project":"Sample","repo":"amadan.net/oficina/sample","title":"Quick website","brief":"The README says teh.\n\nFix it.","stage":"done","branch":"equipo/tklgrcqyx6tw-quick-website","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tklgrcqyx6tw-quick-website","creator":"owner@example.com","turn_id":"t_7fuhoi2vr6il63jxepjxqoyzqn","findings":[],"steps":[{"id":"s_byur7es5yw7tkhhquk6cojn2uz","revision":3,"task_id":"tklgrcqyx6tw","index":1,"specialist":"engineering","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:52.390134195Z","finished_at":"2026-11-26T04:23:52.396161775Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_3um76zq2h4ca5wrdjjvcyq36ro","revision":2,"task_id":"tklgrcqyx6tw","index":2,"specialist":"checks","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:23:52.411141089Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"none","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_rpteit6hnir5tjisrgcssujnky","revision":2,"task_id":"tklgrcqyx6tw","index":3,"specialist":"review","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"Read it.","headline":"","log_tail":"","started_at":null,"finished_at":"2026-11-26T04:23:52.426599374Z","round":0,"family":"codex","account":"codex-a","verdict":"approve","review_label":"other_family","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_esyss6zy2m4gp7b6a3jvi2r2b2","revision":3,"task_id":"tklgrcqyx6tw","index":4,"specialist":"preview","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:52.451949666Z","finished_at":"2026-11-26T04:23:52.463227815Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","preview":{"phase":"done","app":"eq-tklgrcqyx6tw","url":"https://eq-tklgrcqyx6tw.docs-t1.example.ts.net/","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":12,"bytes":348160,"outcome":"deployed"}},{"id":"s_jjmtm4r5wih3vnnhaqtsikp3gy","revision":3,"task_id":"tklgrcqyx6tw","index":5,"specialist":"merge","state":"done","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:52.510871504Z","finished_at":"2026-11-26T04:23:52.517226274Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"switched":null,"activity":[],"runner_id":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":""},{"id":"s_5w56ydlmplawe2wna627l3blt2","revision":3,"task_id":"tklgrcqyx6tw","index":6,"specialist":"publish","state":"done","reason":"","attempt":1,"base_sha":"","candidate_sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","pushed":false,"terminated":true,"summary":"","headline":"","log_tail":"","started_at":"2026-11-26T04:23:52.597885142Z","finished_at":"2026-11-26T04:23:52.634382496Z","round":0,"family":"","account":"","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":false,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[],"runner_id":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","runner_label":"docs-t1","needs":[],"placement":"","publication":"","termination_kind":"","publish":{"phase":"done","app":"site-sample-ny234q","url":"https://site-sample-ny234q.bds.oncarlos.com/","version":"s-eeeeeeeeeeee-x-1","digest":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","files":2,"bytes":40,"outcome":"published"}}],"thread":[],"created_at":"2026-11-26T04:23:52.369777795Z","updated_at":"2026-11-26T04:23:52.636363107Z","done_at":"2026-11-26T04:23:52.521462714Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"none","checks_reason":"","verdict":"approve","review_label":"other_family","needs_you":"","fix_rounds":0,"branch_head":"","questions":[],"merged":{"sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","into":"main","strategy":"merge","without_checks":true,"at":"2026-11-26T04:23:52.517233067Z"},"reports":0,"ask_open":true,"merge_offered":false,"merge_decision":{"class":"act","decided_by":"person:owner@example.com","reasons":[{"name":"approved_exact_sha","ok":true}],"at":"2026-11-26T04:23:52.499087246Z"},"creator_name":"Owner","source_message_id":"m_53zrd37ozhg72x5jqbrbugkhk4","source_at":"2026-11-26T04:23:52.357550465Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":[],"engineering_runner":"KUDWTUHTVQ7HYYZ7DSGCLXVEOF","site":{"app":"site-sample-ny234q","sha":"eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","state":"published","url":"https://site-sample-ny234q.bds.oncarlos.com/","at":"2026-11-26T04:23:52.634382496Z"}}
--- FAIL: TestContractPublishSite (0.44s)
FAIL
rastrillo-budget/v1 ran 1.809s
FAIL	amadan.net/oficina/equipo/internal/thintest	1.980s
FAIL
machine: 32 CPUs, load 71.89, cpu waiting 40.01%, memory waiting 0.00%, io waiting 0.28%
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.887s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m53.696s 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.887s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.99s 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.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.93s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.28, cpu waiting 1.74%, 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.263s 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.107s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.08s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 54.63, cpu waiting 33.00%, memory waiting 0.00%, io waiting 0.67%
--- 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 1m3.368s 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 1m2.114s amadan.net/oficina/equipo/internal/runner
receipt: slow test 51.97s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 44.35s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.44s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 70.64, cpu waiting 41.54%, memory waiting 0.00%, io waiting 0.55%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 35.975s 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.043s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.74s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.38s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 35.18, cpu waiting 22.44%, memory waiting 0.00%, io waiting 0.85%
--- 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.8%, load 27.89
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.16s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.478s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.11s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.08s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.95s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.21s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.98s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
machine: 32 CPUs, load 71.89, cpu waiting 42.25%, memory waiting 0.00%, io waiting 0.30%
--- 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.8%, load 27.89
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.01s 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.232s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.22s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.18s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.18s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.1s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 20.08s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 67.50, cpu waiting 37.69%, memory waiting 0.00%, io waiting 0.26%
--- 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.8%, load 27.89
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.423s 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.031s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16.09s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.57s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.37s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 67.50, cpu waiting 37.69%, memory waiting 0.00%, io waiting 0.26%
--- 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.8%, load 27.89
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m9.099s 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.454s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.57s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.66s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.58s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.78s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
receipt: slow test 23.65s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettings
machine: 32 CPUs, load 71.89, cpu waiting 42.25%, memory waiting 0.00%, io waiting 0.30%
--- 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.8%, load 27.89
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.957s 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.916s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.71s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.56s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.58s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.27s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 78.93, cpu waiting 44.40%, memory waiting 0.00%, io waiting 0.38%
--- 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.8%, load 27.89
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/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/metered TestMeteredRaceAdmitsExactlyOne
=== RUN   TestMeteredRaceAdmitsExactlyOne
    meter_test.go:205: round 3: ran map[], held map[engineering:busy review:busy]
--- FAIL: TestMeteredRaceAdmitsExactlyOne (0.03s)

--- FAIL amadan.net/oficina/equipo/internal/runner/metered (package output)
FAIL
rastrillo-budget/v1 ran 1.697s
FAIL	amadan.net/oficina/equipo/internal/runner/metered	1.726s

--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:300 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.62s)

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

budget note: internal/equipo took 57.577s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 20.127s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 10.398s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m56.118s, 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 53.653s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 23.96s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 13.457s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m22.429s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 15.042s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m3.26s against a 60s target (the gate's other steps are not in this figure)
receipt: 34 packages ran, 30 cached, 17 without tests, 2 failed
receipt: slow package 1m56.118s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m22.429s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m12.025s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m0.932s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 57.577s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 52.73s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.48s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 44.98s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 44.9s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 44.75s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestMeteredRaceAdmitsExactlyOne$' -count=1 ./internal/runner/metered   (retry, once)
##############################################################################
FLAKE ./internal/runner/metered:TestMeteredRaceAdmitsExactlyOne rest dd5f67df31d7147c45f69404fe6f2265fa382599 0.03s 33.62
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest dd5f67df31d7147c45f69404fe6f2265fa382599 0.62s 33.62
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 33.62, cpu waiting 17.35%, memory waiting 0.00%, io waiting 0.11%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m23.434s 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 1m21.857s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.71s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.72s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.01s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.08s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.04s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 78.93, cpu waiting 44.40%, memory waiting 0.00%, io waiting 0.38%
--- 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.909s 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.366s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.87s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.47s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.14s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.14s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.12s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 76.24, cpu waiting 43.58%, memory waiting 0.00%, io waiting 0.33%
--- 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.498s 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.808s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.44s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.38s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.21s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.41s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.41s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 58.66, cpu waiting 33.15%, memory waiting 0.00%, io waiting 0.22%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m32.368s 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.831s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.65s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.77s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.44s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.5s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
machine: 32 CPUs, load 76.24, cpu waiting 43.58%, memory waiting 0.00%, io waiting 0.33%
--- 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.182s 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 627ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 630ms 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.445s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 11.799s 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.445s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.46s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 1.98s 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.593s 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 1.994s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

receipt: test step 3m38.758s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m37.106s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 22.82s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.42s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.06s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.68s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.99s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.57, cpu waiting 4.28%, 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   (54s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.58s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.14s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.48s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.49s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.48s
+ 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   (63s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 21.32s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.47s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.23s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 17.65s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.83s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
first attempt failed: TestRunnerCancelAndSupersede; output tail:
=== RUN   TestRunnerCancelAndSupersede
time=2026-11-26T04:22:13.333Z level=INFO msg=connecting host=127.0.0.1:37881 protocol=30
time=2026-11-26T04:22:13.334Z level=INFO msg=connected host=127.0.0.1:37881 took=658µs
time=2026-11-26T04:22:13.334Z level=INFO msg="hello sent" protocol=30
time=2026-11-26T04:22:13.335Z level=INFO msg=welcome protocol=1 role=primary generation=3
    contract_test.go:286: waiting for ack: failed to get reader: failed to read frame header: read tcp 127.0.0.1:37881->127.0.0.1:39440: read: connection reset by peer
--- FAIL: TestRunnerCancelAndSupersede (0.05s)
FAIL
rastrillo-budget/v1 ran 55ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.077s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' -count=1 ./internal/runner/thin   (retry, once)
##############################################################################
FLAKE ./internal/runner/thin:TestRunnerCancelAndSupersede quarantine dd5f67df31d7147c45f69404fe6f2265fa382599 0.05s 4.29
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
quarantine: 1 flaked (passed on the retry), 0 failed
quarantine flake: TestRunnerCancelAndSupersede
machine: 32 CPUs, load 70.64, cpu waiting 41.54%, memory waiting 0.00%, io waiting 0.55%
--- 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.488s 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.902s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 306ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 119ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.6s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.78s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 410ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 120ms 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.73s 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.295s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceOpenCodeBinaryAfterAttestation
machine: 32 CPUs, load 12.90, cpu waiting 10.40%, memory waiting 0.00%, io waiting 1.20%
--- 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.8%, load 27.89
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2778 text files, 3228 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.561s
machine: 32 CPUs, load 77.95, cpu waiting 43.96%, memory waiting 0.00%, io waiting 0.43%
--- 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.8%, load 27.89
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 63.15, cpu waiting 34.63%, memory waiting 0.00%, io waiting 0.65%
--- 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.8%, load 27.89
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 35.18, cpu waiting 22.44%, memory waiting 0.00%, io waiting 0.85%
--- 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.8%, load 27.89
shard 28: make gitleaks
4:22AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
4:23AM INF 1170 commits scanned.
4:23AM INF scanned ~66500868 bytes (66.50 MB) in 24.2s
4:23AM INF no leaks found
machine: 32 CPUs, load 63.15, cpu waiting 36.31%, memory waiting 0.00%, io waiting 0.63%

amadan: job failed at step check shard 7 of 29 — its output is above, not at the tail of this log
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md
index 7461aed6..f272a4ae 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-needs-you.md
@@ -1,8 +1,10 @@
# Native Needs you and Today
Branch: `native/needs-you`, created from `origin/main` at `eb367315` in an
-isolated worktree under the physical TMPDIR. Slice 3 is still in review;
-its action helpers will be reused after it lands and main is merged here.
+isolated worktree under the physical TMPDIR. The list/Today checkpoint was
+committed as 5f507fb9 before merging main 18fb5be4 normally (merge 3a2fc7a6).
+The merge retains both slices' reviewed copy, fixture entry points and UI
+schemes; package budgets combine the two additive device projections.
No merge to main, deployment or release is authorized.
## Source rules and scope
@@ -141,3 +143,139 @@ local make test run was interrupted on the controller's pause request; later
Go targets in that loop have not run. No Linux hub verdict is claimed yet.
The Mac fixture and slice 4 simulator were stopped. Slice 4 remains uncommitted
in its own worktree, awaiting slice 3 integration and final validation.
+
+
+## Row actions after the main merge
+
+NeedsRowAction follows work_views.go decisionOf and work_parts.html's needs
+list, rather than promoting every item in the task menu. A row has one primary
+action: its answerable question, its open merge card's Merge choice, Try again
+only for retry/review_blocked, Resume for the matched unknown-spend connection,
+Run now bound to the current held card or predicted step offer, or Open.
+Questions use LiveQuestionCard, including typed answers and remember controls.
+Direction, recovery, settings and unknown choices open the task for their full
+context. An unknown option keeps the whole decision on the web through the
+landed slice 3 fallback. Owner/creator/lifecycle checks reuse TaskDecision and
+TaskPause; pause actions also enforce the owner role and merging exclusion.
+
+Each row reads the full task before offering a write. A failed or stale read
+falls back to Open. TaskDetailModel sends the action, so Merge retains its
+model-level confirmation and card revision, and retry/error handling stays
+shared. Resume refetches its connection after conflicts; Run now sends the
+shown step revision and connection offer. Every write refreshes the task/list.
+
+The existing task confirmation view is extracted as TaskConfirmationSheet,
+shared by task detail, inline Merge and Finished today's Undo. Undo eligibility
+and its receipt revision are unchanged from slice 3. Finished rows still use
+stable done_at, not later task activity.
+
+Initial row selector tests failed 10 assertions against an Open-only stub.
+The initial model tests failed 9 assertions against stub loading/actions.
+After implementation, the focused list/action/model and shared task-model run
+passed 37 tests. The test fixture was corrected to start a fresh session rather
+than merge an empty card array over an already-open fixture merge card; the
+Run now assertion uses the API's actual step_revision field.
+
+Commands: `swift test --package-path native/apple --filter NeedsRowActionTests`,
+then `--filter NeedsRowModelTests`, then `--filter
+'NeedsRowActionTests|NeedsRowModelTests|NeedsTodayTests|NeedsInboxTests|TaskDetailModelTests'`.
+
+The post-merge reference scan matched a retired-name pattern across a new
+test's word boundary. Renaming the test fixes the scan without changing its
+assertions or adding an exemption.
+
+
+## Row-action mutations
+
+`python3 "$TMPDIR/needs-you-action-mutate.py"` runs the two focused row suites,
+requires assertion failures, and restores each mutation in finally. All 18
+mutations were killed after restoration:
+
+- Drop the owner role or merging exclusion.
+- Promote every menu retry to a list retry; omit review_blocked; ignore the
+ stopped/terminated pause guard.
+- Ignore the merge needs state or its offered Merge choice.
+- Ignore the held-card needs state or its offered Run now choice.
+- Allow a retry to override a selected decision card.
+- Offer hold actions after needs_you clears.
+- Ignore the matching Resume connection or the resumable step.
+- Offer Run now without a predicted offer.
+- Ignore the fresh task revision or the failed-read flag.
+- Remove the row's busy guard.
+- Send Wait when the held-card row shows Run now.
+
+The cleared-hold mutation initially survived. A new regression keeps the
+step's hold/offer but clears needs_you, matching an event/refetch race; the row
+must then offer Open. The rerun kills the mutation. Earlier slice 1 and 3
+creator/lifecycle, retry, connection matching, Undo, confirmation and error
+mutations remain covered by the shared helpers' suites. The unchanged list,
+completion-time and badge mutations are recorded above.
+
+Local Go verification after merging main: make copy-release-check,
+runner-dead-references, lanes-check, fmt-check, spacing, gitleaks, budget and
+migration-check passed. Linux-targeted make build and make vet, staticcheck
+v0.7.0, and govulncheck passed. Commands used GOTOOLCHAIN=go1.26.11,
+CGO_ENABLED=0, and fmt-check used that toolchain's bin directory in PATH.
+TestTaskDoneAt and TestPersonAPIDeviceContract passed uncached. The complete
+Linux hub run remains the final gate for all make test/performance/runner-host
+checks, including the Linux-only toolproxy and namespace checks.
+
+
+## Final native interaction and visual verification
+
+`native/scripts/check-native.sh` passed after the row/Today polish: 338 tests
+in 45 suites, one pre-existing known issue, 329 byte-identical web strings,
+and both Mac and iPhone builds. A final repeat also covers the Mac capture
+fixture change; its result is retained with the validation evidence.
+
+The NeedsYouUI scheme passed all four simulator tests on
+73E0FBCC-185A-4892-889F-150F8DC9729C. It verifies three distinct row actions,
+Merge confirmation before submission, the reviewed empty state, running and
+finished Today rows, Undo confirmation, and no Undo without its server offer.
+Command: `xcodebuild -project native/ios/EquipoPhone.xcodeproj -scheme
+NeedsYouUI -configuration Debug -destination 'platform=iOS Simulator,id=73E0FBCC-185A-4892-889F-150F8DC9729C'
+-derivedDataPath native/build/Phone -resultBundlePath
+"$TMPDIR/needs-you-polish-actions-ui.xcresult" CODE_SIGNING_ALLOWED=NO test`.
+
+Screenshots exported from that result bundle are iphone-needs-you.png,
+iphone-today.png, iphone-empty.png and iphone-needs-merge-confirmation.png.
+The branch's Debug Mac app supplies mac-needs-you.png, showing the same
+three row actions and Today. Its native sidebar is collapsed using the app's
+toggle: AppKit bitmap capture does not include the composited sidebar
+material. The image captures the real window, including its toolbar; no
+image compositing or replacement content is used. The Mac capture is produced
+by `native/scripts/build-mac.sh --configuration debug` and launching the
+bundle with EQUIPO_NEEDS_FIXTURE=list and EQUIPO_FIXTURE_CAPTURE set.
+
+All images and validation logs are in the audit site's build/slice4 directory.
+No new copy questions remain. The 100-task window follow-up remains as noted
+above. Linux hub CI is checked after the normal helper push.
+
+## Screenshot review polish
+
+The controller requested consistent clock formatting, no redundant Needs you
+badge in its own list, a shared task header on the question row, and completion
+time on the status line. Needs you now suppresses only its row badge; other
+lists keep it. Questions retain the native answer/set-aside controls beneath
+the shared project, title, status and task-opening chevron. The stopped status
+line stays: work_parts.html's task-row retains that line, as the controller
+confirmed.
+
+The clock regression failed four assertions before the fix: TimeWords used
+0:20 in en_IE and en_GB. It now pads 24-hour hours while preserving the locale's
+12-hour clock. Completion status uses the same TimeWords. Luna approved
+native.needs.done_at = "Done at %@" on 2026-11-26 for unmerged tasks. Merged
+tasks use the byte-identical web work.merged pattern and merged.at; without
+merge metadata they retain their existing status rather than invent a time.
+The new completion-status test failed two assertions against a nil stub.
+Both tests pass after implementation. Explicit mutations remove hour padding,
+use generic completion words for merges, and use done_at instead of merged.at.
+The UI suite additionally checks the question's task header, absence of the
+redundant badge, and the reviewed merged-time status.
+
+After screenshot review polish, `native/scripts/check-native.sh` passed with
+340 tests in 45 suites, one existing known issue, 330 parity strings, and both
+app builds. All three polish mutations were killed. The NeedsYouUI scheme
+passed all four tests again (`needs-you-reviewed-ui.xcresult`), and all four
+iPhone screenshots plus the Mac screenshot were recaptured and inspected.
+The latest evidence supersedes the earlier pre-review screenshots/logs.
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index 28046c8c..dfaebc7a 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -1344,6 +1344,17 @@
}
}
},
+ "native.needs.done_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Done at %@"
+ }
+ }
+ }
+ },
"native.needs.finished_today": {
"extractionState": "manual",
"localizations": {
@@ -3984,6 +3995,17 @@
}
}
},
+ "work.merged": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merged into %@ at %@"
+ }
+ }
+ }
+ },
"work.needs.branch_moved": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift b/native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift
new file mode 100644
index 00000000..f7f8eafa
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/NeedsRowAction.swift
@@ -0,0 +1,35 @@
+import Foundation
+
+/// The needs-you list's one primary action, narrower than the task menu.
+struct NeedsRowAction {
+ enum Kind { case open, question, merge, retry, resume, runNow }
+ var kind: Kind = .open
+ var card: ThinCard?
+ var pause: TaskPause?
+ init() {}
+ init(task: ThinTask, cards: [ThinCard], mine: Bool, owner: Bool, canResume: Bool) {
+ // TaskDecision and TaskPause retain their creator/lifecycle guards.
+ // Pause actions also need the device's owner role and merge exclusion.
+ guard owner, task.stage != "merging" else { return }
+ pause = TaskPause(task, mine: mine)
+ let decision = TaskDecision(task: task, cards: cards, mine: mine, owner: owner)
+ if let current = decision.card {
+ card = current
+ switch current.kind {
+ case "question": kind = .question
+ case "merge" where task.needsYou == "merge" && decision.canAnswer("merge", note: ""):
+ kind = .merge
+ case "held" where task.needsYou == "held" && decision.canAnswer("run_now", note: ""):
+ kind = .runNow
+ default: break
+ }
+ return
+ }
+ if ["retry", "review_blocked"].contains(task.needsYou), pause?.canRetry == true {
+ kind = .retry
+ } else if task.needsYou == "held" {
+ if pause?.resumeStep != nil, canResume { kind = .resume }
+ else if pause?.runNow != nil { kind = .runNow }
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift b/native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift
new file mode 100644
index 00000000..577a5934
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/NeedsRowModel.swift
@@ -0,0 +1,41 @@
+import Foundation
+
+extension TaskDetailModel {
+ var needsAction: NeedsRowAction {
+ guard let task, loaded?.revision == task.revision, readFailure == nil else { return .init() }
+ return NeedsRowAction(task: task, cards: session.cards, mine: session.isMine(task),
+ owner: session.me?.role == "owner", canResume: needsResume.connection != nil)
+ }
+ func loadNeedsRow() async {
+ await load()
+ needsResume.connection = nil
+ if let task, let step = TaskPause(task, mine: session.isMine(task))?.resumeStep {
+ await needsResume.load(client: session.client, step: step)
+ }
+ }
+ func performNeedsAction() async {
+ guard !busy else { return }
+ let action = needsAction
+ switch action.kind {
+ case .merge:
+ if let card = action.card { await answer(card, choice: "merge", note: "") }
+ case .retry:
+ await perform(.retry)
+ case .resume, .runNow:
+ if let card = action.card {
+ await answer(card, choice: "run_now", note: "")
+ return
+ }
+ busy = true; failure = nil
+ defer { busy = false }
+ if let step = action.pause?.resumeStep {
+ failure = await needsResume.perform(client: session.client, step: step)
+ } else if let run = action.pause?.runNow {
+ failure = await session.runNow(task: taskID, run)
+ }
+ await session.refresh()
+ await loadNeedsRow()
+ case .open, .question: break
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift b/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift
index 5bc575ad..b071b3d6 100644
--- a/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/NeedsToday.swift
@@ -20,6 +20,17 @@ struct NeedsToday {
}
}
+ static func completionStatus(_ task: ThinTask, now: Date, zone: TimeZone, locale: Locale) -> String? {
+ let words = TimeWords(now: now, zone: zone, locale: locale)
+ if let merged = task.merged {
+ guard let at = merged.at, let into = merged.into else { return nil }
+ return String(format: EquipoStrings.text("work.merged"), into, words.clockOrDay(at))
+ }
+ guard let at = task.doneAt else { return nil }
+ // COPY APPROVED: Luna, 2026-11-26.
+ return String(format: EquipoStrings.text("native.needs.done_at"), words.clockOrDay(at))
+ }
+
static func liveStep(_ task: ThinTask) -> ThinStep? {
task.steps?.last { $0.state == "running" || $0.state == "queued" }
}
diff --git a/native/apple/Sources/EquipoKit/Presentation/Pause.swift b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
index 939372c3..1f86c06e 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Pause.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Pause.swift
@@ -203,6 +203,10 @@ struct TimeWords {
private func clock(_ at: Date) -> String {
var style = Date.FormatStyle(date: .omitted, time: .shortened, locale: locale, calendar: calendar, timeZone: zone)
style.timeZone = zone
+ let hourPattern = DateFormatter.dateFormat(fromTemplate: "j", options: 0, locale: locale) ?? ""
+ if hourPattern.contains("H") || hourPattern.contains("k") {
+ style = style.hour(.twoDigits(amPM: .omitted)).minute(.twoDigits)
+ }
return at.formatted(style)
}
private func days(_ at: Date) -> Int {
diff --git a/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift b/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
index f1f6f270..64c6e206 100644
--- a/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/TaskDetailModel.swift
@@ -23,6 +23,7 @@ import Observation
else { await execute(intent.action, seenRevision: intent.revision, receiptRevision: intent.receiptRevision) }
}
var loaded: ThinTask?
+ var needsResume = ResumeAction()
var busy = false
var failure: String?
var readFailure: String?
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index 28046c8c..dfaebc7a 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -1344,6 +1344,17 @@
}
}
},
+ "native.needs.done_at": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Done at %@"
+ }
+ }
+ }
+ },
"native.needs.finished_today": {
"extractionState": "manual",
"localizations": {
@@ -3984,6 +3995,17 @@
}
}
},
+ "work.merged": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merged into %@ at %@"
+ }
+ }
+ }
+ },
"work.needs.branch_moved": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/UI/LiveCards.swift b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
index b460994f..3b74c32f 100644
--- a/native/apple/Sources/EquipoKit/UI/LiveCards.swift
+++ b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
@@ -8,6 +8,7 @@ public struct LiveQuestionCard: View {
let card: ThinCard
let taskTitle: String?
let session: EquipoSession
+ private var taskHeader: (task: ThinTask, open: () -> Void)?
@State private var phase: Phase = .open
@Bindable private var draft: QuestionAnswerDraft
@@ -16,6 +17,11 @@ public struct LiveQuestionCard: View {
draft = session.questionDraft(for: card)
}
+ init(card: ThinCard, task: ThinTask, session: EquipoSession, openTask: @escaping () -> Void) {
+ self.init(card: card, taskTitle: nil, session: session)
+ taskHeader = (task, openTask)
+ }
+
enum Phase: Equatable { case open, sending(String), settingAside, changed(at: Int64), offline, failed }
public var body: some View {
@@ -28,6 +34,10 @@ public struct LiveQuestionCard: View {
private var raised: some View {
RaisedCard(flat: !card.isOpen) {
+ if let taskHeader {
+ TaskRowButton(task: taskHeader.task, needsYou: true, showsNeedsBadge: false, action: taskHeader.open)
+ .accessibilityIdentifier("needs-question-header-" + taskHeader.task.id)
+ }
if let taskTitle, !card.question.contains(taskTitle) {
Text(taskTitle).font(Typo.caption).foregroundStyle(Palette.secondary)
}
diff --git a/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift b/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
index dbf26812..8758b7b2 100644
--- a/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
+++ b/native/apple/Sources/EquipoKit/UI/NeedsViewFixture.swift
@@ -35,7 +35,7 @@ public struct PhoneNeedsFixture: View {
private struct NeedsFixtureTransport: EquipoTransport {
let origin = URL(string: "https://fixture.invalid")!
private var scenario: String { ProcessInfo.processInfo.environment["EQUIPO_NEEDS_FIXTURE"] ?? "list" }
- private var needs: [[String: Any]] { scenario == "empty" || scenario == "today" ? [] : [retry, merge, question] }
+ private var needs: [[String: Any]] { scenario == "empty" || scenario.hasPrefix("today") ? [] : [retry, merge, question] }
private var tasks: [[String: Any]] { scenario == "empty" ? [] : needs + [running, finished] }
func send(_ request: APIRequest) async throws -> APIResponse {
let value: [String: Any]
@@ -77,11 +77,14 @@ private struct NeedsFixtureTransport: EquipoTransport {
private var finished: [String: Any] {
var task = task("finished", "Explain why the upload stopped", stage: "done", steps: [step("merged", specialist: "merge", headline: "Merged into main")])
task["done_at"] = at
+ task["undo_offered"] = scenario != "today-no-undo"
+ task["merged"] = ["into": "main", "sha": "3f9c2a167de8", "without_checks": true, "at": at]
return task
}
private var cards: [[String: Any]] {
[card("merge-card", task: "merge", kind: "merge", question: "Merge this fix?", options: ["merge", "not_now"]),
- card("question-card", task: "question", kind: "question", question: "Should the subject name the team?", options: ["Yes, name the team", "Keep it short"])]
+ card("question-card", task: "question", kind: "question", question: "Should the subject name the team?", options: ["Yes, name the team", "Keep it short"]),
+ card("receipt", task: "finished", kind: "merge_receipt", question: "Merged", options: ["undo"])]
}
private func card(_ id: String, task: String, kind: String, question: String, options: [String]) -> [String: Any] {
["id": id, "revision": 1, "kind": kind, "state": "open", "turn_id": "", "project_id": "project", "name": "", "question": question, "options": options, "choice": "", "task_id": task, "created_at": at, "updated_at": at]
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift
index bd0888e4..10179d14 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/NeedsScreen.swift
@@ -12,8 +12,13 @@ public struct NeedsScreen: View {
if let needs = session.needsYou {
if session.refreshFailed { ReadFailed { Task { await session.refresh() } } }
if needs.isEmpty {
- ContentUnavailableView(EquipoStrings.text("work.needs_empty"), systemImage: "checkmark.circle")
- .padding(.vertical, 12)
+ if session.tasks.isEmpty {
+ ContentUnavailableView(EquipoStrings.text("work.needs_empty"), systemImage: "checkmark.circle")
+ .padding(.vertical, 12)
+ } else {
+ Label(EquipoStrings.text("work.needs_empty"), systemImage: "checkmark.circle")
+ .font(.headline).foregroundStyle(Palette.secondary).padding(.vertical, 12)
+ }
}
let groups = Feed.needsGroups(needs: needs, cards: session.cards)
ForEach(groups.waiting) { task in item(task) }
@@ -23,7 +28,7 @@ public struct NeedsScreen: View {
ForEach(groups.setAside) { task in item(task) }
}
TimelineView(.periodic(from: .now, by: 60)) { context in
- TodaySection(tasks: session.tasks, now: context.date, openTask: openTask)
+ TodaySection(session: session, now: context.date, openTask: openTask)
}
} else if session.refreshFailed {
ReadFailed { Task { await session.refresh() } }
@@ -38,10 +43,6 @@ public struct NeedsScreen: View {
}
private func item(_ task: ThinTask) -> some View {
- VStack(alignment: .leading, spacing: 8) {
- TaskRowButton(task: task, needsYou: session.waitsOnYou(task)) { openTask(task.id) }
- TaskCards(session: session, task: task)
- }
+ NeedsTaskRow(session: session, task: task) { openTask(task.id) }
}
}
-
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift b/native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift
new file mode 100644
index 00000000..bce8f940
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/Screens/NeedsTaskRow.swift
@@ -0,0 +1,54 @@
+import SwiftUI
+
+struct NeedsTaskRow: View {
+ let session: EquipoSession
+ let task: ThinTask
+ var open: () -> Void
+ @State private var model: TaskDetailModel
+ init(session: EquipoSession, task: ThinTask, open: @escaping () -> Void) {
+ self.session = session; self.task = task; self.open = open
+ _model = State(initialValue: TaskDetailModel(session: session, taskID: task.id))
+ }
+ var body: some View {
+ @Bindable var model = model
+ let action = model.needsAction
+ VStack(alignment: .leading, spacing: 8) {
+ if action.kind == .question, let card = action.card {
+ LiveQuestionCard(card: card, task: task, session: session, openTask: open)
+ } else {
+ Panel(padding: 14, spacing: 10) {
+ TaskRowButton(task: task, needsYou: true, showsNeedsBadge: false, action: open)
+ if let pause = TaskReport(task, needsYou: true, mine: session.isMine(task)).pause {
+ PauseLead(pause: pause)
+ }
+ RosterButton(title: action.title, primary: true, expanded: true) {
+ if action.kind == .open { open() }
+ else { Task { await model.performNeedsAction() } }
+ }.disabled(model.busy).accessibilityIdentifier("needs-action-" + task.id)
+ if let note = action.pause?.note, action.kind == .runNow {
+ Text(note).font(Typo.secondary).foregroundStyle(Palette.secondary)
+ }
+ if let failure = model.failure ?? model.readFailure {
+ Text(failure).font(Typo.secondary).foregroundStyle(Palette.negative).fixedSize(horizontal: false, vertical: true)
+ }
+ if model.busy { ProgressView(EquipoStrings.text("action.sending")) }
+ }
+ }
+ }
+ .task(id: task.revision) { await model.loadNeedsRow() }
+ .sheet(item: $model.confirmation) { TaskConfirmationSheet(model: model, confirmation: $0) }
+ }
+}
+
+extension NeedsRowAction {
+ var title: String {
+ switch kind {
+ case .open: EquipoStrings.text("work.open")
+ case .question: EquipoStrings.text("chat.card.answer")
+ case .merge: EquipoStrings.text("chat.card.merge")
+ case .retry: EquipoStrings.text("work.pause.try_again")
+ case .resume: EquipoStrings.text("work.hold.resume")
+ case .runNow: pause?.runNow?.label ?? EquipoStrings.text("chat.card.run_now")
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
index 918a7de6..20667346 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
@@ -65,7 +65,7 @@ public struct TaskScreen: View {
.background(Palette.background)
.task(id: model.session.task(model.taskID)?.revision) { await model.load() }
.refreshable { await model.session.refresh(); await model.load() }
- .sheet(item: $model.confirmation) { confirm in confirmationSheet(confirm) }
+ .sheet(item: $model.confirmation) { confirm in TaskConfirmationSheet(model: model, confirmation: confirm) }
.sheet(isPresented: $model.moving) { TaskMoveSheet(model: model) }
.onChange(of: model.decision.card?.id) { model.directionNote = "" }
}
@@ -181,30 +181,7 @@ public struct TaskScreen: View {
}.disabled(!model.decision.canAnswer(choice.value, note: model.directionNote))
}
}
- private func confirmationSheet(_ confirmation: TaskConfirmation) -> some View {
- VStack(alignment: .leading, spacing: 18) {
- // COPY APPROVED: Luna, 2026-11-26 (cancel title and detail).
- Text(EquipoStrings.text(confirmation.action == .cancel ? "native.task.cancel_confirm" : confirmation.action == .undoMerge ? "native.task.undo_confirm" : "work.decide.adopt_ask"))
- .font(.title2.bold())
- if confirmation.action == .cancel {
- Text(EquipoStrings.text("native.task.cancel_detail"))
- } else if confirmation.action == .undoMerge {
- // COPY APPROVED (Luna via controller, 2026-11-26).
- Text(EquipoStrings.text("native.task.undo_detail"))
- } else if let task = model.task {
- Text(task.title).font(.headline)
- FactsView(facts: TaskReport(task, needsYou: !task.needsYou.isEmpty).facts.filter { $0.label != EquipoStrings.text("fact.branch") }, wide: false)
- if task.checks != "passed" { Text(EquipoStrings.text("work.decide.unchecked_ask")).font(.headline) }
- if !task.branch.isEmpty { detail(EquipoStrings.text("work.details.branch"), task.branch) }
- if !task.candidateSha.isEmpty { detail(EquipoStrings.text("work.details.commit"), task.candidateSha) }
- }
- Button(confirmation.action.title, role: confirmation.action == .cancel ? .destructive : nil) {
- Task { await model.confirm() }
- }.buttonStyle(.borderedProminent).accessibilityIdentifier("task-confirm")
- Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { model.confirmation = nil }
- }.padding(24).frame(minWidth: 280, maxWidth: 540, alignment: .leading)
- .presentationDetents([.medium, .large])
- }
+
}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
index 88d70e75..d20ec59d 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
@@ -35,6 +35,8 @@ public struct TasksScreen: View {
struct TaskRowButton: View {
let task: ThinTask
let needsYou: Bool
+ var showsNeedsBadge = true
+ var status: String? = nil
var action: () -> Void
var body: some View {
let report = TaskReport(task, needsYou: needsYou)
@@ -44,10 +46,10 @@ struct TaskRowButton: View {
HStack(spacing: 8) {
if !task.project.isEmpty { ProjectChip(name: task.project) }
Spacer(minLength: 8)
- if report.needsYou { NeedsChip() }
+ if showsNeedsBadge && report.needsYou { NeedsChip() }
}
Text(task.title).font(Typo.cardTitle).foregroundStyle(Palette.text).multilineTextAlignment(.leading)
- Text(report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow)
+ Text(status ?? report.pause?.stop ?? report.eyebrow).font(Typo.eyebrow).foregroundStyle(report.tone.eyebrow)
}
Image(systemName: "chevron.right").font(.system(size: 12, weight: .semibold)).foregroundStyle(Palette.faint)
}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift b/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift
index f3ef6cae..2d8d1438 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TodaySection.swift
@@ -1,12 +1,12 @@
import SwiftUI
struct TodaySection: View {
- let tasks: [ThinTask]
+ let session: EquipoSession
let now: Date
var openTask: (String) -> Void
var body: some View {
- let today = NeedsToday(tasks: tasks, now: now, zone: .current)
+ let today = NeedsToday(tasks: session.tasks, now: now, zone: .current)
if !today.running.isEmpty || !today.finished.isEmpty {
VStack(alignment: .leading, spacing: 12) {
Text(EquipoStrings.text("chat.day.today")).font(.title2.bold())
@@ -14,14 +14,16 @@ struct TodaySection: View {
// COPY APPROVED: Luna, 2026-11-26.
SectionTitle(text: EquipoStrings.text("native.needs.running_now"))
ForEach(today.running) { task in
- TodayTaskRow(task: task, now: now, running: true) { openTask(task.id) }
+ Panel(padding: 14, spacing: 10) {
+ TodayTaskRow(task: task, now: now, running: true) { openTask(task.id) }
+ }
}
}
if !today.finished.isEmpty {
// COPY APPROVED: Luna, 2026-11-26.
SectionTitle(text: EquipoStrings.text("native.needs.finished_today"))
ForEach(today.finished) { task in
- TodayTaskRow(task: task, now: now, running: false) { openTask(task.id) }
+ FinishedTodayRow(session: session, task: task, now: now, openTask: openTask)
}
}
}
@@ -36,8 +38,9 @@ private struct TodayTaskRow: View {
var open: () -> Void
var body: some View {
- Panel(padding: 14, spacing: 10) {
- TaskRowButton(task: task, needsYou: false, action: open)
+ VStack(alignment: .leading, spacing: 10) {
+ TaskRowButton(task: task, needsYou: false,
+ status: running ? nil : NeedsToday.completionStatus(task, now: now, zone: .current, locale: .current), action: open)
if running {
if let pause = TaskPause(task, mine: false, now: now) { PauseLead(pause: pause) }
else if let step = NeedsToday.liveStep(task) {
@@ -46,10 +49,37 @@ private struct TodayTaskRow: View {
if !step.headline.isEmpty { Text(step.headline).font(Typo.secondary).fixedSize(horizontal: false, vertical: true) }
}.foregroundStyle(Palette.secondary)
}
- } else if let doneAt = task.doneAt {
- Text(doneAt, format: .dateTime.hour().minute())
- .font(Typo.secondary).foregroundStyle(Palette.secondary)
}
}
}
}
+
+private struct FinishedTodayRow: View {
+ let task: ThinTask
+ let now: Date
+ var openTask: (String) -> Void
+ @State private var model: TaskDetailModel
+ init(session: EquipoSession, task: ThinTask, now: Date, openTask: @escaping (String) -> Void) {
+ self.task = task; self.now = now; self.openTask = openTask
+ _model = State(initialValue: TaskDetailModel(session: session, taskID: task.id))
+ }
+ var body: some View {
+ @Bindable var model = model
+ Panel(padding: 14, spacing: 10) {
+ TodayTaskRow(task: task, now: now, running: false) { openTask(task.id) }
+ if model.rules.available.contains(.undoMerge) {
+ RosterButton(title: TaskAction.undoMerge.title) {
+ Task { await model.perform(.undoMerge) }
+ }.disabled(model.busy).accessibilityIdentifier("today-undo-" + task.id)
+ }
+ if let failure = model.failure {
+ Text(failure).font(Typo.secondary).foregroundStyle(Palette.negative)
+ }
+ if let reverted = model.revertedTask {
+ Button(reverted.title) { openTask(reverted.id) }
+ }
+ }
+ .task(id: task.revision) { await model.load() }
+ .sheet(item: $model.confirmation) { TaskConfirmationSheet(model: model, confirmation: $0) }
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift b/native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift
new file mode 100644
index 00000000..b8941108
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/UI/TaskConfirmationSheet.swift
@@ -0,0 +1,37 @@
+import SwiftUI
+
+/// Shared by task detail, Needs you and Finished today.
+struct TaskConfirmationSheet: View {
+ @Bindable var model: TaskDetailModel
+ let confirmation: TaskConfirmation
+ var body: some View {
+ VStack(alignment: .leading, spacing: 18) {
+ // COPY APPROVED: Luna, 2026-11-26 (cancel title and detail).
+ Text(EquipoStrings.text(confirmation.action == .cancel ? "native.task.cancel_confirm" : confirmation.action == .undoMerge ? "native.task.undo_confirm" : "work.decide.adopt_ask"))
+ .font(.title2.bold())
+ if confirmation.action == .cancel {
+ Text(EquipoStrings.text("native.task.cancel_detail"))
+ } else if confirmation.action == .undoMerge {
+ // COPY APPROVED (Luna via controller, 2026-11-26).
+ Text(EquipoStrings.text("native.task.undo_detail"))
+ } else if let task = model.task {
+ Text(task.title).font(.headline)
+ FactsView(facts: TaskReport(task, needsYou: !task.needsYou.isEmpty).facts.filter { $0.label != EquipoStrings.text("fact.branch") }, wide: false)
+ if task.checks != "passed" { Text(EquipoStrings.text("work.decide.unchecked_ask")).font(.headline) }
+ if !task.branch.isEmpty { detail(EquipoStrings.text("work.details.branch"), task.branch) }
+ if !task.candidateSha.isEmpty { detail(EquipoStrings.text("work.details.commit"), task.candidateSha) }
+ }
+ Button(confirmation.action.title, role: confirmation.action == .cancel ? .destructive : nil) {
+ Task { await model.confirm() }
+ }.buttonStyle(.borderedProminent).accessibilityIdentifier("task-confirm")
+ Button(EquipoStrings.text("chat.card.not_now"), role: .cancel) { model.confirmation = nil }
+ }.padding(24).frame(minWidth: 280, maxWidth: 540, alignment: .leading)
+ .presentationDetents([.medium, .large])
+ }
+ private func detail(_ label: String, _ value: String) -> some View {
+ VStack(alignment: .leading, spacing: 4) {
+ Text(label).font(Typo.factLabel).foregroundStyle(Palette.secondary)
+ Text(verbatim: value).font(.system(.caption, design: .monospaced)).textSelection(.enabled)
+ }
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/MacNeedsFixture.swift b/native/apple/Sources/EquipoMac/MacNeedsFixture.swift
index 2b2d3fa6..9cb96ed0 100644
--- a/native/apple/Sources/EquipoMac/MacNeedsFixture.swift
+++ b/native/apple/Sources/EquipoMac/MacNeedsFixture.swift
@@ -20,10 +20,16 @@ private struct NeedsCapture: ViewModifier {
content.task {
guard let path = ProcessInfo.processInfo.environment["EQUIPO_FIXTURE_CAPTURE"] else { return }
try? await Task.sleep(for: .seconds(2))
- guard let window = NSApp.windows.first(where: { $0.isVisible && !$0.isSheet }), let view = window.contentView else { return }
+ guard let window = NSApp.windows.first(where: { $0.isVisible && !$0.isSheet }), let view = window.contentView?.superview else { return }
window.appearance = NSAppearance(named: .aqua)
- window.setContentSize(NSSize(width: 1100, height: 1000))
+ window.makeKeyAndOrderFront(nil)
+ NSApp.activate()
+ // The sidebar's composited material is excluded from AppKit bitmap
+ // capture. Use the app's native toggle, keeping a real window state.
+ NSApp.sendAction(#selector(NSSplitViewController.toggleSidebar(_:)), to: nil, from: nil)
+ window.setContentSize(NSSize(width: 1100, height: 1080))
try? await Task.sleep(for: .milliseconds(300))
+ // Include the native toolbar in the captured window.
view.layoutSubtreeIfNeeded(); window.displayIfNeeded()
_ = FileManager.default.createFile(atPath: path + ".window", contents: Data(String(window.windowNumber).utf8))
_ = FileManager.default.createFile(atPath: path + ".pid", contents: Data(String(ProcessInfo.processInfo.processIdentifier).utf8))
diff --git a/native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift b/native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift
new file mode 100644
index 00000000..494be872
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/NeedsRowActionTests.swift
@@ -0,0 +1,84 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@Suite struct NeedsRowActionTests {
+ static func stopped() throws -> ThinTask {
+ var task = try TaskDetailTests.task()
+ task.stage = "in_progress"; task.needsYou = "retry"
+ var step = task.steps![0]; step.state = "failed"; step.reason = "push_failed"; step.terminated = true
+ task.steps = [step]; return task
+ }
+ static func action(_ task: ThinTask, cards: [ThinCard] = [], mine: Bool = true, owner: Bool = true, resume: Bool = false) -> NeedsRowAction {
+ .init(task: task, cards: cards, mine: mine, owner: owner, canResume: resume)
+ }
+ @Test func retryIsTheListDecisionNotTheBroaderMenuOffer() throws {
+ var task = try Self.stopped()
+ for need in ["retry", "review_blocked"] {
+ task.needsYou = need; #expect(Self.action(task).kind == .retry)
+ }
+ for need in ["fix_rounds", "merge_conflict", "branch_moved", "machine_removed", "direction", "future", ""] {
+ task.needsYou = need; #expect(Self.action(task).kind == .open)
+ }
+ task.needsYou = "retry"; task.steps![0].terminated = false
+ #expect(Self.action(task).kind == .open)
+ task.steps![0].terminated = true; task.steps![0].state = "done"
+ #expect(Self.action(task).kind == .open)
+ }
+ @Test(arguments: ["other_creator", "member", "done", "cancelled", "merging", "moving", "stopping", "copy_hold", "copy_skip"])
+ func ownershipAndLifecycleGuardRows(_ state: String) throws {
+ var task = try Self.stopped()
+ if ["done", "cancelled", "merging"].contains(state) { task.stage = state }
+ if state == "moving" { task.moving = true }
+ if state == "stopping" { task.stopping = true }
+ if state == "copy_hold" { task.copyHold = true }
+ if state == "copy_skip" { task.copyCanSkip = true }
+ #expect(Self.action(task, mine: state != "other_creator", owner: state != "member").kind == .open)
+ }
+ @Test func questionRendersAndMergeRequiresTheActualDecisionChoice() throws {
+ var task = try Self.stopped(); task.needsYou = "merge"
+ var merge = try TaskDecisionTests.card(task)
+ var question = try TaskDecisionTests.card(task, kind: "question", options: ["Yes", "No"])
+ question.id = "question"; question.createdAt = merge.createdAt.addingTimeInterval(1)
+ #expect(Self.action(task, cards: [question]).kind == .question)
+ #expect(Self.action(task, cards: [question]).card?.id == question.id)
+ #expect(Self.action(task, cards: [merge, question]).kind == .merge)
+ task.needsYou = "retry"
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ task.needsYou = "merge"; merge.options = ["wait"]
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ merge.options = ["merge", "future"]
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ merge.state = "answered"
+ #expect(Self.action(task, cards: [merge]).kind == .open)
+ // A menu offer without a merge card is not a list decision.
+ #expect(Self.action(task).kind == .open)
+ }
+ @Test func holdsReuseTheResumeMatchAndRunNowOffer() throws {
+ var task = try Self.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"
+ task.steps![0].hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "codex", stepRevision: 9)
+ #expect(Self.action(task, resume: false).kind == .open)
+ #expect(Self.action(task, resume: true).kind == .resume)
+ task.steps![0].hold?.reason = "headroom"
+ #expect(Self.action(task, resume: true).kind == .open)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "connection", name: "Codex"))
+ #expect(Self.action(task).kind == .runNow)
+ #expect(Self.action(task).pause?.runNow?.revision == 9)
+ task.needsYou = "fix_rounds"
+ #expect(Self.action(task, resume: true).kind == .open)
+ task.needsYou = ""
+ #expect(Self.action(task, resume: true).kind == .open)
+ task.needsYou = "held"; task.steps![0].paused = nil
+ let held = try TaskDecisionTests.card(task, kind: "held", options: ["run_now", "wait"])
+ #expect(Self.action(task, cards: [held]).kind == .runNow)
+ #expect(Self.action(task, cards: [held]).card?.id == held.id)
+ task.needsYou = "retry"
+ #expect(Self.action(task, cards: [held]).kind == .open)
+ task.needsYou = "held"
+ var wait = held; wait.options = ["wait"]
+ #expect(Self.action(task, cards: [wait]).kind == .open)
+ wait.options = ["run_now", "future"]
+ #expect(Self.action(task, cards: [wait]).kind == .open)
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift b/native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift
new file mode 100644
index 00000000..54a16fcc
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/NeedsRowModelTests.swift
@@ -0,0 +1,111 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+@MainActor @Suite struct NeedsRowModelTests {
+ func setup(_ task: ThinTask, cards: [ThinCard] = []) async throws -> (TaskDetailModel, ScriptedTransport) {
+ let transport = ScriptedTransport()
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ snapshot.tasks = [task]; snapshot.cards = cards
+ transport.on("GET /snapshot", .success(APIResponse(status: 200, data: try encoder.encode(snapshot))))
+ transport.on("GET /tasks", .success(APIResponse(status: 200, data: try encoder.encode(["items": [task]]))))
+ transport.on("GET /needs-you", .success(APIResponse(status: 200, data: try encoder.encode(["items": [task]]))))
+ transport.on("GET /tasks/" + task.id, .success(APIResponse(status: 200, data: try encoder.encode(task))))
+ var account = DeviceAccount.new(origin: transport.origin, label: "Test")
+ account.credential = DeviceCredential(id: "fixture", token: "fixture", audience: "equipo.person.v1", instanceId: "fixture", expiresAt: .distantFuture)
+ let session = EquipoSession(account: account, accounts: DeviceAccounts(store: MemorySecretStore()), transport: transport)
+ await session.refresh()
+ let model = TaskDetailModel(session: session, taskID: task.id)
+ return (model, transport)
+ }
+ @Test func retryUsesSharedFailureWordsAndRefreshes() async throws {
+ let task = try NeedsRowActionTests.stopped()
+ let (model, transport) = try await setup(task)
+ await model.loadNeedsRow()
+ #expect(model.needsAction.kind == .retry)
+ let route = "POST /tasks/\(task.id)/retry"
+ transport.on(route, .success(APIResponse(status: 409, data: Data(#"{"code":"not_retryable","copy_key":"api.not_retryable","request_id":"fixture"}"#.utf8))))
+ await model.performNeedsAction()
+ #expect(transport.sent(route).count == 1)
+ #expect(model.failure == EquipoStrings.text("api.not_retryable"))
+ #expect(transport.sent("GET /tasks/" + task.id).count >= 2)
+ }
+ @Test func rowMergeUsesTheSharedConfirmationAndCardRevision() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "merge"
+ var card = try TaskDecisionTests.card(task); card.revision = 71
+ let (model, transport) = try await setup(task, cards: [card])
+ await model.loadNeedsRow(); await model.performNeedsAction()
+ #expect(model.confirmation?.card?.revision == 71)
+ #expect(!transport.requests.contains { $0.method == "POST" && $0.path.contains("/answer") })
+ await model.confirm()
+ let request = try #require(transport.requests.first { $0.path.contains("/answer") })
+ let body = try JSONSerialization.jsonObject(with: try #require(request.body)) as! [String: Any]
+ #expect(body["revision"] as? Int == 71)
+ #expect(body["choice"] as? String == "merge")
+ }
+ @Test func heldCardRunNowUsesItsAnswerRevision() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "held"
+ var card = try TaskDecisionTests.card(task, kind: "held", options: ["run_now", "wait"])
+ card.revision = 36
+ let (model, transport) = try await setup(task, cards: [card])
+ await model.loadNeedsRow(); await model.performNeedsAction()
+ let sent = try #require(transport.requests.first { $0.path.contains("/answer") })
+ let body = try JSONSerialization.jsonObject(with: sent.body!) as! [String: Any]
+ #expect(body["revision"] as? Int == 36)
+ #expect(body["choice"] as? String == "run_now")
+ #expect(transport.sent("POST /tasks/\(task.id)/run-now").isEmpty)
+ }
+ @Test func unreadFailedStaleAndBusyRowsCannotSend() async throws {
+ let task = try NeedsRowActionTests.stopped()
+ let (model, transport) = try await setup(task)
+ #expect(model.needsAction.kind == .open)
+ await model.performNeedsAction()
+ await model.loadNeedsRow()
+ model.readFailure = "fixture"
+ #expect(model.needsAction.kind == .open)
+ await model.performNeedsAction()
+ model.readFailure = nil; model.loaded?.revision -= 1
+ #expect(model.needsAction.kind == .open)
+ await model.performNeedsAction()
+ await model.loadNeedsRow(); model.busy = true
+ await model.performNeedsAction()
+ #expect(!transport.requests.contains { $0.path.hasSuffix("/retry") })
+ #expect(model.busy)
+ }
+ @Test func resumeReadsMatchingConnectionAndRefreshesAfterConflict() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"; task.steps![0].runnerId = "runner"
+ task.steps![0].hold = ThinHold(reason: "spend_unknown", connection: "local", provider: "codex", stepRevision: 4)
+ let (model, transport) = try await setup(task)
+ func connections(_ revision: Int) -> APIResponse {
+ APIResponse(status: 200, data: Data("{\"items\":[{\"id\":\"conn\",\"runner_id\":\"runner\",\"local_id\":\"local\",\"provider\":\"codex\",\"spend\":{\"unknown\":true,\"pause_revision\":\(revision)}}]}".utf8))
+ }
+ transport.on("GET /connections", .success(connections(4)), .success(connections(5)))
+ transport.on("POST /connections/conn/resume", .success(APIResponse(status: 409, data: Data(#"{"code":"pause_changed","copy_key":"card.changed","request_id":"fixture"}"#.utf8))))
+ await model.loadNeedsRow()
+ #expect(model.needsAction.kind == .resume)
+ model.busy = true; await model.performNeedsAction()
+ #expect(transport.sent("POST /connections/conn/resume").isEmpty)
+ model.busy = false; await model.performNeedsAction()
+ let sent = try #require(transport.sent("POST /connections/conn/resume").first)
+ #expect(String(data: sent.body!, encoding: .utf8) == "{\"pause_revision\":4}")
+ #expect(model.failure == EquipoStrings.text("card.failed"))
+ #expect(model.needsResume.connection?.spend?.pauseRevision == 5)
+ }
+ @Test func runNowBindsTheShownStepAndOffer() async throws {
+ var task = try NeedsRowActionTests.stopped(); task.needsYou = "held"
+ task.steps![0].state = "running"
+ task.steps![0].hold = ThinHold(reason: "headroom", stepRevision: 9)
+ task.steps![0].paused = ThinPaused(runNow: ThinRunNow(connection: "connection", name: "Codex"))
+ let (model, transport) = try await setup(task)
+ transport.on("POST /tasks/\(task.id)/run-now", .success(APIResponse(status: 409, data: Data(#"{"code":"offer_changed","copy_key":"api.offer_changed","request_id":"fixture"}"#.utf8))))
+ await model.loadNeedsRow(); await model.performNeedsAction()
+ let request = try #require(transport.sent("POST /tasks/\(task.id)/run-now").first)
+ let body = try JSONSerialization.jsonObject(with: request.body!) as! [String: Any]
+ #expect(body["step"] as? String == task.steps![0].id)
+ #expect(body["step_revision"] as? Int == 9)
+ #expect(body["offer"] as? String == "connection")
+ #expect(model.failure == EquipoStrings.text("api.offer_changed"))
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift b/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift
index 5bf78520..e271ba00 100644
--- a/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift
+++ b/native/apple/Tests/EquipoKitTests/NeedsTodayTests.swift
@@ -15,6 +15,17 @@ import Testing
static let now = ISO8601DateFormatter().date(from: "2026-11-26T12:00:00Z")!
static let utc = TimeZone(secondsFromGMT: 0)!
+ @Test func completionStatusUsesStableTimeAndMergedWords() throws {
+ var task = try Self.task("finished", stage: "done", at: "2026-11-26T00:20:00Z")
+ task.merged = nil
+ let words = { (task: ThinTask) in NeedsToday.completionStatus(task, now: Self.now, zone: Self.utc, locale: Locale(identifier: "en_IE")) }
+ #expect(words(task) == "Done at 00:20")
+ task.merged = ThinMerged(into: "main", at: Self.now)
+ #expect(words(task) == "Merged into main at 12:00")
+ task.merged?.at = nil
+ #expect(words(task) == nil)
+ }
+
@Test func completionDaySurvivesLaterNotesAndOldPayloads() throws {
let old: ThinTask = try Fixture.decode("thin/task")
#expect(old.doneAt == nil)
@@ -37,7 +48,7 @@ import Testing
#expect(decoded.doneAt == Self.now)
}
- @Test func runningRequiresLiveWorkAndNoDecision() throws {
+ @Test func runningRequiresLiveWorkWithoutAPendingChoice() throws {
let live = try Self.task("live", at: "2026-11-20T12:00:00Z")
var queued = live; queued.id = "queued"; queued.steps![0].state = "queued"
var finishedStep = live; finishedStep.id = "ended-step"; finishedStep.steps![0].state = "done"
diff --git a/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift
index 0444b3da..9dd90127 100644
--- a/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift
+++ b/native/apple/Tests/EquipoKitTests/StoppedWorkTests.swift
@@ -20,6 +20,17 @@ import Testing
#expect(pause.rest == " the push to Amadan failed")
}
+ @Test func clockPads24HourMidnightAndRespects12HourLocale() {
+ let at = ISO8601DateFormatter().date(from: "2026-11-26T00:20:00Z")!
+ for language in ["en_IE", "en_GB"] {
+ let words = TimeWords(now: at, zone: .gmt, locale: Locale(identifier: language))
+ #expect(words.clockOrDay(at) == "00:20")
+ #expect(words.when(at) == "today at 00:20")
+ }
+ let words = TimeWords(now: at, zone: .gmt, locale: Locale(identifier: "en_US"))
+ #expect(words.clockOrDay(at).replacingOccurrences(of: "\u{202F}", with: " ") == "12:20 AM")
+ }
+
@Test func retryIsOnlyForCreatorAndTerminatedStep() throws {
#expect(TaskPause(try stopped(), mine: true)?.canRetry == true)
#expect(TaskPause(try stopped(), mine: false)?.canRetry == false)
diff --git a/native/ios/UITests/NeedsYouUITests.swift b/native/ios/UITests/NeedsYouUITests.swift
index 8b8d7607..322c5c3e 100644
--- a/native/ios/UITests/NeedsYouUITests.swift
+++ b/native/ios/UITests/NeedsYouUITests.swift
@@ -14,7 +14,12 @@ final class NeedsYouUITests: XCTestCase {
XCTAssertTrue(app.staticTexts["Updating the list after a task finishes"].exists)
let tab = app.tabBars.buttons.matching(NSPredicate(format: "label BEGINSWITH %@", "Needs you")).firstMatch
XCTAssertFalse((tab.value as? String ?? "").contains("2"))
+ XCTAssertTrue(app.buttons["today-undo-finished"].waitForExistence(timeout: 10))
+ XCTAssertTrue(app.staticTexts["Merged into main at 00:20"].exists)
capture("iphone-today")
+ app.buttons["today-undo-finished"].tap()
+ XCTAssertTrue(app.staticTexts["Undo this merge?"].waitForExistence(timeout: 5))
+ XCTAssertTrue(app.staticTexts["Equipo will start a task to revert this merge. From now on, it will ask before every merge in this project."].exists)
}
@MainActor func testEmptyUsesReviewedWords() {
let app = launch("empty")
@@ -23,6 +28,26 @@ final class NeedsYouUITests: XCTestCase {
XCTAssertFalse(app.staticTexts["Finished today"].exists)
capture("iphone-empty")
}
+ @MainActor func testRowsShowThreeActionsAndMergeConfirms() {
+ let app = launch("list")
+ XCTAssertTrue(app.buttons["needs-action-retry"].waitForExistence(timeout: 15))
+ XCTAssertEqual(app.buttons["needs-action-retry"].label, "Try again")
+ XCTAssertEqual(app.buttons["needs-action-merge"].label, "Merge")
+ XCTAssertTrue(app.buttons["Yes, name the team"].waitForExistence(timeout: 15))
+ XCTAssertTrue(app.buttons["Keep it short"].exists)
+ XCTAssertTrue(app.buttons["needs-question-header-question"].exists)
+ XCTAssertFalse(app.staticTexts["NEEDS YOU"].exists)
+ capture("iphone-needs-you")
+ app.buttons["needs-action-merge"].tap()
+ XCTAssertTrue(app.buttons["task-confirm"].waitForExistence(timeout: 5))
+ XCTAssertTrue(app.staticTexts["Keep the sign-in button visible"].exists)
+ capture("iphone-needs-merge-confirmation")
+ }
+ @MainActor func testTodayHidesUndoWithoutTheServerOffer() {
+ let app = launch("today-no-undo")
+ XCTAssertTrue(app.staticTexts["Finished today"].waitForExistence(timeout: 15))
+ XCTAssertFalse(app.buttons["today-undo-finished"].exists)
+ }
@MainActor private func launch(_ fixture: String) -> XCUIApplication {
let app = XCUIApplication()
app.launchEnvironment["EQUIPO_NEEDS_FIXTURE"] = fixture
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index 80ed007d..7d71eca0 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -487,5 +487,7 @@
"chat.day.today": "Today",
"work.needs_empty": "Nothing needs you right now.",
"native.needs.running_now": "Running now",
- "native.needs.finished_today": "Finished today"
+ "native.needs.finished_today": "Finished today",
+ "native.needs.done_at": "Done at %@",
+ "work.merged": "Merged into %@ at %@"
}