oficina / equipo Public

Drop pushes from an ended session and a stale permission ask

Astra's second review: activity tokens and passes are stamped with the
session generation and dropped after a change; another team never sends
the last team's activities; an activity the server says ended ends here;
a sign-out while the permission prompt is open is never undone by it;
sign-out unregisters even offline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev e8c76385299ba05ea9d191810686847ce4cbf244 parent 2602c0a
4 files changed, +115 −20
  • native/apple/Sources/EquipoKit/Push/LiveActivities.swift +17 −1
  • native/apple/Sources/EquipoKit/Push/Notifications.swift +47 −18
  • native/apple/Sources/EquipoKit/Push/PushRegistrar.swift +12 −1
  • native/apple/Tests/EquipoKitTests/PushTests.swift +39 −0

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/native__push: 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: image pulled in 9.8s
ci-box: claude: fetched and verified in 12.6s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: pi: installed and verified in 7.0s
ci-box: opencode: installed and verified in 2.0s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.0s
ci-box: clone deepened in 3.6s
ci-box: file times set from content: 2762 files, 182 directories
ci-box: ready in 25.6s
=== 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.1s
+ 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.231s 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.777s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.78s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.90, cpu waiting 21.37%, memory waiting 0.00%, io waiting 0.53%
--- 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 1m21.302s 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.74s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.74s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 35.47, cpu waiting 21.13%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m22.543s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.509s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m10.2s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.65s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.66s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 35.47, cpu waiting 20.16%, memory waiting 0.00%, io waiting 0.48%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m18.357s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.763s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.91s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.11s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.32s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 36.90, cpu waiting 21.37%, memory waiting 0.00%, io waiting 0.53%
--- 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 1m35.318s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m33.77s amadan.net/oficina/equipo/internal/headless
receipt: slow test 58.6s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.91s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.97s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.63s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.66s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 31.83, cpu waiting 16.83%, memory waiting 0.00%, io waiting 0.39%
--- 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 3m6.007s 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 3m4.034s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m43.1s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.9s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.4s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.1s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.31s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 8.75, cpu waiting 3.77%, memory waiting 0.00%, io waiting 0.08%
--- 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 354ms 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 2m0.946s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.87s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.46s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 6.01, cpu waiting 0.00%, memory waiting 0.00%, io waiting 1.90%
--- 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 361ms 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.072s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.4s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
receipt: slow test 2.38s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotNow
machine: 32 CPUs, load 6.01, cpu waiting 0.00%, memory waiting 0.00%, io waiting 1.90%
--- 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.933s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m40.901s 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.933s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.94s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.88s 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.45s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.83s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.00, cpu waiting 0.78%, memory waiting 0.00%, io waiting 0.01%
--- 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 47.084s 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.952s amadan.net/oficina/equipo/internal/runner
receipt: slow test 25.92s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 33.92, cpu waiting 20.40%, memory waiting 0.00%, io waiting 0.88%
--- 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.364s 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.496s amadan.net/oficina/equipo/internal/runner
receipt: slow test 34.59s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 30.48s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.37s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 33.92, cpu waiting 20.42%, memory waiting 0.00%, io waiting 0.91%
--- 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 34.421s 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 33.54s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.21s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.01s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 27.18, cpu waiting 13.75%, memory waiting 0.00%, io waiting 1.12%
--- 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 27.3%, load 24.06
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 1m4.407s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m2.633s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.73s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.66s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.65s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.25s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.04s amadan.net/oficina/equipo/internal/equipotest TestAuthorityGrantReferences
machine: 32 CPUs, load 33.73, cpu waiting 17.40%, memory waiting 0.00%, io waiting 0.40%
--- 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 27.3%, load 24.06
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 396ms 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 1m12.727s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 18.74s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 18.63s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 18.62s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 18.56s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 18.55s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
machine: 32 CPUs, load 24.06, cpu waiting 10.96%, memory waiting 0.00%, io waiting 1.19%
--- 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 27.3%, load 24.06
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.851s 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.471s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.46s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.95s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.92s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.88s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 27.40, cpu waiting 14.73%, memory waiting 0.00%, io waiting 0.34%
--- 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 27.3%, load 24.06
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 436ms 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.039s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.62s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.59s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24.56s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.61s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 22.6s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 24.06, cpu waiting 10.96%, memory waiting 0.00%, io waiting 1.19%
--- 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.3%, load 24.06
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 662ms 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.551s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 3.56s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.42s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.23s amadan.net/oficina/equipo/internal/plan3test TestOnboardingAccountMigration
machine: 32 CPUs, load 24.06, cpu waiting 11.98%, memory waiting 0.00%, io waiting 1.15%
--- 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.3%, load 24.06
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/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: 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
--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN   TestTimeouts
    fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:302 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.61s)

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

budget note: internal/equipo took 28.65s, 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 10.277s, 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/setup took 10.803s, 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 51.406s, 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 42.028s, 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.864s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.719s against a 60s target (the gate's other steps are not in this figure)
receipt: 10 packages ran, 49 cached, 18 without tests, 1 failed
receipt: slow package 56.678s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 52.892s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.094s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 51.406s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 42.028s amadan.net/oficina/equipo/internal/release
receipt: slow test 51.48s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 21.21s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 15.78s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 15.24s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread   (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest e8c76385299ba05ea9d191810686847ce4cbf244 0.61s 11.81
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 11.81, cpu waiting 5.09%, memory waiting 0.00%, io waiting 0.11%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m22.199s 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.82s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.17s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.07s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.81s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.82s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 35.47, cpu waiting 20.16%, memory waiting 0.00%, io waiting 0.48%
--- 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 1m31.146s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m29.631s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.11s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.05s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.79s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.01s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.84s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 33.73, cpu waiting 17.92%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m39.982s 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 1m38.309s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.98s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.82s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 10.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 29.52, cpu waiting 15.75%, memory waiting 0.00%, io waiting 0.36%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-20T14:56:54.577Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T14:56:54.577Z level=INFO msg="startup phase done" phase=state_lock took=59µs
time=2026-11-20T14:56:54.577Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T14:56:54.577Z level=INFO msg="startup phase done" phase=claim_roots took=111µs
time=2026-11-20T14:56:54.577Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T14:56:54.611Z level=INFO msg="startup phase done" phase=sweep took=33.688ms
time=2026-11-20T14:56:54.611Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T14:56:54.611Z level=INFO msg="startup phase done" phase=credentials took=107µs
time=2026-11-20T14:56:54.611Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T14:56:54.656Z level=INFO msg="startup phase done" phase=open_state took=44.234ms
time=2026-11-20T14:56:54.656Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T14:56:54.659Z level=INFO msg=connecting host=127.0.0.1:41727 protocol=28
time=2026-11-20T14:56:54.661Z level=INFO msg=connected host=127.0.0.1:41727 took=1.698ms
time=2026-11-20T14:56:54.661Z level=INFO msg="capabilities gathering"
time=2026-11-20T14:56:54.662Z level=INFO msg="capabilities gathered" took=1.024ms tags=linux,claude,go
time=2026-11-20T14:56:54.663Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T14:56:54.669Z 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.80s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-20T14:57:24.903Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T14:57:24.903Z level=INFO msg="startup phase done" phase=state_lock took=69µs
time=2026-11-20T14:57:24.903Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T14:57:24.903Z level=INFO msg="startup phase done" phase=claim_roots took=123µs
time=2026-11-20T14:57:24.903Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T14:57:24.933Z level=INFO msg="startup phase done" phase=sweep took=29.738ms
time=2026-11-20T14:57:24.933Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T14:57:24.933Z level=INFO msg="startup phase done" phase=credentials took=111µs
time=2026-11-20T14:57:24.933Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T14:57:24.972Z level=INFO msg="startup phase done" phase=open_state took=38.977ms
time=2026-11-20T14:57:24.972Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T14:57:24.974Z level=INFO msg=connecting host=127.0.0.1:37715 protocol=28
time=2026-11-20T14:57:24.975Z level=INFO msg=connected host=127.0.0.1:37715 took=1.013ms
time=2026-11-20T14:57:24.975Z level=INFO msg="capabilities gathering"
time=2026-11-20T14:57:24.975Z level=INFO msg="capabilities gathered" took=458µs tags=linux,claude,go
time=2026-11-20T14:57:24.976Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T14:57:24.983Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T14:57:25.978Z 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.83s)

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


receipt: test step 1m27.166s 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.924s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.05s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.02s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.33s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.25s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 7.98s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
rastrillo: budget test: go test failed
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 e8c76385299ba05ea9d191810686847ce4cbf244 1.80s 34.23
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest e8c76385299ba05ea9d191810686847ce4cbf244 5.83s 34.23
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 29.52, cpu waiting 15.75%, memory waiting 0.00%, io waiting 0.36%
--- 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 224ms 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 612ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 610ms 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 188ms 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.606s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.61s 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 242ms 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.842s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.84s 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|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 265ms 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 3m23.239s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.64s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.32s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.51s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.32s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 6.01, cpu waiting 1.02%, memory waiting 0.00%, io waiting 1.91%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.26s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.28s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.13s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.73s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.82s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (62s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.54s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 13.84s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 20.20s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.99s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 19.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 37.98, cpu waiting 21.73%, memory waiting 0.00%, io waiting 0.70%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 8.202s 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 7.179s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 168ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 121ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.07s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.72s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 2.978s 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.677s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 260ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 12.38, cpu waiting 4.41%, memory waiting 0.00%, io waiting 1.61%
--- 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.3%, load 24.06
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2475 text files, 2846 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.446s
machine: 32 CPUs, load 33.92, cpu waiting 20.42%, memory waiting 0.00%, io waiting 0.91%
--- 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 27.3%, load 24.06
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 24.06, cpu waiting 13.75%, memory waiting 0.00%, io waiting 1.12%
--- 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.3%, load 24.06
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 27.18, cpu waiting 15.00%, memory waiting 0.00%, io waiting 1.08%
--- 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 27.3%, load 24.06
shard 28: make gitleaks
2:56PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
2:56PM INF 1055 commits scanned.
2:56PM INF scanned ~60270477 bytes (60.27 MB) in 13.4s
2:56PM INF no leaks found
machine: 32 CPUs, load 30.69, cpu waiting 19.89%, memory waiting 0.00%, io waiting 0.94%
=== 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.107ms, worst 1.165ms, budget 150ms
perf: GET /api/runner/protocol: median 66µs, worst 117µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 581µs, worst 631µs, budget 150ms
perf: GET /api/v1/accounts: median 408µs, worst 436µs, budget 150ms
perf: GET /api/v1/auth/devices: median 421µs, worst 462µs, budget 150ms
perf: GET /api/v1/budgets: median 485µs, worst 514µs, budget 150ms
perf: GET /api/v1/capabilities: median 236µs, worst 278µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.18ms, worst 1.259ms, budget 150ms
perf: GET /api/v1/connections: median 566µs, worst 596µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 518µs, worst 556µs, budget 150ms
perf: GET /api/v1/conversation: median 921µs, worst 977µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.509ms, worst 1.532ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.692ms, worst 1.915ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 432µs, worst 457µs, budget 150ms
perf: GET /api/v1/journey: median 9.488ms, worst 9.673ms, budget 150ms
perf: GET /api/v1/me: median 461µs, worst 515µs, budget 150ms
perf: GET /api/v1/me/settings: median 560µs, worst 655µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.816ms, worst 8.916ms, budget 150ms
perf: GET /api/v1/notifications: median 1.605ms, worst 1.713ms, budget 150ms
perf: GET /api/v1/onboarding: median 395µs, worst 421µs, budget 150ms
perf: GET /api/v1/people: median 445µs, worst 458µs, budget 150ms
perf: GET /api/v1/playbooks: median 591µs, worst 634µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 515µs, worst 554µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 837µs, worst 899µs, budget 150ms
perf: GET /api/v1/preferences: median 744µs, worst 788µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 451µs, worst 529µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 590µs, worst 652µs, budget 150ms
perf: GET /api/v1/roster: median 460µs, worst 554µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 424µs, worst 467µs, budget 150ms
perf: GET /api/v1/specialists: median 8.169ms, worst 8.389ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.003ms, worst 8.155ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 883µs, worst 906µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.141ms, worst 1.216ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 742µs, worst 786µs, budget 150ms
perf: GET /api/v1/teams: median 433µs, worst 490µs, budget 150ms
perf: GET /api/v1/templates: median 625µs, worst 644µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 450µs, worst 517µs, budget 150ms
perf: GET /auth/callback: median 71µs, worst 102µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.392ms, worst 5.575ms, budget 150ms
perf: GET /auth/verify: median 75µs, worst 103µs, budget 150ms
perf: GET /connections: median 3.764ms, worst 3.869ms, budget 150ms
perf: GET /conversation: median 7.396ms, worst 7.551ms, budget 150ms
perf: GET /conversation/connections: median 242µs, worst 283µs, budget 150ms
perf: GET /conversation/notebook: median 255µs, worst 284µs, budget 150ms
perf: GET /conversation/settings: median 3.928ms, worst 3.971ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.635ms, worst 3.766ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.483ms, worst 6.737ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.62ms, worst 6.818ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.831ms, worst 3.886ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.453ms, worst 4.66ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.641ms, worst 4.788ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.415ms, worst 4.567ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.275ms, worst 3.312ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.902ms, worst 4.021ms, budget 150ms
perf: GET /housekeeping: median 3.662ms, worst 3.824ms, budget 150ms
perf: GET /invites/new: median 579µs, worst 588µs, budget 150ms
perf: GET /invites/{id}: median 618µs, worst 656µs, budget 150ms
perf: GET /jobs: median 3.178ms, worst 3.312ms, budget 150ms
perf: GET /jobs/{id}: median 4.226ms, worst 4.422ms, budget 150ms
perf: GET /journey: median 10.192ms, worst 12.882ms, budget 150ms
perf: GET /nav/rail: median 2.848ms, worst 2.915ms, budget 150ms
perf: GET /needs-you: median 9.642ms, worst 9.719ms, budget 150ms
perf: GET /onboarding: median 3.741ms, worst 3.84ms, budget 150ms
perf: GET /people: median 3.147ms, worst 3.343ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.443ms, worst 4.456ms, budget 150ms
perf: GET /playbooks: median 3.958ms, worst 3.983ms, budget 150ms
perf: GET /playbooks/new: median 4.068ms, worst 4.192ms, budget 150ms
perf: GET /playbooks/{id}: median 4.509ms, worst 4.583ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.63ms, worst 4.745ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.935ms, worst 6.014ms, budget 150ms
perf: GET /preferences: median 4.056ms, worst 4.141ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.798ms, worst 3.867ms, budget 150ms
perf: GET /projects: median 4.952ms, worst 5.007ms, budget 150ms
perf: GET /projects/accounts: median 3.4ms, worst 3.479ms, budget 150ms
perf: GET /projects/new: median 3.423ms, worst 3.474ms, budget 150ms
perf: GET /projects/{id}: median 9.926ms, worst 10.122ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.549ms, worst 3.608ms, budget 150ms
perf: GET /runners/enrol: median 4.184ms, worst 4.289ms, budget 150ms
perf: GET /settings: median 3.25ms, worst 3.306ms, budget 150ms
perf: GET /settings/coordinator: median 5.34ms, worst 5.59ms, budget 150ms
perf: GET /settings/devices: median 3.112ms, worst 3.214ms, budget 150ms
perf: GET /settings/recovery: median 3.264ms, worst 3.477ms, budget 150ms
perf: GET /settings/recovery/release: median 3.294ms, worst 3.346ms, budget 150ms
perf: GET /settings/thinking: median 247µs, worst 281µs, budget 150ms
perf: GET /signin: median 323µs, worst 334µs, budget 150ms
perf: GET /specialists/new: median 3.228ms, worst 3.344ms, budget 150ms
perf: GET /specialists/{key}: median 10.349ms, worst 10.547ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.435ms, worst 3.526ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.559ms, worst 3.631ms, budget 150ms
perf: GET /tasks: median 4.906ms, worst 4.998ms, budget 150ms
perf: GET /tasks/new: median 3.082ms, worst 3.174ms, budget 150ms
perf: GET /tasks/{id}: median 5.473ms, worst 5.529ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.661ms, worst 4.891ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.365ms, worst 4.577ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.496ms, worst 5.541ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.477ms, worst 1.539ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 4.978ms, worst 5.088ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.534ms, worst 4.633ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.085ms, worst 4.139ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.707ms, worst 7.809ms, budget 150ms
perf: GET /team/{specialist}: median 4.219ms, worst 6.532ms, budget 150ms
perf: GET /teams: median 10.028ms, worst 10.245ms, budget 150ms
perf: GET /templates: median 3.338ms, worst 3.434ms, budget 150ms
perf: GET /usage: median 4.143ms, worst 4.279ms, budget 150ms
perf: GET /work: median 2.94ms, worst 3.018ms, budget 150ms
perf: cold boot: median 255ms of [253.742582ms 254.680449ms 258.963062ms], budget 500ms

receipt: test step 29.172s 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.764s 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.95s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 820ms 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 19806 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27329 files
diff --git a/native/apple/Sources/EquipoKit/Push/LiveActivities.swift b/native/apple/Sources/EquipoKit/Push/LiveActivities.swift
index ba8a8bd0..890dc2e4 100644
--- a/native/apple/Sources/EquipoKit/Push/LiveActivities.swift
+++ b/native/apple/Sources/EquipoKit/Push/LiveActivities.swift
@@ -33,6 +33,7 @@ public enum LiveActivityPolicy {
public final class LiveActivities {
private let registrar: PushRegistrar
private var observed: Set<String> = []
+ private var observers: [Task<Void, Never>] = []
private var started = false
public init(registrar: PushRegistrar) {
@@ -40,6 +41,15 @@ public final class LiveActivities {
// A task the server says is over (409 task_ended, or not this
// person's) leaves the Lock Screen at once.
registrar.onActivityClosed = { task in Task { await Self.end(task: task) } }
+ // A new session: observers start again, bound to it.
+ registrar.onSessionChanged = { [weak self] in self?.reobserve() }
+ }
+
+ private func reobserve() {
+ observers.forEach { $0.cancel() }
+ observers = []; observed = []
+ guard started else { return }
+ for activity in Activity<EquipoTaskAttributes>.activities { observe(activity) }
}
public func start() {
@@ -61,7 +71,13 @@ public final class LiveActivities {
let task = activity.attributes.taskID
let tokens = activity.pushTokenUpdates
let states = activity.activityStateUpdates
- Task { for await token in tokens { await registrar.activityTokenChanged(token, task: task) } }
+ let generation = registrar.generation
+ observers.append(Task {
+ for await token in tokens {
+ if Task.isCancelled { return }
+ await registrar.activityTokenChanged(token, task: task, generation: generation)
+ }
+ })
Task {
for await state in states where state == .ended || state == .dismissed {
registrar.activityEnded(task: task)
diff --git a/native/apple/Sources/EquipoKit/Push/Notifications.swift b/native/apple/Sources/EquipoKit/Push/Notifications.swift
index 8921fbd3..bb485853 100644
--- a/native/apple/Sources/EquipoKit/Push/Notifications.swift
+++ b/native/apple/Sources/EquipoKit/Push/Notifications.swift
@@ -20,6 +20,31 @@ public protocol NotificationSystem: AnyObject {
func unregister()
}
+/// Asking for permission, then registering with APNs, so that a sign-out
+/// while the permission prompt is still open is never undone by it: each
+/// request is stamped, and `stop` makes every earlier one stale.
+@MainActor
+public final class RemoteRegistration {
+ private let authorize: @MainActor () async -> Void
+ private let register: @MainActor () -> Void
+ private let unregister: @MainActor () -> Void
+ private var stamp = 0
+ public init(authorize: @escaping @MainActor () async -> Void, register: @escaping @MainActor () -> Void, unregister: @escaping @MainActor () -> Void) {
+ self.authorize = authorize; self.register = register; self.unregister = unregister
+ }
+ public func request() async {
+ stamp += 1
+ let mine = stamp
+ await authorize()
+ guard mine == stamp else { return }
+ register()
+ }
+ public func stop() {
+ stamp += 1
+ unregister()
+ }
+}
+
/// UNUserNotificationCenter and APNs registration, for both apps. Alerts
/// that wait on you have the category `needs_you`, with no actions: a
/// notification opens the app, and you answer there (D4).
@@ -28,6 +53,25 @@ public final class SystemNotifications: NSObject, NotificationSystem, UNUserNoti
public static let needsYouCategory = "needs_you"
/// Called with where a tapped notification goes.
public var onRoute: ((PushRoute) -> Void)?
+ private let remote = RemoteRegistration(
+ authorize: { _ = try? await UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) },
+ register: {
+ #if os(iOS)
+ UIApplication.shared.registerForRemoteNotifications()
+ #else
+ NSApplication.shared.registerForRemoteNotifications()
+ #endif
+ },
+ unregister: {
+ let center = UNUserNotificationCenter.current()
+ center.removeAllDeliveredNotifications()
+ center.removeAllPendingNotificationRequests()
+ #if os(iOS)
+ UIApplication.shared.unregisterForRemoteNotifications()
+ #else
+ NSApplication.shared.unregisterForRemoteNotifications()
+ #endif
+ })
public override init() {
super.init()
@@ -37,30 +81,15 @@ public final class SystemNotifications: NSObject, NotificationSystem, UNUserNoti
}
public func askAndRegister() {
- Task {
- _ = try? await UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound])
- #if os(iOS)
- UIApplication.shared.registerForRemoteNotifications()
- #else
- NSApplication.shared.registerForRemoteNotifications()
- #endif
- }
+ let remote = self.remote
+ Task { await remote.request() }
}
public func setBadge(_ count: Int) {
UNUserNotificationCenter.current().setBadgeCount(max(0, count))
}
- public func unregister() {
- let center = UNUserNotificationCenter.current()
- center.removeAllDeliveredNotifications()
- center.removeAllPendingNotificationRequests()
- #if os(iOS)
- UIApplication.shared.unregisterForRemoteNotifications()
- #else
- NSApplication.shared.unregisterForRemoteNotifications()
- #endif
- }
+ public func unregister() { remote.stop() }
/// In front, a card or a finished task still shows; a reply goes to the
/// list only, since the conversation is right there.
diff --git a/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift b/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift
index 9c184025..52b73edc 100644
--- a/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift
+++ b/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift
@@ -28,7 +28,10 @@ public final class PushRegistrar {
private var again = false
/// Moves on with every change of session: a pass that was waiting on the
/// network when the session changed sends nothing more and records nothing.
- private var generation = 0
+ public private(set) var generation = 0
+ /// Called when the session changes, so activity observers start again
+ /// bound to the new session (their old buffered tokens are dropped).
+ public var onSessionChanged: (() -> Void)?
/// Called with a task whose activity the server will never take (it
/// ended, or is not this person's): the app ends it on this device.
public var onActivityClosed: ((String) -> Void)?
@@ -45,6 +48,8 @@ public final class PushRegistrar {
// Another session (another team, a new credential, or none): it
// never gets the last session's activity tokens.
activities = [:]; acceptedActivities = [:]; closedActivities = [:]
+ self.client = client
+ onSessionChanged?()
}
self.client = client
await sync()
@@ -62,6 +67,12 @@ public final class PushRegistrar {
}
/// A running Live Activity's own token, for the server's updates.
public func activityTokenChanged(_ token: Data, task: String) async {
+ await activityTokenChanged(token, task: task, generation: generation)
+ }
+ /// A token from an observer started in session `generation`: one from an
+ /// earlier session is dropped, never sent with the current bearer.
+ public func activityTokenChanged(_ token: Data, task: String, generation: Int) async {
+ guard generation == self.generation else { return }
activities[task] = PushToken.hex(token)
await sync()
}
diff --git a/native/apple/Tests/EquipoKitTests/PushTests.swift b/native/apple/Tests/EquipoKitTests/PushTests.swift
index a859052e..721e12ee 100644
--- a/native/apple/Tests/EquipoKitTests/PushTests.swift
+++ b/native/apple/Tests/EquipoKitTests/PushTests.swift
@@ -157,6 +157,22 @@ private func json(_ request: APIRequest) throws -> [String: String] {
#expect(other.isEmpty, "team A's activity tokens never go to team B's server")
}
+ @Test func aTokenFromAnEarlierSessionIsDropped() async throws {
+ let t = ScriptedTransport(); registered(t)
+ t.on("POST /push-registrations/activities", .success(APIResponse(status: 204, data: Data())))
+ let r = PushRegistrar(environment: .production, platform: .ios)
+ await r.attach(client(t))
+ await r.deviceTokenChanged(deviceToken)
+ let teamA = r.generation
+ var changes = 0
+ r.onSessionChanged = { changes += 1 }
+ await r.attach(client(t, "equipo.person.v1.OTHER"))
+ #expect(changes == 1, "observers are told to start again for the new session")
+ // An observer of team A's activity delivers a buffered token late.
+ await r.activityTokenChanged(startToken, task: "tkA", generation: teamA)
+ #expect(t.sent("POST /push-registrations/activities").isEmpty, "team A's token never reaches team B")
+ }
+
@Test func aPassSuspendedAcrossASessionChangeSendsNothingMore() async throws {
let inner = ScriptedTransport(); registered(inner)
inner.on("POST /push-registrations/activities", .success(APIResponse(status: 204, data: Data())))
@@ -354,6 +370,29 @@ final class GatedTransport: EquipoTransport, @unchecked Sendable {
func unregister() { unregistered += 1 }
}
+@MainActor @Suite struct RemoteRegistrationTests {
+ @Test func signingOutWhileAskingNeverRegistersAfterwards() async {
+ var calls: [String] = []
+ var release: CheckedContinuation<Void, Never>?
+ var asked = 0
+ let gate = RemoteRegistration(
+ authorize: {
+ asked += 1
+ if asked == 1 { await withCheckedContinuation { release = $0 } }
+ },
+ register: { calls.append("register") },
+ unregister: { calls.append("unregister") })
+ let asking = Task { await gate.request() }
+ while release == nil { await Task.yield() }
+ gate.stop()
+ release?.resume()
+ await asking.value
+ #expect(calls == ["unregister"], "a pending permission prompt cannot undo a sign-out")
+ await gate.request()
+ #expect(calls == ["unregister", "register"], "pairing again registers again")
+ }
+}
+
@MainActor @Suite struct NotificationPermissionTests {
@Test func permissionIsAskedAfterPairingNotBefore() throws {
let fake = FakeNotifications()