Repository navigation
fix(platform): cut the per-card mount cost of large task boards - #4083
yannickmonney wants to merge 29 commits into
Conversation
A 2,000-task board mounted 17 react-query observers per card and spent most of its time in work no card shows: every closed assignee and priority picker built its options, candidate reads, select and dialogs; every indicator ran its translation and date hooks before deciding to render nothing; and each card read two actor directories. Pickers now mount their list on first use (useDeferredPicker), the indicators guard before any hook, and TaskBoardProvider carries the workspace's project-scoped actor directory so a project board's cards and pickers name their actors from it. Refs #4062
A project board's cards and pickers name their actors from the board's directory and mount no assignee list until one is opened; a card of another project reads its own. A closed picker reads as the popup button it opens, opens from the keyboard and hands focus back on close. An indicator with nothing to show runs no translation or date hook. Refs #4062
After the pickers and directories, the last per-card reads on a 2,000-task board were the automation badge's own two listings (4,084 observers). The board's actor directory already lists the project's automations, so the provider carries that listing too and a card's badge resolves its owner among it; the task dialog and the all-projects board keep listing their own. An unowned task now mounts no badge chip at all. Refs #4062
Two browser suites replace use-task-subject-contract whole; the badge now imports useTaskSubjectContractAmong, so their module mocks must provide it (and the directory's automation listing). Refs #4062
Review follow-up: owner 4, independent reviewer 2PR #4083 at a2e53e2 improves board mount cost substantially. Existing local ABBA samples also show dialog open +583 ms at 2,000 tasks and +93 ms at 50 tasks, plus 50-task close +145 ms. This is the same reported regression, not an additional finding. The exact reviewed archive SHA is Owner 4: preserve the existing branch, base build, fixtures and evidence. Root approves the bounded local follow-up below once the active storage-maintenance lease on TALE-357 is explicitly released. This comment starts no run; do not work around the current admission pause. No production testing, unrelated refactor or parallel performance campaigns. Coordinate the declared local browser viewport with any other active browser round and restore it afterward.
Reviewer 2: independently verify source/bundle identities, sample validity, and the causal evidence. Preserve the board heap/observer/mount wins and the documented functional behavior. For a proposed fix, check keyboard activation, title editing/selection, focus inside the trap, Escape, return to the original card, picker interaction and background scroll/pointer isolation. Judge 50-task open and close separately; a large-board median improvement cannot hide its regression or the large-close tail. Recheck only the affected uninstrumented comparisons and functional paths, not the whole historical performance campaign. An unresolved variance remains explicitly unresolved; a root-approved acceptance threshold must not be silently relaxed. Evidence interpretation: the c3 large-open style median rises 2,029.5 → 2,353 ms while style count falls slightly; body/overlay invalidation is a source-backed hypothesis. The separate CPU profile's focus 1,131 → 2,735 ms is not itself a causal proof. The current archive contains no raw profile or timeline. Chrome's documented selector analysis explains both its use and measurement overhead. Root disposition: keep merge held until distinct reviewer 2 judges the unresolved non-regression evidence. Existing functional proof is 32 fresh focused UI checks plus React Doctor inspection, with retained Vitest 4.1.11 rather than declared 4.1.10; it is not a latency verdict. The 50-task cold-entry comparison remains unmeasured and must be explicitly closed or retained as an acceptance limitation. |
|
#4083: the light parts of root's terms, and a source-level classification of the slower dialog open. Still held.
Source and bundle identities: confirmed.
CI and drift.
Sample validity: not checkable from this run. The published archive Classification of the slower open, from source. A read-only review agent did this, and I checked its key points. Nothing was run.
Verdict on root's terms: classified, not reproduced. Merge still held.
|
|
Pickup handoff, 3 October 2026: agent #4 retains TALE-462, under TALE-453, and Admission is held by the current storage-maintenance lease. The fleet manager must verify explicit release, task/agent state and available disk before admitting work, then record its run ID. Reuse existing checkouts where safe; obtain the single disk-expanding install/build claim and applicable browser/performance claim before those phases. The performance acceptance hold remains, including the 50-card dialog regressions and large-board close tail. The latest independent review did not establish a runtime cause; do not promote its GC/noise hypothesis to evidence. Recover retained artifacts first and explicitly identify anything lost. Follow the bounded diagnostic plan: if needed, one controlled ABBA measurement campaign, at most one diagnostic paired timeline and one causal ablation. Measure the previously missing 50-card cold entry or obtain explicit acceptance of that limitation. Integrate current main's native reviewer behavior with this PR's shared actor directory in |
|
Independent source review accepted commit The previous complete timing campaign remains failed: 2,000-task dialog-open median 1,500.7 → 2,125.4 ms (+41.6%); all six candidate samples exceed the unchanged 1s requirement. The inherited Escape-title cancellation defect is separately owned; nothing is waived. The new diagnostic pins product baseline a9a19af and candidate 8a9da51, separately records the new harness SHA and actual PR event base, and refuses any product or rebuilt-bundle drift. Four fresh-context ABBA collections retain invalidation causes plus periodic CPU/timeline evidence, with |
|
Independent source review accepted The prior run 37195051012 remains a retained baseline preparation failure with zero diagnostic measurements: all 411 non-map files and 227 maps matched; only two source maps contained the source-supported Vite reference-token / Workbox temporary-directory metadata differences. New comparison keeps the exact 640-file set, raw files/hashes/differences and all other bytes guarded; only those two named maps use the bounded metadata comparison. No executable, font, HTML, mapping or source-text drift is waived. The measured product pair stays baseline |
|
Merge-state note from agent #2 (TALE-710 merge slice, run What happened: #4295 (accessible task card state) merged at 17:38:21Z as What
This PR does the opposite: it moves every hook below the show/hide decision into a chip, so an empty indicator mounts no hooks (#4062). What a resolution must keep:
Re-measure afterwards: #4295 adds per-card work. Every card computes a state description, and the title's tooltip trigger stays mounted. Repeat the 2,000-card board measurement on the resolved head. I've routed this to agent #4 through the manager (TALE-357). |
|
A pointer for this PR (it refs #4062). On TALE-361's harness, main's 5 Oct perf batch now meets every timed item of #4062's budget, measured ABBA against |
|
This PR is superseded by current
No code from this stale head is being merged. Any remaining task-board performance work should start from current |
A 2,000-task board mounted actor-query observers, picker lists and formatting hooks for controls that were closed or invisible. Cards now reuse the board's project-scoped actor directory, mount picker contents on first use, and mount indicator hooks only when a chip is visible. Existing actor/reviewer resolution, captured review recipients, workflow-sentinel precedence, keyboard access and picker focus remain required.
Refs #4062 and #3974. Performance acceptance remains open. The historical dialog-open slowdown is unresolved; this PR does not close either issue.
Source pair and hosted protocol evidence
Candidate
8a9da5114b3848501e5c4be02909f4d47674509bnormally integrates baselinea9a19afdcc68b7114af8bace6b8db74ba1696c2f. The 103-path candidate delta passes the conservative shared API/dependency/runtime parity guard. Each arm builds its exact frontend source while sharing identical backend, production web handler, shared libraries, messages and dependency inputs. Event source IDs are revalidated before hosted work.The harness uses Chromium 141.0.7390.37, Bun 1.4.2 and Node 22.21.1, one shared verified 2-CPU/4-GiB cgroup, and an owned loopback-only namespace without external access. Both arms serve unchanged production handlers over private HTTPS. Ephemeral private keys remain in memory/environment; artifacts retain public certificate/trust receipts. Normal verification stays enabled and no host trust store is changed.
Protocol run 37176902248 passed at candidate
913b4100d023639175cf9e13882ac1bc6f56c5e9and baseline8a580fcc2e453c068a5119a37663777032aa7259. Its artifact 11293369136 is SHA-256 verified (a64b90f8a75f7fd2bf730ebc6fc1796b3635641220e9a07408fbd35693aafa6c), including all 1,807 retained files. Actual Linux amd64 evidence establishes default Node/Bun and Chromium rejection, separate launch-time CA trust, fresh-browser verification of both origins, both-origin synthetic cookie sessions, namespace/cgroup limits and owned cleanup. Chromium-created untrusted NSS state was preserved before installing only the verified public trust database.The tiny controls completed in 14/13 ms. The bounded high-volume control reached 93.699% buffer occupancy, retained 23,552 unique 8-KiB marks in a 199,496,962-byte raw trace, and completed 2,529 ms after End within the unchanged 15-second deadline, with
dataLossOccurred=false. No OOM was observed; containers and slice were removed. This was an app-free protocol control, not an application measurement. Its different event mix does not establish the cause of the earlier app trace timeout. Earlier failed runs and exact artifacts remain retained; no trace category or success deadline was relaxed.First acceptance attempt: invalid, retained
Acceptance run 37179774422, attempt 1 at candidate
35bd21c68247d6be485328fa87a0522c2803525band baseline67c724a54d851803b7c6204bc13241f527e9a6a1, passed setup and built both production bundles, then failed after the first baseline 50-task cold warmup becausefontsReadyobserved one font in an error state. It retained one invalid/incomplete warmup and zero valid measured rows. The warmup content frame is not a performance result. Artifact 11294717497 (43,868,246 bytes, SHA-2564d8adcbf0c12987f0321e6624d8a5b5ef8d6d33bd19fb1730c31755cec4e1856) and all 1,802 files were independently verified; both owned containers and the slice were removed and absent on final cleanup.The assertion ran before failed-font identity and session errors were persisted. The historical failed face therefore remains unidentified. The opt-in label was removed after the terminal run, and no measured result from it is used for acceptance.
The harness now retains font identity, descriptors, session errors, source declarations and bounded response status/timing/hash evidence before assertions, including partial persistence failures and non-cold startup failures. Passive response listeners retain metadata/references only; body reading, hashing and full diagnostics follow the action/tail/heap checkpoint or failure. The source-exact optional
Inter Fallbacklocal Arial declaration remains visible when it errors. Each checkpoint instead requires its actually used Latin Inter weights to be loaded and backed by verified emitted font bytes; missing, corrupt, unknown, duplicated, overlapping or incomplete evidence fails. Case variants and weight ranges cannot evade ambiguity checks. No timing endpoint, sample count, budget or application console/page-error guard changes.One bounded app-free control at candidate
1da445003a750ed9466f77b96b27af5f452c5cbfexercised the production collector/classifier/glyph reader against the unchanged retained CSS and font assets in four fresh browsers. Valid Inter and explicit optional-fallback lookup cases passed; both-source Latin 400 WOFF2/WOFF 404 and corrupt 200 cases failed the required-font rule. In the valid cases all four text weights and populated 400/600 inputs rendered 53 custom Inter glyphs each. Both negative cases rendered 53 actual noncustom WenQuanYi glyphs at 400 in text and the populated input, while other weights and the 600 input stayed custom Inter. Rich fallback metrics, including size-adjust 107.06%, were observed directly. Raw evidence is 462,724 bytes, SHA-2562a719fa1dd802d191aa34f645b5218877e7ce1683e96cf4da1554ece27cbe4f7; all four control cases and owned cleanup passed.This is supplemental font functionality evidence: exact Chromium 141.0.7390.37 and Playwright 1.58.2 ran in the cached Linux amd64 image under Docker Desktop arm64 emulation, with image Node 22.20.0 (not the hosted application controller pin 22.21.1), 2 CPU/1 GiB/network-none limits, and historical retained compiled CSS rather than a new d29 build. CSS inspection caused additional CSS requests and repeated font requests in the missing-font case; glyph inspection stays in separate post-timing functional contexts. The bare fixture has a favicon 404 console entry, so the control is not clean-console application proof. The default optional local lookup rejected. The original app failure is not retroactively identified, and this control establishes no application performance result.
Second acceptance attempt: partial measurements, harness failure
Acceptance run 37185791726, attempt 1 at candidate
1da445003a750ed9466f77b96b27af5f452c5cbfand baselined29a3c8fe78cdba54d247fe82ea5195f702c0651, retained 60 valid measured rows covering all five 50-task navigation flows (six measurements per arm/flow). It stopped at the first dialog-close warmup:Dialog target is ambiguous,0 !== 1, came from the background card locator before Escape or the dialog assertion. Radix makes the background aria-hidden while its modal is open; Playwright's normal accessible role locator excludes that background. No failure DOM snapshot was retained, so the historical attribute itself was not directly observed. A regression using the actual pinned Playwright 1.58.2 role engine reproduces the mismatch.The repair uses
includeHidden: trueonly for the background opener's close precondition, still requiring a unique opener and a unique visible named dialog. Open selection and post-exit accessibility/focus checks remain ordinary accessible lookups. Missing, wrong, duplicate and hidden-dialog cases reject. Input clocks, modal exit endpoints, observation windows, resource gates, samples and numerical budgets are unchanged.All ten adjacent paired-block differences for those observed flows favored the candidate; the leave tail was higher (candidate max 140.5 ms versus baseline 136.8 ms), and remains a warning. There is no overall pass: 142 declared rows are missing, with no measured dialog, 2,000-task or final functional coverage. The one successful dialog-open warmup is not a measured result. Artifact 11297280868 is 45,434,974 bytes, SHA-256
7eebf7e2e614846f4dad31daf89fea4e6d8941eedc8be9bdc31ecdaf58f19c74; all 1,825 files are verified. Recorded source/runtime/resource validity and owned cleanup passed. The failed run, partial rows, tails and original error remain intact.The new baseline includes a General-route key fix, so these old-pair rows will not be pooled with the next campaign. Both new arms receive the same current route source.
Full acceptance campaign
A further reviewed admission uses only
benchmark:task-board-acceptance; any existing benchmark mode label must be removed before publication and a single fresh admission added after source-pair readback. This mode reuses the verified source/build/TLS/resource lifecycle and performs no tracing, CPU/React profiling, video or screenshots during timing. Identical minimal input/frame/long-task/heap observers and production bootstrap marks remain enabled in both arms.some avg10below 20%, with a bounded 120-second wait. The monitor checks both container identities, memberships, quotas and OOM counters. Invalid state stops with partial evidence. Ordinary post-action load/throttling and slow valid rows are retained. The monitor acknowledges shutdown before services are torn down.The original absolute criteria remain: 2,000-task search/leave medians ≤3 s, cold/navigation/clear medians ≤10 s, after-load heap ≤600 MiB (the historical numeric MB budget); 50-task navigation median ≤1.1 s; every measured candidate 50-task cold/navigation row <3 s; dialog open <1 s and close through the actual exit animation. There is no new close-duration allowance or positive regression margin. Protected 50-task/dialog median increases fail; tails and functional behavior require independent review. The machine reports only failed or inconclusive, never a performance pass.
Validation and limits
The original acceptance source at 35bd retains 117 focused harness tests, 1,031 assertions, scoped strict TypeScript/lint/format/actionlint and manual-index proof. At the prior font-policy candidate, the five focused font/evidence/action suites passed 53 tests, 305 assertions, with scoped strict TypeScript/lint/format and normal commit hooks. Those source files are unchanged. At the current integrated candidate, the dialog-target, animation, record and resource-control suites pass 19 tests, 86 assertions, with fresh manual-index proof (1,447 boxes) and normal merge hooks. Scoped strict TypeScript/lint/format passed at e25 and remain retained proof for the byte-identical oracle files; those static checks were not rerun after the a9 integration. The manual index passed 1,447 boxes at the ce2 integration; the final two-file pure-policy correction leaves it unchanged. Six controller-boundary and six glyph-verdict tests also pass without Docker/browser execution. The independent review verified all 107 frozen source inputs against Git, 26 final receipts and the two narrow correction patches. The delayed-overlay regression proves the old content-only endpoint could undermeasure; the new endpoint rejects it. Full-window and late-title-write regressions preserve failed/partial functional evidence. Source snapshots, command receipts and the conservative source-parity result are retained.
A separate retained 52-test product run across seven files covered task-card rerenders, directory sharing, picker/reviewer behavior, conditional indicators and session observers under jsdom at source
2c7ee2b8e050823278e0ee76178146661f8fc03e. The earlier35bd composition retained a 19-path contacts-locale/indexed-document bridge. The retained 67c→d29 integration added 57 paths for contacts bulk-delete and sandbox hardening; 56 resolve byte-identically to main and the manual ledger is a checked union. Task/picker/session test sources and font/runtime inputs remain unchanged. The d29→d4c integration adds 27 paths: 26 are byte-identical to main and the platform manual ledger preserves both parents. The General route now keys ProjectOverview by organization/project; both arms use that exact route. The final d4c→a9 integration adds the landed reviewer focus/refusal fix across 16 paths: 15 are exact main and the platform manual ledger is a checked union. ReviewerPicker itself is byte-identical to main; the exact composed reviewer-field, reviewer-picker, board-directory and assignee-picker tests pass 44/44. The same landed reviewer behavior is present in both arms. React Doctor reports two control-flow complexity warnings in those incoming reviewer components; no speculative refactor was added. Font assets, dependency/runtime pins and the acceptance plan remain unchanged. The retained source-parity and composition receipts preserve these boundaries. This is not a fresh browser or performance pass at the final head. Earlier protocol/TLS/resource proofs are retained at their exact tested sources; the upcoming campaign must verify the integrated runtime again.Query-observer counts remain explicitly unavailable without a supported production inspection API. Shared API setup/cache warming is disclosed; no OS-cache-cold claim is made. Spoken screen-reader behavior, compositor pixels and runtime reviewer coverage are not established by the automated fixture. Actual full-campaign measurements, functional outcomes and independent acceptance remain outstanding; no application performance improvement is claimed from local tests or the successful protocol control.
Historical performance evidence and remaining acceptance
The original PR compared baseline
09d0b20d2with candidate3d375544ausing production builds and an ABBA fixture. Those historical results are not measurements of the current candidate:The historical dialog recheck still regressed at 2,000 tasks (2.88 → 3.47 s) and 50 tasks (0.817 → 0.910 s); the <1-second dialog budget remains in force. Historical raw profiles were not retained. The diagnostic mode retains profiles; acceptance timing remains free of CPU/React profiling, with any later causal profiling kept separate. Current CI, one diagnostic pair, or lower mount cost alone does not establish performance acceptance.
Causal diagnostic for the remaining 2,000-task dialog regression
The completed timing portion of run 37189059988 at product pair a9a19af / 8a9da51 remains failed: 224 valid complete rows (168 measured), with candidate 2,000-task open median 2,125.4 ms versus baseline 1,500.7 ms (+41.6%). All six candidate open samples exceed TASK-P4's 1s requirement; the protected median also regresses. Tail concerns and the inherited baseline Escape-title cancellation defect remain retained. No acceptance criteria have changed, and no passing performance or merge verdict is claimed.
Diagnostic run 37195051012, attempt 1 at harness
51f198bd1ffc8c9fdeea7b2116a9658df44190bc, stopped at the baseline post-build parity guard, before candidate build, container setup or browser collection. Artifact 11300259586 is retained and SHA-256 verified (59d668baa4e803c20390d54fd5cd1888342330c91306d84b2d0fe20e9f3ab8a1, 646 files). All 411 non-map files and 227 of 229 maps matched the original baseline exactly. Only the entry map's two generated Vite font-reference tokens and Workbox's random temporary path insw.js.mapdiffered; executable JS, HTML, CSS, fonts, map mappings and other source content were unchanged. There are zero diagnostic measurements from that run. The original failure and maps remain intact.Harness
f3c9e29019172db314f2ea4da7711f4a65777068corrects that demonstrated metadata comparison. The guard still requires the complete 640-file set and raw equality for all 411 non-map files and 227 maps. Only the two exact named maps per arm may use source-bound normalization of the two generated Inter Latin 400/500 reference modules and the single Workbox temporary-directory token. Independently derived digests from the original pinned artifact cover every other serialized byte. Unsupported shapes, duplicate keys, noncompact JSON, mappings, source text, path drift or executable/font changes refuse. Raw files are never rewritten, and raw differences, normalized comparison results and unresolved errors remain visible in the artifact. This does not change acceptance criteria.The proposed four-attempt ABBA dialog-only diagnostic retains the exact a9/8a9 product pair independently of current PR base, records that event base and harness SHA separately, and refuses non-harness source drift. Fresh browsers load the exact 2,000-task board before each collection; no task-detail HTTP prewarm occurs. GC plus 1s stays outside the trace. Periodic CPU and timeline/invalidation events cover real click, named-dialog content and 3s tail; timeline.stack is excluded. Invalidation initiators/reasons are interpreted separately from CPU self-time because their collection adds overhead. Safe trigger/ancestor/inline/computed/style inventories run only after raw capture closes. The total capture budget remains 5 minutes within 32 minutes shared / 45 minutes job, with unchanged resource/offline/TLS/cleanup gates, trace integrity/deadline and no retries or replacement collections.
At f3c9e29, 26 focused tests / 212 assertions, scoped strict types and helper noUncheckedIndexedAccess, lint, format, manual-reference 1,447 boxes and normal hooks passed. The production comparator replayed both original arms and the witnessed baseline failure; actual-map mapping/source/path mutations refuse. Both arm normalization references were independently derived from the original ZIP before comparison with the committed values. The prior 154-test/1,218-assertion broader diagnostic proof remains retained at 51f; it was not rerun for this six-path correction. No new application build, browser run or hosted measurement has been performed for the correction. A new exclusive diagnostic admission requires source review and fresh remote guards; no automatic retry, acceptance campaign or merge follows.