oficina / equipo Public

Keep new shares independent of unconfirmed earlier sends

Paul Campbell pushed by claude agent, operated by paul@keymail.dev f9e00ea61eb4819da57f12ee16fc4edae28b66f6 parent e58b1e5
20 files changed, +468 −67
  • docs/superpowers/plans/CONTROLLER-REPORT-native-share.md +63 −0
  • native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings +23 −0
  • native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift +16 −4
  • native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift +1 −1
  • native/apple/Sources/EquipoKit/Attachments/RecentScreenshot.swift +5 −3
  • native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings +23 −0
  • native/apple/Sources/EquipoMac/ShareService.swift +9 −5
  • native/apple/Tests/EquipoKitTests/AttachmentFollowupTests.swift +20 −0
  • native/apple/Tests/EquipoKitTests/ShareServiceTests.swift +10 −3
  • native/ios/ShareExtension/ShareViewController.swift +1 −1
  • native/scripts/check-parity.py +1 −1
  • native/scripts/check-share.py +11 −1
  • native/scripts/check-strings.py +1 −1
  • native/scripts/strings.json +3 −1
  • native/share/Sources/EquipoShareCore/ShareJournal.swift +44 −30
  • native/share/Sources/EquipoShareCore/ShareSender.swift +55 −13
  • native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings +23 −0
  • native/share/Sources/EquipoShareUI/ShareComposeView.swift +12 −0
  • native/share/Tests/EquipoShareCoreTests/EarlierShareTests.swift +128 −0
  • native/share/Tests/EquipoShareCoreTests/ShareTests.swift +19 −3

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__share: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.4s
ci-box: claude: fetched and verified in 1.7s
ci-box: codex: fetched and verified in 3.6s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.4s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 10.1s
ci-box: clone deepened in 4.7s
ci-box: file times set from content: 3160 files, 210 directories
ci-box: ready in 18.3s
=== 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.142s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.2s
+ 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.3s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

receipt: test step 1m7.849s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.326s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m6.33s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 37.91, cpu waiting 23.59%, memory waiting 0.00%, io waiting 0.70%
--- 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 1m7.251s 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 1m5.614s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.61s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 37.91, cpu waiting 23.59%, memory waiting 0.00%, io waiting 0.70%
--- 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 1m7.404s 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 1m5.402s amadan.net/oficina/equipo/internal/headless
receipt: slow test 57.29s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.33s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 37.91, cpu waiting 23.59%, memory waiting 0.00%, io waiting 0.70%
--- 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 1m5.246s 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.598s amadan.net/oficina/equipo/internal/headless
receipt: slow test 30.22s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 16.34s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.61s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 37.91, cpu waiting 23.75%, memory waiting 0.00%, io waiting 0.73%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.468s 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.838s amadan.net/oficina/equipo/internal/headless
receipt: slow test 52.04s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.9s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.59s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.92s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.38s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 36.83, cpu waiting 21.74%, memory waiting 0.00%, io waiting 0.55%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 2m34.319s 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 2m32.315s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m27.22s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.3s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.53s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.52s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.49s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 16.02, cpu waiting 6.66%, 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 1.142s 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 2m15.947s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.9s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.16s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.92s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.72s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 4.19, cpu waiting 0.85%, memory waiting 0.00%, io waiting 2.13%
--- 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 1.144s 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 1m40.943s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.63s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.06s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 4.19, cpu waiting 0.85%, memory waiting 0.00%, io waiting 2.13%
--- 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 4m55.257s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m9.012s 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 4m55.257s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.85s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.88s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 1.74, cpu waiting 0.52%, 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 48.299s 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 47.181s amadan.net/oficina/equipo/internal/runner
receipt: slow test 27.15s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 40.37, cpu waiting 23.73%, memory waiting 0.00%, io waiting 0.98%
--- 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 48.086s 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 46.218s amadan.net/oficina/equipo/internal/runner
receipt: slow test 36.21s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.61s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.58s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 40.37, cpu waiting 23.73%, memory waiting 0.00%, io waiting 0.98%
--- 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.799s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 33.922s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.24s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.18s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 29.43, cpu waiting 16.87%, memory waiting 0.00%, io waiting 1.20%
--- 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 31.6%, load 26.34
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 1m6.148s 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 1m4.277s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.76s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.72s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.65s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.1s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.96s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
machine: 32 CPUs, load 32.00, cpu waiting 17.62%, memory waiting 0.00%, io waiting 0.44%
--- 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 31.6%, load 22.45
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 1.48s 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 1m18.086s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.92s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.88s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 20.84s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.81s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 20.77s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
machine: 32 CPUs, load 26.34, cpu waiting 14.04%, memory waiting 0.00%, io waiting 1.29%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 31.6%, load 26.34
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 1m18.523s 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 1m5.698s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.25s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.12s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.07s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.04s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.98s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 28.13, cpu waiting 14.17%, 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 31.6%, load 26.34
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 519ms 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 1m7.384s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.99s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.79s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.73s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 23.91s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 26.34, cpu waiting 12.83%, memory waiting 0.00%, io waiting 1.33%
--- 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 31.6%, load 26.34
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 687ms 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.7s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.73s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.25s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 26.34, cpu waiting 14.04%, memory waiting 0.00%, io waiting 1.29%
--- 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 31.6%, load 26.34
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: 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 2m8.89s, 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 21.915s, 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 12.105s, 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 1m42.986s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 41.44s, 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.651s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.682s against a 60s target (the gate's other steps are not in this figure)
receipt: 13 packages ran, 53 cached, 17 without tests, 0 failed
receipt: slow package 2m8.89s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m42.986s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 53.249s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.085s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 41.44s amadan.net/oficina/equipo/internal/release
receipt: slow test 54.42s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 47.4s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 47.3s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 47.28s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 46.53s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
machine: 32 CPUs, load 13.71, cpu waiting 5.64%, memory waiting 0.00%, io waiting 0.13%
--- 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 1m20.13s 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.56s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.05s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.48s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.42s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.2s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.28s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 36.83, cpu waiting 21.74%, memory waiting 0.00%, io waiting 0.55%
--- 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 1m17.72s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16s amadan.net/oficina/equipo/internal/headless
receipt: slow test 23.06s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 17.78s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.16s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.09s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.42s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 38.38, cpu waiting 22.65%, memory waiting 0.00%, io waiting 0.59%
--- 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 1m46.059s 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 1m44.41s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.22s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.39s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.15s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 11.05s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.51s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 28.13, cpu waiting 14.61%, 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|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m21.722s 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.089s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.34s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 8.96s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 8.88s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.22s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 36.83, cpu waiting 21.74%, memory waiting 0.00%, io waiting 0.55%
--- 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|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 1.034s 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 2.649s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.94s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 710ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.272s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

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

receipt: test step 1.335s 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 3m42.358s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 24.52s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.45s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.87s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.43s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 8.02, cpu waiting 2.57%, memory waiting 0.00%, io waiting 1.99%
--- 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   (47s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.67s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.25s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.70s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.83s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.14s
+ 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   (45s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 9.89s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 10.06s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.72s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.52s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (19s)
ok ./internal/headless TestMixedVersions 17.35s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.78s
+ 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 40.37, cpu waiting 23.73%, memory waiting 0.00%, io waiting 0.98%
--- 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.53s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.296s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 201ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 103ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 12ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.2s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms 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.118s 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.778s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms 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.82, cpu waiting 5.19%, memory waiting 0.00%, io waiting 1.80%
--- 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 31.6%, load 26.34
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2872 text files, 3229 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.549s
machine: 32 CPUs, load 40.37, cpu waiting 22.98%, memory waiting 0.00%, io waiting 1.02%
--- 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 31.6%, load 22.45
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 26.34, cpu waiting 14.04%, memory waiting 0.00%, io waiting 1.29%
--- 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 31.6%, load 26.34
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 10
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 29.43, cpu waiting 16.87%, memory waiting 0.00%, io waiting 1.20%
--- 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 31.6%, load 26.34
shard 28: make gitleaks
8:20PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
8:20PM INF 1206 commits scanned.
8:20PM INF scanned ~67375691 bytes (67.38 MB) in 15.2s
8:20PM INF no leaks found
machine: 32 CPUs, load 40.37, cpu waiting 22.98%, memory waiting 0.00%, io waiting 1.02%
=== 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 1ms, worst 1.06ms, budget 150ms
perf: GET /api/runner/protocol: median 74µs, worst 111µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 585µs, worst 610µs, budget 150ms
perf: GET /api/v1/accounts: median 393µs, worst 422µs, budget 150ms
perf: GET /api/v1/auth/devices: median 440µs, worst 466µs, budget 150ms
perf: GET /api/v1/budgets: median 482µs, worst 507µs, budget 150ms
perf: GET /api/v1/capabilities: median 241µs, worst 269µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.162ms, worst 1.274ms, budget 150ms
perf: GET /api/v1/connections: median 566µs, worst 613µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 549µs, worst 617µs, budget 150ms
perf: GET /api/v1/conversation: median 888µs, worst 929µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.461ms, worst 1.571ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.816ms, worst 1.882ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 439µs, worst 497µs, budget 150ms
perf: GET /api/v1/journey: median 8.934ms, worst 9.094ms, budget 150ms
perf: GET /api/v1/me: median 478µs, worst 539µs, budget 150ms
perf: GET /api/v1/me/settings: median 581µs, worst 622µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.495ms, worst 8.729ms, budget 150ms
perf: GET /api/v1/notifications: median 1.641ms, worst 1.662ms, budget 150ms
perf: GET /api/v1/onboarding: median 403µs, worst 459µs, budget 150ms
perf: GET /api/v1/people: median 444µs, worst 456µs, budget 150ms
perf: GET /api/v1/playbooks: median 589µs, worst 611µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 526µs, worst 557µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 825µs, worst 860µs, budget 150ms
perf: GET /api/v1/preferences: median 749µs, worst 776µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 447µs, worst 461µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 574µs, worst 629µs, budget 150ms
perf: GET /api/v1/roster: median 455µs, worst 498µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 419µs, worst 452µs, budget 150ms
perf: GET /api/v1/specialists: median 7.992ms, worst 8.034ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.884ms, worst 7.954ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 831µs, worst 892µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.107ms, worst 1.167ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 708µs, worst 742µs, budget 150ms
perf: GET /api/v1/teams: median 420µs, worst 441µs, budget 150ms
perf: GET /api/v1/templates: median 593µs, worst 618µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 432µs, worst 468µs, budget 150ms
perf: GET /auth/callback: median 82µs, worst 96µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.752ms, worst 3.922ms, budget 150ms
perf: GET /auth/verify: median 79µs, worst 104µs, budget 150ms
perf: GET /connections: median 4.096ms, worst 4.163ms, budget 150ms
perf: GET /conversation: median 8.181ms, worst 8.294ms, budget 150ms
perf: GET /conversation/connections: median 245µs, worst 285µs, budget 150ms
perf: GET /conversation/notebook: median 240µs, worst 274µs, budget 150ms
perf: GET /conversation/settings: median 4.416ms, worst 4.65ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.59ms, worst 7.951ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.046ms, worst 7.31ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.27ms, worst 7.325ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.458ms, worst 4.572ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.542ms, worst 4.618ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.774ms, worst 4.957ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.771ms, worst 4.838ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.768ms, worst 3.853ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.634ms, worst 7.371ms, budget 150ms
perf: GET /housekeeping: median 4.216ms, worst 4.291ms, budget 150ms
perf: GET /invites/new: median 617µs, worst 668µs, budget 150ms
perf: GET /invites/{id}: median 641µs, worst 675µs, budget 150ms
perf: GET /jobs: median 3.805ms, worst 3.878ms, budget 150ms
perf: GET /jobs/{id}: median 5.03ms, worst 5.186ms, budget 150ms
perf: GET /journey: median 10.573ms, worst 10.676ms, budget 150ms
perf: GET /nav/rail: median 3.333ms, worst 3.404ms, budget 150ms
perf: GET /needs-you: median 10.416ms, worst 10.495ms, budget 150ms
perf: GET /onboarding: median 4.413ms, worst 4.455ms, budget 150ms
perf: GET /people: median 4.019ms, worst 5.962ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.958ms, worst 5.003ms, budget 150ms
perf: GET /playbooks: median 4.492ms, worst 4.617ms, budget 150ms
perf: GET /playbooks/new: median 4.653ms, worst 4.689ms, budget 150ms
perf: GET /playbooks/{id}: median 5.097ms, worst 5.15ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.095ms, worst 5.219ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.333ms, worst 4.408ms, budget 150ms
perf: GET /preferences: median 4.539ms, worst 4.609ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.285ms, worst 4.335ms, budget 150ms
perf: GET /projects: median 6.073ms, worst 6.195ms, budget 150ms
perf: GET /projects/accounts: median 4.094ms, worst 4.207ms, budget 150ms
perf: GET /projects/new: median 4.199ms, worst 7.389ms, budget 150ms
perf: GET /projects/{id}: median 10.966ms, worst 11.094ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.138ms, worst 4.233ms, budget 150ms
perf: GET /runners/enrol: median 4.823ms, worst 5.008ms, budget 150ms
perf: GET /settings: median 3.823ms, worst 3.913ms, budget 150ms
perf: GET /settings/coordinator: median 5.865ms, worst 6.023ms, budget 150ms
perf: GET /settings/devices: median 3.697ms, worst 3.777ms, budget 150ms
perf: GET /settings/recovery: median 3.826ms, worst 3.928ms, budget 150ms
perf: GET /settings/recovery/release: median 3.873ms, worst 3.953ms, budget 150ms
perf: GET /settings/thinking: median 244µs, worst 285µs, budget 150ms
perf: GET /signed-out: median 263µs, worst 291µs, budget 150ms
perf: GET /signin: median 281µs, worst 304µs, budget 150ms
perf: GET /specialists/new: median 3.769ms, worst 3.892ms, budget 150ms
perf: GET /specialists/{key}: median 11.463ms, worst 14.341ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.004ms, worst 4.15ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.174ms, worst 4.266ms, budget 150ms
perf: GET /tasks: median 6.06ms, worst 6.15ms, budget 150ms
perf: GET /tasks/new: median 3.641ms, worst 3.731ms, budget 150ms
perf: GET /tasks/{id}: median 5.737ms, worst 5.892ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.21ms, worst 5.365ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.135ms, worst 5.265ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.133ms, worst 6.453ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.613ms, worst 1.692ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.861ms, worst 6.722ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.277ms, worst 5.475ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.83ms, worst 5.061ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.438ms, worst 8.824ms, budget 150ms
perf: GET /team/{specialist}: median 4.937ms, worst 5.092ms, budget 150ms
perf: GET /teams: median 10.514ms, worst 10.801ms, budget 150ms
perf: GET /templates: median 3.846ms, worst 3.943ms, budget 150ms
perf: GET /usage: median 4.732ms, worst 4.784ms, budget 150ms
perf: GET /work: median 3.494ms, worst 3.559ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 158ms of [155.136565ms 158.100045ms 158.336709ms], budget 500ms

receipt: test step 32.702s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 88 without tests, 0 failed
receipt: slow package 10.37s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/stagingtest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
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 test 9.85s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 520ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.15 GiB in 25779 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
ci-box: build cache over 4.0 GiB: dropped 1.57 GiB this job did not read, kept 2.58 GiB
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-share.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-share.md
index f0d632b6..c7d5e1a7 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-native-share.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-share.md
@@ -176,3 +176,66 @@ were also checked after adding the real provider archive case.
- `grant-token-size`: `swift test --package-path native/share --jobs 4 --filter pinnedOficina` failed an expectation; restored.
- `provider-archive-text-cap`: `swift test --package-path native/share --jobs 4 --filter providerText` failed an expectation; restored.
- `provider-raw-text-cap`: `swift test --package-path native/share --jobs 4 --filter providerText` failed an expectation; restored.
+
+## Fable review fixes, 2026-11-27
+
+A new share always starts with its own inputs and independent idempotency key.
+Earlier unconfirmed requests appear above the compose with the Luna-approved
+`native.share.earlier_unconfirmed` notice and the existing reviewed Try again and
+Discard labels. Retrying one sends its original body and key, clears only its
+journal entry, and never finishes the new compose. The new message can send while
+older requests remain unresolved. A definite 4xx other than 401/403 clears only
+the refused write and shows the reviewed error for its code. Authentication and
+uncertain failures preserve the journal.
+
+The recipient journal now stores independently keyed records under its existing
+lock, protection and backup exclusion. It reads the previous single-record format,
+keeps each original 24-hour deadline, and bounds storage to 32 requests and 1 MiB.
+No credentials are added to the journal. There are no further signing API writes.
+
+Screenshot staging is transferred to the attachment draft, which retains it for
+Retry and removes it on remove, clear or destruction. Its display name is
+Screenshot.png. Swiping down the explanation invokes the same decline policy as
+Not now. Mac Services reports the actual size/count preparation failure using
+existing reviewed words.
+
+Verification follows the current machine rules: narrow Swift filters, four
+workers, one heavy process, and load/swap/process checks before each. No local
+full gate, simulator or fixture app was started for this delta. Linux CI remains
+the full repository gate.
+
+- Red: the new earlier-send tests first failed to compile against the missing
+ independent-send APIs. Restoring the old screenshot lifetime/name and generic
+ Mac error behavior then failed eight expectations in the focused platform run.
+- Green: `swift test --package-path native/share --jobs 4 --filter
+ 'EarlierShareTests|journal|Journal|uncertainSend|interruptedSend'`: 12 tests passed,
+ including fresh-sender replay, independent A/B sends, definite refusals,
+ authentication/uncertain failures, double retry, concurrent writers and legacy
+ journal decoding.
+- Green: `swift test --package-path native/apple --jobs 4 --filter
+ 'stagedScreenshot|serviceReceivesInput|clearCancelsEvery'`: 3 tests passed, with
+ parameter cases for remove/clear and URL/count/size input.
+- `check-strings.py`, `check-parity.py` (336 matching web strings), `check-share.py`,
+ `check-oficina-id.py` and `check-sign-in-lifetime.py` pass. The platform-only
+ explanation dismissal and incoming-item preparation are pinned by the packaging
+ guard, alongside the existing runtime policy tests.
+
+All 17 delta mutations failed their focused guard and were restored:
+
+- `old-hijacks-new`: `swift test --package-path native/share --jobs 4 --filter lostACancel` exited 1 with an expectation/assertion failure.
+- `pending-blocks-new`: `swift test --package-path native/share --jobs 4 --filter newSendAndDiscard` exited 1 with an expectation/assertion failure.
+- `old-retry-new-key`: `swift test --package-path native/share --jobs 4 --filter lostACancel` exited 1 with an expectation/assertion failure.
+- `old-retry-closes-new`: `swift test --package-path native/share --jobs 4 --filter lostACancel` exited 1 with an expectation/assertion failure.
+- `discard-does-not-persist`: `swift test --package-path native/share --jobs 4 --filter newSendAndDiscard` exited 1 with an expectation/assertion failure.
+- `permanent-refusal-retained`: `swift test --package-path native/share --jobs 4 --filter permanentRefusal` exited 1 with an expectation/assertion failure.
+- `journal-not-saved-before-post`: `swift test --package-path native/share --jobs 4 --filter lostACancel` exited 1 with an expectation/assertion failure.
+- `late-ack-clears-another`: `swift test --package-path native/share --jobs 4 --filter newSendAndDiscard|journalNever` exited 1 with an expectation/assertion failure.
+- `double-earlier-post`: `swift test --package-path native/share --jobs 4 --filter doubleTapEarlier` exited 1 with an expectation/assertion failure.
+- `remove-keeps-staged-file`: `swift test --package-path native/apple --jobs 4 --filter stagedScreenshot` exited 1 with an expectation/assertion failure.
+- `clear-keeps-staged-file`: `swift test --package-path native/apple --jobs 4 --filter stagedScreenshot` exited 1 with an expectation/assertion failure.
+- `staged-uuid-name`: `swift test --package-path native/apple --jobs 4 --filter stagedScreenshot` exited 1 with an expectation/assertion failure.
+- `mac-too-many-as-size`: `swift test --package-path native/apple --jobs 4 --filter serviceReceivesInput` exited 1 with an expectation/assertion failure.
+- `mac-generic-preparation`: `swift test --package-path native/apple --jobs 4 --filter serviceReceivesInput` exited 1 with an expectation/assertion failure.
+- `swipe-explanation`: `python3 native/scripts/check-share.py` exited 1 with an expectation/assertion failure.
+- `screenshot-delete-before-retry`: `python3 native/scripts/check-share.py` exited 1 with an expectation/assertion failure.
+- `extension-skips-new-input`: `python3 native/scripts/check-share.py` exited 1 with an expectation/assertion failure.
diff --git a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
index 645f46a5..60d9d5eb 100644
--- a/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoActivity/Resources/Localizable.xcstrings
@@ -1657,6 +1657,18 @@
}
}
},
+ "native.share.earlier_unconfirmed": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "An earlier message could not be confirmed as sent."
+ }
+ }
+ }
+ },
"native.share.signed_out": {
"comment": "COPY APPROVED: Luna, 2026-11-26.",
"extractionState": "manual",
@@ -3090,6 +3102,17 @@
}
}
},
+ "settings.discard": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Discard"
+ }
+ }
+ }
+ },
"settings.not_paired": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift b/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift
index 2e404c37..7e46694f 100644
--- a/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift
@@ -1,5 +1,6 @@
import Foundation
import Observation
+import EquipoShareCore
@MainActor @Observable public final class AttachmentDraft {
public struct Item: Identifiable, Sendable {
@@ -16,6 +17,8 @@ import Observation
public private(set) var items: [Item] = []
public private(set) var notice: String?
@ObservationIgnored private var uploads: [UUID: (generation: UUID, task: Task<Void, Never>)] = [:]
+ @ObservationIgnored private var stagedDirectories: [UUID: URL] = [:]
+ deinit { for directory in stagedDirectories.values { try? FileManager.default.removeItem(at: directory) } }
@ObservationIgnored var fileAccess: any AttachmentFileAccess = SystemAttachmentFileAccess()
var client: EquipoClient
public init(client: EquipoClient) { self.client = client }
@@ -32,15 +35,24 @@ import Observation
catch { refuseFile(); return }
await add(.file(url), name: url.lastPathComponent)
}
- private func add(_ source: Source, name: String) async {
- guard items.count < AttachmentLimits.maxCount else { notice = EquipoStrings.text("chat.attach.too_many"); return }
+ /// Takes ownership of this private staging directory, including on refusal.
+ public func add(staged file: FileAttachment, directory: URL) async {
+ await add(.file(file.url), name: file.name, ownedDirectory: directory)
+ }
+ private func add(_ source: Source, name: String, ownedDirectory: URL? = nil) async {
+ guard items.count < AttachmentLimits.maxCount else {
+ if let ownedDirectory { try? FileManager.default.removeItem(at: ownedDirectory) }
+ notice = EquipoStrings.text("chat.attach.too_many"); return
+ }
notice = nil
let id = UUID()
+ stagedDirectories[id] = ownedDirectory
items.append(Item(id: id, name: name, state: .uploading(0), source: source))
await upload(id)
}
- public func remove(_ id: UUID) { uploads.removeValue(forKey: id)?.task.cancel(); items.removeAll { $0.id == id }; notice = nil }
- public func clear() { for upload in uploads.values { upload.task.cancel() }; uploads = [:]; items = []; notice = nil }
+ public func remove(_ id: UUID) { uploads.removeValue(forKey: id)?.task.cancel(); items.removeAll { $0.id == id }; cleanStaged(id); notice = nil }
+ public func clear() { for upload in uploads.values { upload.task.cancel() }; uploads = [:]; items = []; for id in Array(stagedDirectories.keys) { cleanStaged(id) }; notice = nil }
+ private func cleanStaged(_ id: UUID) { if let directory = stagedDirectories.removeValue(forKey: id) { try? FileManager.default.removeItem(at: directory) } }
public func retry(_ id: UUID) async {
guard let i = items.firstIndex(where: { $0.id == id }), items[i].failure != nil else { return }
items[i].generation = UUID(); items[i].state = .uploading(0)
diff --git a/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift b/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift
index 1098de22..4be3db1e 100644
--- a/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift
@@ -18,7 +18,7 @@ struct PhoneAttachmentPicker: View {
Button { screenshot.explain(); explanation = true } label: { plus }
} else { sources }
}
- .sheet(isPresented: $explanation) {
+ .sheet(isPresented: $explanation, onDismiss: { screenshot?.decline() }) {
ScreenshotPermission(choose: { explanation = false; Task { await screenshot?.requestPermission() } }, decline: { screenshot?.decline(); explanation = false })
}
.sheet(isPresented: $limited) { LimitedScreenshotPicker { limited = false; screenshot?.refresh() } }
diff --git a/native/apple/Sources/EquipoKit/Attachments/RecentScreenshot.swift b/native/apple/Sources/EquipoKit/Attachments/RecentScreenshot.swift
index 37ff094c..e894c1c3 100644
--- a/native/apple/Sources/EquipoKit/Attachments/RecentScreenshot.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/RecentScreenshot.swift
@@ -83,13 +83,15 @@ import EquipoShareCore
}
guard active, self.generation == generation, let url else { return }
let directory = FileManager.default.temporaryDirectory.appendingPathComponent("screenshot-" + UUID().uuidString)
- defer { try? FileManager.default.removeItem(at: directory) }
+ var transferred = false
+ defer { if !transferred { try? FileManager.default.removeItem(at: directory) } }
do {
- let worker = Task.detached { try autoreleasepool { try AttachmentFile.prepareFile(url, directory: directory, name: "screenshot.png") } }
+ let worker = Task.detached { try autoreleasepool { try AttachmentFile.prepareFile(url, directory: directory, name: "Screenshot.png") } }
let file = try await withTaskCancellationHandler { try await worker.value } onCancel: { worker.cancel() }
guard active, self.generation == generation else { return }
dismiss()
- await draft.add(url: file.url)
+ transferred = true
+ await draft.add(staged: file, directory: directory)
} catch { refresh() }
}
}
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
index 645f46a5..60d9d5eb 100644
--- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
+++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings
@@ -1657,6 +1657,18 @@
}
}
},
+ "native.share.earlier_unconfirmed": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "An earlier message could not be confirmed as sent."
+ }
+ }
+ }
+ },
"native.share.signed_out": {
"comment": "COPY APPROVED: Luna, 2026-11-26.",
"extractionState": "manual",
@@ -3090,6 +3102,17 @@
}
}
},
+ "settings.discard": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Discard"
+ }
+ }
+ }
+ },
"settings.not_paired": {
"extractionState": "manual",
"localizations": {
diff --git a/native/apple/Sources/EquipoMac/ShareService.swift b/native/apple/Sources/EquipoMac/ShareService.swift
index 7986c114..a068980e 100644
--- a/native/apple/Sources/EquipoMac/ShareService.swift
+++ b/native/apple/Sources/EquipoMac/ShareService.swift
@@ -7,6 +7,8 @@ import EquipoShareCore
/// Services always opens a compose window; receiving an item never sends it.
@MainActor final class ShareService: NSObject, NSWindowDelegate {
private var window: NSWindow?
+ private var composeState: ServiceComposeState?
+ var preparationNotice: String? { composeState?.notice }
private(set) var sender: ShareSender?
let makeSender: @MainActor () -> ShareSender
init(makeSender: @escaping @MainActor () -> ShareSender = ShareService.liveSender) { self.makeSender = makeSender }
@@ -22,7 +24,7 @@ import EquipoShareCore
let sender = makeSender()
self.sender = sender
let directory = FileManager.default.temporaryDirectory.appendingPathComponent("equipo-service-" + UUID().uuidString); self.directory = directory
- let state = ServiceComposeState(sender: sender)
+ let state = ServiceComposeState(sender: sender); composeState = state
let view = ServiceCompose(state: state, cancel: { [weak self] in self?.window?.close() }, send: { [weak self] in
sender.start { self?.window?.close() }
})
@@ -30,7 +32,7 @@ import EquipoShareCore
window.title = EquipoStrings.text("native.share.title"); window.setContentSize(NSSize(width: 520, height: 480))
window.styleMask = [.titled, .closable, .resizable]; window.delegate = self; window.isReleasedWhenClosed = false
self.window = window; window.center(); window.makeKeyAndOrderFront(nil); NSApp.activate()
- guard sender.selection != nil, sender.pending == nil else { return }
+ guard sender.selection != nil else { return }
let urls = (pasteboard.readObjects(forClasses: [NSURL.self], options: [.urlReadingFileURLsOnly: true]) as? [URL]) ?? []
let image = urls.isEmpty ? [.png, .tiff].compactMap { type -> (Data, String)? in pasteboard.data(forType: type).map { ($0, type == .png ? "image.png" : "image.tiff") } }.first : nil
let text = pasteboard.string(forType: .string) ?? pasteboard.string(forType: .URL) ?? ""
@@ -40,7 +42,7 @@ import EquipoShareCore
await sender.loadProjects()
do {
if !urls.isEmpty {
- guard urls.count <= AttachmentLimits.maxCount else { throw AttachmentFailure.tooLarge }
+ guard urls.count <= AttachmentLimits.maxCount else { throw ShareFailure.server(422, "attachment_limit") }
for url in urls {
let file = try await Task.detached { try autoreleasepool { try AttachmentFile.prepareFile(url, directory: directory) } }.value
try Task.checkCancellation(); try sender.add(file)
@@ -57,11 +59,13 @@ import EquipoShareCore
guard text.utf8.count <= 16 * 1024 else { throw AttachmentFailure.tooLarge }
sender.text = text
}
- } catch { state.notice = EquipoStrings.text("api.attachment_type") }
+ } catch let failure as AttachmentFailure { state.notice = failure.words }
+ catch let failure as ShareFailure { state.notice = ShareWords.error(failure) }
+ catch { state.notice = EquipoStrings.text("api.attachment_type") }
}
}
func windowWillClose(_ notification: Notification) {
- preparation?.cancel(); preparation = nil; sender?.cancel(); sender = nil; window = nil
+ preparation?.cancel(); preparation = nil; sender?.cancel(); sender = nil; window = nil; composeState = nil
if let directory { try? FileManager.default.removeItem(at: directory) }; directory = nil
}
}
diff --git a/native/apple/Tests/EquipoKitTests/AttachmentFollowupTests.swift b/native/apple/Tests/EquipoKitTests/AttachmentFollowupTests.swift
index 7b4e6e3c..99b8bd68 100644
--- a/native/apple/Tests/EquipoKitTests/AttachmentFollowupTests.swift
+++ b/native/apple/Tests/EquipoKitTests/AttachmentFollowupTests.swift
@@ -23,6 +23,26 @@ private final class ScopedFileFixture: AttachmentFileAccess, Sendable {
}
@Suite struct AttachmentFollowupTests {
+ @MainActor @Test(arguments: [false, true])
+ func stagedScreenshotSurvivesRetryAndIsDeletedWithDraft(_ remove: Bool) async throws {
+ let directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
+ try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: true)
+ defer { try? FileManager.default.removeItem(at: directory) }
+ let input = directory.appendingPathComponent("original.png")
+ try AttachmentTests.image().write(to: input)
+ let file = try AttachmentFile.prepareFile(input, directory: directory, name: "Screenshot.png")
+ let server = AttachmentServer(); await server.failNext()
+ let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ await draft.add(staged: file, directory: directory)
+ let item = try #require(draft.items.first)
+ #expect(item.name == "Screenshot.png" && item.failure != nil)
+ #expect(FileManager.default.fileExists(atPath: file.url.path))
+ await draft.retry(item.id)
+ #expect(draft.readyAttachments.count == 1)
+ if remove { draft.remove(item.id) } else { draft.clear() }
+ #expect(!FileManager.default.fileExists(atPath: directory.path))
+ }
+
@MainActor @Test(arguments: [true, false])
func scopedMetadataIsReadOnlyDuringAccess(_ regular: Bool) async throws {
let server = AttachmentServer(), access = ScopedFileFixture(regular: regular)
diff --git a/native/apple/Tests/EquipoKitTests/ShareServiceTests.swift b/native/apple/Tests/EquipoKitTests/ShareServiceTests.swift
index a2586af8..349e6cfc 100644
--- a/native/apple/Tests/EquipoKitTests/ShareServiceTests.swift
+++ b/native/apple/Tests/EquipoKitTests/ShareServiceTests.swift
@@ -3,9 +3,10 @@ import AppKit
import Foundation
import Testing
import EquipoShareCore
+import EquipoKit
@testable import EquipoMac
-@Test @MainActor func serviceReceivesWebURLAsEditableTextWithoutSending() async throws {
+@Test(arguments: ["url", "too_many", "too_large"]) @MainActor func serviceReceivesInputAndReportsPreparationFailure(_ kind: String) async throws {
_ = NSApplication.shared
let store = MemorySecretStore(), directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
defer { try? FileManager.default.removeItem(at: directory) }
@@ -18,12 +19,18 @@ import EquipoShareCore
let service = ShareService(makeSender: { sender })
defer { service.close() }
let pasteboard = NSPasteboard.withUniqueName(); defer { pasteboard.releaseGlobally() }
- pasteboard.setString("https://example.net/bug", forType: .URL)
+ if kind == "too_many" {
+ pasteboard.writeObjects((0..<6).map { directory.appendingPathComponent("file-\($0).txt") as NSURL })
+ } else if kind == "too_large" { pasteboard.setString(String(repeating: "x", count: 16 * 1024 + 1), forType: .string) }
+ else { pasteboard.setString("https://example.net/bug", forType: .URL) }
var error: NSString?
service.sendToEquipo(pasteboard, userData: nil, error: &error)
await service.waitForPreparation()
#expect(error == nil)
- #expect(sender.text == "https://example.net/bug")
+ if kind == "url" { #expect(sender.text == "https://example.net/bug") }
+ else {
+ #expect(service.preparationNotice == EquipoStrings.text(kind == "too_many" ? "api.attachment_limit" : "api.attachment_too_large"))
+ }
#expect(sender.files.isEmpty)
#expect(!sender.busy && !sender.finished && sender.pending == nil)
}
diff --git a/native/ios/ShareExtension/ShareViewController.swift b/native/ios/ShareExtension/ShareViewController.swift
index 1f4197d2..5e85324b 100644
--- a/native/ios/ShareExtension/ShareViewController.swift
+++ b/native/ios/ShareExtension/ShareViewController.swift
@@ -35,7 +35,7 @@ import EquipoShareUI
let items = (extensionContext?.inputItems as? [NSExtensionItem]) ?? []
preparation = Task {
await sender.loadProjects()
- if sender.pending == nil { await model.prepare(items) }
+ await model.prepare(items)
#if DEBUG && targetEnvironment(simulator)
self.memory?.save(to: support.appendingPathComponent("share-memory.json"))
#endif
diff --git a/native/scripts/check-parity.py b/native/scripts/check-parity.py
index d4e37347..13ae5483 100755
--- a/native/scripts/check-parity.py
+++ b/native/scripts/check-parity.py
@@ -22,7 +22,7 @@ for key in sorted(set(re.findall(r'"(work\.reason\.[^"]+)":', copy))):
if key not in strings:
problems.append(f'{key}: native must carry every reviewed stop reason')
for key, text in sorted(strings.items()):
- if not key.startswith(('chat.day.today', 'runner.verdict.skipped', 'work.', 'placement.', 'chat.card.', 'chat.paste.', 'chat.attach.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'chat.connections.dismiss', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')):
+ if not key.startswith(('settings.discard', 'chat.day.today', 'runner.verdict.skipped', 'work.', 'placement.', 'chat.card.', 'chat.paste.', 'chat.attach.', 'work.tl.', 'roster.', 'projects.', 'work.star.', 'api.', 'nav.projects', 'chat.connections.connected', 'chat.connections.dismiss', 'counts.unavailable', 'team.close', 'work.pause.', 'work.reason.', 'work.needs.', 'chat.held.', 'work.hold.', 'work.stage.', 'time.', 'work.hold.run_now', 'work.recover')):
continue
found = re.findall(r'"' + re.escape(key) + r'":\s*"((?:[^"\\]|\\.)*)"', copy)
if len(found) != 1:
diff --git a/native/scripts/check-share.py b/native/scripts/check-share.py
index 9d37ee05..e8e87ba0 100644
--- a/native/scripts/check-share.py
+++ b/native/scripts/check-share.py
@@ -26,7 +26,7 @@ for target in ['apple/Sources/EquipoKit', 'share/Sources/EquipoShareUI']:
catalog = json.loads((root / target / 'Resources/Localizable.xcstrings').read_text())['strings']
for key in words:
if key.startswith(('native.share.', 'native.screenshot.')):
- assert 'Luna, 2026-11-26' in catalog[key]['comment']
+ assert ('Luna, 2026-11-27' if key == 'native.share.earlier_unconfirmed' else 'Luna, 2026-11-26') in catalog[key]['comment']
assert catalog[key]['localizations']['en']['stringUnit']['value'] == words[key]
assert 'NSPhotoLibraryUsageDescription: ' + words['native.screenshot.usage'] in project
assert 'PHPhotoLibraryPreventAutomaticLimitedAccessAlert: true' in project
@@ -35,3 +35,13 @@ assert "info['NSServices']" in service and "'NSMessage': 'sendToEquipo'" in serv
assert service.index("info['NSServices']") < service.rindex('sign_bundle(')
assert 'NSApp.servicesProvider = shareService' in (root / 'apple/Sources/EquipoMac/EquipoMacApp.swift').read_text()
print('Share packaging, keychain-only boundary and reviewed copy verified')
+
+# The platform-only dismissal must use the same policy as the Not now button.
+picker = (root / 'apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift').read_text()
+assert '.sheet(isPresented: $explanation, onDismiss: { screenshot?.decline() })' in picker
+extension = (root / 'ios/ShareExtension/ShareViewController.swift').read_text()
+assert 'if sender.pending == nil' not in extension
+screenshot = (root / 'apple/Sources/EquipoKit/Attachments/RecentScreenshot.swift').read_text()
+assert 'await draft.add(staged: file, directory: directory)' in screenshot
+assert 'if !transferred' in screenshot and 'transferred = true' in screenshot
+assert 'name: "Screenshot.png"' in screenshot
diff --git a/native/scripts/check-strings.py b/native/scripts/check-strings.py
index ceb16267..294b5e06 100755
--- a/native/scripts/check-strings.py
+++ b/native/scripts/check-strings.py
@@ -20,7 +20,7 @@ plurals = json.loads((native / 'scripts/plurals.json').read_text())
def catalog():
return {'sourceLanguage': 'en', 'version': '1.0', 'strings': {
- k: {**({'comment': 'COPY APPROVED: Luna, 2026-11-26.'} if k.startswith(('native.changes.', 'native.share.', 'native.screenshot.')) or k in ('api.preview_changed', 'api.preview_expired') else {}), 'extractionState': 'manual', 'localizations': {'en': plurals.get(k, {'stringUnit': {'state': 'translated', 'value': v}})}}
+ k: {**({'comment': ('COPY APPROVED: Luna, 2026-11-27.' if k == 'native.share.earlier_unconfirmed' else 'COPY APPROVED: Luna, 2026-11-26.')} if k.startswith(('native.changes.', 'native.share.', 'native.screenshot.')) or k in ('api.preview_changed', 'api.preview_expired') else {}), 'extractionState': 'manual', 'localizations': {'en': plurals.get(k, {'stringUnit': {'state': 'translated', 'value': v}})}}
for k, v in sorted(source.items())}}
def used_keys():
diff --git a/native/scripts/strings.json b/native/scripts/strings.json
index 539e9e7d..6f6ff7ed 100644
--- a/native/scripts/strings.json
+++ b/native/scripts/strings.json
@@ -514,5 +514,7 @@
"native.screenshot.choose": "Choose screenshots",
"native.screenshot.settings": "Open Settings",
"native.screenshot.usage": "Equipo uses photo access to offer recent screenshots for you to attach to messages.",
- "chat.connections.dismiss": "Dismiss"
+ "chat.connections.dismiss": "Dismiss",
+ "native.share.earlier_unconfirmed": "An earlier message could not be confirmed as sent.",
+ "settings.discard": "Discard"
}
diff --git a/native/share/Sources/EquipoShareCore/ShareJournal.swift b/native/share/Sources/EquipoShareCore/ShareJournal.swift
index 294b014a..32408f7b 100644
--- a/native/share/Sources/EquipoShareCore/ShareJournal.swift
+++ b/native/share/Sources/EquipoShareCore/ShareJournal.swift
@@ -42,45 +42,59 @@ public struct ShareJournal: Sendable {
defer { flock(descriptor, LOCK_UN) }
return try operation(file)
}
+ struct Envelope: Codable { let records: [Record] }
+ private func persist(_ records: [Record], to file: URL) throws {
+ if records.isEmpty { try? FileManager.default.removeItem(at: file); return }
+ let data = try JSONEncoder().encode(Envelope(records: records))
+ guard data.count <= 1024 * 1024 else { throw ShareFailure.unconfirmed }
+ #if os(iOS)
+ try data.write(to: file, options: [.atomic, .completeFileProtection])
+ #else
+ try data.write(to: file, options: .atomic)
+ #endif
+ try FileManager.default.setAttributes([.posixPermissions: 0o600], ofItemAtPath: file.path)
+ }
+ private func records(_ file: URL, selection: ShareSelection) throws -> [Record] {
+ guard FileManager.default.fileExists(atPath: file.path) else { return [] }
+ let handle = try FileHandle(forReadingFrom: file); defer { try? handle.close() }
+ let data = try handle.read(upToCount: 1024 * 1024 + 1) ?? Data()
+ guard data.count <= 1024 * 1024 else { throw ShareFailure.invalidInput }
+ let decoder = JSONDecoder()
+ let records: [Record]
+ if let envelope = try? decoder.decode(Envelope.self, from: data) { records = envelope.records }
+ else { records = [try decoder.decode(Record.self, from: data)] }
+ guard records.count <= 32 else { throw ShareFailure.invalidInput }
+ guard records.allSatisfy({ $0.selection.origin == selection.origin && $0.selection.person == selection.person }) else { throw ShareFailure.signedOut }
+ return records
+ }
public func save(_ write: ShareWrite, selection: ShareSelection, now: Date = Date()) throws {
try locked(selection) { file in
- if let existing = try read(file, selection: selection, now: now) {
- guard existing == write else { throw ShareFailure.unconfirmed }
- return // A retry never extends the journal's lifetime.
+ var records = try records(file, selection: selection).filter { now.timeIntervalSince($0.created) < 86400 }
+ if let existing = records.first(where: { $0.write.key == write.key }) {
+ guard existing.write == write else { throw ShareFailure.unconfirmed }
+ return // Retrying never extends the original deadline.
}
- let data = try JSONEncoder().encode(Record(selection: selection, created: now, write: write))
- #if os(iOS)
- try data.write(to: file, options: [.atomic, .completeFileProtection])
- #else
- try data.write(to: file, options: .atomic)
- #endif
- try FileManager.default.setAttributes([.posixPermissions: 0o600], ofItemAtPath: file.path)
+ guard records.count < 32 else { throw ShareFailure.unconfirmed }
+ records.append(Record(selection: selection, created: now, write: write))
+ try persist(records, to: file)
}
}
- public func load(selection: ShareSelection, now: Date = Date()) throws -> ShareWrite? {
- try locked(selection) { try read($0, selection: selection, now: now) }
- }
- private func record(_ file: URL) throws -> Record? {
- guard FileManager.default.fileExists(atPath: file.path) else { return nil }
- let handle = try FileHandle(forReadingFrom: file); defer { try? handle.close() }
- let data = try handle.read(upToCount: 64 * 1024 + 1) ?? Data()
- guard data.count <= 64 * 1024 else { throw ShareFailure.invalidInput }
- return try JSONDecoder().decode(Record.self, from: data)
- }
- private func read(_ file: URL, selection: ShareSelection, now: Date) throws -> ShareWrite? {
- guard let record = try record(file) else { return nil }
- guard record.selection.origin == selection.origin, record.selection.person == selection.person else { throw ShareFailure.signedOut }
- guard now.timeIntervalSince(record.created) < 86400 else {
- try? FileManager.default.removeItem(at: file)
- throw ShareFailure.expiredJournal
+ public func loadAll(selection: ShareSelection, now: Date = Date()) throws -> [ShareWrite] {
+ try locked(selection) { file in
+ let all = try records(file, selection: selection)
+ let current = all.filter { now.timeIntervalSince($0.created) < 86400 }
+ if current.count != all.count { try persist(current, to: file) }
+ if !all.isEmpty && current.isEmpty { throw ShareFailure.expiredJournal }
+ return current.map(\.write)
}
- return record.write
+ }
+ public func load(selection: ShareSelection, now: Date = Date()) throws -> ShareWrite? {
+ try loadAll(selection: selection, now: now).first
}
public func clear(selection: ShareSelection, key: String) {
try? locked(selection) { file in
- // A late acknowledgement must not remove a newer pending send.
- guard let record = try record(file), record.write.key == key else { return }
- try FileManager.default.removeItem(at: file)
+ let remaining = try records(file, selection: selection).filter { $0.write.key != key }
+ try persist(remaining, to: file)
}
}
}
diff --git a/native/share/Sources/EquipoShareCore/ShareSender.swift b/native/share/Sources/EquipoShareCore/ShareSender.swift
index 731c29a1..9268b44d 100644
--- a/native/share/Sources/EquipoShareCore/ShareSender.swift
+++ b/native/share/Sources/EquipoShareCore/ShareSender.swift
@@ -15,6 +15,10 @@ public struct ShareProject: Decodable, Identifiable, Sendable {
public private(set) var error: ShareFailure?
public private(set) var failedFile: UUID?
private var currentFile: UUID?
+ public private(set) var earlierPending: [ShareWrite] = []
+ public private(set) var earlierErrors: [String: ShareFailure] = [:]
+ public private(set) var earlierBusy: Set<String> = []
+ private var earlierWork: [String: Task<Void, Never>] = [:]
public private(set) var pending: ShareWrite?
public private(set) var projects: [ShareProject] = []
public var text = ""
@@ -29,10 +33,7 @@ public struct ShareProject: Decodable, Identifiable, Sendable {
self.auth = auth; self.transport = transport; self.journal = journal
do {
let selection = try auth.read().selection; self.selection = selection
- pending = try journal.load(selection: selection)
- if let pending, let body = try? JSONSerialization.jsonObject(with: pending.body) as? [String: Any] {
- text = body["text"] as? String ?? ""; project = body["project_id"] as? String
- }
+ earlierPending = try journal.loadAll(selection: selection)
} catch let failure as ShareFailure { error = failure } catch { self.error = .unconfirmed }
}
public var canEdit: Bool { !busy && pending == nil && !finished }
@@ -104,15 +105,55 @@ public struct ShareProject: Decodable, Identifiable, Sendable {
pending = write
}
guard let pending else { throw ShareFailure.unconfirmed }
- var r = try request("POST", path: "/messages", selection: selection)
- r.httpBody = pending.body; r.setValue("application/json", forHTTPHeaderField: "Content-Type")
- r.setValue(pending.key, forHTTPHeaderField: "Idempotency-Key")
- let data = try await checked(r, selection: selection)
- struct Sent: Decodable { struct Message: Decodable { let id: String }; let message: Message }
- guard !(try JSONDecoder().decode(Sent.self, from: data)).message.id.isEmpty else { throw ShareFailure.unconfirmed }
+ try await post(pending, selection: selection)
journal.clear(selection: selection, key: pending.key); self.pending = nil; finished = true
cleanFiles()
- } catch { record(error) }
+ } catch {
+ if Self.definiteRefusal(error), let pending {
+ journal.clear(selection: selection, key: pending.key); self.pending = nil
+ }
+ record(error)
+ }
+ }
+ private func post(_ pending: ShareWrite, selection: ShareSelection) async throws {
+ var r = try request("POST", path: "/messages", selection: selection)
+ r.httpBody = pending.body; r.setValue("application/json", forHTTPHeaderField: "Content-Type")
+ r.setValue(pending.key, forHTTPHeaderField: "Idempotency-Key")
+ let data = try await checked(r, selection: selection)
+ struct Sent: Decodable { struct Message: Decodable { let id: String }; let message: Message }
+ guard !(try JSONDecoder().decode(Sent.self, from: data)).message.id.isEmpty else { throw ShareFailure.unconfirmed }
+ }
+ private static func definiteRefusal(_ error: Error) -> Bool {
+ guard case .server(let status, _) = error as? ShareFailure else { return false }
+ return (400..<500).contains(status) && status != 401 && status != 403
+ }
+ public func retryEarlier(_ key: String) async {
+ guard let selection, !earlierBusy.contains(key), let write = earlierPending.first(where: { $0.key == key }) else { return }
+ earlierBusy.insert(key); earlierErrors[key] = nil
+ defer { earlierBusy.remove(key) }
+ do {
+ try await post(write, selection: selection)
+ journal.clear(selection: selection, key: key)
+ earlierPending.removeAll { $0.key == key }
+ } catch {
+ earlierErrors[key] = error as? ShareFailure ?? .unconfirmed
+ if Self.definiteRefusal(error) {
+ journal.clear(selection: selection, key: key)
+ earlierPending.removeAll { $0.key == key }
+ }
+ if error as? ShareFailure == .signedOut { record(error) }
+ }
+ }
+ public func startEarlier(_ key: String) {
+ guard earlierWork[key] == nil else { return }
+ earlierWork[key] = Task { [weak self] in
+ await self?.retryEarlier(key); self?.earlierWork[key] = nil
+ }
+ }
+ public func discardEarlier(_ key: String) {
+ guard let selection, !earlierBusy.contains(key) else { return }
+ journal.clear(selection: selection, key: key)
+ earlierPending.removeAll { $0.key == key }; earlierErrors[key] = nil
}
func record(_ failure: Error) {
failedFile = currentFile; currentFile = nil
@@ -127,7 +168,8 @@ public struct ShareProject: Decodable, Identifiable, Sendable {
if finished { completed() }
}
}
- public func revoke() { work?.cancel(); record(ShareFailure.signedOut) }
- public func cancel() { work?.cancel(); work = nil; cleanFiles() }
+ public func revoke() { cancelEarlier(); work?.cancel(); record(ShareFailure.signedOut) }
+ public func cancel() { cancelEarlier(); work?.cancel(); work = nil; cleanFiles() }
+ private func cancelEarlier() { for task in earlierWork.values { task.cancel() }; earlierWork = [:] }
private func cleanFiles() { for file in files { try? FileManager.default.removeItem(at: file.url) }; files = []; progress = [:] }
}
diff --git a/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings b/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
index 645f46a5..60d9d5eb 100644
--- a/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
+++ b/native/share/Sources/EquipoShareUI/Resources/Localizable.xcstrings
@@ -1657,6 +1657,18 @@
}
}
},
+ "native.share.earlier_unconfirmed": {
+ "comment": "COPY APPROVED: Luna, 2026-11-27.",
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "An earlier message could not be confirmed as sent."
+ }
+ }
+ }
+ },
"native.share.signed_out": {
"comment": "COPY APPROVED: Luna, 2026-11-26.",
"extractionState": "manual",
@@ -3090,6 +3102,17 @@
}
}
},
+ "settings.discard": {
+ "extractionState": "manual",
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Discard"
+ }
+ }
+ }
+ },
"settings.not_paired": {
"extractionState": "manual",
"localizations": {
diff --git a/native/share/Sources/EquipoShareUI/ShareComposeView.swift b/native/share/Sources/EquipoShareUI/ShareComposeView.swift
index fa82e08d..340c97ee 100644
--- a/native/share/Sources/EquipoShareUI/ShareComposeView.swift
+++ b/native/share/Sources/EquipoShareUI/ShareComposeView.swift
@@ -41,6 +41,18 @@ public struct ShareComposeView: View {
if let selection = sender.selection {
Text(selection.team).font(.headline)
Text(selection.person).font(.caption).foregroundStyle(.secondary)
+ ForEach(sender.earlierPending, id: \.key) { write in
+ VStack(alignment: .leading, spacing: 8) {
+ Text(ShareWords.text("native.share.earlier_unconfirmed"))
+ HStack {
+ Button(ShareWords.text("work.pause.try_again")) { sender.startEarlier(write.key) }
+ Button(ShareWords.text("settings.discard")) { sender.discardEarlier(write.key) }
+ }.disabled(sender.earlierBusy.contains(write.key))
+ }.accessibilityIdentifier("share-earlier")
+ }
+ ForEach(sender.earlierErrors.keys.sorted(), id: \.self) { key in
+ if let error = sender.earlierErrors[key] { Text(ShareWords.error(error)).foregroundStyle(.secondary) }
+ }
Picker(ShareWords.text("nav.projects"), selection: $sender.project) {
Text(ShareWords.text("native.share.automatic")).tag(nil as String?)
ForEach(sender.projects) { Text($0.displayName).tag(Optional($0.id)) }
diff --git a/native/share/Tests/EquipoShareCoreTests/EarlierShareTests.swift b/native/share/Tests/EquipoShareCoreTests/EarlierShareTests.swift
new file mode 100644
index 00000000..3be83869
--- /dev/null
+++ b/native/share/Tests/EquipoShareCoreTests/EarlierShareTests.swift
@@ -0,0 +1,128 @@
+import Foundation
+import Testing
+@testable import EquipoShareCore
+
+@MainActor @Suite struct EarlierShareTests {
+ @MainActor struct Setup {
+ let directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
+ let store = MemorySecretStore()
+ let transport = EarlierShareServer()
+ let selection = ShareSelection(origin: URL(string: "https://share.invalid")!, person: "p", team: "T")
+ var journal: ShareJournal { ShareJournal(directory: directory) }
+ init() throws {
+ try store.write(JSONEncoder().encode(selection), account: ShareSelection.key)
+ let account = ShareAccount(origin: selection.origin, credential: .init(token: "fixture", expiresAt: .distantFuture), address: "p", oficinaIdentity: nil, oficinaSessionHash: nil)
+ try store.write(JSONEncoder().encode(account), account: selection.origin.absoluteString)
+ }
+ func sender() -> ShareSender { ShareSender(auth: ShareAuthentication(store: store), transport: transport, journal: journal) }
+ func clean() { try? FileManager.default.removeItem(at: directory) }
+ }
+ @Test func lostACancelThenNewBPreservesBothAndOldRetryNeverFinishesB() async throws {
+ let setup = try Setup(); defer { setup.clean() }
+ let a = setup.sender(); a.text = "Message A"
+ await a.send()
+ let old = try #require(a.pending); a.cancel()
+ let b = setup.sender(); #expect(b.text.isEmpty && b.project == nil)
+ b.text = "Message B"
+ #expect(b.pending == nil)
+ #expect(b.earlierPending == [old])
+ #expect(b.canEdit && b.canSend)
+ let input = setup.directory.appendingPathComponent("B.txt"); try Data("B image context".utf8).write(to: input)
+ let file = try AttachmentFile.prepareFile(input, directory: setup.directory)
+ try b.add(file)
+ await b.retryEarlier(old.key)
+ #expect(!b.finished)
+ #expect(b.text == "Message B" && b.files.count == 1)
+ #expect(b.earlierPending.isEmpty)
+ let requests = await setup.transport.messages
+ #expect(requests.count == 2)
+ #expect(requests[0].httpBody == requests[1].httpBody)
+ #expect(requests[0].value(forHTTPHeaderField: "Idempotency-Key") == requests[1].value(forHTTPHeaderField: "Idempotency-Key"))
+ await b.send(); #expect(b.finished)
+ let sent = try #require(await setup.transport.messages.last)
+ let data = try #require(sent.httpBody)
+ let body = try #require(JSONSerialization.jsonObject(with: data) as? [String: Any])
+ #expect(body["text"] as? String == "Message B")
+ #expect(body["attachments"] as? [String] == ["attachment-B"])
+ #expect(sent.value(forHTTPHeaderField: "Idempotency-Key") != old.key)
+ }
+ @Test func newSendAndDiscardDoNotClearAnotherPendingMessage() async throws {
+ let setup = try Setup(); defer { setup.clean() }
+ let a = setup.sender(); a.text = "A"; await a.send(); a.cancel()
+ let old = try #require(a.pending)
+ let b = setup.sender(); b.text = "B"; await b.send()
+ #expect(b.finished)
+ #expect(try setup.journal.loadAll(selection: setup.selection) == [old])
+ let c = setup.sender(); c.text = "C"
+ c.discardEarlier(old.key)
+ #expect(c.text == "C" && c.canSend && !c.finished)
+ #expect(c.earlierPending.isEmpty)
+ #expect(try setup.journal.loadAll(selection: setup.selection).isEmpty)
+ }
+ @Test func twoLostMessagesSurviveIndependentlyAcrossFreshSenders() async throws {
+ let setup = try Setup(); defer { setup.clean() }
+ let a = setup.sender(); a.text = "A"; await a.send(); a.cancel()
+ let first = try #require(a.pending)
+ await setup.transport.setStatus(0)
+ let b = setup.sender(); b.text = "B"; await b.send(); b.cancel()
+ let second = try #require(b.pending)
+ #expect(first.key != second.key)
+ let c = setup.sender(); #expect(c.earlierPending == [first, second]); #expect(c.text.isEmpty)
+ c.discardEarlier(first.key)
+ #expect(try setup.journal.loadAll(selection: setup.selection) == [second])
+ }
+ @Test func doubleTapEarlierRetryPostsOnlyOnce() async throws {
+ let setup = try Setup(); defer { setup.clean() }
+ let a = setup.sender(); a.text = "A"; await a.send(); a.cancel()
+ let old = try #require(a.pending)
+ let b = setup.sender(); b.text = "B"
+ await setup.transport.pauseNext()
+ let retry = Task { await b.retryEarlier(old.key) }
+ for _ in 0..<100 { if await setup.transport.paused { break }; try await Task.sleep(for: .milliseconds(10)) }
+ #expect(await setup.transport.paused)
+ await b.retryEarlier(old.key)
+ #expect(await setup.transport.messages.count == 2)
+ b.discardEarlier(old.key) // Cannot discard a POST while its outcome is unknown.
+ #expect(b.earlierPending == [old])
+ await setup.transport.resume(); await retry.value
+ #expect(b.earlierPending.isEmpty && !b.finished && b.text == "B")
+ }
+ @Test(arguments: [400, 409, 413, 422]) func permanentRefusalClearsOnlyThatWrite(_ status: Int) async throws {
+ let setup = try Setup(); defer { setup.clean() }
+ let a = setup.sender(); a.text = "A"; await a.send(); a.cancel()
+ let old = try #require(a.pending)
+ await setup.transport.setStatus(status)
+ let b = setup.sender(); b.text = "B"; await b.send()
+ #expect(!b.finished && b.pending == nil && b.canEdit)
+ #expect(b.error == .server(status, "project_not_allowed"))
+ #expect(try setup.journal.loadAll(selection: setup.selection) == [old])
+ await b.retryEarlier(old.key)
+ #expect(b.earlierPending.isEmpty && !b.finished && b.text == "B")
+ #expect(b.earlierErrors[old.key] == .server(status, "project_not_allowed"))
+ #expect(try setup.journal.loadAll(selection: setup.selection).isEmpty)
+ }
+ @Test(arguments: [401, 403, 500]) func authAndUncertainFailuresKeepJournal(_ status: Int) async throws {
+ let setup = try Setup(); defer { setup.clean() }
+ await setup.transport.setStatus(status)
+ let a = setup.sender(); a.text = "A"; await a.send()
+ #expect(a.pending != nil)
+ #expect(try setup.journal.loadAll(selection: setup.selection).count == 1)
+ }
+}
+actor EarlierShareServer: ShareTransport {
+ var messages: [URLRequest] = []
+ var status = 0
+ var pause = false
+ var continuation: CheckedContinuation<Void, Never>?
+ var paused: Bool { continuation != nil }
+ func pauseNext() { pause = true }
+ func resume() { continuation?.resume(); continuation = nil }
+ func setStatus(_ value: Int) { status = value }
+ func send(_ request: URLRequest, file: URL?, progress: @escaping @Sendable (Double) -> Void) async throws -> ShareResponse {
+ if request.url?.path.hasSuffix("/attachments") == true { return .init(status: 200, data: Data(#"{"id":"attachment-B"}"#.utf8)) }
+ messages.append(request)
+ if pause { pause = false; await withCheckedContinuation { continuation = $0 } }
+ if status == 0 { status = 200; throw URLError(.networkConnectionLost) }
+ return .init(status: status, data: Data((status == 200 ? #"{"message":{"id":"message"}}"# : #"{"code":"project_not_allowed"}"#).utf8))
+ }
+}
diff --git a/native/share/Tests/EquipoShareCoreTests/ShareTests.swift b/native/share/Tests/EquipoShareCoreTests/ShareTests.swift
index b2e336ed..f20cc865 100644
--- a/native/share/Tests/EquipoShareCoreTests/ShareTests.swift
+++ b/native/share/Tests/EquipoShareCoreTests/ShareTests.swift
@@ -113,14 +113,16 @@ private actor LostReply: ShareTransport {
let first = try ShareMessage(text: "First", project: nil, attachments: []).pending()
let next = try ShareMessage(text: "Next", project: nil, attachments: []).pending()
try journal.save(first, selection: selection)
- #expect(throws: ShareFailure.unconfirmed) { try journal.save(next, selection: selection) }
+ try journal.save(next, selection: selection)
+ #expect(try journal.loadAll(selection: selection) == [first, next])
+ #expect(throws: ShareFailure.unconfirmed) { try journal.save(ShareWrite(key: first.key, body: next.body), selection: selection) }
journal.clear(selection: selection, key: first.key)
try journal.save(next, selection: selection)
journal.clear(selection: selection, key: first.key)
#expect(try journal.load(selection: selection) == next)
}
-@Test func concurrentJournalWritersKeepExactlyOneRequest() async throws {
+@Test func concurrentJournalWritersKeepEveryIndependentRequest() async throws {
let directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
defer { try? FileManager.default.removeItem(at: directory) }
let journal = ShareJournal(directory: directory), selection = ShareSelection(origin: URL(string: "https://team.example")!, person: "p", team: "T")
@@ -129,7 +131,8 @@ private actor LostReply: ShareTransport {
for write in writes { group.addTask { do { try journal.save(write, selection: selection); return 1 } catch { return 0 } } }
var total = 0; for await n in group { total += n }; return total
}
- #expect(successes == 1)
+ #expect(successes == 4)
+ #expect(Set(try journal.loadAll(selection: selection).map(\.key)) == Set(writes.map(\.key)))
#expect(writes.contains(try #require(try journal.load(selection: selection))))
}
@@ -143,3 +146,16 @@ private actor LostReply: ShareTransport {
try journal.save(write, selection: selection, now: now.addingTimeInterval(3600))
#expect(throws: ShareFailure.expiredJournal) { try journal.load(selection: selection, now: now.addingTimeInterval(86400)) }
}
+
+@Test func legacyJournalLoadsWithoutReplacingTheNewShare() throws {
+ let directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
+ try FileManager.default.createDirectory(at: directory, withIntermediateDirectories: true)
+ defer { try? FileManager.default.removeItem(at: directory) }
+ let journal = ShareJournal(directory: directory), selection = ShareSelection(origin: URL(string: "https://team.example")!, person: "p", team: "T")
+ let old = try ShareMessage(text: "Old", project: nil, attachments: []).pending()
+ try JSONEncoder().encode(ShareJournal.Record(selection: selection, created: Date(), write: old)).write(to: journal.file(for: selection))
+ #expect(try journal.loadAll(selection: selection) == [old])
+ let new = try ShareMessage(text: "New", project: nil, attachments: []).pending()
+ try journal.save(new, selection: selection)
+ #expect(try journal.loadAll(selection: selection) == [old, new])
+}