Repository navigation
Conversation
…lization FR5 names the engine's folder and Lab's private internal entry; FR6 requires same-session timing and layout-correctness evidence for an engine swap; DEC-5 quotes the owner.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 8a7d6e6 |
There was a problem hiding this comment.
Thanks for recording where the shared windowing engine lives. The direction is approved at this head, but the record needs five fixes before it can merge.
- FR5, FR6 and DEC-5 reuse the IDs that open #10806 assigns in this record to scroll-area attachment, so agree the order with #10806, renumber one side, and list #10806 as overlapping work.
- FR5's Verification row relies on
@astryx/no-core-internal-importto catch Lab importing the engine by another path, but that rule never runs onpackages/lab/**and has no pattern forcore/src/virtualization, so mark the Lab clause as an evidence gap or name a check that runs on Lab files. - FR5 cites "the engine size budget (INV5)", which only open #10796 defines, and "the swizzle shared-state checks", none of which measures a folder, so rebase onto #10796 (or declare the stack) and name the swizzle check by file and claim, or drop it.
- FR5 says the chat virtualizer imports the engine from the Core folder while DEC-5 makes it Lab's
ChatVirtualizer(now on main, so the chat gap line holds), which FR5 limits to the internal entry, so give it the internal-entry route and say whether Core's Chat message list stays a consumer. - Regression: #10795 has since rewritten the record's Contract at a glance table on main and this branch's Governing rules row edit now conflicts with it, so rebase onto main, keep main's table, consumer list and DEC-1 lines, and add DEC-5 to the Governing rules row.
Smaller points: the record still says Table's virtualization hook is "not built" and "has no code yet", and FR6 sets no timing tolerance for what counts as a regression. A new commit will need a fresh /approve-spec.
[Automated review]
|
|
||
| ## Requirements | ||
|
|
||
| - **FR5 — The engine's home.** The shared windowing engine lives in |
There was a problem hiding this comment.
FR5, FR6 and DEC-5 collide with #10806. Open #10806 assigns FR5 ("The owner owns the scroll box"), FR6 ("Attachment is a callback scrollRef or the page") and DEC-5 ("Virtualizers attach to the scroll area or the page") in this same record, also on top of #10796. Whichever lands second leaves two of each, and the citations at lines 34, 103-107, 122 and 168-169 point at two claims. Agree the order with #10806 and renumber one side (for example FR20, FR21 and DEC-6 here, after #10806's FR19 and DEC-5), and list #10806 as overlapping work.
| `@astryxdesign/core/internal/virtualization`, the same pattern as Core's | ||
| `@astryxdesign/core/internal/scroll-anchoring` entry for Lab (`spec:AST-017` | ||
| FR21, `architecture:react-component-runtime` INV13); it is not a public | ||
| export. The engine size budget (INV5) and the swizzle shared-state checks |
There was a problem hiding this comment.
INV5 and the swizzle checks don't resolve at this head. The record defines no INV5 here (it comes from open #10796, and no Stack: line ties this branch to it), and spec:AST-110's only shared-state check is sharedContexts.test.tsx for the shared-context module, which measures no folder. Rebase onto #10796 once it merges (or declare the stack), and name the swizzle check by file and claim or drop the clause.
| - **FR5 gap:** the chat virtualizer has its own engine and doesn't use the | ||
| shared one. |
There was a problem hiding this comment.
No chat virtualizer exists in this repository. The only one is in open #5461 (packages/lab/src/Chat/ChatVirtualizer.tsx), and lines 101-102 still say Chat renders every message. FR5 (line 62) also has the chat virtualizer importing from the Core folder, while DEC-5 (lines 149-150) makes it Lab's, which FR5 says uses only the internal entry. Drop this gap line until a chat virtualizer is in the repository, and have FR5 name one chat consumer and one route.
| - **FR5 gap:** Table's window math lives in `packages/core/src/utils/` and | ||
| Table's own virtualization plugin folder, not in | ||
| `packages/core/src/virtualization/`. |
There was a problem hiding this comment.
Non-blocking: this line is accurate (packages/core/src/Table/plugins/virtualization/useTableRowsVirtualization.ts exists and Core exports it), but lines 100-101 and 118 still say the hook is "not built" and "has no code yet". Updating them in this edit keeps the section consistent.
| | INV1 | Review of each Core list that windows (evidence gap: no module or automated check exists yet) | A Core component keeps its own windowing implementation beside the module | | ||
| | INV2 | Public export review of every package entry point (evidence gap: no module exists yet) | The module, or a type only it uses, is reachable from a public entry point | | ||
| | INV3 | The public-API report for `useTableRowsVirtualization` and each consumer (evidence gap: the hook is not built yet) | Adopting the module changes a consumer's public props, types, or exports | | ||
| | FR5 | Import review of each windowing consumer; the `@astryx/no-core-internal-import` lint rule for Lab's import of the internal entry | A consumer keeps shared windowing behavior outside the engine's folder, Lab imports the engine by another path, or a public entry point exports it | |
There was a problem hiding this comment.
This check can't see Lab. eslint.config.js turns @astryx/no-core-internal-import off for packages/lab/** (line 311), and the rule only reports @astryxdesign/core/internal* and core/src/{internal,gestures,motion,touch-support} paths, so a Lab file importing ../../core/src/virtualization/… passes. Mark the Lab clause "(evidence gap: no check limits Lab to the internal entry)" or name a check that runs on Lab files.
PR Analysis Report🔎 Preview ·
|
Records only. People get the same windowing behavior in every long list, because the behavior the consumers share lives in one place: the list-windowing record now names the shared engine's home,
packages/core/src/virtualization/, and the private internal entry Lab uses to reach it. It also requires that any change that swaps a windowing engine ships before-and-after timing and per-frame layout-correctness evidence, so an engine swap can't quietly bring back overlapping or mispositioned rows or janky scrolling.This PR is based on
mainand takes the next free numbers after #10796 (which adds FR1–FR4, INV4, INV5 and DEC-2 to DEC-4 to the same file). It rebases after #10796 merges; FR5 cites #10796's INV5.Exact decision needed
Where the shared windowing engine lives, how Lab reaches it, and what evidence an engine swap ships. The owner decided all three (DEC-5).
Existing authority searched
architecture:list-windowing: System model, INV1–INV3, Current-state impact, Owning code ("The module itself has no path yet"), DEC-1, OQ1 and Verification. No claim names the engine's path, Lab's access, or engine-swap evidence.spec:AST-017FR21 andarchitecture:react-component-runtimeINV13: Core's./internal/*subpaths are reserved for Astryx's own packages and limited by lint to Core and Lab.@astryxdesign/core/internal/scroll-anchoringis the existing Core entry for Lab that FR5 follows.windowing,virtualization,internal/,scroll-anchoring,engine,size budget.Decision
packages/core/src/virtualization/. It isn't a package export. Table, the chat virtualizer and Selector import it from there, and windowing behavior they share lives there rather than in any one consumer. Lab reaches it only through Core's private internal entry,@astryxdesign/core/internal/virtualization, the same pattern as@astryxdesign/core/internal/scroll-anchoring. The engine size budget (INV5) and the swizzle shared-state checks measure that folder.cixzhang,2026-11-09. "[move]" stays bracketed as a dictation fill-in.packages/core/src/utils/and its own plugin folder.Rejected alternatives
Claim scope and non-goals
Evidence and implementation relationship
main,packages/core/src/virtualization/does not exist; Table's window math lives inpackages/core/src/utils/listWindow.tsandpackages/core/src/Table/plugins/virtualization/. The record names both as FR5 gaps. No code changes.Writing rubric results
Rejected:line.Scope
Validation
pnpm check:knowledge: Knowledge templates and records are aligned.pnpm specs:for --diff origin/main: reviewed.git diff --check: clean.Owner and land path
Owner: the Astryx fix loop, lane 3. Lands after #10796 and then #10806 merge; Specs, CodeBunny and green CI; the drain merges.