oficina / equipo Public

Merge remote-tracking branch 'origin/main' into empty-state-welcome

claude pushed by paul@keymail.dev 5a5bf5c850c25e7a07d1833cb9889294770a23a7 parent b282621parent 76bc4fb
12 files changed, +704 −25
  • docs/superpowers/plans/2026-11-20-equipo-native-slice-2.md +153 −0
  • native/apple/Sources/EquipoKit/Presentation/Roster.swift +81 −0
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +176 −0
  • native/apple/Sources/EquipoKit/UI/LiveCards.swift +91 −18
  • native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift +1 −1
  • native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift +1 −1
  • native/apple/Sources/EquipoMac/LiveTranscript.swift +55 −3
  • native/apple/Tests/EquipoKitTests/MergeCardTests.swift +95 −0
  • native/scripts/check-native.sh +1 −0
  • native/scripts/check-parity.py +32 −0
  • native/scripts/check-strings.py +1 −1
  • native/scripts/strings.json +17 −1

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/empty-state-welcome: Type  Size Avail | ext4   96G   87G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   87G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.0s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.3s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 3.0s
ci-box: file times set from content: 2726 files, 174 directories
ci-box: ready in 15.9s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.241s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.0s
+ go list -export -test -tags testbuild -f  ./...
  0.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.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-11 02:51:11 +0000 UTC

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

receipt: test step 1m19.233s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.723s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.72s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 35.26, cpu waiting 20.88%, memory waiting 0.00%, io waiting 0.94%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m20.511s 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 1m18.888s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.89s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 35.26, cpu waiting 20.42%, memory waiting 0.00%, io waiting 0.91%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.375s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.26s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.03s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.63s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.6s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 33.56, cpu waiting 20.42%, memory waiting 0.00%, io waiting 0.91%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m16.663s 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.214s amadan.net/oficina/equipo/internal/headless
receipt: slow test 35.93s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.89s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.06s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.33s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 36.94, cpu waiting 21.01%, memory waiting 0.00%, io waiting 0.97%
--- 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_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m34.261s 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 1m32.633s amadan.net/oficina/equipo/internal/headless
receipt: slow test 58.1s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.69s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.64s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.55s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.65s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 31.96, cpu waiting 16.67%, memory waiting 0.00%, io waiting 0.71%
--- 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_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 3m4.538s 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 3m2.544s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m42.36s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.3s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.21s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.94s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.25s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.73, cpu waiting 3.76%, memory waiting 0.00%, io waiting 0.15%
--- 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 475ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m2.37s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.9s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.72s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.48s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 0.90, cpu waiting 0.35%, memory waiting 0.00%, io waiting 3.43%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 398ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m23.109s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.07s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.52s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 0.90, cpu waiting 0.35%, memory waiting 0.00%, io waiting 3.43%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 4m27.751s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m40.772s 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 4m27.751s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.96s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.89s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.78s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.47s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.25, cpu waiting 0.75%, memory waiting 0.00%, io waiting 0.02%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 46.51s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 45.415s amadan.net/oficina/equipo/internal/runner
receipt: slow test 25.39s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 30.30, cpu waiting 19.99%, memory waiting 0.00%, io waiting 1.60%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

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

receipt: test step 35.009s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.15s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.07s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 22.73, cpu waiting 13.99%, memory waiting 0.00%, io waiting 1.96%
--- 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 25.9%, load 18.88
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m3.454s 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 1m1.683s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.29s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.19s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.35s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.88s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.64s amadan.net/oficina/equipo/internal/equipotest TestAuthorityRejectsMismatchedTarget
machine: 32 CPUs, load 31.96, cpu waiting 17.20%, memory waiting 0.00%, io waiting 0.74%
--- 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 25.9%, load 18.88
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 392ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m13.893s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.62s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 19.61s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 19.59s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.59s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 19.52s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
machine: 32 CPUs, load 18.88, cpu waiting 11.17%, memory waiting 0.00%, io waiting 2.10%
--- 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 25.9%, load 18.88
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m14.785s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m3.671s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.21s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.01s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.98s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.93s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.89s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 27.42, cpu waiting 14.14%, memory waiting 0.00%, io waiting 0.60%
--- 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 25.9%, load 18.88
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 389ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m6.366s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.18s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.71s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24.69s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.79s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 22.72s amadan.net/oficina/equipo/internal/equipotest TestSigninCSRF
machine: 32 CPUs, load 18.88, cpu waiting 11.17%, memory waiting 0.00%, io waiting 2.10%
--- 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 27.1%, load 18.88
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 553ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 50.796s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.63s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.22s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 18.88, cpu waiting 11.17%, memory waiting 0.00%, io waiting 2.10%
--- 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 27.1%, load 18.88
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/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/personapi ./internal/equipo/planning ./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/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/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/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/personapi ./internal/equipo/planning ./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/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/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: 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: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 22.378s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 13.726s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 40.165s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/release took 22.788s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 38.724s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m13.824s against a 60s target (the gate's other steps are not in this figure)
receipt: 11 packages ran, 49 cached, 18 without tests, 0 failed
receipt: slow package 52.512s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.36s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 40.165s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 38.724s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 35.565s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 21.33s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.06s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 12.08s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 11.26s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 9.24s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
machine: 32 CPUs, load 11.79, cpu waiting 5.25%, memory waiting 0.00%, io waiting 0.21%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.767s 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 1m20.33s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.15s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.17s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.16s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.79s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.74s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 33.56, cpu waiting 19.92%, memory waiting 0.00%, io waiting 0.88%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m30.293s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m28.715s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.53s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.95s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.96s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.92s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.81s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 31.96, cpu waiting 17.71%, memory waiting 0.00%, io waiting 0.76%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m38.795s 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 1m37.163s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.32s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.89s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.82s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.23s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 29.72, cpu waiting 15.59%, memory waiting 0.00%, io waiting 0.67%
--- 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|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-20T06:17:38.087Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T06:17:38.087Z level=INFO msg="startup phase done" phase=state_lock took=214µs
time=2026-11-20T06:17:38.087Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T06:17:38.087Z level=INFO msg="startup phase done" phase=claim_roots took=180µs
time=2026-11-20T06:17:38.087Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T06:17:38.131Z level=INFO msg="startup phase done" phase=sweep took=43.959ms
time=2026-11-20T06:17:38.132Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T06:17:38.132Z level=INFO msg="startup phase done" phase=credentials took=214µs
time=2026-11-20T06:17:38.132Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T06:17:38.172Z level=INFO msg="startup phase done" phase=open_state took=40.548ms
time=2026-11-20T06:17:38.173Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T06:17:38.174Z level=INFO msg=connecting host=127.0.0.1:33053 protocol=28
time=2026-11-20T06:17:38.176Z level=INFO msg=connected host=127.0.0.1:33053 took=1.869ms
time=2026-11-20T06:17:38.176Z level=INFO msg="capabilities gathering"
time=2026-11-20T06:17:38.177Z level=INFO msg="capabilities gathered" took=495µs tags=linux,claude,go
time=2026-11-20T06:17:38.177Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T06:17:38.182Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.79s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-20T06:18:08.533Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T06:18:08.533Z level=INFO msg="startup phase done" phase=state_lock took=67µs
time=2026-11-20T06:18:08.533Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T06:18:08.533Z level=INFO msg="startup phase done" phase=claim_roots took=97µs
time=2026-11-20T06:18:08.533Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T06:18:08.564Z level=INFO msg="startup phase done" phase=sweep took=31.537ms
time=2026-11-20T06:18:08.564Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T06:18:08.565Z level=INFO msg="startup phase done" phase=credentials took=99µs
time=2026-11-20T06:18:08.565Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T06:18:08.605Z level=INFO msg="startup phase done" phase=open_state took=40.534ms
time=2026-11-20T06:18:08.606Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T06:18:08.606Z level=INFO msg=connecting host=127.0.0.1:38207 protocol=28
time=2026-11-20T06:18:08.607Z level=INFO msg=connected host=127.0.0.1:38207 took=910µs
time=2026-11-20T06:18:08.607Z level=INFO msg="capabilities gathering"
time=2026-11-20T06:18:08.608Z level=INFO msg="capabilities gathered" took=509µs tags=linux,claude,go
time=2026-11-20T06:18:08.608Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T06:18:08.617Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T06:18:09.574Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (5.80s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m25.52s
FAIL	amadan.net/oficina/equipo/internal/headless	85.807s


receipt: test step 1m26.76s 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 1m25.52s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.04s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.86s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.35s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.21s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 7.89s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 5a5bf5c850c25e7a07d1833cb9889294770a23a7 1.79s 33.43
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 5a5bf5c850c25e7a07d1833cb9889294770a23a7 5.80s 33.43
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 29.72, cpu waiting 15.59%, memory waiting 0.00%, io waiting 0.67%
--- 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 338ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 797ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 790ms 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)$' ./internal/idtest

receipt: test step 244ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.698s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.7s 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 250ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1.98s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.98s 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|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 263ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m9.618s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.95s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.36s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.31s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 7.31, cpu waiting 1.49%, memory waiting 0.00%, io waiting 3.35%
--- 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   (51s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.16s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.33s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.02s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.53s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.62s
+ 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   (61s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.62s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 13.33s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 20.17s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.86s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 19.32s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 33.55, cpu waiting 21.35%, memory waiting 0.00%, io waiting 1.27%
--- 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 7.976s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 3 without tests, 0 failed
receipt: slow package 6.906s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 190ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 62ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 4.93s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 60ms 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.097s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.777s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 250ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
machine: 32 CPUs, load 10.73, cpu waiting 4.97%, memory waiting 0.00%, io waiting 2.83%
--- 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 27.1%, load 18.88
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2440 text files, 2842 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 run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 87 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.415s
machine: 32 CPUs, load 30.30, cpu waiting 19.99%, memory waiting 0.00%, io waiting 1.60%
--- 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 25.9%, load 18.88
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 22.73, cpu waiting 11.17%, memory waiting 0.00%, io waiting 2.10%
--- 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 27.1%, load 18.88
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 5
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 26.76, cpu waiting 15.11%, memory waiting 0.00%, io waiting 1.90%
--- 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 25.9%, load 18.88
shard 28: make gitleaks
6:17AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
6:17AM INF 1030 commits scanned.
6:17AM INF scanned ~60014332 bytes (60.01 MB) in 13s
6:17AM INF no leaks found
machine: 32 CPUs, load 30.30, cpu waiting 18.89%, memory waiting 0.00%, io waiting 1.72%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.044ms, worst 1.131ms, budget 150ms
perf: GET /api/runner/protocol: median 71µs, worst 83µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 584µs, worst 635µs, budget 150ms
perf: GET /api/v1/accounts: median 417µs, worst 433µs, budget 150ms
perf: GET /api/v1/auth/devices: median 453µs, worst 494µs, budget 150ms
perf: GET /api/v1/budgets: median 482µs, worst 542µs, budget 150ms
perf: GET /api/v1/capabilities: median 244µs, worst 275µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.175ms, worst 1.268ms, budget 150ms
perf: GET /api/v1/connections: median 543µs, worst 581µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 520µs, worst 555µs, budget 150ms
perf: GET /api/v1/conversation: median 855µs, worst 917µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.379ms, worst 1.432ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.627ms, worst 1.743ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 438µs, worst 461µs, budget 150ms
perf: GET /api/v1/journey: median 8.961ms, worst 9.515ms, budget 150ms
perf: GET /api/v1/me: median 470µs, worst 503µs, budget 150ms
perf: GET /api/v1/me/settings: median 562µs, worst 601µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.759ms, worst 8.838ms, budget 150ms
perf: GET /api/v1/notifications: median 1.585ms, worst 1.642ms, budget 150ms
perf: GET /api/v1/onboarding: median 409µs, worst 429µs, budget 150ms
perf: GET /api/v1/people: median 434µs, worst 468µs, budget 150ms
perf: GET /api/v1/playbooks: median 575µs, worst 595µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 516µs, worst 544µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 821µs, worst 838µs, budget 150ms
perf: GET /api/v1/preferences: median 765µs, worst 871µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 445µs, worst 511µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 569µs, worst 618µs, budget 150ms
perf: GET /api/v1/roster: median 456µs, worst 489µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 416µs, worst 455µs, budget 150ms
perf: GET /api/v1/specialists: median 7.903ms, worst 8.085ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.863ms, worst 7.985ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 829µs, worst 886µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.103ms, worst 1.153ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 727µs, worst 818µs, budget 150ms
perf: GET /api/v1/teams: median 424µs, worst 456µs, budget 150ms
perf: GET /api/v1/templates: median 595µs, worst 651µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 453µs, worst 484µs, budget 150ms
perf: GET /auth/callback: median 80µs, worst 105µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.347ms, worst 3.387ms, budget 150ms
perf: GET /auth/verify: median 82µs, worst 101µs, budget 150ms
perf: GET /connections: median 3.697ms, worst 6.41ms, budget 150ms
perf: GET /conversation: median 7.239ms, worst 7.469ms, budget 150ms
perf: GET /conversation/connections: median 241µs, worst 310µs, budget 150ms
perf: GET /conversation/notebook: median 243µs, worst 279µs, budget 150ms
perf: GET /conversation/settings: median 3.784ms, worst 3.984ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.408ms, worst 3.49ms, budget 150ms
perf: GET /conversation/settings/connections: median 5.982ms, worst 6.034ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.113ms, worst 6.246ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.459ms, worst 3.488ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.016ms, worst 7.002ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.399ms, worst 4.56ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.323ms, worst 4.415ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.29ms, worst 3.337ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.784ms, worst 3.866ms, budget 150ms
perf: GET /housekeeping: median 3.643ms, worst 3.729ms, budget 150ms
perf: GET /invites/new: median 584µs, worst 618µs, budget 150ms
perf: GET /invites/{id}: median 615µs, worst 644µs, budget 150ms
perf: GET /jobs: median 3.151ms, worst 3.264ms, budget 150ms
perf: GET /jobs/{id}: median 4.183ms, worst 4.322ms, budget 150ms
perf: GET /journey: median 9.746ms, worst 11.914ms, budget 150ms
perf: GET /nav/rail: median 2.825ms, worst 3.037ms, budget 150ms
perf: GET /needs-you: median 9.641ms, worst 10.289ms, budget 150ms
perf: GET /onboarding: median 3.747ms, worst 3.846ms, budget 150ms
perf: GET /people: median 3.146ms, worst 3.196ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.369ms, worst 4.505ms, budget 150ms
perf: GET /playbooks: median 3.99ms, worst 4.09ms, budget 150ms
perf: GET /playbooks/new: median 4.076ms, worst 4.222ms, budget 150ms
perf: GET /playbooks/{id}: median 4.52ms, worst 4.776ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.553ms, worst 4.637ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.939ms, worst 6.903ms, budget 150ms
perf: GET /preferences: median 4.146ms, worst 4.196ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.882ms, worst 3.915ms, budget 150ms
perf: GET /projects: median 4.996ms, worst 5.088ms, budget 150ms
perf: GET /projects/accounts: median 3.461ms, worst 3.619ms, budget 150ms
perf: GET /projects/new: median 3.402ms, worst 3.488ms, budget 150ms
perf: GET /projects/{id}: median 9.912ms, worst 10.122ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.527ms, worst 3.592ms, budget 150ms
perf: GET /runners/enrol: median 4.18ms, worst 4.254ms, budget 150ms
perf: GET /settings: median 3.216ms, worst 3.323ms, budget 150ms
perf: GET /settings/coordinator: median 5.528ms, worst 6.899ms, budget 150ms
perf: GET /settings/devices: median 3.317ms, worst 3.445ms, budget 150ms
perf: GET /settings/recovery: median 3.35ms, worst 3.473ms, budget 150ms
perf: GET /settings/recovery/release: median 3.31ms, worst 3.387ms, budget 150ms
perf: GET /settings/thinking: median 241µs, worst 278µs, budget 150ms
perf: GET /signin: median 304µs, worst 335µs, budget 150ms
perf: GET /specialists/new: median 3.257ms, worst 3.395ms, budget 150ms
perf: GET /specialists/{key}: median 10.426ms, worst 10.569ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.469ms, worst 3.578ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.54ms, worst 3.587ms, budget 150ms
perf: GET /tasks: median 5.039ms, worst 5.084ms, budget 150ms
perf: GET /tasks/new: median 3.114ms, worst 3.186ms, budget 150ms
perf: GET /tasks/{id}: median 5.591ms, worst 8.295ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.739ms, worst 4.901ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.498ms, worst 4.586ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.544ms, worst 5.713ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.454ms, worst 1.55ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 4.998ms, worst 5.098ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.488ms, worst 4.592ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.098ms, worst 4.181ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.604ms, worst 7.684ms, budget 150ms
perf: GET /team/{specialist}: median 4.163ms, worst 6.49ms, budget 150ms
perf: GET /teams: median 9.992ms, worst 10.283ms, budget 150ms
perf: GET /templates: median 3.349ms, worst 3.422ms, budget 150ms
perf: GET /usage: median 4.101ms, worst 4.152ms, budget 150ms
perf: GET /work: median 3.003ms, worst 3.051ms, budget 150ms
perf: cold boot: median 253ms of [251.496372ms 253.37133ms 253.60585ms], budget 500ms

receipt: test step 28.302s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 83 without tests, 0 failed
receipt: slow package 8.714s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 7.91s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 800ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 2.62 GiB in 19740 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27329 files
diff --git a/docs/superpowers/plans/2026-11-20-equipo-native-slice-2.md b/docs/superpowers/plans/2026-11-20-equipo-native-slice-2.md
new file mode 100644
index 00000000..2b1cd5c8
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-20-equipo-native-slice-2.md
@@ -0,0 +1,153 @@
+# Equipo native, slice 2 (plan for Paul, 2026-11-20)
+
+Slice 1 landed on 2026-11-19: pairing, the conversation in the Roster look,
+question cards, Needs you, Tasks and the task view (plan
+`2026-11-18-equipo-native-slice-1.md`). TestFlight has 0.1.0 (2); the Mac has
+0.1.0 (1) on Sparkle. Slice 2 makes the apps something you can leave running:
+they tell you when something needs you, show work in progress without opening
+them, and let you answer the most common decision on the device.
+
+Paul asked on 2026-11-20 for push notifications and a Live Activity, after
+merges on the device. Decisions this plan needs are at the end, each with a
+recommendation.
+
+## What a person can do
+
+1. **Answer a merge on the device.** The merge card shows the server's
+ question, the preview link when there is one, and its choices (Merge, Wait
+ for a Mac), Merge primary, exactly as the web does. "Does main ship?" cards
+ (`merge_ships`) too. Other decisions still open the web.
+2. **Be told when something needs you.** A notification when a decision or a
+ question waits on you, when the coordinator replies while the app is not in
+ front, and when a task you started finishes or stops. The app badge is your
+ Needs you count. Tapping a notification opens the card or task.
+3. **Watch a task without opening the app.** A Live Activity for each task you
+ started, from the moment work starts until it ends: the title, the five-stop
+ stage track, who is working on it and the latest activity line. When it
+ needs you it turns amber and alerts; tapping opens the decision. On the Mac,
+ macOS 26 shows the iPhone's Live Activities in the menu bar.
+4. **Set a card aside** (if it fits; D5). The web's Set aside and Undo: never
+ answers, cancels or starts anything; the card stays in Needs you, grouped
+ under Set aside.
+
+## What waits
+
+- The other decision cards (What next, Publish, Add a specialist, Grant
+ access, Research), Copy hold and Wrong project? still open the web.
+- Replies inside an answered card, and the day roll-up (no server support yet).
+- Answering from the notification itself (D4).
+
+## Shape of the work
+
+### Server (Equipo)
+
+- **Device push registrations.** `POST /api/v1/push-registrations` with the
+ device's APNs token, its environment (development or production) and, on
+ iPhone, its Live Activity push-to-start token. Bound to the paired device
+ credential, replaced on re-registration, deleted when the device is revoked,
+ the person is removed, or Apple answers `Unregistered`. Tokens are never
+ logged. Documented in the OpenAPI file and covered by the device contract
+ test like every other device route.
+- **A push outbox.** The engine already appends an event for every change
+ (`t.event`). Inside the same transaction, a small rule table decides whether
+ the change is a push, and writes a `push_outbox` row:
+ - a card that waits on the person opens (merge, question, other decisions):
+ an alert, `apns-collapse-id` the card, priority 10;
+ - the coordinator's reply finishes while the person has no open stream: an
+ alert;
+ - a task the person started reaches done, cancelled or failed: a passive
+ alert;
+ - every Needs you change: the badge count;
+ - a task the person started is dispatched: a Live Activity start; its stage,
+ step or needs-you change: an update (priority 10 for needs you, 5 for the
+ rest); its end: an end with the outcome.
+ Activity lines (the "Reading README.md" line) update the Live Activity at
+ most once a minute, so the activity stays inside Apple's update budget.
+- **A sender** drains the outbox through a transport, retries with backoff,
+ and records Apple's answer. Transports mirror mail's: the CARLOS platform
+ transport in production (D1), a logged transport only on loopback or
+ staging, as `EQUIPO_ALLOW_LOGGED_MAIL` is for mail.
+- **Notification text** is server-rendered from `copy.go`, in the
+ recipient's locale where Equipo has one, through copy review. The body of a
+ coordinator reply is the reply's first line (D2).
+- **Set aside** (D5): the store already has `SetCardAside` and the
+ `chat_card_visibility` table; the engine gains `POST /cards/{id}/visibility`
+ and the card's per-person `aside` field, and Needs you keeps set-aside cards.
+
+### Platform (CARLOS), if D1 is the platform
+
+A `POST /v1/push` verb on the per-instance control socket, as mail submission
+added `POST /v1/mail`: the instance submits a device token, topic, push type,
+priority, collapse ID and payload; a box-local sender with its own uid holds
+the Team Tito APNs auth key and talks HTTP/2 to Apple. Policy before sending:
+the topic must be one of the app's bundle IDs, a per-instance rate cap, a pause
+switch. The instance holds no Apple credential. rastrillo gains a `push`
+transport like `mail`'s `submit`.
+
+### iPhone and Mac
+
+- **Notifications** (both): ask permission after pairing, not at first launch;
+ register the token; handle a tap by opening the card or task; categories for
+ "Needs you" with "Open" only (D4). The Mac needs the `aps-environment`
+ entitlement, which means a Developer ID provisioning profile for
+ `works.oficina.equipo`, as the other Oficina Mac apps already have.
+- **Live Activity** (iPhone): a widget extension, `works.oficina.equipo.activity`,
+ with the Lock Screen and Dynamic Island layouts drawn from Roster (the stage
+ track, the specialist's tile, amber for needs you). The app sends its
+ push-to-start token at registration so the server can start an activity
+ without the app running. At most three at once, the three most recently
+ started tasks (D3); Apple caps them anyway.
+- **Merge card**: native buttons on `POST /cards/{id}/answer`, bound to the
+ revision seen, the slice 1 rules for stale and lost answers unchanged.
+ Parity row R-02 is `must_match`: the same question text, choices, primary and
+ outcome line as the web; a test renders both from the same server fixture.
+
+## Decisions for Paul
+
+**Ruled 2026-11-20:** Paul approved the plan with every recommendation below ("Go ahead"), and copy review by Luna ("Luna can probably do copy review"): Luna's verdicts are the review for slice 2's strings.
+
+| | Decision | Recommendation |
+| --- | --- | --- |
+| D1 | Who holds the Apple push key | **CARLOS platform push**, like mail submission: instances hold no sending credential (your 2026-11-12 ruling for mail). It needs a CARLOS piece first. The alternative, the key as a secret on each Equipo instance, is faster but puts the same key on every team's box. |
+| D2 | What a notification shows on the Lock Screen | The card's question and the reply's first line, as Messages does; iOS already hides previews while locked unless you change that. The alternative is a fixed "Your coordinator replied" with no content. |
+| D3 | Live Activities | One per task you started, at most three; nothing for the coordinator's own turns (they last seconds and the app's thinking line covers them). |
+| D4 | Answering from a notification | Not in slice 2: a notification opens the card, and you answer in the app. A merge from a notification button is a tap, but the person API says a notification action is never authentication, and the card's context (Checks, Review, preview) should be in front of you. Revisit after living with it. |
+| D5 | Set aside in slice 2 | Yes, if the push work lands first; it is small on the server (the store already has it). |
+
+## Steps for Paul
+
+- The Apple push key (an APNs auth key for Team Tito, in the developer portal).
+ I can make it in the browser while you are signed in; it goes to the
+ CARLOS box (D1) and never into a repository.
+- Approving the Push Notifications capability on `works.oficina.equipo`,
+ the new `works.oficina.equipo.activity` ID and the profiles they need; I can
+ do these through the App Store Connect API.
+- Copy review of the notification and Live Activity strings, in the copy
+ review app.
+
+## Gates
+
+- Server: failing tests first for the rules (which change pushes what, to
+ whom, never to someone removed or revoked), the outbox written in the same
+ transaction as the event, idempotent sends (collapse IDs, no duplicate after
+ a retry), token deletion on `Unregistered`, the logged transport refused on a
+ public origin; the device contract test covering the new routes; payload
+ goldens for every push kind. Mutations of each guard.
+- Native: EquipoKit tests for registration, the tap routing and the Live
+ Activity content state from server fixtures; the merge card parity test; the
+ existing native gate.
+- End to end: a local drive with the logged transport, then a real device
+ through TestFlight against staging: a merge card arrives as a notification,
+ the Live Activity starts, moves through its stages and ends, and a merge
+ answered on the phone lands.
+- One Fable review per branch; Paul lands each.
+
+## Order
+
+1. CARLOS push submission (if D1), in parallel with 2.
+2. Equipo: registrations, outbox, rules, logged transport, copy.
+3. Native: the merge card (no push needed; can ship first).
+4. Native: notifications on iPhone and Mac.
+5. Native: the Live Activity extension.
+6. Set aside (D5).
+7. TestFlight and Mac releases; live check on staging.
diff --git a/native/apple/Sources/EquipoKit/Presentation/Roster.swift b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
index a95bc769..15fdf353 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Roster.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
@@ -255,3 +255,84 @@ public enum Feed {
card.kind == "project" || (card.kind == "home" && card.state != "ask")
}
}
+
+// MARK: - Decisions answered here
+
+/// A decision card the device answers itself: merges and "Does main ship?",
+/// laid out exactly as the web's chat_page.go cardView and chat.html do
+/// (parity row R-02, must_match). Labels and outcome lines use the web's own
+/// copy keys (`chat.card.*`, `work.tl.*`); native/scripts/check-parity.py
+/// fails if their words differ from copy.go.
+public struct DecisionView: Sendable, Equatable {
+ public struct Choice: Sendable, Equatable, Identifiable {
+ public var value: String
+ public var label: String
+ public var primary: Bool
+ public var id: String { value }
+ }
+ public var line: String
+ public var open: Bool
+ public var choices: [Choice]
+ /// What was decided, once it was; the web's note.
+ public var note: String?
+ /// The candidate has a preview. It opens through the web's own page
+ /// (Feed.previewURL), never at the address the card carries.
+ public var hasPreview: Bool
+ /// A closed card with an outcome shows only that line, as chat.html's
+ /// equipo-card-done does: no question, no link.
+ public var showsOnlyNote: Bool { !open && note != nil }
+}
+
+/// A conflict's "This item has changed" stays until the card moves past
+/// the revision the conflict returned, so a stale tap is never followed by
+/// a silent second one.
+public enum AnswerFeedback {
+ public static func stillChanged(conflictAt: Int64, now: Int64) -> Bool { now <= conflictAt }
+}
+
+extension Feed {
+ /// nil sends the card to the web: any other kind, or a choice with no words.
+ public static func decision(_ card: ThinCard, task: ThinTask?) -> DecisionView? {
+ let primary: String, chose: String, resolved: String
+ var open = card.state == "open"
+ switch card.kind {
+ case "merge":
+ primary = "merge"; chose = "chat.card.merge_chose_"; resolved = "chat.card.merge_resolved"
+ case "merge_ships":
+ primary = "not_ships"; chose = "chat.card.ships_chose_"; resolved = "chat.card.merge_policy_stale"
+ open = open && !(card.options ?? []).isEmpty
+ default:
+ return nil
+ }
+ var choices: [DecisionView.Choice] = []
+ for value in card.options ?? [] {
+ guard let label = webText("chat.card." + value) else { return nil }
+ choices.append(.init(value: value, label: label, primary: value == primary))
+ }
+ var note: String?
+ if card.kind == "merge", task?.kind == "explore" {
+ // From before the task became an exploration: it never merges.
+ open = false; note = webText("work.tl.merge_dropped")
+ } else if card.state == "answered" {
+ note = webText(chose + card.choice)
+ } else if card.state == "resolved" {
+ note = webText(resolved)
+ }
+ // chat_page.go links a preview only on an open merge card, and always
+ // through /tasks/<id>/preview (the sandboxed, checked wrapper).
+ let preview = card.kind == "merge" && open && !(card.previewUrl ?? "").isEmpty
+ return DecisionView(line: card.question, open: open, choices: open ? choices : [], note: note, hasPreview: preview)
+ }
+
+ /// The web's preview page for a card's task: Equipo's own wrapper, which
+ /// refuses unsafe addresses and expired candidates.
+ public static func previewURL(_ card: ThinCard, origin: URL) -> URL {
+ origin.appendingPathComponent("tasks").appendingPathComponent(card.taskId).appendingPathComponent("preview")
+ }
+
+ /// A web copy key's words in the catalog, or nil when the catalog has none.
+ static func webText(_ key: String) -> String? {
+ let text = EquipoStrings.text(.init(key))
+ return text == key ? nil : text
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index 81ab2ab6..415c5a7b 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -244,6 +244,171 @@
}
}
},
+ "chat.card.merge": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merge"
+ }
+ }
+ }
+ },
+ "chat.card.merge_chose_merge": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merging without checks."
+ }
+ }
+ }
+ },
+ "chat.card.merge_chose_not_now": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Not now."
+ }
+ }
+ }
+ },
+ "chat.card.merge_chose_wait": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Waiting for checks."
+ }
+ }
+ }
+ },
+ "chat.card.merge_chose_wait_mac": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Waiting for a Mac."
+ }
+ }
+ }
+ },
+ "chat.card.merge_policy_stale": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "The merge rules changed since I asked, so nothing was saved."
+ }
+ }
+ }
+ },
+ "chat.card.merge_resolved": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nothing to decide any more."
+ }
+ }
+ }
+ },
+ "chat.card.not_now": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Not now"
+ }
+ }
+ }
+ },
+ "chat.card.not_ships": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It doesn't"
+ }
+ }
+ }
+ },
+ "chat.card.preview_link": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open the preview"
+ }
+ }
+ }
+ },
+ "chat.card.ships": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "It ships"
+ }
+ }
+ }
+ },
+ "chat.card.ships_chose_not_ships": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Main isn't a release, so I can merge small changes on my own when the other rules allow."
+ }
+ }
+ }
+ },
+ "chat.card.ships_chose_ships": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Merging to main ships to users, so I'll ask before merging without checks."
+ }
+ }
+ }
+ },
+ "chat.card.wait": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Wait for checks"
+ }
+ }
+ }
+ },
+ "chat.card.wait_mac": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Wait for a Mac"
+ }
+ }
+ }
+ },
"checks.cannot_run": {
"extractionState": "manual",
"localizations": {
@@ -1574,6 +1739,17 @@
}
}
}
+ },
+ "work.tl.merge_dropped": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "An earlier attempt to add this change was dropped when the task became an exploration."
+ }
+ }
+ }
}
}
}
diff --git a/native/apple/Sources/EquipoKit/UI/LiveCards.swift b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
index 4538cddc..0e9e052e 100644
--- a/native/apple/Sources/EquipoKit/UI/LiveCards.swift
+++ b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
@@ -10,7 +10,7 @@ struct LiveQuestionCard: View {
let session: EquipoSession
@State private var phase: Phase = .open
- enum Phase: Equatable { case open, sending(String), changed, offline, failed }
+ enum Phase: Equatable { case open, sending(String), changed(at: Int64), offline, failed }
var body: some View {
RaisedCard(flat: !card.isOpen) {
@@ -29,7 +29,9 @@ struct LiveQuestionCard: View {
}
}
.accessibilityElement(children: .contain)
- .onChange(of: card.revision) { _, _ in if phase == .changed { phase = .open } }
+ .onChange(of: card.revision) { _, now in
+ if case .changed(let at) = phase, !AnswerFeedback.stillChanged(conflictAt: at, now: now) { phase = .open }
+ }
}
private var isSending: Bool { if case .sending = phase { return true }; return false }
@@ -66,39 +68,110 @@ struct LiveQuestionCard: View {
phase = .sending(choice)
switch await session.answer(card, choice: choice) {
case .answered: phase = .open
- case .changed: phase = .changed
+ case .changed: phase = .changed(at: session.cards.first { $0.id == card.id }?.revision ?? card.revision)
case .offline: phase = .offline
case .failed: phase = .failed
}
}
}
-/// A decision this slice does not take natively: merges, approvals and the
-/// rest open the web app, where the full context and the must-match
-/// behaviour already are (sync proposal, parity rows R-02 and R-03).
+/// A decision card. Merges and "Does main ship?" are answered here, in the
+/// web's words (Feed.decision); every other decision opens the web app,
+/// where its full context is.
struct LiveDecisionCard: View {
let card: ThinCard
let taskTitle: String?
- let origin: URL
+ let session: EquipoSession
+ @State private var phase: Phase = .open
@Environment(\.openURL) private var openURL
+
+ enum Phase: Equatable { case open, sending(String), changed(at: Int64), offline, failed }
+
var body: some View {
- RaisedCard(flat: !card.isOpen) {
- if let taskTitle, !card.question.contains(taskTitle) {
+ let view = Feed.decision(card, task: session.task(card.taskId))
+ RaisedCard(flat: !(view?.open ?? card.isOpen)) {
+ if let taskTitle, !card.question.isEmpty, !card.question.contains(taskTitle) {
Text(taskTitle).font(Typo.caption).foregroundStyle(Palette.secondary)
}
- CardHead(text: card.question.isEmpty ? (taskTitle ?? String(localized: "decision.untitled", bundle: .module)) : card.question)
- if card.isOpen {
- Text(String(localized: "decision.on_web", bundle: .module)).font(Typo.secondary).foregroundStyle(Palette.secondary)
- .fixedSize(horizontal: false, vertical: true)
- RosterButton(title: String(localized: "card.open_on_web", bundle: .module), primary: true) {
- openURL(Feed.webURL(for: card, origin: origin))
- }
+ if let view, view.showsOnlyNote, let note = view.note {
+ // As the web's equipo-card-done: the outcome alone.
+ Label { Text(note) } icon: { Image(systemName: "checkmark") }
+ .font(Typo.secondaryStrong).foregroundStyle(Palette.positive)
} else {
- QuietLink(title: String(localized: "card.open_on_web", bundle: .module), icon: "arrow.up.right") {
- openURL(Feed.webURL(for: card, origin: origin))
+ CardHead(text: card.question.isEmpty ? (taskTitle ?? String(localized: "decision.untitled", bundle: .module)) : card.question)
+ if let view {
+ answerable(view)
+ } else if card.isOpen {
+ Text(String(localized: "decision.on_web", bundle: .module)).font(Typo.secondary).foregroundStyle(Palette.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ RosterButton(title: String(localized: "card.open_on_web", bundle: .module), primary: true) {
+ openURL(Feed.webURL(for: card, origin: session.origin))
+ }
+ } else {
+ QuietLink(title: String(localized: "card.open_on_web", bundle: .module), icon: "arrow.up.right") {
+ openURL(Feed.webURL(for: card, origin: session.origin))
+ }
}
}
}
+ .accessibilityElement(children: .contain)
+ .onChange(of: card.revision) { _, now in
+ if case .changed(let at) = phase, !AnswerFeedback.stillChanged(conflictAt: at, now: now) { phase = .open }
+ }
+ }
+
+ @ViewBuilder private func answerable(_ view: DecisionView) -> some View {
+ if view.hasPreview {
+ QuietLink(title: String(localized: "chat.card.preview_link", bundle: .module), icon: "arrow.up.right") {
+ openURL(Feed.previewURL(card, origin: session.origin))
+ }
+ }
+ if view.open {
+ let sending: String? = { if case .sending(let v) = phase { return v }; return nil }()
+ ViewThatFits(in: .horizontal) {
+ HStack(spacing: 10) { buttons(view, sending: sending) }
+ VStack(spacing: 10) { buttons(view, sending: sending) }
+ }
+ feedback
+ }
+ }
+
+ @ViewBuilder private func buttons(_ view: DecisionView, sending: String?) -> some View {
+ ForEach(view.choices) { choice in
+ RosterButton(title: choice.label, primary: choice.primary, expanded: true,
+ busy: sending == choice.value ? String(localized: "action.sending", bundle: .module) : nil) {
+ Task { await submit(choice.value) }
+ }
+ .disabled(sending != nil)
+ }
+ }
+
+ @ViewBuilder private var feedback: some View {
+ switch phase {
+ case .changed: Text(String(localized: "card.changed", bundle: .module)).font(Typo.secondary).foregroundStyle(Palette.negative)
+ case .offline: Text(String(localized: "card.offline", bundle: .module)).font(Typo.secondary).foregroundStyle(Palette.negative)
+ case .failed: Text(String(localized: "card.failed", bundle: .module)).font(Typo.secondary).foregroundStyle(Palette.negative)
+ default: EmptyView()
+ }
+ }
+
+ private func submit(_ choice: String) async {
+ if case .sending = phase { return }
+ phase = .sending(choice)
+ let outcome = await session.answer(card, choice: choice)
+ switch outcome {
+ case .answered: phase = .open
+ case .changed:
+ // The card as it is now, after the conflict: the message stays until it moves past it.
+ phase = .changed(at: session.cards.first { $0.id == card.id }?.revision ?? card.revision)
+ announce(String(localized: "card.changed", bundle: .module))
+ case .offline: phase = .offline; announce(String(localized: "card.offline", bundle: .module))
+ case .failed: phase = .failed; announce(String(localized: "card.failed", bundle: .module))
+ }
+ }
+
+ private func announce(_ text: String) {
+ AccessibilityNotification.Announcement(text).post()
}
}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
index d3a73bfe..eaf354e0 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
@@ -58,7 +58,7 @@ public struct ConversationScreen: View {
case .decision(let card, let byline):
VStack(alignment: .leading, spacing: 8) {
Byline(byline: byline)
- LiveDecisionCard(card: card, taskTitle: session.task(card.taskId)?.title, origin: session.origin)
+ LiveDecisionCard(card: card, taskTitle: session.task(card.taskId)?.title, session: session)
}
case .receipt(let card, _):
LiveReceipt(card: card)
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
index 146c6db8..fd349991 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskScreens.swift
@@ -102,7 +102,7 @@ struct TaskCards: View {
if card.kind == "question" {
LiveQuestionCard(card: card, taskTitle: nil, session: session)
} else {
- LiveDecisionCard(card: card, taskTitle: task.title, origin: session.origin)
+ LiveDecisionCard(card: card, taskTitle: task.title, session: session)
}
}
}
diff --git a/native/apple/Sources/EquipoMac/LiveTranscript.swift b/native/apple/Sources/EquipoMac/LiveTranscript.swift
index 8532e04d..7043e9ea 100644
--- a/native/apple/Sources/EquipoMac/LiveTranscript.swift
+++ b/native/apple/Sources/EquipoMac/LiveTranscript.swift
@@ -210,7 +210,7 @@ final class LiveTranscript: NSView {
}
private func questionCard(_ card: ThinCard, taskTitle: String?, width: CGFloat) -> RaisedPlate {
- if let seen = answeredRevision[card.id], seen != card.revision {
+ if let seen = answeredRevision[card.id], !AnswerFeedback.stillChanged(conflictAt: seen, now: card.revision) {
if case .sending = answers[card.id] {} else { answers[card.id] = nil; answeredRevision[card.id] = nil }
}
let state = answers[card.id]
@@ -277,7 +277,10 @@ final class LiveTranscript: NSView {
guard let self else { return }
switch outcome {
case .answered: self.answers[card.id] = nil
- case .changed: self.answers[card.id] = .changed
+ case .changed:
+ self.answers[card.id] = .changed
+ // The card as it is now: the message stays until it moves past it.
+ self.answeredRevision[card.id] = session.cards.first { $0.id == card.id }?.revision ?? card.revision
case .offline: self.answers[card.id] = .offline
case .failed: self.answers[card.id] = .failed
}
@@ -286,7 +289,8 @@ final class LiveTranscript: NSView {
}
private func decisionCard(_ card: ThinCard, taskTitle: String?, width: CGFloat) -> RaisedPlate {
- let plate = RaisedPlate(width: width, height: 0, flat: !card.isOpen)
+ let open = Feed.decision(card, task: session.task(card.taskId))?.open ?? card.isOpen
+ let plate = RaisedPlate(width: width, height: 0, flat: !open)
let inner = width - 2 * MacMetric.pad
var y = MacMetric.pad
func add(_ view: NSView, gap: CGFloat = MacMetric.gap) {
@@ -295,8 +299,56 @@ final class LiveTranscript: NSView {
if let taskTitle, !card.question.isEmpty, !card.question.contains(taskTitle) {
add(makeText(taskTitle, MacType.caption, .webSecondary, width: inner), gap: 4)
}
+ let decision = Feed.decision(card, task: session.task(card.taskId))
+ if let decision, decision.showsOnlyNote, let note = decision.note {
+ // As the web's equipo-card-done: the outcome alone.
+ add(outcome(note, width: inner))
+ return finish(plate, height: y - MacMetric.gap + MacMetric.pad)
+ }
let head = card.question.isEmpty ? (taskTitle ?? EquipoStrings.text("decision.untitled")) : card.question
add(makeText(head, MacType.line, .webText, width: inner, lineSpacing: 2, selectable: true), gap: 4)
+ // Merges and "Does main ship?" are answered here, in the web's words.
+ if let view = decision {
+ if view.hasPreview {
+ let preview = Feed.previewURL(card, origin: session.origin)
+ add(button(EquipoStrings.text("chat.card.preview_link"), .link) { NSWorkspace.shared.open(preview) })
+ }
+ if view.open {
+ if let seen = answeredRevision[card.id], !AnswerFeedback.stillChanged(conflictAt: seen, now: card.revision) {
+ if case .sending = answers[card.id] {} else { answers[card.id] = nil; answeredRevision[card.id] = nil }
+ }
+ let state = answers[card.id]
+ let sending: String? = { if case .sending(let v) = state { return v }; return nil }()
+ let gap: CGFloat = 10
+ let w = floor((inner - gap * CGFloat(max(view.choices.count - 1, 0))) / CGFloat(max(view.choices.count, 1)))
+ for (index, choice) in view.choices.enumerated() {
+ let busy = sending == choice.value ? EquipoStrings.text("action.sending") : nil
+ let b = button(choice.label, choice.primary ? .primary : .choice, busy: busy) { [weak self] in
+ self?.submit(card: card, choice: choice.value)
+ }
+ if sending != nil && sending != choice.value { b.isEnabled = false }
+ b.frame = NSRect(x: MacMetric.pad + CGFloat(index) * (w + gap), y: y, width: w, height: 32)
+ b.setAccessibilityLabel(busy ?? choice.label)
+ plate.content.addSubview(b)
+ }
+ y += 32 + MacMetric.gap
+ let feedback: String? = {
+ switch state {
+ case .changed: return EquipoStrings.text("card.changed")
+ case .offline: return EquipoStrings.text("card.offline")
+ case .failed: return EquipoStrings.text("card.failed")
+ default: return nil
+ }
+ }()
+ if let feedback {
+ let line = makeText(feedback, MacType.small, .webNegative, width: inner)
+ line.setAccessibilityRole(.staticText)
+ add(line)
+ NSAccessibility.post(element: line, notification: .announcementRequested, userInfo: [.announcement: feedback])
+ }
+ }
+ return finish(plate, height: y - MacMetric.gap + MacMetric.pad)
+ }
if card.isOpen {
add(makeText(EquipoStrings.text("decision.on_web"), MacType.small, .webSecondary, width: inner))
}
diff --git a/native/apple/Tests/EquipoKitTests/MergeCardTests.swift b/native/apple/Tests/EquipoKitTests/MergeCardTests.swift
new file mode 100644
index 00000000..49f640db
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/MergeCardTests.swift
@@ -0,0 +1,95 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+
+/// Merges answered on the device must match the web (parity row R-02,
+/// must_match): the server's question, the same choices in the same order
+/// with the same words, the same primary, and the same outcome line.
+@MainActor @Suite struct MergeCardTests {
+ private func cards() throws -> [ThinCard] {
+ let snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ return snapshot.cards ?? []
+ }
+
+ @Test func anOpenMergeIsAnsweredHereInTheWebsWords() throws {
+ let card = try #require(try cards().first { $0.kind == "merge" && $0.state == "open" })
+ let view = try #require(Feed.decision(card, task: nil))
+ #expect(view.open)
+ #expect(view.line == card.question, "the server's question, as the web shows it")
+ #expect(view.choices.map(\.value) == ["merge", "wait_mac"], "the server's choices, in its order")
+ #expect(view.choices.map(\.label) == ["Merge", "Wait for a Mac"])
+ #expect(view.choices.filter(\.primary).map(\.value) == ["merge"], "Merge is primary, as on the web")
+ #expect(view.note == nil)
+ }
+
+ @Test func anAnsweredMergeSaysWhatWasChosen() throws {
+ let card = try #require(try cards().first { $0.kind == "merge" && $0.state == "answered" })
+ let view = try #require(Feed.decision(card, task: nil))
+ #expect(!view.open)
+ #expect(view.note == "Merging without checks.")
+ var resolved = card; resolved.state = "resolved"
+ #expect(Feed.decision(resolved, task: nil)?.note == "Nothing to decide any more.")
+ }
+
+ @Test func doesMainShipHasItsOwnPrimaryAndOutcome() throws {
+ var card = try #require(try cards().first { $0.kind == "merge_ships" })
+ let view = try #require(Feed.decision(card, task: nil))
+ #expect(view.choices.map(\.label) == ["It ships", "It doesn't"])
+ #expect(view.choices.filter(\.primary).map(\.value) == ["not_ships"])
+ card.state = "answered"; card.choice = "ships"
+ #expect(Feed.decision(card, task: nil)?.note == "Merging to main ships to users, so I'll ask before merging without checks.")
+ }
+
+ @Test func aMergeFromBeforeAnExplorationIsClosed() throws {
+ let card = try #require(try cards().first { $0.kind == "merge" && $0.state == "open" })
+ let tasks: ThinList<ThinTask> = try Fixture.decode("thin/tasks")
+ var task = try #require(tasks.items?.first); task.kind = "explore"
+ let view = try #require(Feed.decision(card, task: task))
+ #expect(!view.open)
+ #expect(view.note == "An earlier attempt to add this change was dropped when the task became an exploration.")
+ }
+
+ @Test func anUnknownChoiceSendsYouToTheWeb() throws {
+ var card = try #require(try cards().first { $0.kind == "merge" && $0.state == "open" })
+ card.options = ["merge", "something_new"]
+ #expect(Feed.decision(card, task: nil) == nil, "a choice with no words is never guessed at")
+ for kind in ["publish", "direction", "merge_policy", "specialist", "question"] {
+ var other = try #require(try cards().first { $0.kind == "merge" && $0.state == "open" })
+ other.kind = kind
+ #expect(Feed.decision(other, task: nil) == nil, "\(kind) still opens the web, even with choices that have words")
+ }
+ }
+
+ @Test func thePreviewOpensThroughTheWebsWrapperOnly() throws {
+ let origin = URL(string: "https://team.example.test")!
+ var card = try #require(try cards().first { $0.kind == "merge" && $0.state == "open" })
+ #expect(Feed.decision(card, task: nil)?.hasPreview == false, "no preview yet, no link")
+ // Whatever the candidate's own address, the device opens Equipo's wrapper page.
+ for raw in ["https://preview.example.test/x", "https://equipo.example@evil.test/", "javascript:alert(1)"] {
+ card.previewUrl = raw
+ #expect(Feed.decision(card, task: nil)?.hasPreview == true)
+ #expect(Feed.previewURL(card, origin: origin).absoluteString == "https://team.example.test/tasks/\(card.taskId)/preview")
+ }
+ var ships = try #require(try cards().first { $0.kind == "merge_ships" })
+ ships.previewUrl = "https://preview.example.test/x"
+ #expect(Feed.decision(ships, task: nil)?.hasPreview == false, "the web links a preview only on merge cards")
+ }
+
+ @Test func aClosedCardShowsOnlyItsOutcome() throws {
+ var card = try #require(try cards().first { $0.kind == "merge" && $0.state == "answered" })
+ card.previewUrl = "https://preview.example.test/x"
+ let view = try #require(Feed.decision(card, task: nil))
+ #expect(view.showsOnlyNote, "as chat.html's equipo-card-done: the note and nothing else")
+ #expect(!view.hasPreview)
+ var ships = try #require(try cards().first { $0.kind == "merge_ships" })
+ ships.options = []
+ let empty = try #require(Feed.decision(ships, task: nil))
+ #expect(!empty.open, "a ships card with no choices is not open, as on the web")
+ }
+
+ @Test func aChangedCardKeepsSayingSoUntilItMovesOn() {
+ // The conflict returns the card at revision 7: the message stays at 7 and goes after it.
+ #expect(AnswerFeedback.stillChanged(conflictAt: 7, now: 7))
+ #expect(!AnswerFeedback.stillChanged(conflictAt: 7, now: 8))
+ }
+}
diff --git a/native/scripts/check-native.sh b/native/scripts/check-native.sh
index ffb16940..13cb067a 100755
--- a/native/scripts/check-native.sh
+++ b/native/scripts/check-native.sh
@@ -7,6 +7,7 @@ cd "$(dirname "$0")/.."
logs=build/logs; mkdir -p "$logs"
python3 scripts/check-fixtures.py
python3 scripts/check-strings.py
+python3 scripts/check-parity.py
# The repository-wide reference scan (make ci) reads native files too.
python3 ../scripts/runner-dead-references.py
swift test --package-path apple > "$logs/swift-test.log" 2>&1 || { tail -40 "$logs/swift-test.log"; exit 1; }
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py
new file mode 100755
index 00000000..2d0a11c4
--- /dev/null
+++ b/native/scripts/check-parity.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+"""Keep the native apps in the web's words where they must match.
+
+Every native string whose key is one of the web's copy keys (chat.card.*,
+work.tl.*) must equal copy.go's text for that key, so a merge card says
+exactly what the web says (sync proposal, parity row R-02)."""
+import json, re, sys
+from pathlib import Path
+
+native = Path(__file__).resolve().parents[1]
+strings = json.loads((native / 'scripts/strings.json').read_text())
+copy = (native.parent / 'internal/equipo/copy.go').read_text()
+problems, checked = [], 0
+# Every outcome the web can show for a decision answered here needs native
+# words, or the answered card would silently show none.
+for pattern in (r'chat\.card\.merge_chose_\w+', r'chat\.card\.ships_chose_\w+'):
+ for key in sorted(set(re.findall('"(' + pattern + ')":', copy))):
+ if key not in strings:
+ problems.append(f'{key}: the web has this outcome; native has no words for it')
+for key, text in sorted(strings.items()):
+ if not key.startswith(('chat.card.', 'work.tl.')):
+ continue
+ found = re.findall(r'"' + re.escape(key) + r'":\s*"((?:[^"\\]|\\.)*)"', copy)
+ if len(found) != 1:
+ problems.append(f'{key}: found {len(found)} times in copy.go, expected once'); continue
+ web = json.loads('"' + found[0] + '"')
+ checked += 1
+ if web != text:
+ problems.append(f'{key}: native says {text!r}, the web says {web!r}')
+for p in problems: print(p)
+if problems: sys.exit(1)
+print(f'{checked} native strings match the web')
diff --git a/native/scripts/check-strings.py b/native/scripts/check-strings.py
index f0600a09..e81d8b18 100755
--- a/native/scripts/check-strings.py
+++ b/native/scripts/check-strings.py
@@ -43,6 +43,6 @@ for p in problems: print(p)
if problems: sys.exit(1)
# Facts look their words up by a key made from the wire value
# (TaskReport.facts); FactWordsTests checks each one resolves.
-computed = {k for k in source if k.startswith(('checks.', 'review.'))}
+computed = {k for k in source if k.startswith(('checks.', 'review.', 'chat.card.', 'work.tl.'))}
unused = sorted(source.keys() - used_keys() - computed)
print(f'{len(source)} strings, all used keys present' + (f'; unused: {unused}' if unused else ''))
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index b5882da5..15aff146 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -21,6 +21,21 @@
"card.offline": "Couldn’t reach your team. Try again.",
"card.open_on_web": "Open in Equipo on the web",
"card.question": "Question",
+ "chat.card.merge": "Merge",
+ "chat.card.merge_chose_merge": "Merging without checks.",
+ "chat.card.merge_chose_not_now": "Not now.",
+ "chat.card.merge_chose_wait": "Waiting for checks.",
+ "chat.card.merge_chose_wait_mac": "Waiting for a Mac.",
+ "chat.card.merge_policy_stale": "The merge rules changed since I asked, so nothing was saved.",
+ "chat.card.merge_resolved": "Nothing to decide any more.",
+ "chat.card.not_now": "Not now",
+ "chat.card.not_ships": "It doesn't",
+ "chat.card.preview_link": "Open the preview",
+ "chat.card.ships": "It ships",
+ "chat.card.ships_chose_not_ships": "Main isn't a release, so I can merge small changes on my own when the other rules allow.",
+ "chat.card.ships_chose_ships": "Merging to main ships to users, so I'll ask before merging without checks.",
+ "chat.card.wait": "Wait for checks",
+ "chat.card.wait_mac": "Wait for a Mac",
"checks.cannot_run": "Can’t run here",
"checks.exit %@ %@": "%1$@, exit code %2$@",
"checks.failed": "Failed",
@@ -141,5 +156,6 @@
"thread.reading %@": "%@ is reading",
"thread.sent": "Sent",
"track.position %@ %@": "%1$@ of %2$@",
- "track.spoken %@": "Stage: %@"
+ "track.spoken %@": "Stage: %@",
+ "work.tl.merge_dropped": "An earlier attempt to add this change was dropped when the task became an exploration."
}