oficina / equipo Public

Keep Mac transcript rows and message parsers alive across updates

Co-Authored-By: Codex GPT-6-Astra <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev c1d2c029057a6c6d878e8bf57eadcf8ecad8391f parent b533757
18 files changed, +533 −150
  • internal/chatmarkdown/native_test.go +5 −3
  • native/MARKDOWN-STREAMING-REPORT.md +100 −76
  • native/apple/Package.swift +1 −1
  • native/apple/Sources/EquipoKit/Markdown/ChatMarkdown.swift +9 −1
  • native/apple/Sources/EquipoKit/Markdown/ChatMarkdownView.swift +4 −3
  • native/apple/Sources/EquipoKit/Markdown/MarkdownStreamRenderer.swift +1 −1
  • native/apple/Sources/EquipoKit/Markdown/MarkdownTranscript.swift +30 −0
  • native/apple/Sources/EquipoKit/Presentation/Roster.swift +1 −1
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +3 −0
  • native/apple/Sources/EquipoKit/UI/RosterViews.swift +4 −2
  • native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift +1 −1
  • native/apple/Sources/EquipoMac/LiveTranscript.swift +121 −55
  • native/apple/Tests/EquipoKitTests/ChatMarkdownTests.swift +2 −1
  • native/apple/Tests/EquipoKitTests/Fixtures/markdown/golden.json +33 −1
  • native/apple/Tests/EquipoKitTests/MacTranscriptTests.swift +123 −0
  • native/apple/Tests/EquipoKitTests/MarkdownLayoutTests.swift +32 −4
  • native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift +49 −0
  • scripts/runner-reference-allowlist.json +14 −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__markdown-streaming: 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.0s
ci-box: codex: fetched and verified in 4.4s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.3s
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.6s
ci-box: clone deepened in 5.5s
ci-box: file times set from content: 2911 files, 190 directories
ci-box: ready in 19.8s
=== 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.140s
=== 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.7s
+ 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-11 02:51:11 +0000 UTC

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

receipt: test step 1m6.745s 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.163s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.16s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 34.76, cpu waiting 23.05%, memory waiting 0.00%, io waiting 1.12%
--- 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 1m6.371s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.698s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.7s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 34.76, cpu waiting 23.05%, memory waiting 0.00%, io waiting 1.12%
--- 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 1m6.439s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.442s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.41s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.38s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 3.64s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 34.76, cpu waiting 22.66%, memory waiting 0.00%, io waiting 1.08%
--- 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.006s 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.329s amadan.net/oficina/equipo/internal/headless
receipt: slow test 30.09s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 16.49s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.49s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 34.76, cpu waiting 23.05%, memory waiting 0.00%, io waiting 1.12%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

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

receipt: test step 2m33.829s 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 2m31.875s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m27.27s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.01s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.48s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.49s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.46s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 14.37, cpu waiting 6.42%, memory waiting 0.00%, io waiting 0.24%
--- 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 348ms 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 2m4.941s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.17s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.54s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.68s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotHeldBelow19
machine: 32 CPUs, load 0.96, cpu waiting 0.62%, memory waiting 0.00%, io waiting 3.28%
--- 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 399ms 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 1m27.163s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.24s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.47s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.35s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotNow
machine: 32 CPUs, load 0.96, cpu waiting 0.62%, memory waiting 0.00%, io waiting 3.28%
--- 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 4m35.008s, over the 45s its record on line 44 allows; reported only, timing fails on CI

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

receipt: test step 48.093s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.958s amadan.net/oficina/equipo/internal/runner
receipt: slow test 26.93s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 33.44, cpu waiting 22.23%, memory waiting 0.00%, io waiting 1.52%
--- 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 47.951s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 46.008s amadan.net/oficina/equipo/internal/runner
receipt: slow test 36.09s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 31.8s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.38s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 33.44, cpu waiting 22.23%, memory waiting 0.00%, io waiting 1.52%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 34.992s 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.088s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.53s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.03s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 23.82, cpu waiting 15.81%, memory waiting 0.00%, io waiting 1.86%
--- 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 30.4%, load 18.32
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m6.29s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.348s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.22s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.18s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.19s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.44s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.32s amadan.net/oficina/equipo/internal/equipotest TestAuthorityReadsOneSnapshot
machine: 32 CPUs, load 28.98, cpu waiting 16.61%, memory waiting 0.00%, io waiting 0.65%
--- 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 30.4%, load 18.32
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 541ms 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 1m15.48s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.5s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.49s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 20.45s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 20.44s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 20.41s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
machine: 32 CPUs, load 18.32, cpu waiting 12.98%, memory waiting 0.00%, io waiting 1.98%
--- 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 30.4%, load 18.32
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 1m16.529s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.498s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.91s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.96s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.92s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.86s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.8s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 25.30, cpu waiting 14.18%, memory waiting 0.00%, io waiting 0.55%
--- 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 30.4%, load 18.32
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 349ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m6.444s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.7s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.54s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.51s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 22.7s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
receipt: slow test 22.64s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 18.32, cpu waiting 12.10%, memory waiting 0.00%, io waiting 2.05%
--- 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 30.4%, load 18.32
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 723ms 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 51.286s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.63s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.46s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.7s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.42s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.33s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
machine: 32 CPUs, load 18.32, cpu waiting 12.98%, memory waiting 0.00%, io waiting 1.98%
--- 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 30.4%, load 18.32
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/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/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/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/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/cmd/equipo-runner: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 44.995s, 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 14.738s, 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 1m40.987s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 36.558s, 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.295s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m15.476s against a 60s target (the gate's other steps are not in this figure)
receipt: 16 packages ran, 47 cached, 18 without tests, 0 failed
receipt: slow package 1m40.987s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 52.082s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.996s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 44.995s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 38.295s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 55.17s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.84s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.8s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.48s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 44.14s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
machine: 32 CPUs, load 12.31, cpu waiting 5.44%, memory waiting 0.00%, io waiting 0.20%
--- 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 1m18.259s 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.906s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.11s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.41s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9.04s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.05s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 4.91s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 32.86, cpu waiting 21.56%, memory waiting 0.00%, io waiting 0.89%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m17.468s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.729s amadan.net/oficina/equipo/internal/headless
receipt: slow test 22.61s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 17.65s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.01s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 8.1s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 7.05s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 32.86, cpu waiting 21.98%, memory waiting 0.00%, io waiting 0.92%
--- 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 1m34.637s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m33.062s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.21s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.29s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.04s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 10.61s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.25s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 28.98, cpu waiting 17.14%, memory waiting 0.00%, io waiting 0.68%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m20.705s 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.281s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.5s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.2s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.04s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 32.86, cpu waiting 21.08%, memory waiting 0.00%, io waiting 0.86%
--- 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 301ms 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 655ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 650ms 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.507s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

receipt: test step 245ms 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.507s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.55s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 1.95s 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 270ms 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.178s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.18s 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|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 286ms 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 3m27.609s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 21.89s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.4s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.6s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.86s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 2.48, cpu waiting 1.55%, memory waiting 0.00%, io waiting 3.17%
--- 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.60s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.16s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 7.10s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.23s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 24.86s
+ 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   (52s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 10.72s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 9.18s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 18.21s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 11.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (18s)
ok ./internal/headless TestMixedVersions 16.00s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
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 33.44, cpu waiting 22.80%, memory waiting 0.00%, io waiting 1.42%
--- 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.469s 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.204s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 197ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 101ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.15s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 310ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.131s 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.804s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 260ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 5.01, cpu waiting 4.82%, memory waiting 0.00%, io waiting 2.77%
--- 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.9%, load 18.32
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2624 text files, 3206 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: 90 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.500s
machine: 32 CPUs, load 31.91, cpu waiting 21.36%, memory waiting 0.00%, io waiting 1.57%
--- 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.9%, load 18.32
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 18.32, cpu waiting 14.45%, memory waiting 0.00%, io waiting 1.92%
--- 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 30.4%, load 18.32
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 23.82, cpu waiting 15.81%, memory waiting 0.00%, io waiting 1.86%
--- 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 30.4%, load 18.32
shard 28: make gitleaks
2:12PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
2:12PM INF 1107 commits scanned.
2:12PM INF scanned ~64633267 bytes (64.63 MB) in 13.6s
2:12PM INF no leaks found
machine: 32 CPUs, load 31.91, cpu waiting 20.36%, memory waiting 0.00%, io waiting 1.62%
=== 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.008ms, worst 1.076ms, budget 150ms
perf: GET /api/runner/protocol: median 90µs, worst 131µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 576µs, worst 616µs, budget 150ms
perf: GET /api/v1/accounts: median 397µs, worst 492µs, budget 150ms
perf: GET /api/v1/auth/devices: median 438µs, worst 456µs, budget 150ms
perf: GET /api/v1/budgets: median 471µs, worst 501µs, budget 150ms
perf: GET /api/v1/capabilities: median 245µs, worst 287µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.145ms, worst 1.23ms, budget 150ms
perf: GET /api/v1/connections: median 564µs, worst 618µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 511µs, worst 573µs, budget 150ms
perf: GET /api/v1/conversation: median 844µs, worst 876µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.378ms, worst 1.448ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.828ms, worst 1.886ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 458µs, worst 494µs, budget 150ms
perf: GET /api/v1/journey: median 7.808ms, worst 7.99ms, budget 150ms
perf: GET /api/v1/me: median 419µs, worst 480µs, budget 150ms
perf: GET /api/v1/me/settings: median 514µs, worst 555µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.499ms, worst 10.408ms, budget 150ms
perf: GET /api/v1/notifications: median 1.632ms, worst 1.688ms, budget 150ms
perf: GET /api/v1/onboarding: median 391µs, worst 485µs, budget 150ms
perf: GET /api/v1/people: median 446µs, worst 473µs, budget 150ms
perf: GET /api/v1/playbooks: median 589µs, worst 602µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 533µs, worst 562µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 817µs, worst 919µs, budget 150ms
perf: GET /api/v1/preferences: median 732µs, worst 777µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 460µs, worst 478µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 575µs, worst 639µs, budget 150ms
perf: GET /api/v1/roster: median 461µs, worst 516µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 421µs, worst 430µs, budget 150ms
perf: GET /api/v1/specialists: median 7.99ms, worst 8.019ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.895ms, worst 7.963ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 776µs, worst 851µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.098ms, worst 1.232ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 684µs, worst 728µs, budget 150ms
perf: GET /api/v1/teams: median 406µs, worst 440µs, budget 150ms
perf: GET /api/v1/templates: median 566µs, worst 623µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 417µs, worst 455µs, budget 150ms
perf: GET /auth/callback: median 79µs, worst 109µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.562ms, worst 3.678ms, budget 150ms
perf: GET /auth/verify: median 77µs, worst 109µs, budget 150ms
perf: GET /connections: median 3.898ms, worst 3.989ms, budget 150ms
perf: GET /conversation: median 7.703ms, worst 7.984ms, budget 150ms
perf: GET /conversation/connections: median 235µs, worst 261µs, budget 150ms
perf: GET /conversation/notebook: median 234µs, worst 272µs, budget 150ms
perf: GET /conversation/settings: median 4.184ms, worst 4.414ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.355ms, worst 6.484ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.735ms, worst 7.214ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.922ms, worst 7.031ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.252ms, worst 4.375ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.323ms, worst 4.433ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.658ms, worst 4.818ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.668ms, worst 4.763ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.762ms, worst 3.857ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.661ms, worst 4.851ms, budget 150ms
perf: GET /housekeeping: median 4.236ms, worst 7.553ms, budget 150ms
perf: GET /invites/new: median 624µs, worst 654µs, budget 150ms
perf: GET /invites/{id}: median 660µs, worst 676µs, budget 150ms
perf: GET /jobs: median 3.764ms, worst 3.911ms, budget 150ms
perf: GET /jobs/{id}: median 4.892ms, worst 5.062ms, budget 150ms
perf: GET /journey: median 12.813ms, worst 13.039ms, budget 150ms
perf: GET /nav/rail: median 3.697ms, worst 3.722ms, budget 150ms
perf: GET /needs-you: median 12.108ms, worst 12.478ms, budget 150ms
perf: GET /onboarding: median 4.657ms, worst 4.835ms, budget 150ms
perf: GET /people: median 4.02ms, worst 4.136ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.847ms, worst 8.547ms, budget 150ms
perf: GET /playbooks: median 5.226ms, worst 5.438ms, budget 150ms
perf: GET /playbooks/new: median 5.299ms, worst 5.386ms, budget 150ms
perf: GET /playbooks/{id}: median 4.895ms, worst 4.953ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.88ms, worst 4.945ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.931ms, worst 4.055ms, budget 150ms
perf: GET /preferences: median 4.475ms, worst 4.582ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.206ms, worst 4.328ms, budget 150ms
perf: GET /projects: median 5.74ms, worst 5.898ms, budget 150ms
perf: GET /projects/accounts: median 3.844ms, worst 3.933ms, budget 150ms
perf: GET /projects/new: median 3.89ms, worst 4.199ms, budget 150ms
perf: GET /projects/{id}: median 11.206ms, worst 11.676ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.048ms, worst 4.135ms, budget 150ms
perf: GET /runners/enrol: median 4.677ms, worst 4.731ms, budget 150ms
perf: GET /settings: median 3.696ms, worst 3.807ms, budget 150ms
perf: GET /settings/coordinator: median 5.738ms, worst 5.851ms, budget 150ms
perf: GET /settings/devices: median 3.516ms, worst 3.629ms, budget 150ms
perf: GET /settings/recovery: median 3.667ms, worst 3.795ms, budget 150ms
perf: GET /settings/recovery/release: median 3.678ms, worst 3.725ms, budget 150ms
perf: GET /settings/thinking: median 246µs, worst 277µs, budget 150ms
perf: GET /signed-out: median 271µs, worst 307µs, budget 150ms
perf: GET /signin: median 267µs, worst 306µs, budget 150ms
perf: GET /specialists/new: median 3.674ms, worst 3.706ms, budget 150ms
perf: GET /specialists/{key}: median 11.18ms, worst 14.072ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.926ms, worst 4.029ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.061ms, worst 4.153ms, budget 150ms
perf: GET /tasks: median 5.902ms, worst 6.037ms, budget 150ms
perf: GET /tasks/new: median 3.737ms, worst 3.783ms, budget 150ms
perf: GET /tasks/{id}: median 5.904ms, worst 6ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.238ms, worst 5.463ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.934ms, worst 5.097ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.027ms, worst 6.207ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.514ms, worst 1.576ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.498ms, worst 7.62ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.089ms, worst 5.34ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.541ms, worst 4.695ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.057ms, worst 8.261ms, budget 150ms
perf: GET /team/{specialist}: median 4.596ms, worst 4.617ms, budget 150ms
perf: GET /teams: median 9.962ms, worst 10.078ms, budget 150ms
perf: GET /templates: median 3.648ms, worst 3.739ms, budget 150ms
perf: GET /usage: median 4.362ms, worst 4.492ms, budget 150ms
perf: GET /work: median 3.265ms, worst 3.338ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 158ms of [157.593081ms 157.696547ms 157.90117ms], budget 500ms

receipt: test step 32.04s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 86 without tests, 0 failed
receipt: slow package 10.298s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 9.78s 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: 3.80 GiB in 24703 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
diff --git a/internal/chatmarkdown/native_test.go b/internal/chatmarkdown/native_test.go
index 5f819759..a4880ba4 100644
--- a/internal/chatmarkdown/native_test.go
+++ b/internal/chatmarkdown/native_test.go
@@ -234,7 +234,7 @@ func TestNativeMarkdownFixtures(t *testing.T) {
}
}
}
- inputs = append(inputs, "`*_test.go", "`a_b_c", "`resizeReply(_:)")
+ inputs = append(inputs, "`*_test.go", "`a_b_c", "`resizeReply(_:)", "`[text](url)", "`![alt](src)")
fixtures := []nativeFixture{}
for i, s := range inputs {
for _, draft := range []bool{false, true} {
@@ -249,7 +249,7 @@ func TestNativeMarkdownFixtures(t *testing.T) {
streams = append(streams, prefix+span)
}
}
- streams = append(streams, "`*_test.go`", "`a_b_c`", "`resizeReply(_:)`")
+ streams = append(streams, "`*_test.go`", "`a_b_c`", "`resizeReply(_:)`", "`[text](url)`", "`![alt](src)`")
for i, s := range streams {
for cut := 0; cut <= len(s); cut++ {
if cut < len(s) && !utf8.RuneStart(s[cut]) {
@@ -348,7 +348,7 @@ func TestNativeMarkdownDifferential(t *testing.T) {
target += pick([]string{"?case=", "#"}) + strconv.Itoa(r.IntN(65536))
}
var s string
- switch i % 20 {
+ switch i % 21 {
case 0:
s = "[" + w + "](" + target + ")"
case 1:
@@ -387,6 +387,8 @@ func TestNativeMarkdownDifferential(t *testing.T) {
s = "[" + w + "][ref]\n\n[ref]: <" + pick([]string{" ", "\t", ""}) + target + ">"
case 17:
s = pick([]string{"Glob `**/*.go`", "\\*escaped*", ">*word", "a `a\\`b`", "**a\\*b**"}) + " " + w
+ case 20:
+ s = pick([]string{"", "Before ", "> ", "- "}) + "`" + pick([]string{"", "!"}) + "[" + w + "](" + pick([]string{"url", "/tasks/tk1", "https://example.test", "src"}) + pick([]string{"", ")", ") after", ")`"})
case 19:
s = pick([]string{"", "See ", "> ", "- "}) + "`" + pick([]string{"*", "_", "**", "__", "a_", "a*", "resizeReply("}) + pick([]string{"_test.go", "b_c", "*word", "_:)", "a_b_c", "*a_b*", "**/*.go"}) + pick([]string{"", "`", " " + w, "\\_"})
case 18:
diff --git a/native/MARKDOWN-STREAMING-REPORT.md b/native/MARKDOWN-STREAMING-REPORT.md
index 22d13f22..8b15203b 100644
--- a/native/MARKDOWN-STREAMING-REPORT.md
+++ b/native/MARKDOWN-STREAMING-REPORT.md
@@ -1,92 +1,116 @@
# Markdown streaming follow-up
-Branch `native/markdown-streaming`, based on main at `3589c220`.
-
-## Large replies
-
-A visible reply owns one background parsing worker. Appended deltas replace
-its pending request without cancelling its in-flight parse. That parse
-publishes its completed prefix immediately; the worker then parses the latest
-pending revision. It does not queue intermediate revisions. Small replies
-still render synchronously, and the cache still identifies revisions by
-account, message ID, exact text and draft/completed state.
-
-Changing the message, replacing its text, or leaving the view ends the worker.
-Cancellation and a generation check prevent late results from publishing or
-entering the cache. Reappearing starts the worker again. The Mac continues to
-resize only the affected reply when its height changes.
-
-The failing baseline live-host test streamed 67 updates at 5 ms intervals
-from 16,000 bytes to 65,536 bytes and saw only one distinct height before the
-stream ended. The fixed test requires at least six. A second test adds a
-25 ms parser delay, checks that publications grow during the stream, permits
-only one active parse, rejects cancellation on append, and requires the exact
-completed 64 KiB tree at the end. A deterministic held-parse test submits 67
-pending deltas and completion while the first parse is suspended, then requires
-exactly two parses: the first prefix and the latest completed revision. One focused run produced
-10 growing publications from 12 parses, with zero cancellations and a maximum
-of one active parse. A held-response test releases the old reply after the new
-one, then releases a parse after disappearance and tests reappearance.
+Branch `native/markdown-streaming`, based on main at `3589c220`. This report
+includes the follow-up to Fable's review of `b533757b`.
+
+## Message lifetime and large replies
+
+A session owns a `MarkdownTranscript`, keyed by message identity. Each message
+has one background parsing worker. Appended deltas replace the pending request
+without cancelling the in-flight parse. Every finished prefix publishes before
+the worker parses the latest pending revision. Intermediate revisions do not
+queue. Small replies still render synchronously; cached revisions include the
+account origin, message ID, exact text and draft/completed state.
+
+SwiftUI hosts borrow the message's renderer. Disappearance, scrolling and
+re-hosting do not stop it. Removing a message from the feed or a snapshot stops
+its worker, as does leaving the session. Cancellation and a generation check
+reject late results. A completed message settles its final parse, then the
+worker exits. Replacing a message's source starts fresh.
+
+The original 64 KiB test streams 67 updates at 5 ms intervals. The old
+cancel-on-delta implementation showed only one distinct height before the
+stream ended. The regression requires at least six. A delayed-parser test checks
+that prefixes publish, only one parse runs, appends cause no cancellations and
+the final completed tree is exact. A deterministic held-parse test sends 67
+pending revisions plus completion and requires exactly two parses: the first
+prefix and the latest completed revision.
+
+## Mac transcript rows
+
+`LiveTranscript` retains each row and reply host. A row revision includes its
+feed item, width, task details, answer/aside feedback and stopping state.
+Unchanged revisions receive no content update or intrinsic-size measurement.
+Changed replies update their existing host in place; new and removed IDs alone
+attach or detach rows. Ordering changes sort existing views without re-hosting.
+Height callbacks resize the changed reply and move later rows without rebuilding
+their contents. A width change resizes the existing rows.
+
+Fable's reproduction is covered two ways: a SwiftUI host is repeatedly detached
+and reattached across 67 large deltas, and the actual `EquipoMac.LiveTranscript`
+runs 49 historical replies plus one 17–25 KB streaming reply. The first test
+failed at one height before the fix. The actual transcript now grows throughout
+the stream; a focused run saw 10 growing heights (64 with other layout tests
+running concurrently). Completion keeps the same row, and removal cancels its
+message parser.
+
+The performance test uses the production Mac transcript inside an `NSWindow`,
+with 50 realistic replies. Before the fix, its median update was 723 ms. After
+the fix, a debug run measured 3.44 ms median and 5.50 ms maximum. The 50 ms median
+budget allows debug/CI variation while rejecting the original full rebuild by
+more than an order of magnitude. Timing is paired with deterministic assertions:
+exactly one content revision per changed reply, the same row and host identities,
+and no window detach/attach notifications. Removal, reinsertion, ordering and
+width changes are checked too.
+
+The Release test (`swift test --package-path native/apple -c release --filter
+MacTranscriptTests`) passed: 2.71 ms median, 4.83 ms maximum for the 50-reply
+update; the large reply showed 29 growing heights during 67 deltas. This
+uses the real transcript class and window layout, with in-memory test accounts;
+it is not a signed-in production-app timing session. No personal Keychain or
+signing settings were accessed for the harness.
## Open code spans
-Goldmark's watched fallback text can absorb an unmatched emphasis delimiter
-when that delimiter is removed. This includes delimiters which cannot open or
-close, and adjacent delimiters removed in different passes. Native now follows
-those merge boundaries instead of extending the hidden range through later
-words or leaving delimiter bytes visible.
+The first follow-up matched Goldmark's merging of unmatched emphasis delimiters
+into watched fallback backtick text, including adjacent closers. This revision
+also ends that watched text at a link/image opener. Bracket labels remain
+visible while the code span and destination are still open.
-The three supplied examples have every streaming cut in the goldens. The
-fixed-seed differential grammar also generates underscore/asterisk families
-inside open backticks, with quote/list prefixes, escapes, optional closers and
-random cuts. The expanded corpus has 3,554 checked-in cases and 32,000 unique
-generated inputs: 35,554 comparisons, with zero mismatches. Before the fix,
-the expansion found 176 draft mismatches. Render/RenderDraft are unchanged.
-
-## Remaining finished-reply edge cases
-
-This follow-up does not claim to fix Fable's remaining random-token cases:
-lone CR, reference definitions, and nested `<` in angle destinations. Those
-remain deferred. All finished cases in the current deterministic corpus match,
-but that is not proof that those independently found counterexamples match.
+Every streaming cut of the supplied underscore/asterisk examples and
+`[text](url)` / `![alt](src)` inside backticks is checked. The fixed-seed grammar
+adds links and images inside open code spans, with quote/list prefixes, optional
+closers, destinations and random cuts. The expansion found 322 mismatches before
+the bracket fix. There are now 3,586 checked-in cases and 32,000 unique generated
+inputs: 35,586 comparisons with zero mismatches. Go Render/RenderDraft output
+is unchanged.
## Verification
-Tests preceded the implementation. Focused commands:
+Tests preceded the fixes. Focused checks use:
```sh
EQUIPO_MARKDOWN_DIFFERENTIAL="$PWD/native/build/markdown-differential.json" \
swift test --package-path native/apple \
- --filter 'MarkdownParsingStreamTests|MarkdownLayoutTests.fastDeltas|ChatMarkdownTests'
-GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/chatmarkdown -count=1
+ --filter 'MacTranscriptTests|MarkdownParsingStreamTests|MarkdownLayoutTests|ChatMarkdownTests'
native/scripts/check-native.sh
```
-All nine mutations were caught and restored: restoring cancel-on-delta view
-wiring; cancelling an in-flight parse on append; withholding publication until
-the latest revision; ignoring the coalesced latest revision; allowing a late
-publication after cancellation; removing disappearance cleanup; removing
-reappearance wiring; skipping the first watched delimiter; and clearing the
-watch before an adjacent closer merges. Each ran its focused Swift regression
-(the wiring mutations ran the wiring assertion). No mutation failed to compile
-or timed out. The driver and individual logs are in the local logs directory.
-
-The full suite exposed a timing assumption in the original coalescing count:
-concurrent layout work delayed the 5 ms sleeps enough for every parse to finish
-between deltas. The held-parse test now verifies coalescing independently of
-scheduler load. Its publication and latest-revision guards were also mutated
-and caught, bringing the total to eleven mutation runs across nine guards.
-
-`native/scripts/check-native.sh` passed: fixture freshness, 32,000 generated
-inputs, strings and parity, reference scan, 161 Swift tests in 19 suites,
-EquipoMac build and unsigned iOS Simulator build. The suite retains its existing
-known Oficina ID session issue; no new known issue was introduced.
-
-The Go checks passed with `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0` and that toolchain
-on PATH: `go test ./internal/chatmarkdown -count=1`, `go vet
-./internal/chatmarkdown`, staticcheck v0.7.0 for that package, `make fmt-check`,
-and `go mod tidy -diff`.
-Local logs are under `native/build/logs/streaming-*`.
-
-No product strings, dependency pins or signing settings changed. Projects is
-outside this branch and awaits its brief.
+The earlier commit's nine guards were broken and restored in eleven mutation
+runs. All ten re-review guards were also broken and caught: detaching existing
+rows, ignoring row revisions, replacing reply hosts, stopping on disappearance,
+losing owner identity, omitting cancellation for removed messages, omitting
+session-departure cancellation, hiding open-code link labels, omitting snapshot
+removal cleanup and omitting feed removal cleanup. Each focused regression
+failed, then the guard was restored; none failed to compile or timed out.
+
+The revision-guard mutation initially stayed within the broad performance
+budget; adding the exact content-update count made that unnecessary work
+observable independently of machine speed.
+
+`native/scripts/check-native.sh` passed: fixture freshness and the generated
+corpus, strings/parity, reference scan, 167 Swift tests in 20 suites, Mac build
+and unsigned iOS Simulator build. The suite retains the existing known Oficina
+ID session issue; no new known issue was introduced. The full-suite Mac stream
+also grew through 64 sampled heights during 67 deltas.
+
+Go tests, vet, staticcheck v0.7.0 for `internal/chatmarkdown`, `make fmt-check` and
+`go mod tidy -diff` passed with `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`, with that
+toolchain on PATH. Local evidence is under `native/build/logs/streaming-review-*`.
+
+## Remaining scope
+
+Fable's random-token finished-reply cases involving lone CR, reference
+definitions and nested `<` in angle destinations remain deferred. The current
+corpus matches, which does not claim those independent counterexamples match.
+No product strings or dependency pins changed. Projects awaits its brief.
diff --git a/native/apple/Package.swift b/native/apple/Package.swift
index 25a778a3..3c9d70cf 100644
--- a/native/apple/Package.swift
+++ b/native/apple/Package.swift
@@ -32,7 +32,7 @@ let package = Package(
.product(name: "RastrilloMacUpdates", package: "native", condition: .when(platforms: [.macOS]))],
path: "Sources/EquipoMac"),
.testTarget(name: "EquipoKitTests",
- dependencies: ["EquipoKit", "EquipoActivity", .product(name: "RastrilloTestSupport", package: "native"), .product(name: "RastrilloNative", package: "native")],
+ dependencies: ["EquipoKit", "EquipoActivity", .target(name: "EquipoMac", condition: .when(platforms: [.macOS])), .product(name: "RastrilloTestSupport", package: "native"), .product(name: "RastrilloNative", package: "native")],
resources: [.copy("Fixtures")]),
]
)
diff --git a/native/apple/Sources/EquipoKit/Markdown/ChatMarkdown.swift b/native/apple/Sources/EquipoKit/Markdown/ChatMarkdown.swift
index 1d633dd6..7bd74b8e 100644
--- a/native/apple/Sources/EquipoKit/Markdown/ChatMarkdown.swift
+++ b/native/apple/Sources/EquipoKit/Markdown/ChatMarkdown.swift
@@ -436,11 +436,19 @@ private struct MarkdownProjection {
let char = bytes[at]
// The watched fallback text is extended up to the next inline
// parser trigger, even if that parser ultimately finds no node.
+ var startsLinkLabel = false
if let firstBacktick, [33, 42, 60, 91, 93, 95, 96].contains(char) {
var escapes = 0, previous = at
while previous > 0, bytes[previous - 1] == 92 { escapes += 1; previous -= 1 }
- if escapes % 2 == 0 { hidden.append(firstBacktick..<at) }
+ if escapes % 2 == 0 {
+ hidden.append(firstBacktick..<at)
+ // A link/image opener starts its own text segment, even
+ // before its destination arrives. Its label is not part
+ // of the watched unmatched code opener.
+ if char == 91 || char == 33 && at + 1 < bytes.count && bytes[at + 1] == 91 { startsLinkLabel = true }
+ }
}
+ if startsLinkLabel { firstBacktick = nil }
guard [42, 95, 96].contains(char) else { at += 1; continue }
let start = at
while at < segment.upperBound, bytes[at] == char { at += 1 }
diff --git a/native/apple/Sources/EquipoKit/Markdown/ChatMarkdownView.swift b/native/apple/Sources/EquipoKit/Markdown/ChatMarkdownView.swift
index a92f6e87..0a37de53 100644
--- a/native/apple/Sources/EquipoKit/Markdown/ChatMarkdownView.swift
+++ b/native/apple/Sources/EquipoKit/Markdown/ChatMarkdownView.swift
@@ -13,7 +13,7 @@ public struct ChatMarkdownView: View {
private let origin: URL
private let openTask: (String) -> Void
@Environment(\.openURL) private var openURL
- @State private var stream = MarkdownStreamRenderer()
+ private let stream: MarkdownStreamRenderer
private let request: MarkdownRenderCache.Request
private let initial: MarkdownRenderCache.Result
private var nodes: [ChatMarkdownNode] {
@@ -24,16 +24,18 @@ public struct ChatMarkdownView: View {
- public init(_ text: String, draft: Bool = false, messageID: String? = nil, origin: URL, openTask: @escaping (String) -> Void, onHeightChange: @escaping () -> Void = {}) {
+ public init(_ text: String, draft: Bool = false, messageID: String? = nil, origin: URL, transcript: MarkdownTranscript, openTask: @escaping (String) -> Void, onHeightChange: @escaping () -> Void = {}) {
self.text = text; self.draft = draft; self.origin = origin; self.openTask = openTask
self.prepared = false; self.onHeightChange = onHeightChange
request = MarkdownRenderCache.Request(messageID: origin.absoluteString + "/" + (messageID ?? text), text: text, draft: draft)
initial = MarkdownRenderCache.shared.initial(request)
+ stream = transcript.renderer(for: request.messageID)
}
// Tests render the completed background parse without needing a live host.
init(rendered nodes: [ChatMarkdownNode], origin: URL, openTask: @escaping (String) -> Void) {
text = ""; draft = false; self.origin = origin; self.openTask = openTask
prepared = true; onHeightChange = {}
+ stream = MarkdownStreamRenderer()
request = MarkdownRenderCache.Request(messageID: "prepared", text: "", draft: false)
initial = MarkdownRenderCache.Result(tree: nodes, complete: true)
}
@@ -49,7 +51,6 @@ public struct ChatMarkdownView: View {
guard !prepared else { return }
stream.submit(request, needsParsing: !initial.complete)
}
- .onDisappear { stream.stop() }
.onGeometryChange(for: CGFloat.self, of: { $0.size.height }) { _, _ in onHeightChange() }
.environment(\.openURL, OpenURLAction { url in
guard let original = MarkdownActions.originalTarget(url, in: nodes), let destination = MarkdownActions.destination(original, origin: origin) else { return .discarded }
diff --git a/native/apple/Sources/EquipoKit/Markdown/MarkdownStreamRenderer.swift b/native/apple/Sources/EquipoKit/Markdown/MarkdownStreamRenderer.swift
index 71679a58..9989c1b9 100644
--- a/native/apple/Sources/EquipoKit/Markdown/MarkdownStreamRenderer.swift
+++ b/native/apple/Sources/EquipoKit/Markdown/MarkdownStreamRenderer.swift
@@ -1,7 +1,7 @@
import Foundation
import Observation
-/// One parser per visible reply. New deltas replace the pending request, never
+/// One parser per message. New deltas replace the pending request, never
/// the in-flight parse; each completed prefix can become visible immediately.
@MainActor @Observable final class MarkdownStreamRenderer {
typealias Request = MarkdownRenderCache.Request
diff --git a/native/apple/Sources/EquipoKit/Markdown/MarkdownTranscript.swift b/native/apple/Sources/EquipoKit/Markdown/MarkdownTranscript.swift
new file mode 100644
index 00000000..7a230c3d
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Markdown/MarkdownTranscript.swift
@@ -0,0 +1,30 @@
+import Foundation
+
+/// Parsing belongs to messages in a signed-in conversation, not to their
+/// temporary SwiftUI hosts. Scrolling or re-hosting cannot end a reply's work.
+@MainActor public final class MarkdownTranscript {
+ private var renderers: [String: MarkdownStreamRenderer] = [:]
+ private let makeRenderer: () -> MarkdownStreamRenderer
+ public init() { makeRenderer = { MarkdownStreamRenderer() } }
+ init(makeRenderer: @escaping () -> MarkdownStreamRenderer) { self.makeRenderer = makeRenderer }
+
+ func renderer(for messageID: String) -> MarkdownStreamRenderer {
+ if let renderer = renderers[messageID] { return renderer }
+ let renderer = makeRenderer()
+ renderers[messageID] = renderer
+ return renderer
+ }
+
+ public func retainMessages(_ ids: Set<String>, origin: URL) {
+ let keys = Set(ids.map { origin.absoluteString + "/" + $0 })
+ for key in Array(renderers.keys) where !keys.contains(key) {
+ renderers.removeValue(forKey: key)?.stop()
+ }
+ }
+
+ public func removeAll() {
+ for renderer in renderers.values { renderer.stop() }
+ renderers.removeAll()
+ }
+ isolated deinit { for renderer in renderers.values { renderer.stop() } }
+}
diff --git a/native/apple/Sources/EquipoKit/Presentation/Roster.swift b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
index fbe7fefe..9e969c80 100644
--- a/native/apple/Sources/EquipoKit/Presentation/Roster.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/Roster.swift
@@ -107,7 +107,7 @@ public struct TaskReport: Sendable, Equatable {
// MARK: - The feed
/// One thing in the conversation.
-public enum FeedItem: Identifiable, Sendable {
+public enum FeedItem: Identifiable, Sendable, Equatable {
case draft(ThinTurn, text: String)
public var reply: TranscriptReply? {
switch self {
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index 9694f632..6c0413ca 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -25,6 +25,7 @@ public final class EquipoSession {
/// A departing session can never become current again, even if a read
/// or credential renewal ignores cancellation and completes later.
public let lifetime: SignInLifetime
+ public let markdown = MarkdownTranscript()
var isInvalidated: Bool { !lifetime.isActive }
public private(set) var status: Status = .loading
public private(set) var account: DeviceAccount
@@ -141,6 +142,7 @@ public final class EquipoSession {
guard let turn = turns.first(where: { $0.id == id }) else { return true }
return turn.isLive && (turn.attempt ?? 0) <= draft.attempt
}
+ markdown.retainMessages(Set(Feed.build(self).filter { $0.reply != nil }.map(\.id)), origin: origin)
if account.teamName != snapshot.me.teamName {
account.teamName = snapshot.me.teamName; account.address = snapshot.me.address
try? accounts.commit(.save(account), lifetime: lifetime)
@@ -423,6 +425,7 @@ public final class EquipoSession {
/// not prevent a completed network response from reaching persistence.
func invalidate() {
lifetime.end()
+ markdown.removeAll()
status = .signedOut
drafts = [:]
stopLive()
diff --git a/native/apple/Sources/EquipoKit/UI/RosterViews.swift b/native/apple/Sources/EquipoKit/UI/RosterViews.swift
index d745a2ed..43c7b66b 100644
--- a/native/apple/Sources/EquipoKit/UI/RosterViews.swift
+++ b/native/apple/Sources/EquipoKit/UI/RosterViews.swift
@@ -517,9 +517,11 @@ struct MiniComposer: View {
public struct CoordinatorMessage: View {
let messageID: String
let reply: TranscriptReply
+ let transcript: MarkdownTranscript
let origin: URL
let openTask: (String) -> Void
- public init(reply: TranscriptReply, messageID: String, origin: URL, openTask: @escaping (String) -> Void) {
+ public init(reply: TranscriptReply, messageID: String, origin: URL, transcript: MarkdownTranscript, openTask: @escaping (String) -> Void) {
+ self.transcript = transcript
self.messageID = messageID; self.reply = reply; self.origin = origin; self.openTask = openTask
}
public var body: some View {
@@ -528,7 +530,7 @@ public struct CoordinatorMessage: View {
CoordinatorMark(size: 22).frame(width: Metric.indent, alignment: .leading)
Text(reply.date.formatted(date: .omitted, time: .shortened)).font(Typo.time).foregroundStyle(Palette.faint)
}.frame(minHeight: Metric.tile)
- ChatMarkdownView(reply.text, draft: reply.draft, messageID: messageID, origin: origin, openTask: openTask)
+ ChatMarkdownView(reply.text, draft: reply.draft, messageID: messageID, origin: origin, transcript: transcript, openTask: openTask)
}
.frame(maxWidth: .infinity, alignment: .leading)
.accessibilityElement(children: .contain)
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
index 86c7cd47..81ca60a3 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
@@ -66,7 +66,7 @@ public struct ConversationScreen: View {
@ViewBuilder private func row(_ item: FeedItem) -> some View {
if let reply = item.reply {
- CoordinatorMessage(reply: reply, messageID: item.id, origin: session.origin, openTask: openTask)
+ CoordinatorMessage(reply: reply, messageID: item.id, origin: session.origin, transcript: session.markdown, openTask: openTask)
} else {
switch item {
case .draft, .coordinator: EmptyView()
diff --git a/native/apple/Sources/EquipoMac/LiveTranscript.swift b/native/apple/Sources/EquipoMac/LiveTranscript.swift
index 74b3af58..6f47c2ce 100644
--- a/native/apple/Sources/EquipoMac/LiveTranscript.swift
+++ b/native/apple/Sources/EquipoMac/LiveTranscript.swift
@@ -4,8 +4,8 @@ import SwiftUI
/// The conversation in AppKit: Roster's bylines and cards over the live feed
/// (EquipoKit's `Feed.build`), in a centred column with a 48-point author
-/// gutter, and the composer at the bottom. Each update lays the feed out
-/// again at the column width; the view stays pinned to the newest item
+/// gutter, and the composer at the bottom. Updates reconcile rows by identity
+/// and revision; the view stays pinned to the newest item
/// unless the person has scrolled up.
@MainActor
final class LiveTranscript: NSView {
@@ -33,6 +33,23 @@ final class LiveTranscript: NSView {
// Keep each reply's SwiftUI host across delta and completion rebuilds.
// In particular, closing a fence keeps its scroll position and Copy state.
private var replyHosts: [String: NSHostingView<MarkdownReplyHost>] = [:]
+ private struct RowRevision: Equatable {
+ let item: FeedItem
+ let width: CGFloat
+ let task: ThinTask?
+ let answer: AnswerState?
+ let aside: AnswerState?
+ let stopping: Bool
+ }
+ private struct Row {
+ let view: NSView
+ let revision: RowRevision
+ }
+ // Counts row content updates independently of frame-only positioning.
+ private(set) var renderedRevisions = 0
+ private var rows: [String: Row] = [:]
+ private var rowOrder: [String] = []
+ private var emptyView: NSView?
private var contentHeight: CGFloat = 0
private var laidOutWidth: CGFloat = 0
private var hasScrolledOnce = false
@@ -60,8 +77,7 @@ final class LiveTranscript: NSView {
func update(items: [FeedItem]) {
let wasAtBottom = isAtBottom
self.items = items
- let replyIDs = Set(items.filter { $0.reply != nil }.map(\.id))
- replyHosts = replyHosts.filter { replyIDs.contains($0.key) }
+ session.markdown.retainMessages(Set(items.filter { $0.reply != nil }.map(\.id)), origin: session.origin)
rebuild()
if wasAtBottom || !hasScrolledOnce { scrollToBottom(); hasScrolledOnce = !items.isEmpty }
}
@@ -99,59 +115,105 @@ final class LiveTranscript: NSView {
// MARK: Building the feed
private func rebuild() {
- document.subviews.forEach { $0.removeFromSuperview() }
+ let ids = Set(items.map(\.id))
+ for id in Array(rows.keys) where !ids.contains(id) {
+ rows.removeValue(forKey: id)?.view.removeFromSuperview()
+ replyHosts.removeValue(forKey: id)
+ }
let column = self.column
- let x0 = column.x, width = column.width
- let content = width - MacMetric.gutter
var y: CGFloat = 24
- func place(_ view: NSView, x: CGFloat = 0, gapAfter: CGFloat = 22) {
- view.frame.origin = NSPoint(x: x0 + x, y: y)
- document.addSubview(view)
- y = view.frame.maxY + gapAfter
- }
- func placeCard(_ plate: RaisedPlate) {
- plate.frame.origin = NSPoint(x: x0 + MacMetric.gutter - MacMetric.shadow, y: y - MacMetric.shadow)
- document.addSubview(plate, positioned: .below, relativeTo: nil)
- y += plate.content.frame.height + 24
- }
- if items.isEmpty && session.status == .ready {
- place(makeText(EquipoStrings.text("conversation.empty"), MacType.line, .webSecondary, width: width), gapAfter: 0)
- }
tops = [:]
for item in items {
- tops[item.id] = y
+ let task: ThinTask?
switch item {
- case .own(let message):
- place(ownBubble(message.text, width: width), x: width - ownWidth(message.text, width: width))
- case .coordinator, .draft:
- if let reply = item.reply { place(coordinatorRow(reply, id: item.id, width: width)) }
- case .outgoing(let outgoing):
- let bubble = ownBubble(outgoing.text, width: width)
- bubble.alphaValue = outgoing.state == .sending ? 0.6 : 1
- place(bubble, x: width - bubble.frame.width, gapAfter: 4)
- let status = outgoingStatus(outgoing)
- place(status, x: width - status.frame.width)
- case .report(_, let byline, let report, let compact):
- place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
- place(hosted(LiveReport(report: report, compact: compact, wide: true) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24)
- case .question(let card, let byline):
- place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
- placeCard(questionCard(card, taskTitle: session.task(card.taskId)?.title, width: content))
- case .decision(let card, let byline):
- place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
- placeCard(decisionCard(card, taskTitle: session.task(card.taskId)?.title, width: content))
- case .receipt(let card, _):
- place(receiptRow(card, width: width))
- case .thinking(let turn, let activity):
- let session = self.session
- place(hosted(ThinkingLine(turn: turn, activity: activity, stopping: session.stopping.contains(turn.id)) { Task { await session.stop(turn) } }, width: width))
+ case .question(let card, _), .decision(let card, _): task = session.task(card.taskId)
+ default: task = nil
+ }
+ let stopping: Bool
+ if case .thinking(let turn, _) = item { stopping = session.stopping.contains(turn.id) } else { stopping = false }
+ let revision = RowRevision(item: item, width: column.width, task: task, answer: answers[item.id], aside: asides[item.id], stopping: stopping)
+ let row: NSView
+ if let existing = rows[item.id], existing.revision == revision {
+ row = existing.view
+ } else {
+ row = makeRow(item, width: column.width)
+ rows[item.id] = Row(view: row, revision: revision)
+ }
+ tops[item.id] = y
+ row.frame.origin = NSPoint(x: column.x, y: y)
+ if row.superview == nil { document.addSubview(row) }
+ y += row.frame.height
+ }
+ // Sorting does not detach hosts or trigger SwiftUI disappearance.
+ let order = items.map(\.id)
+ if rowOrder != order {
+ var ranks = Dictionary(items.enumerated().map { (ObjectIdentifier(rows[$0.element.id]!.view), $0.offset) }, uniquingKeysWith: { a, _ in a })
+ withUnsafeMutablePointer(to: &ranks) { pointer in
+ document.sortSubviews({ a, b, context in
+ let ranks = context!.assumingMemoryBound(to: [ObjectIdentifier: Int].self).pointee
+ let left = ranks[ObjectIdentifier(a)] ?? -1, right = ranks[ObjectIdentifier(b)] ?? -1
+ return left == right ? .orderedSame : left < right ? .orderedAscending : .orderedDescending
+ }, context: pointer)
}
+ rowOrder = order
}
- // The last item scrolls clear of the composer.
+ if items.isEmpty && session.status == .ready {
+ if emptyView == nil { emptyView = makeText(EquipoStrings.text("conversation.empty"), MacType.line, .webSecondary, width: column.width) }
+ if let emptyView {
+ emptyView.frame.origin = NSPoint(x: column.x, y: y)
+ if emptyView.superview == nil { document.addSubview(emptyView) }
+ y += emptyView.frame.height
+ }
+ } else { emptyView?.removeFromSuperview(); emptyView = nil }
contentHeight = y + 24
document.frame = NSRect(x: 0, y: 0, width: bounds.width, height: max(contentHeight, scroll.bounds.height))
}
+ private func makeRow(_ item: FeedItem, width: CGFloat) -> NSView {
+ renderedRevisions += 1
+ if let reply = item.reply { return coordinatorRow(reply, id: item.id, width: width) }
+ let row = rows[item.id]?.view ?? FlippedView()
+ row.subviews.forEach { $0.removeFromSuperview() }
+ let content = width - MacMetric.gutter
+ var y: CGFloat = 0
+ func place(_ view: NSView, x: CGFloat = 0, gapAfter: CGFloat = 22) {
+ view.frame.origin = NSPoint(x: x, y: y)
+ row.addSubview(view)
+ y = view.frame.maxY + gapAfter
+ }
+ func placeCard(_ plate: RaisedPlate) {
+ plate.frame.origin = NSPoint(x: MacMetric.gutter - MacMetric.shadow, y: y - MacMetric.shadow)
+ row.addSubview(plate, positioned: .below, relativeTo: nil)
+ y += plate.content.frame.height + 24
+ }
+ switch item {
+ case .own(let message):
+ place(ownBubble(message.text, width: width), x: width - ownWidth(message.text, width: width))
+ case .coordinator, .draft: break
+ case .outgoing(let outgoing):
+ let bubble = ownBubble(outgoing.text, width: width)
+ bubble.alphaValue = outgoing.state == .sending ? 0.6 : 1
+ place(bubble, x: width - bubble.frame.width, gapAfter: 4)
+ let status = outgoingStatus(outgoing)
+ place(status, x: width - status.frame.width)
+ case .report(_, let byline, let report, let compact):
+ place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
+ place(hosted(LiveReport(report: report, compact: compact, wide: true) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24)
+ case .question(let card, let byline):
+ place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
+ placeCard(questionCard(card, taskTitle: session.task(card.taskId)?.title, width: content))
+ case .decision(let card, let byline):
+ place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
+ placeCard(decisionCard(card, taskTitle: session.task(card.taskId)?.title, width: content))
+ case .receipt(let card, _): place(receiptRow(card, width: width))
+ case .thinking(let turn, let activity):
+ let session = self.session
+ place(hosted(ThinkingLine(turn: turn, activity: activity, stopping: session.stopping.contains(turn.id)) { Task { await session.stop(turn) } }, width: width))
+ }
+ row.frame.size = NSSize(width: width, height: y)
+ return row
+ }
+
/// Scrolls a card (a tapped notification's) into view; false while the feed lacks it.
@discardableResult
func reveal(card id: String) -> Bool {
@@ -196,13 +258,16 @@ final class LiveTranscript: NSView {
}
private func coordinatorRow(_ reply: TranscriptReply, id: String, width: CGFloat) -> NSView {
- let row = FlippedView(frame: NSRect(x: 0, y: 0, width: width, height: 0))
- let mark = sparkleView(); mark.frame.origin = NSPoint(x: 0, y: 4); row.addSubview(mark)
- let time = reply.date.formatted(date: .omitted, time: .shortened)
- let timeLabel = makeText(time, MacType.time, .webFaint)
- centre(timeLabel, x: MacMetric.gutter, row: 0, height: MacMetric.tile); row.addSubview(timeLabel)
+ let row = rows[id]?.view ?? FlippedView()
+ if rows[id]?.revision.item.reply?.date != reply.date {
+ for child in row.subviews where child !== replyHosts[id] { child.removeFromSuperview() }
+ let mark = sparkleView(); mark.frame.origin = NSPoint(x: 0, y: 4); row.addSubview(mark)
+ let time = reply.date.formatted(date: .omitted, time: .shortened)
+ let timeLabel = makeText(time, MacType.time, .webFaint)
+ centre(timeLabel, x: MacMetric.gutter, row: 0, height: MacMetric.tile); row.addSubview(timeLabel)
+ }
let innerWidth = min(width - MacMetric.gutter, 620)
- let content = MarkdownReplyHost(messageID: id, reply: reply, origin: session.origin, width: innerWidth, openTask: { [weak self] in self?.openTask($0) }, onHeightChange: { [weak self] in
+ let content = MarkdownReplyHost(messageID: id, reply: reply, origin: session.origin, transcript: session.markdown, width: innerWidth, openTask: { [weak self] in self?.openTask($0) }, onHeightChange: { [weak self] in
// Parsing completes away from the main actor. Remeasure the host
// when the resulting SwiftUI content changes its intrinsic height.
Task { @MainActor [weak self] in
@@ -217,8 +282,8 @@ final class LiveTranscript: NSView {
host.rootView = content
host.frame = NSRect(x: MacMetric.gutter, y: MacMetric.tile + 2, width: innerWidth, height: ceil(host.fittingSize.height))
replyHosts[id] = host
- row.addSubview(host)
- row.frame.size.height = host.frame.maxY
+ if host.superview == nil { row.addSubview(host) }
+ row.frame.size = NSSize(width: width, height: host.frame.maxY + 22)
return row
}
@@ -545,11 +610,12 @@ private struct MarkdownReplyHost: View {
let messageID: String
let reply: TranscriptReply
let origin: URL
+ let transcript: MarkdownTranscript
let width: CGFloat
let openTask: (String) -> Void
let onHeightChange: () -> Void
var body: some View {
- ChatMarkdownView(reply.text, draft: reply.draft, messageID: messageID, origin: origin, openTask: openTask, onHeightChange: onHeightChange)
+ ChatMarkdownView(reply.text, draft: reply.draft, messageID: messageID, origin: origin, transcript: transcript, openTask: openTask, onHeightChange: onHeightChange)
.frame(width: width, alignment: .leading)
}
}
diff --git a/native/apple/Tests/EquipoKitTests/ChatMarkdownTests.swift b/native/apple/Tests/EquipoKitTests/ChatMarkdownTests.swift
index 90e22ca2..8faa2039 100644
--- a/native/apple/Tests/EquipoKitTests/ChatMarkdownTests.swift
+++ b/native/apple/Tests/EquipoKitTests/ChatMarkdownTests.swift
@@ -136,7 +136,8 @@ struct MarkdownGolden: Codable {
#expect(streaming.contains("await ChatMarkdown.parseInBackground"))
#expect(renderer.contains(".onChange(of: request)"))
#expect(renderer.contains(".onAppear {"))
- #expect(renderer.contains(".onDisappear { stream.stop() }"))
+ #expect(!renderer.contains(".onDisappear"))
+ #expect(renderer.contains("stream = transcript.renderer(for: request.messageID)"))
let strings = try String(contentsOf: apple.deletingLastPathComponent().appendingPathComponent("scripts/strings.json"), encoding: .utf8)
#expect(!strings.contains("message.coordinator_spoken"))
let parser = try String(contentsOf: apple.appendingPathComponent("Sources/EquipoKit/Markdown/ChatMarkdown.swift"), encoding: .utf8)
diff --git a/native/apple/Tests/EquipoKitTests/Fixtures/markdown/golden.json b/native/apple/Tests/EquipoKitTests/Fixtures/markdown/golden.json
index bec1ce6b..14a07133 100644
--- a/native/apple/Tests/EquipoKitTests/Fixtures/markdown/golden.json
+++ b/native/apple/Tests/EquipoKitTests/Fixtures/markdown/golden.json
@@ -355,6 +355,10 @@
{"name":"case-176-true","source":"`a_b_c","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"b_c","children":[]}]}]},
{"name":"case-177-false","source":"`resizeReply(_:)","draft":false,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"`resizeReply(_:)","children":[]}]}]},
{"name":"case-177-true","source":"`resizeReply(_:)","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":":)","children":[]}]}]},
+{"name":"case-178-false","source":"`[text](url)","draft":false,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"`text","children":[]}]}]},
+{"name":"case-178-true","source":"`[text](url)","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"case-179-false","source":"`![alt](src)","draft":false,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"`alt","children":[]}]}]},
+{"name":"case-179-true","source":"`![alt](src)","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
{"name":"stream-0-0000","source":"","draft":true,"tree":[]},
{"name":"stream-0-0001","source":"I","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"I","children":[]}]}]},
{"name":"stream-0-0002","source":"I ","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"I","children":[]}]}]},
@@ -3552,5 +3556,33 @@
{"name":"stream-74-0014","source":"`resizeReply(_","draft":true,"tree":[{"kind":"paragraph","children":[]}]},
{"name":"stream-74-0015","source":"`resizeReply(_:","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":":","children":[]}]}]},
{"name":"stream-74-0016","source":"`resizeReply(_:)","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":":)","children":[]}]}]},
-{"name":"stream-74-0017","source":"`resizeReply(_:)`","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"code","text":"resizeReply(_:)","children":[]}]}]}
+{"name":"stream-74-0017","source":"`resizeReply(_:)`","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"code","text":"resizeReply(_:)","children":[]}]}]},
+{"name":"stream-75-0000","source":"","draft":true,"tree":[]},
+{"name":"stream-75-0001","source":"`","draft":true,"tree":[]},
+{"name":"stream-75-0002","source":"`[","draft":true,"tree":[{"kind":"paragraph","children":[]}]},
+{"name":"stream-75-0003","source":"`[t","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"t","children":[]}]}]},
+{"name":"stream-75-0004","source":"`[te","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"te","children":[]}]}]},
+{"name":"stream-75-0005","source":"`[tex","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"tex","children":[]}]}]},
+{"name":"stream-75-0006","source":"`[text","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0007","source":"`[text]","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0008","source":"`[text](","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0009","source":"`[text](u","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0010","source":"`[text](ur","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0011","source":"`[text](url","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0012","source":"`[text](url)","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"text","children":[]}]}]},
+{"name":"stream-75-0013","source":"`[text](url)`","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"code","text":"[text](url)","children":[]}]}]},
+{"name":"stream-76-0000","source":"","draft":true,"tree":[]},
+{"name":"stream-76-0001","source":"`","draft":true,"tree":[]},
+{"name":"stream-76-0002","source":"`!","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"!","children":[]}]}]},
+{"name":"stream-76-0003","source":"`![","draft":true,"tree":[{"kind":"paragraph","children":[]}]},
+{"name":"stream-76-0004","source":"`![a","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"a","children":[]}]}]},
+{"name":"stream-76-0005","source":"`![al","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"al","children":[]}]}]},
+{"name":"stream-76-0006","source":"`![alt","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0007","source":"`![alt]","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0008","source":"`![alt](","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0009","source":"`![alt](s","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0010","source":"`![alt](sr","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0011","source":"`![alt](src","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0012","source":"`![alt](src)","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"text","text":"alt","children":[]}]}]},
+{"name":"stream-76-0013","source":"`![alt](src)`","draft":true,"tree":[{"kind":"paragraph","children":[{"kind":"code","text":"![alt](src)","children":[]}]}]}
]
diff --git a/native/apple/Tests/EquipoKitTests/MacTranscriptTests.swift b/native/apple/Tests/EquipoKitTests/MacTranscriptTests.swift
new file mode 100644
index 00000000..88aa5523
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/MacTranscriptTests.swift
@@ -0,0 +1,123 @@
+#if os(macOS)
+import AppKit
+import Foundation
+import Testing
+@testable import EquipoKit
+@testable import EquipoMac
+
+@MainActor private final class WindowMoveProbe: NSView {
+ var moves = 0
+ override func viewDidMoveToWindow() { super.viewDidMoveToWindow(); moves += 1 }
+}
+
+@MainActor @Suite(.serialized) struct MacTranscriptTests {
+ func fixture() throws -> (EquipoSession, [FeedItem]) {
+ let origin = URL(string: "https://transcript.example.test")!
+ let session = EquipoSession(account: .new(origin: origin, label: "Test"), accounts: DeviceAccounts(store: MemorySecretStore()))
+ let snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ let template = try #require(snapshot.messages?.first)
+ let items: [FeedItem] = (0..<50).map { i in
+ var message = template
+ message.id = "message-\(i)"; message.turnId = "turn-\(i)"
+ message.text = "**Reply \(i)**\n\n" + String(repeating: "This is a realistic reply with a [task](/tasks/tk1). ", count: 5)
+ return .coordinator(message)
+ }
+ return (session, items)
+ }
+ @Test func fiftyRepliesUpdateOnlyTheChangedRowWithinBudget() throws {
+ let (session, initial) = try fixture()
+ var items = initial
+ let view = LiveTranscript(session: session, openTask: { _ in })
+ view.frame = NSRect(x: 0, y: 0, width: 900, height: 800)
+ let window = NSWindow(contentRect: view.frame, styleMask: [.borderless], backing: .buffered, defer: false)
+ window.contentView = view
+ defer { window.contentView = nil }
+ view.update(items: items)
+ view.layoutSubtreeIfNeeded()
+ let document = try #require(view.subviews.compactMap { $0 as? NSScrollView }.first?.documentView)
+ let rows = document.subviews
+ #expect(rows.count == 50)
+ let probes = rows.map { row in
+ let probe = WindowMoveProbe()
+ row.addSubview(probe)
+ return probe
+ }
+ let initialMoves = probes.map(\.moves)
+ func hosts(_ row: NSView) -> [NSView] { row.subviews.filter { String(reflecting: type(of: $0)).contains("NSHostingView") } }
+ let initialHosts = try rows.map { try #require(hosts($0).first) }
+ let initialRevisions = view.renderedRevisions
+ var times: [Double] = []
+ for revision in 1...10 {
+ guard case .coordinator(var message) = items[49] else { return }
+ message.text += " More words \(revision)."; message.revision += 1
+ items[49] = .coordinator(message)
+ let start = ContinuousClock.now
+ view.update(items: items)
+ view.layoutSubtreeIfNeeded()
+ let elapsed = start.duration(to: .now).components
+ times.append(Double(elapsed.seconds) * 1000 + Double(elapsed.attoseconds) / 1e15)
+ #expect(view.renderedRevisions == initialRevisions + revision, "only the changed row receives content")
+ #expect(document.subviews.count == 50)
+ #expect(probes.map(\.moves) == initialMoves, "updates must not detach and reattach existing rows")
+ #expect(zip(rows, initialHosts).allSatisfy { hosts($0).count == 1 && hosts($0).first === $1 }, "each reply keeps its single host")
+ #expect(zip(document.subviews, rows).allSatisfy { $0 === $1 }, "feed deltas must preserve row identity, including the changed reply")
+ }
+ let median = times.sorted()[times.count / 2]
+ print("Mac transcript: 50 replies, update median \(median) ms, max \(times.max() ?? 0) ms")
+ // 50 ms allows debug builds and shared CI machines; it still rejects
+ // the observed 1,156 ms full rebuild by more than an order of magnitude.
+ #expect(median < 50)
+ view.update(items: Array(items.dropFirst()))
+ #expect(document.subviews.count == 49)
+ #expect(rows[0].superview == nil)
+ #expect(zip(document.subviews, rows.dropFirst()).allSatisfy { $0 === $1 })
+ view.update(items: Array(items.reversed()))
+ #expect(document.subviews.count == 50)
+ #expect(zip(document.subviews.dropLast(), rows.dropFirst().reversed()).allSatisfy { $0 === $1 })
+ #expect(document.subviews.last !== rows[0], "a removed row gets a fresh lifetime when reinserted")
+ let ordered = document.subviews
+ #expect(zip(ordered, ordered.dropFirst()).allSatisfy { $0.frame.maxY <= $1.frame.minY })
+ view.frame.size.width = 1100
+ view.layoutSubtreeIfNeeded()
+ #expect(zip(document.subviews, ordered).allSatisfy { $0 === $1 }, "width changes resize existing rows")
+ #expect(document.subviews.allSatisfy { $0.frame.width == 768 })
+ }
+
+ @Test func actualTranscriptGrowsThroughFastLargeDeltas() async throws {
+ let (session, history) = try fixture()
+ let snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ var turn = try #require(snapshot.turns?.first)
+ turn.id = "live"; turn.state = "running"
+ let text = String(repeating: "A long reply with **emphasis** and words. ", count: 1000)
+ let view = LiveTranscript(session: session, openTask: { _ in })
+ view.frame = NSRect(x: 0, y: 0, width: 900, height: 800)
+ let window = NSWindow(contentRect: view.frame, styleMask: [.borderless], backing: .buffered, defer: false)
+ window.contentView = view
+ defer { window.contentView = nil; session.markdown.removeAll() }
+ func feed(_ count: Int) -> [FeedItem] { Array(history.prefix(49)) + [.draft(turn, text: String(text.prefix(count)))] }
+ view.update(items: feed(16000))
+ view.layoutSubtreeIfNeeded()
+ let document = try #require(view.subviews.compactMap { $0 as? NSScrollView }.first?.documentView)
+ let rows = document.subviews
+ let reply = try #require(rows.last)
+ var heights: [CGFloat] = []
+ for step in 1...67 {
+ view.update(items: feed(17000 + 8000 * step / 67))
+ try await Task.sleep(for: .milliseconds(5))
+ heights.append(reply.frame.height)
+ #expect(zip(document.subviews, rows).allSatisfy { $0 === $1 })
+ }
+ let renderer = session.markdown.renderer(for: session.origin.absoluteString + "/reply-" + turn.id)
+ #expect(renderer.publication != nil)
+ print("Mac live transcript: \(Set(heights.dropLast()).count) growing heights during 67 deltas")
+ #expect(Set(heights.dropLast()).count >= 5)
+ var message = try #require(snapshot.messages?.first)
+ message.id = "completed"; message.turnId = turn.id; message.text = String(text.prefix(25000))
+ view.update(items: Array(history.prefix(49)) + [.coordinator(message)])
+ #expect(document.subviews.last === reply, "completion updates the same row")
+ view.update(items: Array(history.prefix(49)))
+ #expect(reply.superview == nil)
+ #expect(renderer.publication == nil, "removing the message ends its parser lifetime")
+ }
+}
+#endif
diff --git a/native/apple/Tests/EquipoKitTests/MarkdownLayoutTests.swift b/native/apple/Tests/EquipoKitTests/MarkdownLayoutTests.swift
index 044ca3e6..39821578 100644
--- a/native/apple/Tests/EquipoKitTests/MarkdownLayoutTests.swift
+++ b/native/apple/Tests/EquipoKitTests/MarkdownLayoutTests.swift
@@ -69,8 +69,9 @@ import AppKit
}
@Test func liveHostAppliesBackgroundParseAndNotifiesItsHeight() async throws {
+ let transcript = MarkdownTranscript()
var changes = 0
- let host = NSHostingView(rootView: ChatMarkdownView("**First reply**", origin: URL(string: "https://team.example.test")!, openTask: { _ in }, onHeightChange: { changes += 1 }).frame(width: 390))
+ let host = NSHostingView(rootView: ChatMarkdownView("**First reply**", origin: URL(string: "https://team.example.test")!, transcript: transcript, openTask: { _ in }, onHeightChange: { changes += 1 }).frame(width: 390))
let window = NSWindow(contentRect: NSRect(x: -10000, y: -10000, width: 390, height: 500), styleMask: [.borderless], backing: .buffered, defer: false)
window.contentView = host
defer { window.contentView = nil }
@@ -78,18 +79,19 @@ import AppKit
#expect(host.fittingSize.height > 10, "the very first layout must contain the reply")
let initial = host.fittingSize.height
#expect(initial > 10)
- host.rootView = ChatMarkdownView("**First reply**\n\nSecond paragraph.\n\n```text\nA complete paste box.\n```", origin: URL(string: "https://team.example.test")!, openTask: { _ in }, onHeightChange: { changes += 1 }).frame(width: 390)
+ host.rootView = ChatMarkdownView("**First reply**\n\nSecond paragraph.\n\n```text\nA complete paste box.\n```", origin: URL(string: "https://team.example.test")!, transcript: transcript, openTask: { _ in }, onHeightChange: { changes += 1 }).frame(width: 390)
for _ in 0..<100 where host.fittingSize.height <= initial { try await Task.sleep(for: .milliseconds(10)) }
#expect(host.fittingSize.height > initial + 20)
#expect(changes >= 2)
}
@Test func fastDeltasKeepA64KiBReplyGrowing() async throws {
+ let transcript = MarkdownTranscript()
let text = String(String(repeating: "A streaming reply with words and **emphasis**. ", count: 2000).prefix(65_536))
let origin = URL(string: "https://stream.example.test")!
let id = UUID().uuidString
func view(_ length: Int) -> some View {
- ChatMarkdownView(String(text.prefix(length)), draft: true, messageID: id, origin: origin, openTask: { _ in }).frame(width: 390)
+ ChatMarkdownView(String(text.prefix(length)), draft: true, messageID: id, origin: origin, transcript: transcript, openTask: { _ in }).frame(width: 390)
}
let host = NSHostingView(rootView: view(16_000))
let window = NSWindow(contentRect: NSRect(x: -10000, y: -10000, width: 390, height: 500), styleMask: [.borderless], backing: .buffered, defer: false)
@@ -109,10 +111,36 @@ import AppKit
#expect(host.fittingSize.height > before * 3)
}
+ @Test func rehostingDoesNotEndTheMessageParse() async throws {
+ let transcript = MarkdownTranscript()
+ let text = String(repeating: "Words in a reply with **emphasis**. ", count: 1000)
+ let id = UUID().uuidString
+ let origin = URL(string: "https://rehost.example.test")!
+ func view(_ count: Int) -> some View {
+ ChatMarkdownView(String(text.prefix(count)), draft: true, messageID: id, origin: origin, transcript: transcript, openTask: { _ in }).frame(width: 620)
+ }
+ let window = NSWindow(contentRect: NSRect(x: -10000, y: -10000, width: 700, height: 500), styleMask: [.borderless], backing: .buffered, defer: false)
+ let host = NSHostingView(rootView: view(16000))
+ window.contentView = host
+ host.layoutSubtreeIfNeeded()
+ defer { window.contentView = nil }
+ var heights: [CGFloat] = []
+ for step in 1...67 {
+ host.removeFromSuperview()
+ window.contentView = NSView()
+ host.rootView = view(17000 + 8000 * step / 67)
+ window.contentView?.addSubview(host)
+ try await Task.sleep(for: .milliseconds(5))
+ heights.append(host.fittingSize.height)
+ }
+ #expect(Set(heights.dropLast()).count >= 5, "re-hosting must not cancel the message's in-flight parse")
+ }
+
@Test func largeReplyHasMultilineContentOnItsFirstFrame() {
+ let transcript = MarkdownTranscript()
let text = String(repeating: "A line of this large reply.\n", count: 800)
for draft in [false, true] {
- let host = NSHostingView(rootView: ChatMarkdownView(text, draft: draft, messageID: "large-first-frame-\(draft)", origin: URL(string: "https://team.example.test")!, openTask: { _ in }).frame(width: 390))
+ let host = NSHostingView(rootView: ChatMarkdownView(text, draft: draft, messageID: "large-first-frame-\(draft)", origin: URL(string: "https://team.example.test")!, transcript: transcript, openTask: { _ in }).frame(width: 390))
#expect(host.fittingSize.height > 8000, "the fallback preserves line breaks before any async parse")
}
}
diff --git a/native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift b/native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift
index d5e612b8..1c5a7521 100644
--- a/native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift
+++ b/native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift
@@ -61,6 +61,55 @@ import Testing
renderer.stop()
}
+ @Test func messageOwnerKeepsWorkUntilRemovalAndRejectsItsLateResult() async throws {
+ var held: CheckedContinuation<[ChatMarkdownNode], Never>?
+ let renderer = MarkdownStreamRenderer(cache: MarkdownRenderCache()) { _ in
+ await withCheckedContinuation { held = $0 }
+ }
+ let transcript = MarkdownTranscript(makeRenderer: { renderer })
+ let origin = URL(string: "https://owner.example.test")!
+ let key = origin.absoluteString + "/reply"
+ let independent = MarkdownTranscript()
+ #expect(independent.renderer(for: key) === independent.renderer(for: key))
+ let owned = transcript.renderer(for: key)
+ owned.submit(.init(messageID: key, text: "draft", draft: true))
+ for _ in 0..<100 where held == nil { await Task.yield() }
+ transcript.retainMessages(["reply"], origin: origin)
+ #expect(transcript.renderer(for: key) === owned)
+ transcript.retainMessages([], origin: origin)
+ try #require(held).resume(returning: [ChatMarkdownNode(kind: "text", text: "late")])
+ try await Task.sleep(for: .milliseconds(1))
+ #expect(owned.publication == nil)
+ }
+
+ @Test func snapshotRemovingDraftEndsOwnedMarkdown() async throws {
+ let helper = MarkdownStreamTests()
+ let (session, original, id) = try helper.fixture()
+ try await helper.delta(session, id, 0, "draft")
+ let key = session.origin.absoluteString + "/reply-" + id
+ let renderer = session.markdown.renderer(for: key)
+ renderer.submit(.init(messageID: key, text: "draft", draft: true))
+ for _ in 0..<1000 where renderer.publication == nil { await Task.yield() }
+ try #require(renderer.publication != nil)
+ var snapshot = original
+ snapshot.turns?[0].state = "cancelled"
+ snapshot.turns?[0].revision += 1
+ session.apply(snapshot)
+ #expect(renderer.publication == nil)
+ }
+
+ @Test func sessionDepartureEndsOwnedMarkdown() async throws {
+ let origin = URL(string: "https://owner.example.test")!
+ let session = EquipoSession(account: .new(origin: origin, label: "Test"), accounts: DeviceAccounts(store: MemorySecretStore()))
+ let key = origin.absoluteString + "/reply"
+ let renderer = session.markdown.renderer(for: key)
+ renderer.submit(.init(messageID: key, text: "**reply**", draft: false))
+ for _ in 0..<1000 where renderer.publication == nil { await Task.yield() }
+ try #require(renderer.publication != nil)
+ session.invalidate()
+ #expect(renderer.publication == nil)
+ }
+
@Test func stoppedOrReplacedReplyCannotPublishLateWork() async throws {
var held: [CheckedContinuation<[ChatMarkdownNode], Never>] = []
let renderer = MarkdownStreamRenderer(cache: MarkdownRenderCache()) { _ in
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index 7b4864c1..ae534103 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -18199,6 +18199,20 @@
"count": 1,
"reason": "Markdown syntax tree nodes in native rendering and web parity fixtures; no external runtime."
},
+ {
+ "path": "native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift",
+ "line_sha256": "4e59689e8568e88c3e61c4fc1b34455130de2eff25f5ad408dd95ae53c99a505",
+ "match": "Node",
+ "count": 1,
+ "reason": "Markdown syntax tree nodes in native rendering and web parity fixtures; no external runtime."
+ },
+ {
+ "path": "native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift",
+ "line_sha256": "5476ee257534bf08b18e4ad84b53e999b64b668843412885015680ee95211494",
+ "match": "Node",
+ "count": 1,
+ "reason": "Markdown syntax tree nodes in native rendering and web parity fixtures; no external runtime."
+ },
{
"path": "native/apple/Tests/EquipoKitTests/MarkdownParsingStreamTests.swift",
"line_sha256": "68e7f8768ab8338b100d16addc3d2b8257a81c2497a88fba7530a69a6b278f1d",