oficina / equipo Public

Fix attachment resizing, drag handling and upload lifecycle

Paul Campbell pushed by claude agent, operated by paul@keymail.dev e4bacd1f801f0e1e9814f8b53a8942b942f7f15c parent 69e059b
15 files changed, +594 −24
  • docs/superpowers/plans/CONTROLLER-REPORT-native-attachments.md +107 −0
  • native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift +16 −3
  • native/apple/Sources/EquipoKit/Attachments/AttachmentFile.swift +22 −8
  • native/apple/Sources/EquipoKit/Attachments/AttachmentViews.swift +15 −4
  • native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift +3 −1
  • native/apple/Sources/EquipoMac/AttachmentPromises.swift +41 −0
  • native/apple/Sources/EquipoMac/MacAttachmentsFixture.swift +27 −2
  • native/apple/Sources/EquipoMac/MacComposer.swift +17 −5
  • native/apple/Tests/EquipoKitTests/AttachmentHTTPTests.swift +11 −0
  • native/apple/Tests/EquipoKitTests/AttachmentReviewTests.swift +188 −0
  • native/apple/Tests/EquipoKitTests/AttachmentTests.swift +1 −1
  • native/apple/Tests/EquipoKitTests/Fixtures/attachments/large.webp binary
  • native/apple/Tests/EquipoKitTests/MacAttachmentTests.swift +101 −0
  • native/ios/UITests/AttachmentSourceUITests.swift +21 −0
  • native/ios/project.yml +24 −0

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/native__attachments: 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.3s
ci-box: claude: fetched and verified in 2.6s
ci-box: codex: fetched and verified in 4.0s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
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.6s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 4.2s
ci-box: file times set from content: 3027 files, 196 directories
ci-box: ready in 18.4s
=== 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.144s
=== 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.965s 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.409s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m6.41s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 37.52, cpu waiting 23.56%, memory waiting 0.00%, io waiting 1.38%
--- 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.233s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m5.569s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.57s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 37.52, cpu waiting 23.82%, memory waiting 0.00%, io waiting 1.42%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m7.825s 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.875s amadan.net/oficina/equipo/internal/headless
receipt: slow test 57.77s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.3s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 3.81s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 37.52, cpu waiting 23.82%, memory waiting 0.00%, io waiting 1.42%
--- 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.48s 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.841s amadan.net/oficina/equipo/internal/headless
receipt: slow test 30.24s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 16.52s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.57s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.51s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 37.52, cpu waiting 24.15%, memory waiting 0.00%, io waiting 1.47%
--- 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.367s 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.617s amadan.net/oficina/equipo/internal/headless
receipt: slow test 51.89s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.9s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.86s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 33.32, cpu waiting 22.31%, memory waiting 0.00%, io waiting 1.13%
--- 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 2m33.043s 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 2m30.94s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m26.09s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.26s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.59s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.56s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.37s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 17.65, cpu waiting 7.13%, memory waiting 0.00%, io waiting 0.33%
--- 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 403ms 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 2m6.369s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.17s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.66s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.53s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 8.84, cpu waiting 0.29%, memory waiting 0.00%, io waiting 4.26%
--- 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 420ms 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 1m35.659s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.1s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.5s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/thintest TestContractRetryFailedPreviewAfterMerge
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 8.84, cpu waiting 0.29%, memory waiting 0.00%, io waiting 4.26%
--- 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 4m37.644s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m51.41s 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 4m37.644s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.98s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.87s 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.47s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.88s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 2.71, cpu waiting 0.68%, memory waiting 0.00%, io waiting 0.03%
--- 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.3s 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.152s amadan.net/oficina/equipo/internal/runner
receipt: slow test 27.11s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 39.33, cpu waiting 23.87%, memory waiting 0.00%, io waiting 1.93%
--- 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 49.424s 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.566s amadan.net/oficina/equipo/internal/runner
receipt: slow test 37.48s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 33.55s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.42s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 39.33, cpu waiting 23.87%, memory waiting 0.00%, io waiting 1.93%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 35.449s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.587s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.59s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.32s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 32.38, cpu waiting 16.19%, memory waiting 0.00%, io waiting 2.43%
--- 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 33.0%, load 24.80
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 1m7.536s 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.513s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.78s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.69s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.61s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 24.02s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.87s amadan.net/oficina/equipo/internal/equipotest TestAuthorityGrantReferences
machine: 32 CPUs, load 28.69, cpu waiting 17.66%, memory waiting 0.00%, io waiting 0.86%
--- 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 33.0%, load 30.50
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 474ms 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 1m16.793s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.72s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 20.7s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.68s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.67s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.67s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 30.50, cpu waiting 12.94%, memory waiting 0.00%, io waiting 2.60%
--- 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 33.0%, load 24.80
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.019s 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.569s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.63s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.57s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.52s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.45s amadan.net/oficina/equipo/internal/equipotest TestRosterAuditFailureRollsBack
machine: 32 CPUs, load 25.19, cpu waiting 15.14%, memory waiting 0.00%, io waiting 0.73%
--- 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 33.0%, load 24.80
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 429ms 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.287s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.88s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.38s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 25.35s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.45s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
receipt: slow test 23.39s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 30.50, cpu waiting 12.94%, memory waiting 0.00%, io waiting 2.60%
--- 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.0%, load 30.50
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 593ms 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 52.108s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.74s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.28s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 30.50, cpu waiting 12.94%, memory waiting 0.00%, io waiting 2.60%
--- 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.0%, load 30.50
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: 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 50.61s, 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 15.626s, 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 11.631s, 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.046s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 23.057s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 38.59s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.884s 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 1m42.046s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 53.422s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.782s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 50.61s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 38.59s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 55.53s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 46.61s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 46.57s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.93s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 45.67s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
machine: 32 CPUs, load 13.96, cpu waiting 5.64%, memory waiting 0.00%, io waiting 0.26%
--- 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.11s 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.702s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.58s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.38s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.26s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 33.32, cpu waiting 22.31%, memory waiting 0.00%, io waiting 1.13%
--- 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 1m18.628s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.847s amadan.net/oficina/equipo/internal/headless
receipt: slow test 23.44s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 18.04s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.11s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.27s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 34.82, cpu waiting 22.73%, memory waiting 0.00%, io waiting 1.16%
--- 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.367s 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.855s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.17s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.45s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.19s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.13s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 10.63s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 25.19, cpu waiting 15.14%, memory waiting 0.00%, io waiting 0.73%
--- 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 1m22.814s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m21.192s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.62s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.25s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.55s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.01s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.23s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 33.32, cpu waiting 21.78%, memory waiting 0.00%, io waiting 1.09%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

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

receipt: test step 299ms 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 10.907s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.08s 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 200ms 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.19s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.19s 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 265ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m35.78s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.07s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.43s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.04s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.74s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.29s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 8.84, cpu waiting 1.39%, memory waiting 0.00%, io waiting 4.15%
--- 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.64s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.26s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.66s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.98s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.16s
+ 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.82s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 9.91s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.49s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.74s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (18s)
ok ./internal/headless TestMixedVersions 16.95s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 39.33, cpu waiting 23.87%, memory waiting 0.00%, io waiting 1.93%
--- 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.579s 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.32s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 188ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 68ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.29s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 70ms 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.135s 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.781s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 13.30, cpu waiting 5.21%, memory waiting 0.00%, io waiting 3.51%
--- 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.0%, load 30.50
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2739 text files, 3228 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 92 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.557s
machine: 32 CPUs, load 34.92, cpu waiting 22.28%, memory waiting 0.00%, io waiting 2.06%
--- 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.0%, load 30.50
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 30.50, cpu waiting 14.48%, memory waiting 0.00%, io waiting 2.52%
--- 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.0%, load 30.50
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 3
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 32.38, cpu waiting 17.40%, memory waiting 0.00%, io waiting 2.35%
--- 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 33.0%, load 24.80
shard 28: make gitleaks
12:05AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
12:05AM INF 1160 commits scanned.
12:05AM INF scanned ~66136784 bytes (66.14 MB) in 15.1s
12:05AM INF no leaks found
machine: 32 CPUs, load 39.33, cpu waiting 22.28%, memory waiting 0.00%, io waiting 2.06%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.04ms, worst 1.105ms, budget 150ms
perf: GET /api/runner/protocol: median 76µs, worst 86µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 600µs, worst 703µs, budget 150ms
perf: GET /api/v1/accounts: median 456µs, worst 484µs, budget 150ms
perf: GET /api/v1/auth/devices: median 451µs, worst 479µs, budget 150ms
perf: GET /api/v1/budgets: median 493µs, worst 540µs, budget 150ms
perf: GET /api/v1/capabilities: median 247µs, worst 353µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.249ms, worst 1.312ms, budget 150ms
perf: GET /api/v1/connections: median 622µs, worst 678µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 594µs, worst 672µs, budget 150ms
perf: GET /api/v1/conversation: median 994µs, worst 1.058ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.579ms, worst 1.668ms, budget 150ms
perf: GET /api/v1/coordinator: median 2.128ms, worst 2.172ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 502µs, worst 532µs, budget 150ms
perf: GET /api/v1/journey: median 7.548ms, worst 11.109ms, budget 150ms
perf: GET /api/v1/me: median 428µs, worst 466µs, budget 150ms
perf: GET /api/v1/me/settings: median 532µs, worst 562µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.593ms, worst 7.982ms, budget 150ms
perf: GET /api/v1/notifications: median 1.826ms, worst 1.927ms, budget 150ms
perf: GET /api/v1/onboarding: median 415µs, worst 438µs, budget 150ms
perf: GET /api/v1/people: median 451µs, worst 494µs, budget 150ms
perf: GET /api/v1/playbooks: median 599µs, worst 639µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 528µs, worst 576µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 841µs, worst 889µs, budget 150ms
perf: GET /api/v1/preferences: median 735µs, worst 818µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 452µs, worst 489µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 570µs, worst 608µs, budget 150ms
perf: GET /api/v1/roster: median 454µs, worst 487µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 409µs, worst 451µs, budget 150ms
perf: GET /api/v1/specialists: median 8.542ms, worst 8.678ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.021ms, worst 8.36ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 820µs, worst 868µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.125ms, worst 1.164ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 710µs, worst 764µs, budget 150ms
perf: GET /api/v1/teams: median 438µs, worst 453µs, budget 150ms
perf: GET /api/v1/templates: median 592µs, worst 630µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 441µs, worst 468µs, budget 150ms
perf: GET /auth/callback: median 77µs, worst 94µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.721ms, worst 3.857ms, budget 150ms
perf: GET /auth/verify: median 81µs, worst 97µs, budget 150ms
perf: GET /connections: median 4.047ms, worst 4.219ms, budget 150ms
perf: GET /conversation: median 7.942ms, worst 8.285ms, budget 150ms
perf: GET /conversation/connections: median 259µs, worst 297µs, budget 150ms
perf: GET /conversation/notebook: median 262µs, worst 278µs, budget 150ms
perf: GET /conversation/settings: median 4.972ms, worst 5.337ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.752ms, worst 4.952ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.867ms, worst 7.052ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.931ms, worst 7.029ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.865ms, worst 4.933ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.947ms, worst 5.101ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.933ms, worst 5.062ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.854ms, worst 5.035ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.829ms, worst 4.116ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.752ms, worst 4.915ms, budget 150ms
perf: GET /housekeeping: median 4.566ms, worst 4.803ms, budget 150ms
perf: GET /invites/new: median 623µs, worst 688µs, budget 150ms
perf: GET /invites/{id}: median 658µs, worst 697µs, budget 150ms
perf: GET /jobs: median 3.961ms, worst 4.046ms, budget 150ms
perf: GET /jobs/{id}: median 5.295ms, worst 5.475ms, budget 150ms
perf: GET /journey: median 13.593ms, worst 13.794ms, budget 150ms
perf: GET /nav/rail: median 3.91ms, worst 4.142ms, budget 150ms
perf: GET /needs-you: median 12.117ms, worst 15.134ms, budget 150ms
perf: GET /onboarding: median 5.034ms, worst 5.313ms, budget 150ms
perf: GET /people: median 4.489ms, worst 4.836ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.928ms, worst 6.136ms, budget 150ms
perf: GET /playbooks: median 5.19ms, worst 5.303ms, budget 150ms
perf: GET /playbooks/new: median 5.265ms, worst 5.445ms, budget 150ms
perf: GET /playbooks/{id}: median 4.837ms, worst 5.032ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.84ms, worst 4.931ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.009ms, worst 4.132ms, budget 150ms
perf: GET /preferences: median 4.475ms, worst 5.978ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.428ms, worst 4.601ms, budget 150ms
perf: GET /projects: median 6.022ms, worst 6.234ms, budget 150ms
perf: GET /projects/accounts: median 4.459ms, worst 4.563ms, budget 150ms
perf: GET /projects/new: median 4.54ms, worst 4.601ms, budget 150ms
perf: GET /projects/{id}: median 11.638ms, worst 11.757ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.606ms, worst 4.668ms, budget 150ms
perf: GET /runners/enrol: median 5.301ms, worst 5.507ms, budget 150ms
perf: GET /settings: median 4.262ms, worst 4.386ms, budget 150ms
perf: GET /settings/coordinator: median 6.402ms, worst 6.654ms, budget 150ms
perf: GET /settings/devices: median 3.95ms, worst 6.52ms, budget 150ms
perf: GET /settings/recovery: median 3.784ms, worst 3.871ms, budget 150ms
perf: GET /settings/recovery/release: median 3.792ms, worst 3.89ms, budget 150ms
perf: GET /settings/thinking: median 245µs, worst 299µs, budget 150ms
perf: GET /signed-out: median 272µs, worst 302µs, budget 150ms
perf: GET /signin: median 280µs, worst 309µs, budget 150ms
perf: GET /specialists/new: median 3.777ms, worst 3.839ms, budget 150ms
perf: GET /specialists/{key}: median 10.869ms, worst 11.083ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.926ms, worst 4.064ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.019ms, worst 4.12ms, budget 150ms
perf: GET /tasks: median 5.946ms, worst 6.07ms, budget 150ms
perf: GET /tasks/new: median 3.577ms, worst 3.628ms, budget 150ms
perf: GET /tasks/{id}: median 5.793ms, worst 5.984ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.194ms, worst 6.993ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.126ms, worst 5.178ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.989ms, worst 7.125ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.802ms, worst 1.842ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 6.227ms, worst 6.486ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.842ms, worst 5.892ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 5.34ms, worst 5.416ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.761ms, worst 9.024ms, budget 150ms
perf: GET /team/{specialist}: median 4.863ms, worst 4.966ms, budget 150ms
perf: GET /teams: median 10.354ms, worst 12.347ms, budget 150ms
perf: GET /templates: median 3.871ms, worst 4.013ms, budget 150ms
perf: GET /usage: median 4.696ms, worst 4.776ms, budget 150ms
perf: GET /work: median 3.509ms, worst 3.605ms, 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 157ms of [156.354478ms 156.587962ms 157.77159ms], budget 500ms

receipt: test step 33.501s 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.567s amadan.net/oficina/equipo/internal/equipotest
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 package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 10.05s 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.23 GiB in 25953 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.67 GiB this job did not read, kept 2.56 GiB
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-native-attachments.md b/docs/superpowers/plans/CONTROLLER-REPORT-native-attachments.md
index 50f1c8a2..4f978dc3 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-native-attachments.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-native-attachments.md
@@ -157,3 +157,110 @@ The Mac capture uses day appearance. Final `native/scripts/check-native.sh`
passed: 245 tests in 31 suites, one existing known issue, 221 parity strings,
zero reference failures, and Mac plus iPhone Simulator builds. No server files
changed. No new copy was added by these polish fixes.
+
+## Fable review follow-up
+
+Review of 69e059bc requested three P2 corrections and associated P3 polish.
+Slice 3 was paused before editing code. This follow-up remains on the published
+native/attachments branch, with new commits and no rebase.
+
+Image preparation now matches chat-attach.js: JPEG quality 0.85, long edge
+2560, orientation applied and transparency flattened onto white. HEIC/HEIF
+and TIFF are converted; other oversized images, including WebP, are converted;
+GIFs retain the web's exception. ImageIO creates only a bounded thumbnail,
+on the background preparation task. The server's 10 MiB/12000 px/40 MP limits
+apply to the upload. Local file reads use a separate 128 MiB input bound so
+large compressed photographs can be resized before the upload check.
+
+The new generated 8064 by 6048 HEIC test failed first with AttachmentFailure
+pixels. The large WebP fixture is a generated solid-colour 4096 by 2048 image
+(encoded with cwebp); both now become bounded JPEGs. The HEIC metadata test
+sets GPS and a private EXIF comment, verifies their removal, and checks a
+90-degree orientation transform. A small injected output limit tests the
+size check after conversion independently of compression ratios.
+
+Mac drag tests now send synthetic NSDraggingInfo through draggingEntered,
+draggingUpdated, prepareForDragOperation and performDragOperation. They first
+failed for PNG/TIFF at the update and prepare stages. All four stages now
+accept supported image/file/promise types and refuse web URLs. Promised files
+are received through NSFilePromiseReceiver into a mode-0700 temporary directory,
+read inside its coordinated callback, and removed. The draft retains the bytes
+for retry; the directory is removed when its readers release it. A receiver
+fixture verifies delivery and cleanup. Folders are refused before a draft item
+is created, using api.attachment_type.
+
+Removing an item and clearing a draft cancel the owned upload tasks. The
+cancellation test first failed with the original non-cancelling implementation.
+Thumbnail and original-preview image decoding also move to detached tasks,
+with 512/4096 pixel bounds and a cancellation check before updating UI state.
+
+The iPhone keeps the reviewed Paste menu item and accepts the system paste
+prompt, as explicitly permitted by the review. This choice keeps the attachment
+sources together in the menu. No new runtime copy is introduced.
+
+`swift test --package-path native/apple --filter Attachment` passed 25 tests
+across four suites after the review fixes. The updated loopback HTTP test also
+rejects a 307 upload redirect and a response exceeding the per-request cap.
+
+`python3 "$TMPDIR/attachments-review-mutations.py"` independently broke each
+of these 22 behaviors; each run failed an assertion or threw a test error and
+the source was restored in a finally block:
+
+| Mutation | Result |
+| --- | --- |
+| Source metadata retained in converted JPEG | Caught |
+| Orientation transform disabled | Caught |
+| Attachment read bearer omitted | Caught |
+| Upload delegate follows redirect | Caught |
+| Transport response cap removed | Caught |
+| Attachment client response cap removed | Caught |
+| Composer canSend guard removed | Caught |
+| Lost-project retry drops attachment ids | Caught |
+| Task-thread send accepts attachments | Caught |
+| Retry allowed while already uploading | Caught |
+| Late progress overwrites a ready item | Caught |
+| Retry generation check removed | Caught |
+| Server attachment codes use generic copy | Caught |
+| Bounded-file read size check removed | Caught |
+| Converted output size check removed | Caught |
+| Empty data accepted | Caught |
+| Mac pasteboard accepts web URLs | Caught |
+| Removal does not cancel the upload | Caught |
+| Full-size conversion instead of 2560 thumbnail | Caught |
+| Large WebP skips JPEG conversion | Caught |
+| draggingUpdated refuses image data | Caught |
+| prepareForDragOperation refuses image data | Caught |
+
+These are in addition to the original 17 mutations. Test scaffolding compile
+errors were corrected before running the mutations; no compiler failure is
+counted as a caught mutation.
+
+The capture exercise found a further iPhone presentation defect: PhotosPicker
+inside the transient Menu closed without opening its picker. The menu now
+sets a binding for a photosPicker modifier on the stable parent. The retained
+AttachmentSourceUITests test taps Attach, opens Photos, and requires the
+system Photos navigation bar. It uses the real app with its debug transport.
+The first capture harness showed the missing picker; the corrected capture
+shows Private Access to Photos, without requesting full-library access.
+
+General desktop automation lacked Accessibility permission and the standalone
+Mac XCTest runner could not start an automation session. No permissions were
+changed. The Mac screenshot fixture now runs all four drag destination methods
+with synthetic NSDraggingInfo before capturing, matching the regression test;
+it is not claimed as a physical mouse-drag capture.
+
+Final verification: `native/scripts/check-native.sh` passed 259 tests in 32
+suites (one pre-existing known issue), 221 parity strings, zero dead-reference
+failures, and both platform builds. Adding an explicit capture scheme initially
+hid XcodeGen's automatic EquipoPhone scheme; the app's original build scheme
+is now explicit too, and the full gate was rerun successfully.
+
+`xcodebuild -project EquipoPhone.xcodeproj -scheme AttachmentSources
+-destination 'platform=iOS Simulator,id=C86CAA29-B99C-40AB-84C4-DF7C74926904'
+-derivedDataPath ../build/Phone CODE_SIGNING_ALLOWED=NO test` passed its retained
+UI test. Its XCTest screenshots were exported with `xcresulttool export
+attachments`, inspected, and saved as `iphone-add-menu.png` and
+`iphone-photos-picker.png` beside the refreshed `mac-drop.png` in slice2.
+The Photos picker explicitly shows Oficina Equipo can access only selected
+items. Its Location Included system label describes the selected source;
+converted images drop metadata and the server strips location on every upload.
diff --git a/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift b/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift
index 79cfba36..8d397aa0 100644
--- a/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/AttachmentDraft.swift
@@ -15,6 +15,7 @@ import Observation
enum Source: Sendable { case data(Data), file(URL), load(@Sendable () async throws -> Data) }
public private(set) var items: [Item] = []
public private(set) var notice: String?
+ @ObservationIgnored private var uploads: [UUID: (generation: UUID, task: Task<Void, Never>)] = [:]
var client: EquipoClient
public init(client: EquipoClient) { self.client = client }
@@ -24,7 +25,11 @@ import Observation
}
public func add(data: Data, name: String) async { await add(.data(data), name: name) }
public func add(name: String, load: @escaping @Sendable () async throws -> Data) async { await add(.load(load), name: name) }
- public func add(url: URL) async { await add(.file(url), name: url.lastPathComponent) }
+ public func refuseFile() { notice = AttachmentFailure.type.words }
+ public func add(url: URL) async {
+ guard url.isFileURL, (try? url.resourceValues(forKeys: [.isRegularFileKey]).isRegularFile) == true else { 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 }
notice = nil
@@ -32,14 +37,21 @@ import Observation
items.append(Item(id: id, name: name, state: .uploading(0), source: source))
await upload(id)
}
- public func remove(_ id: UUID) { items.removeAll { $0.id == id }; notice = nil }
- public func clear() { items = []; notice = nil }
+ 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 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)
await upload(id)
}
private func upload(_ id: UUID) async {
+ guard let generation = items.first(where: { $0.id == id })?.generation else { return }
+ let task = Task { await performUpload(id) }
+ uploads[id] = (generation, task)
+ await withTaskCancellationHandler { await task.value } onCancel: { task.cancel() }
+ if uploads[id]?.generation == generation { uploads[id] = nil }
+ }
+ private func performUpload(_ id: UUID) async {
guard let item = items.first(where: { $0.id == id }) else { return }
do {
let file = try await Task.detached {
@@ -47,6 +59,7 @@ import Observation
switch item.source { case .data(let data): bytes = data; case .file(let url): bytes = try AttachmentFile.read(url); case .load(let load): bytes = try await load() }
return try AttachmentFile.prepare(bytes, name: item.name)
}.value
+ try Task.checkCancellation()
guard let i = index(id, item.generation) else { return }
items[i].file = file
let attachment = try await client.upload(file) { [weak self] fraction in
diff --git a/native/apple/Sources/EquipoKit/Attachments/AttachmentFile.swift b/native/apple/Sources/EquipoKit/Attachments/AttachmentFile.swift
index 1958c2ba..ea273914 100644
--- a/native/apple/Sources/EquipoKit/Attachments/AttachmentFile.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/AttachmentFile.swift
@@ -6,6 +6,9 @@ import UniformTypeIdentifiers
/// publishes authentication/version support, not configurable upload limits.
public enum AttachmentLimits {
public static let maxBytes = 10 << 20
+ // Bound local file reads before thumbnailing, independently of the upload cap.
+ static let maxInputBytes = 128 << 20
+ static let imageLongEdge = 2560
public static let maxCount = 5
public static let maxSide = 12_000
public static let maxPixels = 40_000_000
@@ -34,7 +37,10 @@ public struct AttachmentFile: Sendable {
public let height: Int
public static func prepare(_ data: Data, name: String) throws -> Self {
- guard data.count <= AttachmentLimits.maxBytes else { throw AttachmentFailure.tooLarge }
+ try prepare(data, name: name, maximumBytes: AttachmentLimits.maxBytes)
+ }
+
+ static func prepare(_ data: Data, name: String, maximumBytes: Int) throws -> Self {
guard !data.isEmpty else { throw AttachmentFailure.type }
let name = URL(fileURLWithPath: name).lastPathComponent
if let source = CGImageSourceCreateWithData(data as CFData, [kCGImageSourceShouldCache: false] as CFDictionary),
@@ -42,24 +48,32 @@ public struct AttachmentFile: Sendable {
let properties = CGImageSourceCopyPropertiesAtIndex(source, 0, nil) as? [CFString: Any]
let width = (properties?[kCGImagePropertyPixelWidth] as? NSNumber)?.intValue ?? 0
let height = (properties?[kCGImagePropertyPixelHeight] as? NSNumber)?.intValue ?? 0
- try AttachmentLimits.checkDimensions(width: width, height: height)
- if type.conforms(to: .heic) || type.conforms(to: .heif) || type == .tiff {
+ guard width > 0, height > 0 else { throw AttachmentFailure.type }
+ if type.conforms(to: .heic) || type.conforms(to: .heif) || type == .tiff || (type != .gif && max(width, height) > AttachmentLimits.imageLongEdge) {
// TIFF is the Mac clipboard's native image representation.
// Apply orientation and omit source metadata, including location.
- let options: [CFString: Any] = [kCGImageSourceCreateThumbnailFromImageAlways: true, kCGImageSourceCreateThumbnailWithTransform: true, kCGImageSourceThumbnailMaxPixelSize: max(width, height)]
+ let options: [CFString: Any] = [kCGImageSourceCreateThumbnailFromImageAlways: true, kCGImageSourceCreateThumbnailWithTransform: true, kCGImageSourceThumbnailMaxPixelSize: AttachmentLimits.imageLongEdge, kCGImageSourceShouldCacheImmediately: true]
guard let image = CGImageSourceCreateThumbnailAtIndex(source, 0, options as CFDictionary) else { throw AttachmentFailure.type }
+ // The web canvas flattens transparency on white before JPEG encoding.
+ guard let canvas = CGContext(data: nil, width: image.width, height: image.height, bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpaceCreateDeviceRGB(), bitmapInfo: CGImageAlphaInfo.noneSkipLast.rawValue) else { throw AttachmentFailure.type }
+ canvas.setFillColor(CGColor(gray: 1, alpha: 1)); canvas.fill(CGRect(x: 0, y: 0, width: image.width, height: image.height))
+ canvas.draw(image, in: CGRect(x: 0, y: 0, width: image.width, height: image.height))
+ guard let flattened = canvas.makeImage() else { throw AttachmentFailure.type }
let output = NSMutableData()
guard let destination = CGImageDestinationCreateWithData(output, UTType.jpeg.identifier as CFString, 1, nil) else { throw AttachmentFailure.type }
- CGImageDestinationAddImage(destination, image, [kCGImageDestinationLossyCompressionQuality: 0.9] as CFDictionary)
+ CGImageDestinationAddImage(destination, flattened, [kCGImageDestinationLossyCompressionQuality: 0.85] as CFDictionary)
guard CGImageDestinationFinalize(destination) else { throw AttachmentFailure.type }
- guard output.length <= AttachmentLimits.maxBytes else { throw AttachmentFailure.tooLarge }
+ guard output.length <= maximumBytes else { throw AttachmentFailure.tooLarge }
return Self(data: output as Data, name: (name as NSString).deletingPathExtension + ".jpg", mediaType: "image/jpeg", width: image.width, height: image.height)
}
+ try AttachmentLimits.checkDimensions(width: width, height: height)
+ guard data.count <= maximumBytes else { throw AttachmentFailure.tooLarge }
let types: [UTType: String] = [.png: "image/png", .jpeg: "image/jpeg", .gif: "image/gif", .webP: "image/webp"]
guard let media = types[type] else { throw AttachmentFailure.type }
let suffix = type.preferredFilenameExtension ?? "png"
return Self(data: data, name: (name as NSString).deletingPathExtension + "." + suffix, mediaType: media, width: width, height: height)
}
+ guard data.count <= maximumBytes else { throw AttachmentFailure.tooLarge }
if data.starts(with: Data("%PDF-".utf8)) { return Self(data: data, name: name, mediaType: "application/pdf", width: 0, height: 0) }
let suffix = (name as NSString).pathExtension.lowercased()
guard !["png", "jpg", "jpeg", "gif", "webp", "heic", "heif", "hif", "pdf"].contains(suffix),
@@ -77,8 +91,8 @@ public struct AttachmentFile: Sendable {
defer { if access { url.stopAccessingSecurityScopedResource() } }
let handle = try FileHandle(forReadingFrom: url)
defer { try? handle.close() }
- let data = try handle.read(upToCount: AttachmentLimits.maxBytes + 1) ?? Data()
- guard data.count <= AttachmentLimits.maxBytes else { throw AttachmentFailure.tooLarge }
+ let data = try handle.read(upToCount: AttachmentLimits.maxInputBytes + 1) ?? Data()
+ guard data.count <= AttachmentLimits.maxInputBytes else { throw AttachmentFailure.tooLarge }
return data
}
}
diff --git a/native/apple/Sources/EquipoKit/Attachments/AttachmentViews.swift b/native/apple/Sources/EquipoKit/Attachments/AttachmentViews.swift
index 314e492c..05025fce 100644
--- a/native/apple/Sources/EquipoKit/Attachments/AttachmentViews.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/AttachmentViews.swift
@@ -68,9 +68,14 @@ struct AttachmentPicture: View {
} else {
Image(systemName: "doc").font(.title2).foregroundStyle(Palette.secondary).accessibilityLabel(name)
}
- }.task(id: data) { image = data.flatMap { Self.thumbnail($0, side: 512) } }
+ }.task(id: data) {
+ let bytes = data
+ let decoded = await Task.detached { bytes.flatMap { Self.thumbnail($0, side: 512) } }.value
+ guard !Task.isCancelled else { return }
+ image = decoded
+ }
}
- static func thumbnail(_ data: Data, side: Int) -> CGImage? {
+ nonisolated static func thumbnail(_ data: Data, side: Int) -> CGImage? {
guard let source = CGImageSourceCreateWithData(data as CFData, [kCGImageSourceShouldCache: false] as CFDictionary) else { return nil }
return CGImageSourceCreateThumbnailAtIndex(source, 0, [kCGImageSourceCreateThumbnailFromImageAlways: true, kCGImageSourceCreateThumbnailWithTransform: true, kCGImageSourceThumbnailMaxPixelSize: side] as CFDictionary)
}
@@ -121,11 +126,12 @@ private struct AttachmentPreview: View {
@Environment(\.dismiss) private var dismiss
@State private var data: Data?
@State private var failure = false
+ @State private var image: CGImage?
var body: some View {
NavigationStack {
Group {
if let data {
- if let image = AttachmentPicture.thumbnail(data, side: 4096) {
+ if let image {
ScrollView([.horizontal, .vertical]) {
Image(decorative: image, scale: 1).resizable().scaledToFit()
.containerRelativeFrame(.horizontal).accessibilityLabel(file.name)
@@ -146,7 +152,12 @@ private struct AttachmentPreview: View {
}
private func load() async {
failure = false
- do { data = try await client.attachmentData(file.id) }
+ do {
+ let bytes = try await client.attachmentData(file.id)
+ let decoded = await Task.detached { AttachmentPicture.thumbnail(bytes, side: 4096) }.value
+ guard !Task.isCancelled else { return }
+ image = decoded; data = bytes
+ }
catch { failure = true }
}
}
diff --git a/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift b/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift
index 422edee7..0fbdfae3 100644
--- a/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift
+++ b/native/apple/Sources/EquipoKit/Attachments/PhoneAttachmentPicker.swift
@@ -6,12 +6,13 @@ import UniformTypeIdentifiers
struct PhoneAttachmentPicker: View {
let draft: AttachmentDraft
@State private var photos: [PhotosPickerItem] = []
+ @State private var choosingPhotos = false
@State private var files = false
@State private var camera = false
var body: some View {
Menu {
// COPY APPROVED: Luna, 2026-11-25, all native.attach.* source labels.
- PhotosPicker(selection: $photos, maxSelectionCount: max(1, AttachmentLimits.maxCount - draft.items.count), matching: .images) {
+ Button { choosingPhotos = true } label: {
Label(EquipoStrings.text("native.attach.photos"), systemImage: "photo")
}
if UIImagePickerController.isSourceTypeAvailable(.camera) {
@@ -23,6 +24,7 @@ struct PhoneAttachmentPicker: View {
Image(systemName: "plus").font(.system(size: 20)).frame(width: 44, height: 44)
}
.accessibilityLabel(EquipoStrings.text("chat.attach.add"))
+ .photosPicker(isPresented: $choosingPhotos, selection: $photos, maxSelectionCount: max(1, AttachmentLimits.maxCount - draft.items.count), matching: .images)
.fileImporter(isPresented: $files, allowedContentTypes: [.item], allowsMultipleSelection: true) { result in
if case .success(let urls) = result { for url in urls { Task { await draft.add(url: url) } } }
}
diff --git a/native/apple/Sources/EquipoMac/AttachmentPromises.swift b/native/apple/Sources/EquipoMac/AttachmentPromises.swift
new file mode 100644
index 00000000..058a64f7
--- /dev/null
+++ b/native/apple/Sources/EquipoMac/AttachmentPromises.swift
@@ -0,0 +1,41 @@
+import AppKit
+import EquipoKit
+
+/// Each accepted drop owns a private directory for the lifetime of its readers.
+/// Read inside NSFilePromiseReceiver's coordinated callback, then hand bytes to
+/// the draft so retry does not depend on the temporary file remaining on disk.
+private final class PromiseDirectory: @unchecked Sendable {
+ let url: URL
+ init() throws {
+ url = FileManager.default.temporaryDirectory.appendingPathComponent("equipo-drop-" + UUID().uuidString, isDirectory: true)
+ try FileManager.default.createDirectory(at: url, withIntermediateDirectories: false, attributes: [.posixPermissions: 0o700])
+ }
+ deinit { try? FileManager.default.removeItem(at: url) }
+}
+
+extension MacComposer {
+ func receive(_ promises: [NSFilePromiseReceiver], into draft: AttachmentDraft) {
+ do {
+ let directory = try PromiseDirectory()
+ let queue = OperationQueue(); queue.maxConcurrentOperationCount = 1
+ for promise in promises {
+ promise.receivePromisedFiles(atDestination: directory.url, options: [:], operationQueue: queue) { [directory] url, error in
+ let result = Result<Data, Error> {
+ if let error { throw error }
+ guard url.isFileURL,
+ url.standardizedFileURL.deletingLastPathComponent() == directory.url.standardizedFileURL,
+ (try url.resourceValues(forKeys: [.isRegularFileKey])).isRegularFile == true else { throw AttachmentFailure.type }
+ return try AttachmentFile.read(url)
+ }
+ if url.standardizedFileURL.deletingLastPathComponent() == directory.url.standardizedFileURL { try? FileManager.default.removeItem(at: url) }
+ Task { @MainActor in
+ switch result {
+ case .success(let data): await draft.add(data: data, name: url.lastPathComponent)
+ case .failure: draft.refuseFile()
+ }
+ }
+ }
+ }
+ } catch { draft.refuseFile() }
+ }
+}
diff --git a/native/apple/Sources/EquipoMac/MacAttachmentsFixture.swift b/native/apple/Sources/EquipoMac/MacAttachmentsFixture.swift
index 5b60af8e..e21ad59e 100644
--- a/native/apple/Sources/EquipoMac/MacAttachmentsFixture.swift
+++ b/native/apple/Sources/EquipoMac/MacAttachmentsFixture.swift
@@ -12,10 +12,15 @@ struct MacAttachmentsFixture: NSViewRepresentable {
guard let view else { return }
view.update(items: Feed.build(session))
view.composer.setText("Home’s sign-in button is cut off on my phone.")
- // Same pasteboard entry point used by performDragOperation.
+ // Exercise the complete destination lifecycle with synthetic drag info.
let board = NSPasteboard.withUniqueName()
board.setData(AttachmentsFixture.image, forType: .png)
- view.composer.acceptAttachments(board)
+ let drag = FixtureAttachmentDrag(board)
+ if view.composer.editor.draggingEntered(drag) == .copy,
+ view.composer.editor.draggingUpdated(drag) == .copy,
+ view.composer.editor.prepareForDragOperation(drag) {
+ _ = view.composer.editor.performDragOperation(drag)
+ }
board.releaseGlobally()
try? await Task.sleep(for: .seconds(2))
guard let path = ProcessInfo.processInfo.environment["EQUIPO_FIXTURE_CAPTURE"],
@@ -33,4 +38,24 @@ struct MacAttachmentsFixture: NSViewRepresentable {
}
func updateNSView(_ view: LiveTranscript, context: Context) {}
}
+
+@MainActor final class FixtureAttachmentDrag: NSObject, NSDraggingInfo {
+ let draggingPasteboard: NSPasteboard
+ init(_ board: NSPasteboard) { draggingPasteboard = board }
+ var draggingDestinationWindow: NSWindow? { nil }
+ var draggingSourceOperationMask: NSDragOperation { .copy }
+ var draggingLocation: NSPoint { .zero }
+ var draggedImageLocation: NSPoint { .zero }
+ nonisolated var draggedImage: NSImage? { nil }
+ var draggingSource: Any? { nil }
+ var draggingSequenceNumber: Int { 1 }
+ var draggingFormation: NSDraggingFormation = .none
+ var animatesToDestination = false
+ var numberOfValidItemsForDrop = 1
+ var springLoadingHighlight: NSSpringLoadingHighlight { .none }
+ func slideDraggedImage(to screenPoint: NSPoint) {}
+ nonisolated override func namesOfPromisedFilesDropped(atDestination dropDestination: URL) -> [String]? { nil }
+ func resetSpringLoading() {}
+ func enumerateDraggingItems(options: NSDraggingItemEnumerationOptions = [], for view: NSView?, classes classArray: [AnyClass], searchOptions: [NSPasteboard.ReadingOptionKey: Any] = [:], using block: (NSDraggingItem, Int, UnsafeMutablePointer<ObjCBool>) -> Void) {}
+}
#endif
diff --git a/native/apple/Sources/EquipoMac/MacComposer.swift b/native/apple/Sources/EquipoMac/MacComposer.swift
index af449297..47e69d21 100644
--- a/native/apple/Sources/EquipoMac/MacComposer.swift
+++ b/native/apple/Sources/EquipoMac/MacComposer.swift
@@ -12,13 +12,21 @@ final class ComposerEditor: NSTextView {
override func paste(_ sender: Any?) {
if onAttachments?(NSPasteboard.general) != true { super.paste(sender) }
}
+ private func accepts(_ board: NSPasteboard) -> Bool {
+ board.availableType(from: [.fileURL, .png, .tiff] + NSFilePromiseReceiver.readableDraggedTypes.map { NSPasteboard.PasteboardType($0) }) != nil
+ }
override func draggingEntered(_ sender: any NSDraggingInfo) -> NSDragOperation {
- if sender.draggingPasteboard.availableType(from: [.fileURL, .png, .tiff]) != nil { return .copy }
- return super.draggingEntered(sender)
+ accepts(sender.draggingPasteboard) ? .copy : []
+ }
+ override func draggingUpdated(_ sender: any NSDraggingInfo) -> NSDragOperation {
+ accepts(sender.draggingPasteboard) ? .copy : []
+ }
+ override func prepareForDragOperation(_ sender: any NSDraggingInfo) -> Bool {
+ accepts(sender.draggingPasteboard)
}
override func performDragOperation(_ sender: any NSDraggingInfo) -> Bool {
- if onAttachments?(sender.draggingPasteboard) == true { return true }
- return super.performDragOperation(sender)
+ guard accepts(sender.draggingPasteboard) else { return false }
+ return onAttachments?(sender.draggingPasteboard) == true
}
override func draw(_ dirtyRect: NSRect) {
super.draw(dirtyRect)
@@ -74,13 +82,17 @@ final class MacComposer: NSView, NSTextViewDelegate {
}
}))
attachmentHost = host; addSubview(host)
- editor.registerForDraggedTypes([.fileURL, .png, .tiff])
+ editor.registerForDraggedTypes([.fileURL, .png, .tiff] + NSFilePromiseReceiver.readableDraggedTypes.map { NSPasteboard.PasteboardType($0) })
editor.onAttachments = { [weak self] pasteboard in self?.acceptAttachments(pasteboard) ?? false }
observeDraft()
}
@discardableResult func acceptAttachments(_ pasteboard: NSPasteboard) -> Bool {
guard let draft else { return false }
+ if let promises = pasteboard.readObjects(forClasses: [NSFilePromiseReceiver.self]) as? [NSFilePromiseReceiver], !promises.isEmpty {
+ receive(promises, into: draft)
+ return true
+ }
if let urls = pasteboard.readObjects(forClasses: [NSURL.self], options: [.urlReadingFileURLsOnly: true]) as? [URL], !urls.isEmpty {
for url in urls { Task { await draft.add(url: url) } }
return true
diff --git a/native/apple/Tests/EquipoKitTests/AttachmentHTTPTests.swift b/native/apple/Tests/EquipoKitTests/AttachmentHTTPTests.swift
index 8c47d60c..2393729e 100644
--- a/native/apple/Tests/EquipoKitTests/AttachmentHTTPTests.swift
+++ b/native/apple/Tests/EquipoKitTests/AttachmentHTTPTests.swift
@@ -30,6 +30,13 @@ import Testing
let response = try await client.send(EquipoClient.message("", attachments: [attachment.id]))
#expect(response.message.attachments?.first?.id == attachment.id)
#expect(try await client.attachmentData(attachment.id) == file.data)
+ var capped = APIRequest("GET", "/attachments/" + attachment.id, bearer: "fixture-http")
+ capped.maximumResponseBytes = 1
+ await #expect(throws: EquipoAPIError.tooLarge) { try await URLSessionTransport(origin: origin, observe: { _ in }).send(capped) }
+ var redirect = APIRequest("POST", "/redirect", body: file.data, bearer: "fixture-http")
+ redirect.uploadProgress = UploadProgress { _ in }
+ let refused = try await URLSessionTransport(origin: origin, observe: { _ in }).send(redirect)
+ #expect(refused.status == 307)
#expect(progress.withLock { $0.contains { $0 > 0 && $0 <= 1 } })
}
@@ -47,6 +54,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
body=self.rfile.read(int(self.headers.get('Content-Length','0')))
if self.headers.get('Authorization')!='Bearer fixture-http' or self.headers.get('Cookie'):
return self.answer(403,b'{}')
+ if self.path=='/api/v1/redirect':
+ self.send_response(307); self.send_header('Location','/api/v1/attachments'); self.send_header('Content-Length','0'); self.end_headers(); return
if self.path=='/api/v1/attachments':
if self.headers.get('Content-Type')!='image/png' or not body.startswith(bytes([137])+b'PNG'):
return self.answer(415,b'{}')
@@ -61,6 +70,8 @@ class Handler(http.server.BaseHTTPRequestHandler):
return self.answer(201,json.dumps(sent).encode())
self.answer(404,b'{}')
def do_GET(self):
+ if self.headers.get('Authorization')!='Bearer fixture-http':
+ return self.answer(403,b'{}')
if self.path=='/api/v1/attachments/'+attachment['id']:
return self.answer(200,delivered,'image/png')
self.answer(404,b'{}')
diff --git a/native/apple/Tests/EquipoKitTests/AttachmentReviewTests.swift b/native/apple/Tests/EquipoKitTests/AttachmentReviewTests.swift
new file mode 100644
index 00000000..0941ee3e
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/AttachmentReviewTests.swift
@@ -0,0 +1,188 @@
+import Foundation
+import ImageIO
+import Testing
+import UniformTypeIdentifiers
+@testable import EquipoKit
+
+@Suite struct AttachmentReviewTests {
+ @Test func largeHEICAndWebPMatchWebSizing() throws {
+ let heic = try AttachmentTests.image(.heic, width: 8064, height: 6048)
+ let url = try #require(Bundle.module.url(forResource: "large", withExtension: "webp", subdirectory: "Fixtures/attachments"))
+ for (bytes, name, height) in [(heic, "photo.heic", 1920), (try Data(contentsOf: url), "large.webp", 1280)] {
+ let file = try AttachmentFile.prepare(bytes, name: name)
+ #expect(file.mediaType == "image/jpeg")
+ #expect(file.width == 2560 && file.height == height)
+ #expect(file.data.count <= AttachmentLimits.maxBytes)
+ }
+ }
+
+ @Test func conversionStripsMetadataAndAppliesOrientation() throws {
+ let source = try #require(CGImageSourceCreateWithData(AttachmentTests.image() as CFData, nil))
+ let image = try #require(CGImageSourceCreateImageAtIndex(source, 0, nil))
+ let bytes = NSMutableData()
+ let dest = try #require(CGImageDestinationCreateWithData(bytes, UTType.heic.identifier as CFString, 1, nil))
+ let metadata: [CFString: Any] = [kCGImagePropertyOrientation: 6,
+ kCGImagePropertyGPSDictionary: [kCGImagePropertyGPSLatitude: 53.3, kCGImagePropertyGPSLatitudeRef: "N", kCGImagePropertyGPSLongitude: 6.2, kCGImagePropertyGPSLongitudeRef: "W"],
+ kCGImagePropertyExifDictionary: [kCGImagePropertyExifUserComment: "private fixture metadata"]]
+ CGImageDestinationAddImage(dest, image, metadata as CFDictionary)
+ #expect(CGImageDestinationFinalize(dest))
+ let file = try AttachmentFile.prepare(bytes as Data, name: "private.heic")
+ #expect(file.width == 8 && file.height == 12)
+ let converted = try #require(CGImageSourceCreateWithData(file.data as CFData, nil))
+ let properties = try #require(CGImageSourceCopyPropertiesAtIndex(converted, 0, nil) as? [CFString: Any])
+ #expect(properties[kCGImagePropertyGPSDictionary] == nil)
+ #expect((properties[kCGImagePropertyExifDictionary] as? [CFString: Any])?[kCGImagePropertyExifUserComment] == nil)
+ }
+
+ @Test func convertedBytesAreCheckedAgain() throws {
+ let input = try AttachmentTests.image(.heic)
+ #expect(throws: AttachmentFailure.tooLarge) { try AttachmentFile.prepare(input, name: "photo.heic", maximumBytes: 1) }
+ }
+
+ @Test func emptyAndBoundedFileReads() throws {
+ #expect(throws: AttachmentFailure.type) { try AttachmentFile.prepare(Data(), name: "empty.txt") }
+ let url = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
+ defer { try? FileManager.default.removeItem(at: url) }
+ FileManager.default.createFile(atPath: url.path, contents: nil)
+ let handle = try FileHandle(forWritingTo: url)
+ try handle.truncate(atOffset: 128 * 1024 * 1024 + 1); try handle.close()
+ #expect(throws: AttachmentFailure.tooLarge) { try AttachmentFile.read(url) }
+ }
+}
+
+actor AttachmentReviewServer: EquipoTransport {
+ nonisolated let origin = URL(string: "https://review.invalid")!
+ var requests: [APIRequest] = []
+ var callbacks: [UploadProgress] = []
+ var code: String?
+ var hold = false
+ var lostProject = false
+ var cancelled = false
+ var pending: [CheckedContinuation<APIResponse, Error>] = []
+ func configure(code: String? = nil, hold: Bool = false, lostProject: Bool = false) { self.code = code; self.hold = hold; self.lostProject = lostProject }
+ func send(_ request: APIRequest) async throws -> APIResponse {
+ requests.append(request)
+ if request.path == "/attachments" {
+ if let callback = request.uploadProgress { callbacks.append(callback) }
+ if let code { self.code = nil; return APIResponse(status: 422, data: Data("{\"code\":\"\(code)\",\"copy_key\":\"api.\(code)\",\"request_id\":\"fixture\"}".utf8)) }
+ if hold { return try await withCheckedThrowingContinuation { pending.append($0) } }
+ return APIResponse(status: 201, data: Data(AttachmentServer.attachment.utf8))
+ }
+ if request.path == "/messages" {
+ if lostProject { lostProject = false; return APIResponse(status: 404, data: Data("{\"code\":\"not_found\",\"copy_key\":\"api.not_found\",\"request_id\":\"fixture\"}".utf8)) }
+ let sent: Sent = try Fixture.decode("thin/sent")
+ let encoder = EquipoJSON.encoder; encoder.dateEncodingStrategy = .iso8601
+ return APIResponse(status: 201, data: try encoder.encode(sent))
+ }
+ return APIResponse(status: 200, data: Data("{}".utf8))
+ }
+ func emit(_ index: Int, _ value: Double) { callbacks[index].report(value) }
+ func finish() { for c in pending { c.resume(returning: APIResponse(status: 201, data: Data(AttachmentServer.attachment.utf8))) }; pending = [] }
+ func lines(_ request: APIRequest) async throws -> AsyncThrowingStream<String, Error> { AsyncThrowingStream { $0.finish() } }
+}
+
+extension AttachmentReviewTests {
+ @MainActor @Test func failedDraftCannotSendAndThreadsRejectAttachments() async throws {
+ let server = AttachmentReviewServer(); await server.configure(code: "attachment_type")
+ let session = EquipoSession(account: .new(origin: server.origin, label: "Fixture"), accounts: DeviceAccounts(store: MemorySecretStore()), transport: server)
+ await session.attachments.add(data: try AttachmentTests.image(), name: "screen.png")
+ await session.sendFromComposer("note").value
+ #expect(await server.requests.filter { $0.path == "/messages" }.isEmpty)
+ #expect(session.attachments.items.count == 1)
+ let attachment = try EquipoJSON.decoder.decode(MessageAttachment.self, from: Data(AttachmentServer.attachment.utf8))
+ await session.send("note", inThreadOf: "task", attachments: [attachment])
+ #expect(await server.requests.filter { $0.path.contains("/thread") }.isEmpty)
+ }
+
+ @MainActor @Test func lostProjectRetryKeepsAttachmentIDs() async throws {
+ let server = AttachmentReviewServer(); await server.configure(lostProject: true)
+ let session = EquipoSession(account: .new(origin: server.origin, label: "Fixture"), accounts: DeviceAccounts(store: MemorySecretStore()), transport: server)
+ let attachment = try EquipoJSON.decoder.decode(MessageAttachment.self, from: Data(AttachmentServer.attachment.utf8))
+ await session.send("note", projectID: "lost", attachments: [attachment])
+ let pending = try #require(session.outgoing.first)
+ #expect(pending.goneProject)
+ await session.retry(pending.id)
+ let requests = await server.requests.filter { $0.path == "/messages" }
+ #expect(requests.count == 2)
+ let bytes = try #require(requests.last?.body)
+ let body = try #require(try JSONSerialization.jsonObject(with: bytes) as? [String: Any])
+ #expect(body["attachments"] as? [String] == [attachment.id]); #expect(body["project_id"] == nil)
+ }
+
+ @MainActor @Test func retryIsSingleAndOldProgressCannotOverwriteNewOrReadyState() async throws {
+ let server = AttachmentReviewServer(); await server.configure(code: "attachment_type")
+ let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ await draft.add(data: try AttachmentTests.image(), name: "screen.png")
+ let id = try #require(draft.items.first?.id)
+ await server.configure(hold: true)
+ let first = Task { await draft.retry(id) }
+ for _ in 0..<100 { if await server.callbacks.count >= 2 { break }; try await Task.sleep(for: .milliseconds(10)) }
+ let second = Task { await draft.retry(id) }
+ try await Task.sleep(for: .milliseconds(40))
+ #expect(await server.callbacks.count == 2)
+ await server.emit(0, 0.99)
+ try await Task.sleep(for: .milliseconds(30))
+ if case .uploading(let progress) = draft.items.first?.state { #expect(progress == 0) } else { Issue.record("Expected retry upload") }
+ await server.finish(); await first.value; await second.value
+ await server.emit(1, 0.2)
+ try await Task.sleep(for: .milliseconds(30))
+ #expect(draft.readyAttachments.count == 1)
+ }
+
+ @MainActor @Test(arguments: ["attachment_too_large", "attachment_pixels", "attachment_type", "attachment_heic", "attachment_limit"])
+ func serverCodesUseReviewedWords(_ code: String) async throws {
+ let server = AttachmentReviewServer(); await server.configure(code: code)
+ let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ await draft.add(data: try AttachmentTests.image(), name: "screen.png")
+ #expect(draft.items.first?.failure == EquipoStrings.text(String.LocalizationValue("api." + code)))
+ }
+
+ @Test func readsCarryBearerAndRefuseOversizedResponses() async throws {
+ let server = AttachmentServer()
+ let client = EquipoClient(transport: server, token: "private-bearer")
+ _ = try await client.attachmentData("at_fixture")
+ _ = try await client.attachmentData("at_fixture", preview: true)
+ for request in await server.requests { #expect(request.bearer == "private-bearer"); #expect(request.maximumResponseBytes == AttachmentLimits.maxBytes) }
+ let huge = HugeAttachmentServer()
+ await #expect(throws: EquipoAPIError.tooLarge) { try await EquipoClient(transport: huge, token: "fixture").attachmentData("huge") }
+ }
+
+ @Test func uploadDelegateRefusesRedirects() async throws {
+ let delegate = UploadDelegate(UploadProgress { _ in })
+ let session = URLSession(configuration: .ephemeral)
+ defer { session.invalidateAndCancel() }
+ let target = URL(string: "https://other.invalid")!
+ let response = try #require(HTTPURLResponse(url: target, statusCode: 307, httpVersion: nil, headerFields: ["Location": target.absoluteString]))
+ let result = await delegate.urlSession(session, task: session.dataTask(with: target), willPerformHTTPRedirection: response, newRequest: URLRequest(url: target))
+ #expect(result == nil)
+ }
+
+ @MainActor @Test func removalCancelsTheActualUpload() async throws {
+ let server = CancellableAttachmentServer()
+ let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ let adding = Task { await draft.add(data: try AttachmentTests.image(), name: "screen.png") }
+ for _ in 0..<100 { if await server.started { break }; try await Task.sleep(for: .milliseconds(10)) }
+ draft.remove(try #require(draft.items.first?.id))
+ for _ in 0..<100 { if await server.cancelled { break }; try await Task.sleep(for: .milliseconds(10)) }
+ #expect(await server.cancelled)
+ adding.cancel()
+ try await adding.value
+ }
+}
+
+private struct HugeAttachmentServer: EquipoTransport {
+ let origin = URL(string: "https://huge.invalid")!
+ func send(_ request: APIRequest) async throws -> APIResponse { APIResponse(status: 200, data: Data(repeating: 0, count: AttachmentLimits.maxBytes + 1)) }
+ func lines(_ request: APIRequest) async throws -> AsyncThrowingStream<String, Error> { AsyncThrowingStream { $0.finish() } }
+}
+private actor CancellableAttachmentServer: EquipoTransport {
+ nonisolated let origin = URL(string: "https://cancel.invalid")!
+ var started = false
+ var cancelled = false
+ func send(_ request: APIRequest) async throws -> APIResponse {
+ started = true
+ do { try await Task.sleep(for: .seconds(30)) } catch { cancelled = true; throw error }
+ return APIResponse(status: 201, data: Data(AttachmentServer.attachment.utf8))
+ }
+ func lines(_ request: APIRequest) async throws -> AsyncThrowingStream<String, Error> { AsyncThrowingStream { $0.finish() } }
+}
diff --git a/native/apple/Tests/EquipoKitTests/AttachmentTests.swift b/native/apple/Tests/EquipoKitTests/AttachmentTests.swift
index 1cdc6dbd..1cf39215 100644
--- a/native/apple/Tests/EquipoKitTests/AttachmentTests.swift
+++ b/native/apple/Tests/EquipoKitTests/AttachmentTests.swift
@@ -111,7 +111,7 @@ extension AttachmentTests {
@MainActor @Test func invalidImageNeverReachesUpload() async throws {
let server = AttachmentServer()
let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
- await draft.add(data: try Self.image(width: 12_001, height: 1), name: "wide.png")
+ await draft.add(data: try Self.image(.gif, width: 12_001, height: 1), name: "wide.png")
#expect(draft.items.first?.failure == EquipoStrings.text("api.attachment_pixels"))
#expect(await server.requests.isEmpty)
}
diff --git a/native/apple/Tests/EquipoKitTests/Fixtures/attachments/large.webp b/native/apple/Tests/EquipoKitTests/Fixtures/attachments/large.webp
new file mode 100644
index 00000000..8ffb3be8
Binary files /dev/null and b/native/apple/Tests/EquipoKitTests/Fixtures/attachments/large.webp differ
diff --git a/native/apple/Tests/EquipoKitTests/MacAttachmentTests.swift b/native/apple/Tests/EquipoKitTests/MacAttachmentTests.swift
index 158a7246..a5bc3f21 100644
--- a/native/apple/Tests/EquipoKitTests/MacAttachmentTests.swift
+++ b/native/apple/Tests/EquipoKitTests/MacAttachmentTests.swift
@@ -28,3 +28,104 @@ import Testing
}
}
#endif
+
+#if os(macOS)
+@MainActor final class AttachmentDraggingInfo: NSObject, NSDraggingInfo {
+ let draggingPasteboard: NSPasteboard
+ init(_ board: NSPasteboard) { draggingPasteboard = board }
+ var draggingDestinationWindow: NSWindow? { nil }
+ var draggingSourceOperationMask: NSDragOperation { .copy }
+ var draggingLocation: NSPoint { .zero }
+ var draggedImageLocation: NSPoint { .zero }
+ nonisolated var draggedImage: NSImage? { nil }
+ var draggingSource: Any? { nil }
+ var draggingSequenceNumber: Int { 1 }
+ var draggingFormation: NSDraggingFormation = .none
+ var animatesToDestination = false
+ var numberOfValidItemsForDrop = 1
+ var springLoadingHighlight: NSSpringLoadingHighlight { .none }
+ func slideDraggedImage(to screenPoint: NSPoint) {}
+ nonisolated override func namesOfPromisedFilesDropped(atDestination dropDestination: URL) -> [String]? { nil }
+ func resetSpringLoading() {}
+ func enumerateDraggingItems(options: NSDraggingItemEnumerationOptions = [], for view: NSView?, classes classArray: [AnyClass], searchOptions: [NSPasteboard.ReadingOptionKey: Any] = [:], using block: (NSDraggingItem, Int, UnsafeMutablePointer<ObjCBool>) -> Void) {}
+}
+
+extension MacAttachmentTests {
+ @Test(arguments: [NSPasteboard.PasteboardType.png, .tiff, .fileURL])
+ func fullDragLifecycleAcceptsImages(_ type: NSPasteboard.PasteboardType) async throws {
+ let server = AttachmentServer(), board = NSPasteboard.withUniqueName()
+ defer { board.releaseGlobally() }
+ let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ let composer = MacComposer(); composer.attach(draft)
+ let url = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString + ".png")
+ defer { try? FileManager.default.removeItem(at: url) }
+ if type == .fileURL { try AttachmentTests.image().write(to: url); board.writeObjects([url as NSURL]) }
+ else { board.setData(try AttachmentTests.image(type == .tiff ? .tiff : .png), forType: type) }
+ let drag = AttachmentDraggingInfo(board)
+ #expect(composer.editor.draggingEntered(drag) == .copy)
+ #expect(composer.editor.draggingUpdated(drag) == .copy)
+ #expect(composer.editor.prepareForDragOperation(drag))
+ #expect(composer.editor.performDragOperation(drag))
+ for _ in 0..<100 { if !draft.readyAttachments.isEmpty { break }; try await Task.sleep(for: .milliseconds(10)) }
+ #expect(draft.readyAttachments.count == 1)
+ }
+
+ @Test func webURLsAndFoldersAreRefusedBeforeAddingItems() async throws {
+ let server = AttachmentServer(), board = NSPasteboard.withUniqueName()
+ defer { board.releaseGlobally() }
+ let draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ let composer = MacComposer(); composer.attach(draft)
+ board.writeObjects([URL(string: "https://example.com/photo.png")! as NSURL])
+ let drag = AttachmentDraggingInfo(board)
+ #expect(composer.editor.draggingEntered(drag).isEmpty)
+ #expect(composer.editor.draggingUpdated(drag).isEmpty)
+ #expect(!composer.editor.prepareForDragOperation(drag))
+ #expect(!composer.editor.performDragOperation(drag))
+ #expect(!composer.acceptAttachments(board))
+ board.clearContents(); board.writeObjects([FileManager.default.temporaryDirectory as NSURL])
+ _ = composer.editor.performDragOperation(drag)
+ try await Task.sleep(for: .milliseconds(40))
+ #expect(draft.items.isEmpty)
+ #expect(draft.notice == EquipoStrings.text("api.attachment_type"))
+ #expect(await server.requests.isEmpty)
+ }
+}
+#endif
+
+#if os(macOS)
+@MainActor private final class FixturePromise: NSFilePromiseReceiver {
+ let bytes: Data
+ var destination: URL?
+ var permissions: Int?
+ init(_ bytes: Data) { self.bytes = bytes; super.init() }
+ required init?(pasteboardPropertyList propertyList: Any, ofType type: NSPasteboard.PasteboardType) { fatalError() }
+ override func receivePromisedFiles(atDestination destinationDir: URL, options: [AnyHashable: Any] = [:], operationQueue: OperationQueue, reader: @escaping (URL, (any Error)?) -> Void) {
+ destination = destinationDir
+ permissions = (try? FileManager.default.attributesOfItem(atPath: destinationDir.path)[.posixPermissions]) as? Int
+ let url = destinationDir.appendingPathComponent("promise.png")
+ do { try bytes.write(to: url); reader(url, nil) } catch { reader(url, error) }
+ }
+}
+
+extension MacAttachmentTests {
+ @Test func promisedFilesUsePrivateStorageAndRemoveItAfterReading() async throws {
+ let server = AttachmentServer(), draft = AttachmentDraft(client: EquipoClient(transport: server, token: "fixture"))
+ let composer = MacComposer(); composer.attach(draft)
+ let promise = FixturePromise(try AttachmentTests.image())
+ composer.receive([promise], into: draft)
+ let destination = try #require(promise.destination)
+ #expect(promise.permissions == 0o700)
+ for _ in 0..<100 { if !draft.readyAttachments.isEmpty { break }; try await Task.sleep(for: .milliseconds(10)) }
+ #expect(draft.readyAttachments.count == 1)
+ #expect(!FileManager.default.fileExists(atPath: destination.path))
+ let board = NSPasteboard.withUniqueName(); defer { board.releaseGlobally() }
+ for type in NSFilePromiseReceiver.readableDraggedTypes {
+ board.clearContents(); board.setData(Data(), forType: NSPasteboard.PasteboardType(type))
+ let drag = AttachmentDraggingInfo(board)
+ #expect(composer.editor.draggingEntered(drag) == .copy)
+ #expect(composer.editor.draggingUpdated(drag) == .copy)
+ #expect(composer.editor.prepareForDragOperation(drag))
+ }
+ }
+}
+#endif
diff --git a/native/ios/UITests/AttachmentSourceUITests.swift b/native/ios/UITests/AttachmentSourceUITests.swift
new file mode 100644
index 00000000..c7dbb08a
--- /dev/null
+++ b/native/ios/UITests/AttachmentSourceUITests.swift
@@ -0,0 +1,21 @@
+import XCTest
+
+/// Runs against the production composer with the debug fake transport.
+final class AttachmentSourceUITests: XCTestCase {
+ @MainActor func testMenuPresentsPrivatePhotosPicker() throws {
+ let app = XCUIApplication()
+ app.launchEnvironment["EQUIPO_ATTACHMENTS_FIXTURE"] = "sent"
+ app.launch()
+ XCTAssertTrue(app.buttons["Attach"].waitForExistence(timeout: 10))
+ app.buttons["Attach"].tap()
+ XCTAssertTrue(app.buttons["Photos"].waitForExistence(timeout: 5))
+ capture("iphone-add-menu")
+ app.buttons["Photos"].tap()
+ XCTAssertTrue(app.navigationBars["Photos"].waitForExistence(timeout: 10))
+ capture("iphone-photos-picker")
+ }
+ @MainActor private func capture(_ name: String) {
+ let attachment = XCTAttachment(screenshot: XCUIScreen.main.screenshot())
+ attachment.name = name; attachment.lifetime = .keepAlways; add(attachment)
+ }
+}
diff --git a/native/ios/project.yml b/native/ios/project.yml
index 23de6ca9..1759e072 100644
--- a/native/ios/project.yml
+++ b/native/ios/project.yml
@@ -96,3 +96,27 @@ targets:
- en
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
+
+ AttachmentSourceUITests:
+ type: bundle.ui-testing
+ platform: iOS
+ sources: [UITests]
+ dependencies:
+ - target: EquipoPhone
+ settings:
+ base:
+ PRODUCT_BUNDLE_IDENTIFIER: works.oficina.equipo.attachment-tests
+ GENERATE_INFOPLIST_FILE: true
+ TEST_TARGET_NAME: EquipoPhone
+schemes:
+ EquipoPhone:
+ build:
+ targets:
+ EquipoPhone: all
+ AttachmentSources:
+ build:
+ targets:
+ EquipoPhone: all
+ AttachmentSourceUITests: [test]
+ test:
+ targets: [AttachmentSourceUITests]