Skip to content

spec(Table): close flat-data v1 plugin contracts - #7972

Merged
humbertovirtudes merged 1 commit into
meta:mainfrom
humbertovirtudes:spec/table-flat-data-v1-contracts
Nov 3, 2026
Merged

humbertovirtudes merged 1 commit into
meta:mainfrom
humbertovirtudes:spec/table-flat-data-v1-contracts

Conversation

@humbertovirtudes

@humbertovirtudes humbertovirtudes commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision

Complete the flat-data v1 contracts for Table activation, infinite loading and fixed-height row virtualization, with the parent protocol they consume. The engineering owner explicitly requested useTableRowsVirtualization, completion of the spec records and merger of this spec PR.

Existing authority searched

  • Current Table, activation, loading and virtualization records and the public API, runtime, scrolling, accessibility and knowledge rules.
  • The existing canonical contract and implementation PR stack; no duplicate PR is created.
  • Latest main dfa7ae023e0dc04dcaa5200f0e127d602e05279f; existing Table divider/motion and accessibility claims remain intact.

Decision

  • Parent: canonical identity and validity, optional transform context, declared row/whole-row ownership, pre-cell planning, one viewport, logical metadata and shared paint/loading coordination.
  • Activation: caller-controlled key, click/Enter/Space requests, cancellation and descendant isolation. Selection protection applies to clicks only; standing selection does not block keyboard activation. Selection wash and the independent active cue retain their owners.
  • Loading: Promise completion plus a subsequent false commit, one latch, persistent manual Button, failure pause and hook-owner remount reset. Exhaustion returns only focus left behind by the removed command through the shared focus owner.
  • Rows virtualization: useTableRowsVirtualization({rowHeight, viewportHeight}) supplies the opaque capability to unchanged Table.virtualization. Fixed-height rows, internal overscan, a derived SSR seed, bounded focus retention, logical metadata and anchor/fallback rules remain unchanged. All columns still render; column virtualization is excluded.

The four records are authority: current, approved by humbertovirtudes on 2026-11-03. Completed module decisions and parent DEC-4/DEC-5 name that deciding owner and date. All former open choices are closed. Earlier decisions retain their original attribution.

Rejected alternatives

A second renderer/key source, caller-managed offsets, plugin-order-selected ownership, parallel scroll/paint/focus owners, variable-height or column virtualization, and new public tuning/transport/renderer knobs.

Claim scope and non-goals

Specification records only. Contract completion does not claim runtime release, numerical performance certification, AT certification or a runtime authored-size exception. The implementation PRs remain separate and unmerged. Minimal runnable hook examples belong with those implementation PRs before public API publication.

Evidence and implementation relationship

Contract completion assertions, knowledge validation, exact-file formatting, concern routing and whitespace checks verify the records. Implementation tests and prior browser receipts remain bound to the implementation heads they actually exercised. No runtime source is included here.

Writing rubric results

  • R1: approval-pending projections replaced with current normative contracts and separate release-verification obligations.
  • R2: no research or benchmark results embedded; performance requirements remain requirements, not measured results.
  • R3: verification cells name facts, owning claims and failure signals, not a PR as evidence.
  • R4: consequential rejected alternatives remain concise entries in their decisions.
  • R5: no PR, issue or private operational references added to the records.
  • R6: all module choices and parent decisions are closed; no answered option menus or undecided-owner placeholders remain.

Scope

  • Four existing canonical records, including the renamed virtualization module.
  • No runtime, workflow, schema, template-policy or unrelated ownership change.
  • Explicit row-only and flat-data boundaries retained.
  • Completed spec approval is separate from implementation and release evidence.
  • No internal URLs, identifiers, hostnames or operational context.

Validation

  • Completed-contract assertions: the old metadata fails; all four updated records pass current authority, deciding-owner/date, closed-question and row-only naming checks.
  • Knowledge validation, formatting, concern routing and whitespace results are attached to this exact updated head.

This PR was generated with AI assistance (Navi).

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 3, 2026 8:20am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 23, 2026
@astracat-bot

astracat-bot Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Nov 3, 2026, 8:12 AM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 23, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change can't be approved yet: it adds new requirements to the current component:Table record (FR14–FR20, ORD5–ORD6, DEC-3/DEC-4 and an FR2/FR8 loading exception) and closes the three draft module records, and a maintainer needs to approve or amend that direction at this exact head. Before asking for that approval, please fix the points below, since any new commit resets it:

  • Table.spec.md: the Representative states rows for data-driven rows and empty data, and the FR2/FR8 evidence cells, still contradict the amended FR2/FR8/FR16/FR20.
  • useTableInfiniteScroll.spec.md FR4: a void onLoadMore that never toggles isLoading leaves Load more busy forever, against the record's always-operable manual path.
  • useTableActivation.spec.md: nothing exposes the active row to assistive technology; please define it or record why none is needed.

[Automated review]

Comment thread packages/core/src/Table/Table.spec.md Outdated
| ID | Invariant | Basis | Evidence state |
| ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| FR1 | By default, Styled Table renders one named Scroll region around one observed content box and one semantic Table. The Scroll region enters the keyboard order and contains inline overscroll only while inline content effectively overflows; fitting content passes scroll gestures to its ancestor. Explicit scroll-wrapper plugin HTML attributes remain authoritative. | `spec:AST-025` FR12, FR14, FR19, FR21; current source, docs, and tests | Verified fitting and inline-overflow transitions through the shared `useScrollableArea` behavior core |
| FR2 | Data-driven mode renders a Body section and a Header section with Column header cells when columns are present. Without windowing, each data item renders a standard Row and Cells; FR16 limits row/cell construction to the admitted mounted plan. Empty data renders the configured empty-state row when enabled, subject to FR20's default initial-loading suppression. It never creates a Footer section. | Current source, docs, and tests | Verified current behavior; no new behavior decided |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR2 and FR8 (line 171) now carry FR16/FR20 exceptions, but their evidence cells still say verified, and the unchanged Representative states rows (lines 226 and 228) still require one Row per data item and the default EmptyState for empty data. Please align those rows and mark the new behaviour pending.

| FR1 | One mounted hook returns one stable plugin and reads current callbacks/configuration without restarting its request generation. Callback identity changes do not clear a latch or failure pause. | DEC-1; parent identity contract | Choice closed; evidence pending |
| FR2 | One sentinel and one load/progress surface append to accumulated `afterTable` inside the parent scroll-wrapper content box, outside the semantic table. Prior props, refs, styles, before/after content, and chrome survive. No non-row content enters table sections or rows. | Parent wrapper contract; DEC-2 | Choice closed; evidence pending |
| FR3 | Automatic requests require admitted data mode, `hasMore=true`, committed `isLoading=false`, no outstanding latch, no failure pause, and a currently intersecting sentinel. The latch is set before calling the current callback; observer/manual/reentrant paths share it. | DEC-1 | Choice closed; evidence pending |
| FR4 | A fulfilled Promise completes only after settlement and a committed current `isLoading=false`; no observed true phase is required. A successful void callback requires an observed committed true-to-false controlled loading cycle. Neither settlement nor invocation directly rearms from a stale pre-call false value. | DEC-1 | Choice closed; evidence pending |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A void onLoadMore that never commits isLoading=true never completes under this rule, so the latch stays set and Load more stays busy until remount (line 121), against DEC-3's always-operable manual path. Please define the no-cycle outcome.

| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | --------------------------------------------------------- |
| FR1 | One mounted hook returns one stable plugin; mounted composed row handlers remain stable while reading current configuration. | Parent identity contract; DEC-1 | Choice closed; implementation evidence pending |
| FR2 | Activation requires explicit stable unique `idKey` and parent-supplied valid canonical identity. Property-name keys convert valid raw strings or finite numbers with `String`; function keys preserve their string/finite-number type. Comparison is strict and the callback emits exactly that key. Missing, invalid, duplicate, or unknown identity is inert in every build, with parent-owned deduplicated development diagnostics. | Parent FR14; DEC-1 | Choice closed; parent review and evidence pending |
| FR3 | Only an eligible row matching `activeKey` exposes module-owned `data-active` and active presentation. Other rows remove those contributions. Activation adds neither `aria-current` nor `aria-selected`. | DEC-1/DEC-3 | Choice closed; evidence pending |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing exposes the active row to assistive technology: this row rules out aria-current and aria-selected, and AR5 covers only the visual marker. Please define the programmatic exposure, or record why none is needed (WCAG 2.2 SC 1.3.1).

@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

Addressed the concrete review findings in the updated contract head:

  • Table representative-state rows now carry the FR16 mounted-row and FR20 initial-loading exceptions. FR2/FR8 evidence distinguishes verified legacy behavior from unimplemented new exceptions.
  • onLoadMore returns Promise<void>; settlement plus a subsequent committed isLoading=false completes a request without requiring a true phase. Invalid non-Promise output releases its latch, pauses automatic loading and restores the manual command when controlled loading is false, rather than remaining busy forever.
  • The active eligible native row exposes aria-current="true" with its visual marker. Selection and navigation-specific current states stay independent; tests must check active/null/ineligible/removal transitions and computed exposure.
  • Progress names the existing useAnnounce infrastructure, not a nonexistent AnnouncementChannel symbol. Structural validation is distinguished from pending implementation evidence.

Knowledge, formatting, whitespace, global-baseline and targeted contract assertions pass. This remains specification-only; owner approval is still required on the new exact head, and no runtime, spoken-output or browser evidence is claimed.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change can't be approved yet: it adds new requirements to the current component:Table record (FR14–FR20, ORD5–ORD6, DEC-3/DEC-4 and the FR2/FR8 loading exception) and closes the three draft module records, so an engineering owner needs to approve or amend that direction at this exact head. The earlier review points are addressed; before asking for approval, please fix the items below, since any new commit resets it:

  • Table.spec.md FR1 and the Accessibility contract still put the Scroll region in the tab order only for inline overflow, so a windowed Table whose columns fit has no keyboard path to unmounted rows (spec:AST-025 FR12 counts any applicable axis), and virtualization AR4's removal focus target needs the same rule.
  • useTableInfiniteScroll.spec.md FR8 adds a module loading announcement while the busy Load more Button already announces through Button's own loading region; name one announcement owner (spec:AST-086 FR1).
  • Table.spec.md Compatibility and migration drops the DEC-1/DEC-2 compatibility facts, and DEC-3/DEC-4 should name the deciding owner once approved.

[Automated review]

Comment thread packages/core/src/Table/Table.spec.md Outdated
| FR13 | In data-driven mode, each explicit column whose `width` is omitted keeps one equal flexible share and a 60px readability floor. A column sets its own floor with `proportional(value, {minWidth})`, which replaces the 60px floor for that column; Table has no table-wide floor setting. Resolution is a pure function of the final column definitions: row values, rendered header/body measurement, locale, sorting, filtering, virtualization, and loading state do not change any floor. Explicit pixel and proportional widths retain their authored floors. When the resolved floors exceed available inline space, the existing Scroll region provides horizontal overflow. | `component:Table/DEC-2`; current source and tests | Verified by width-resolution unit coverage and the ResponsiveScroll real-browser geometry fixture |
| ID | Invariant | Basis | Evidence state |
| ---- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| FR1 | By default, Styled Table renders one named Scroll region around one observed content box and one semantic Table. The Scroll region enters the keyboard order and contains inline overscroll only while inline content effectively overflows; fitting content passes scroll gestures to its ancestor. Explicit scroll-wrapper plugin HTML attributes remain authoritative. | `spec:AST-025` FR12, FR14, FR19, FR21; current source, docs, and tests | Verified fitting and inline-overflow transitions through the shared `useScrollableArea` behavior core |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With FR17 the same viewport scrolls on the block axis, but this row still adds the Scroll region to the tab order only while inline content overflows. A windowed Table whose columns fit then has no keyboard path to unmounted rows; spec:AST-025 FR12 counts any applicable axis. Please amend FR1 (and the Accessibility contract) for windowed mode.

- Migration decision: `spec:AST-025` FR12, FR14, FR19, FR21, and DEC-1; replace
`base-table` theme keys and `.astryx-base-table` selectors with `table` and
`.astryx-table`, or run `astryx upgrade --from 0.6.3 --apply --path .`
- Released default preserved: yes for capability opt-in. Without activation or

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This replaces "Released default preserved: no" (DEC-2's 60px floor) and the spec:AST-025/DEC-1 migration decision with lines about the new opt-in only. Please keep the DEC-1/DEC-2 compatibility facts beside the new lines.

### DEC-3 - Canonical identity and declared row ownership

**Reference:** `component:Table/DEC-3`
**Decider:** pending exact-head owner review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once an owner approves, this Decider line (and DEC-4's) should name that owner and date, as DEC-1 and DEC-2 do; "pending exact-head owner review" describes this pull request rather than the system.

| Unsupported observation | Same manual/loading/exhausted states; automatic observation is absent. |
| Children/unsupported admission | No module sentinel, loading chrome, requests, or empty-state changes; deduplicated development diagnostic. |

The shared Button uses `aria-busy` and focus-preserving `aria-disabled` with request guards, not native disabling; its name and progress text are localized. The sentinel is never a tab stop. The successor is the parent's programmatic Scroll-region destination even when fitting content has no sequential tab stop; prior authoritative accessibility props remain. One shared channel announces initial/current loading once, coalescing latch/controlled updates and deduplicating StrictMode replay. No prefilled module `aria-live`/status region or competing announcer exists.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Button's isLoading already gives this busy state (aria-busy, focus-preserving aria-disabled) and announces "Loading" from its own status region, while FR8 adds a module announcement. Please name one owner for the loading message so a screen reader hears it once (spec:AST-086 FR1).

@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

Addressed the second review's concrete contract points on this same PR:

  • FR1 and the Accessibility projection now count both applicable axes in windowed mode: effective block overflow creates viewport keyboard entry even when columns fit. Native Arrow/Page scrolling remains available, and the virtual-row removal path cites the same temporary programmatic-focusability rule as focused-command exhaustion.
  • The mounted Load more Button receives effective loading through isLoading; its persistent polite loading region is the sole loading-message owner. The module adds no useAnnounce call or second live region, and the Spinner is silent. Routing/count verification remains required; spoken timing is recommended follow-up, not a fabricated completed result.
  • DEC-1/DEC-2 width, target and shared-scroll compatibility facts are restored beside the new opt-in facts. The plugin render-state source is explicitly distinct from caller emptyState: it communicates the opaque request latch before parent rendering, while explicit caller content or false still wins.

Knowledge validation, exact-file formatting, whitespace, global-baseline routing and targeted contract assertions pass. Owner decision metadata stays truthful: the pending new Decider entries cannot be filled with a name/date until that owner actually approves the exact contract head. No runtime implementation, approval or merge is claimed.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change can't be approved yet: it updates the current component:Table record with new requirements (FR14–FR20, ORD5–ORD6 and DEC-3/DEC-4, plus amendments to FR1, FR2 and FR8) and closes the three draft module records, so an engineering owner needs to approve or amend that direction at this exact head. The points raised on the earlier heads are addressed, and nothing else needs fixing before that decision. Once the decision is made, DEC-3 and DEC-4 can name the deciding owner and date, as DEC-1 and DEC-2 do.

[Automated review]

@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

/approve-spec 0096b2c

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 23, 2026
@humbertovirtudes
humbertovirtudes force-pushed the spec/table-flat-data-v1-contracts branch from 0096b2c to f9a3b58 Compare October 27, 2026 04:05
@github-actions github-actions Bot added needs:spec-owner-review Current knowledge records await owner approval and removed spec-auto-merge Auto-merge was enabled by the spec owner gate labels Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change can't be approved yet: it updates the current component:Table record (FR14–FR20, ORD5–ORD6, DEC-3/DEC-4 and the FR1, FR2 and FR8 rewrites) and closes the three draft module records, and the earlier owner approval named the previous head, so this rebased head needs a fresh decision. Its record text matches that approved head apart from the lines merged from main, so nothing else needs fixing first. An engineering owner records the decision by commenting /approve-spec f9a3b585e8eaa65064742ef291e555f72f3eaf81 on this pull request, and the author may do so as an engineering owner. Once decided, DEC-3 and DEC-4 can name the deciding owner and date, as DEC-1 and DEC-2 do.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change can't be approved yet: it adds FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5 to the current component:Table record, rewrites its FR1, FR2 and FR8, and closes the three draft module records, and no engineering owner has approved this head (the earlier /approve-spec named a previous head). Please fix the points below first, since any new commit needs its own approval; then an engineering owner records the decision by commenting /approve-spec <full head SHA> for that commit, which the author may do as an engineering owner, and that decision also settles counting the header row in aria-rowindex for windowed Tables while rowIndexStart/rowCount stay body-relative.

  • Table.spec.md FR20 sets a windowed Table's aria-rowcount to H+N, but useTableVirtualization.spec.md line 176 hands unknown totals to the loading record, which defines none; please state the count for a windowed Table that can still load (Table's rowCount uses -1 for an unknown total) and have both modules name one owner.
  • Public concepts should keep the non-function and empty-plugin warnings Table still emits, and give the new rows a lifecycle state (Stable, or experimental behind the experimental boundary) instead of Additive.
  • PR2 should name the costs FR16 and FR19 now give Table, and DEC-4/DEC-5 should name their deciding owner and date in the approved commit.

[Automated review]

Comment thread packages/core/src/Table/Table.spec.md Outdated
| FR17 | Table supplies immutable `TableRowContext` and `TableRenderContext` rather than requiring module extractors or DOM mode inference. Row model and whole-row owner declarations precede eligibility/element transforms. Flat capability admission excludes tree/grouped/detail/custom structural output and unknown body modifiers without a compatible declaration. More than one whole-row owner claim, including repeated activation entries, neutralizes activation in either plugin order, preserves the old owners and non-owning handlers, and emits one development diagnostic. A custom callback that owns a whole-row action must declare it; Table never infers arbitrary callback intent. | DEC-4; shared protocol | Specified; implementation verification pending |
| FR18 | `Table.virtualization` is an opaque geometry capability and its opt-in types require data mode, explicit identity and constrained content together. Table resolves complete input order, columns and identity, then plans mounted keyed records and inaccessible gaps before cell construction. Only mounted product/focus-island records enter element transforms. Default virtualized cells use existing single-line `textOverflow="truncate"`; explicit wrap, arbitrary row/cell renderers or unsafe structural output falls back to full rendering. Without opt-in, default wrapping and ordinary rendering remain unchanged. | DEC-5; native rendering and bounded work | Specified; implementation verification pending |
| FR19 | Windowing uses the existing Table viewport/content-box composition on both logical axes with a bounded block size. Effective inline overflow contains chaining; block chaining remains allowed. Keyboard access, logical mapping, sticky/header/column behavior and geometry consumers share that owner, stable refs, pooled resize work and at most one scroll subscription/pending frame. No module creates a parallel ScrollableArea, detector or unknown external root. Modules without a Table block viewport may use viewport intersection; absent wrapper/context does not fabricate an after-table surface. | DEC-5; `spec:AST-025` FR12/FR18/FR19 | Specified; implementation verification pending |
| FR20 | In virtualized flat nonempty data, the parent logical sequence assigns header indices 1 through H, product row i index H+i+1 and full count H+N; visible numbering derives i+1 from the same zero-based index. Inaccessible gaps are excluded. Logical parity/final-row state, not gap-relative DOM position, controls striping/dividers. Caller legacy offsets/counts conflict with this mode and cause full-render fallback rather than a second source of truth. Empty data uses the existing placeholder/disabled-empty branch without a virtual metadata override. Nonvirtualized paginated metadata remains unchanged. | DEC-5; complete semantic sequence | Specified; implementation verification pending |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR20 gives every windowed Table the full count H+N, but a windowed Table that can still load does not know its total, and Table's own rowCount uses aria-rowcount="-1" for an unknown total (types.ts lines 600–603). Please state the count for that state here, or in the loading record with FR20 citing it; the render-state snapshot (line 139) would also need to say that more rows exist.

- Parent FR19/DEC-5 owns the existing both-axis viewport, inline containment/block chaining, shared geometry and pooled resize. `spec:AST-025` FR18/FR19 prohibit incidental same-axis nesting and uncoordinated external owners.
- Parent FR20 owns logical metadata and the virtualized-only ARIA path; FR21 owns one coordinated row/pinned paint outcome. DEC-4 owns identity/interaction ownership and DEC-5 owns render-plan/viewport integration.
- `architecture:react-component-runtime` owns current geometry, rendered-state/resource separation, node replacement, StrictMode replay and cleanup. `architecture:public-component-api` and `spec:AST-002` own capability reachability and caller burden.
- Activation, infinite loading and virtualization require joint current parent/module admission before supported composition is released. The loading sentinel follows the full loaded extent outside semantic table data; unknown remote totals/loading announcements/reset semantics remain loading-owned. Activation neither supplies identity nor makes active state a focus/scroll owner.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hands "unknown remote totals" to the loading module, but useTableInfiniteScroll.spec.md defines no row count and its line 180 hands full virtual metadata back to parent FR20. Please make both records name the same owner.

Comment thread packages/core/src/Table/Table.spec.md Outdated
Comment on lines +132 to +140
| Plugin collection | Named record or absent | Ordered `TablePlugin` contributions | Data mode | Absent | Table | Stable | Unknown transform keys ignored with development diagnostics |
| Plugin transform | Column, element, wrapper, context | One sequential parent phase | Applicable phase | Omitted is a no-op | Table | Stable | Throw preserves accumulated value |
| Render mode | `data`, `children` | Actual parent rendering branch, including empty data | Render/wrapper context | Parent-derived | Table | Additive | New data-only capability is inert in children mode |
| Canonical key | String or finite number; missing/invalid/duplicate | One resolved identity for callbacks, state and reconciliation | Explicit identity opt-in | Existing `idKey` | Table | Additive | Invalid activation is inert; windowing fully renders with a diagnostic |
| Transform context | `TableRowContext`, `TableRenderContext` | Parent-owned immutable semantic facts and stable viewport reference | Optional fourth row-transform, sixth cell-transform and second wrapper-transform argument | Supplied by Table | Table | Additive | Missing context disables the dependent capability |
| Row model | `flat`, `tree`, `grouped`, `detail`, `custom` | Plugin's declared structural row model | `TablePlugin.rowModel` | No claim for an undeclared body modifier | Table | Additive | Unsupported model disables the new flat-only capabilities |
| Whole-row owner | `activation`, `expansion`, `navigation`, absent | Plugin's declared whole-row interaction, not ordinary analytics/controls | `TablePlugin.wholeRowOwner` | Absent | Table | Additive | Competing claims neutralize activation independent of order |
| Module render-state source | Stable `subscribe`, `getSnapshot`, `getServerSnapshot` with immutable `{isLoading}` | Drives loading-sensitive parent rendering before sections are built | Optional `TablePlugin.renderState` | Absent | Table | Additive | Missing source preserves ordinary empty rendering |
| Windowing capability | Opaque `TableVirtualizationCapability` or absent | Fixed-height pre-cell planning from `useTableVirtualization` | `Table.virtualization` in data mode with explicit `idKey` | Absent | Table/module boundary | Additive | Invalid geometry/content falls back to full rendering |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 132 drops the non-function and empty-plugin warnings useBaseTablePlugins.ts still emits (lines 130–155), and the new rows give Stability Additive, which is neither the template's "stable or experimental" nor a lifecycle state; as ordinary props and fields these surfaces would be stable from their first release.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change can't be approved yet: it adds FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5 to the current component:Table record, rewrites its FR1, FR2, FR8 and PR2, and closes the three draft module records, and no engineering owner has approved this head (the earlier /approve-spec named a previous head). An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision also settles this head's new aria-rowcount="-1" rule for windowed Tables while loading reports more data. Please fold in the fixes below first, since any new commit needs its own approval:

  • Restore Table's non-goal for pagination, filtering, column-management, sticky-column and context-menu anatomy, which the rewrite drops without explanation (Table.spec.md line 124).
  • Name the deciding owner and date in DEC-4 and DEC-5 in the approved commit instead of "pending exact-head owner review" (lines 478 and 493).
  • Add the render-state source to Table's Contract-at-a-glance Public contract row (line 57) and FR20 to the loading record's Governing rules row (useTableInfiniteScroll.spec.md line 47).

[Automated review]

- CheckboxInput/Icon/EmptyState visuals, caller cell/detail/footer content,
product ordering, fetching, caching, routing and stale product responses.
- New targets or corrections of existing target-reachability gaps.
- Tree, grouping, expanded details, arbitrary structural row replacement or

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rewrite drops the current non-goal "Pagination, filtering, column-management, tree, grouping, sticky-column, or context-menu anatomy beyond the stable parts explicitly recorded here."; only tree and grouping return, scoped to the v1 admission domain. Please restore it beside this line unless Table is meant to own that anatomy.

### DEC-4 - Canonical identity and declared row ownership

**Reference:** `component:Table/DEC-4`
**Decider:** pending exact-head owner review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a current record this line describes the review rather than the decision. Please name the deciding owner and date in the commit that owner approves, as DEC-1 to DEC-3 do; DEC-5 (line 493) has the same line.

| Builder impact | The caller owns rows, requests, errors, and stale-data suppression. A dataset reset remounts the component owning the hook together with its Table; no reset/root/look-ahead/loading-renderer API exists. |
| Compatibility/readiness | Additive and unreleased. Module and parent row-count decisions await exact-head owner approval; source implementation and runtime evidence remain release gates. |
| Review checks | Reject overlapping/reentrant loads, immediate failure loops, stale-generation rearming, DOM-inferred mode, ancestor discovery, focus loss, duplicate announcements/chrome, or invalid table content. |
| Governing rules | `component:Table` owns wrapper/context, render planning, and viewport. Required FR17-FR19, FR22 and DEC-4/DEC-5 parent additions remain subject to owner review; runtime, public API, and evidence rules retain their owners. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR10 (line 104) now publishes hasMore for parent FR20's row total, so this row should cite FR20 too; Table's own Public contract row (Table.spec.md line 57) likewise leaves out the render-state source.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec pull request needs an engineering owner's decision before it can be approved: it adds FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5 to the current component:Table record, rewrites its FR1, FR2, FR8 and PR2, and closes the three draft module records, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision also settles header-counting aria-rowindex and aria-rowcount="-1" for windowed Tables while loading reports more data. One fix is worth folding in first, since any new commit needs its own approval:

  • In DEC-4 and DEC-5 (Table.spec.md lines 480 and 495), name the deciding owner and date in the commit that owner approves instead of "pending exact-head owner review", so the merged record does not report those decisions as undecided.

[Automated review]

### DEC-4 - Canonical identity and declared row ownership

**Reference:** `component:Table/DEC-4`
**Decider:** pending exact-head owner review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an authority: current record this Decider line describes the review rather than a decision, and the spec view already counts DEC-4 and DEC-5 as having no decider. Please name the deciding owner and date in the commit that owner approves, as DEC-1 to DEC-3 do; DEC-5 (line 495) has the same line.

@humbertovirtudes
humbertovirtudes force-pushed the spec/table-flat-data-v1-contracts branch from d87cbc0 to 4fad71d Compare October 28, 2026 08:38
@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown

Deployment failed for project astryx with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved: it adds component:Table FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5, rewrites FR1, FR2, FR8 and PR2, and closes the decisions in the three draft module records, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner; the decision also covers this head's runtime admission for Table.virtualization in FR18. Two fixes are worth folding in first, since any new commit needs its own approval:

  • FR17 (Table.spec.md line 210) excludes body modifiers without a rowModel declaration, but useTableSelection and useTableStickyColumns transform body rows and cells and no record gives them a declaration, so activation and windowing would switch off beside them although the module records say they compose; please state their rowModel: 'flat' declaration or limit the rule to structural row output.
  • DEC-4 and DEC-5 (lines 480 and 495) should name the deciding owner and date in the commit that owner approves, as DEC-1 to DEC-3 do.

[Automated review]

Comment thread packages/core/src/Table/Table.spec.md Outdated
| FR14 | Wherever Table shows a row divider, including while rows glide and in pinned columns, the divider has the width, style and colour the row's border would have: the theme's tokens and any app override on `tr`, `tbody` or `td` borders, so customizations still show. | `component:Table/DEC-3` | Not implemented: rows do not glide yet, the pinned-column divider is pending, and an open detail panel's divider draws the default tokens, which `table-cell` overrides do not reach |
| FR15 | `useTableRowExpansion` takes an `animatedLayout` option, the handle `spec:AST-105` FR1 defines: when an Expanded detail row opens, the panel plays in and the rows after it glide to their new places; when one closes, it hides at once and the rows after it glide up into its space (`spec:AST-105` Coverage). The Expansion glyph turns on the same motion; under reduced motion the rows move without travel (`spec:AST-105` FR4). Without the option, rows change at once. A table that draws column lines (`dividers="grid"` or `"columns"`) does not glide yet: with the option its panel and rows change at once, as without it, and the glyph keeps its own turn. | `spec:AST-105` FR1, FR4; owner decision, 2026-10-26 | Not implemented |
| FR16 | Activation and windowing use one explicit canonical `idKey`. Property keys resolve valid strings/finite numbers through the existing string projection; function keys retain string/finite-number type. Missing, null, nonprimitive, nonfinite and duplicate values are invalid for these opt-ins. Table validates the complete logical dataset on data/key changes and supplies status; activation is inert on invalid rows and windowing falls back to full rendering. Internal type-tagged reconciliation keys distinguish numeric `0` from string `"0"` without changing callback equality. Invalid fallback keys are deterministic per record but promise no preserved state under invalid identity. Legacy keys without these opt-ins remain unchanged. | DEC-4; identity and compatibility boundary | Specified; implementation verification pending |
| FR17 | Table supplies immutable `TableRowContext` and `TableRenderContext` rather than requiring module extractors or DOM mode inference. Row model and whole-row owner declarations precede eligibility/element transforms. Flat capability admission excludes tree/grouped/detail/custom structural output and unknown body modifiers without a compatible declaration. More than one whole-row owner claim, including repeated activation entries, neutralizes activation in either plugin order, preserves the old owners and non-owning handlers, and emits one development diagnostic. A custom callback that owns a whole-row action must declare it; Table never infers arbitrary callback intent. | DEC-4; shared protocol | Specified; implementation verification pending |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As written, "unknown body modifiers without a compatible declaration" also covers useTableSelection (transformBodyRow) and useTableStickyColumns (transformBodyCell), and no record gives them a rowModel declaration, so activation and windowing would switch off beside selection or pinned columns. The three module records say those compositions work; please state the first-party rowModel: 'flat' declarations here, or limit the rule to structural row output.

### DEC-4 - Canonical identity and declared row ownership

**Reference:** `component:Table/DEC-4`
**Decider:** pending exact-head owner review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an authority: current record this reports the decision as undecided once merged. The component template takes **Decider:** <person>, <YYYY-MM-DD>, as DEC-1 to DEC-3 have; please name the deciding owner and date in the commit that owner approves (DEC-5 at line 495 too).

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved: it adds component:Table FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5, rewrites FR1, FR2, FR8 and PR2, and closes the decisions in the three draft module records, including this head's first-party rowModel: 'flat' declarations in FR17, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. One fix belongs in the commit that owner approves, since any new commit needs its own approval:

  • DEC-4 and DEC-5 (Table.spec.md lines 480 and 495) should name the deciding owner and date instead of "pending exact-head owner review", as DEC-1 to DEC-3 do.

[Automated review]

### DEC-4 - Canonical identity and declared row ownership

**Reference:** `component:Table/DEC-4`
**Decider:** pending exact-head owner review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an authority: current record this would report the decision as undecided once merged. The component template takes **Decider:** <person>, <YYYY-MM-DD>, as DEC-1 to DEC-3 have; please name the deciding owner and date in the commit that owner approves (DEC-5 at line 495 too).

| FR11 | Viewport and content invalidation use the parent's both-axis geometry/pooled resize path with inline `contain`, block `allow`, one viewport scroll subscription and at most one pending range frame. Stable no-op renders do not reconnect resources or reset scroll; replaced nodes and stale work cannot publish geometry. | Parent FR19; runtime lifetime | Pending |
| FR12 | V1 has no public imperative scrolling API. Internal anchor or focus coordination remains distinct from activation, navigation and fetching; native viewport scrolling remains available. | Public responsibility; DEC-1 | Pending |
| FR13 | Bounded renderer/DOM counts and the PR targets gate completion. Offscreen content is not constructed and then hidden, discarded or sliced; identity validation is not counted as offscreen cell rendering. | Parent FR18; performance | Pending |
| FR14 | Accepted fixed mode defaults unspecified `textOverflow` to existing single-line truncation; explicit `wrap` disables virtualization. Default cells and recognized height-safe plugin cells preserve font size, control targets, density/theme padding and collapsed-border contribution within the total declared pitch. Arbitrary custom renderers, wrapping, media/editor/detail content or custom spans fall back. Overflow or pitch violations remove fixed constraints and render fully; a numeric native row height alone is insufficient. | Fixed-height enforceability; DEC-2 | Pending |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: FR14 exempts "recognized height-safe plugin cells" without naming them, while Table FR18 sends "arbitrary row/cell renderers" to the full-render fallback and the selection and row-index columns are renderCell columns that FR9 promises to compose with. Naming those first-party cells, as FR17 now names the flat declarations, would keep content admission as explicit as structural admission.

The default contract adds no public theme target or theme-authored `active` state. The module owns a component fallback and must propagate its effective overlay to pinned cells. OQ3 may admit an `active` state on the existing `table-row` target only if it defines the fallback, guaranteed paint properties, state precedence, and pinned-overlay projection required by `architecture:component-theming-surface`. A separate direct target still requires another theming decision.
| ID | Decision | Intent or reason | Applies to | Allowed variation |
| --- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------- |
| DD1 | An active row has a visible inline-start marker independent of colour and focus. | Current detail-driving state stays identifiable beside selected rows and pinned cells. | All active eligible rows | Token/pixel tuning within existing anatomy; no extra column, control, target, or public `active` theme state. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: the marker must stay "distinguishable" in light, dark and forced-colors modes, but no contrast minimum against the active or selected fill is stated, so the pending visual evidence has no threshold to check (WCAG 2.2 SC 1.4.11 asks 3:1 for a state indicator).

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec change needs an engineering owner's decision before it can be approved: it adds component:Table FR16–FR22, ORD5–ORD6 and DEC-4/DEC-5, rewrites FR1, FR2, FR8 and PR2, and closes the decisions in the three draft module records, and no engineering owner has approved this exact head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Before that, please name the deciding owner and date on DEC-4 and DEC-5 (Table.spec.md lines 493 and 508), as DEC-1 to DEC-3 do, so the approved commit carries them.

[Automated review]

@humbertovirtudes
humbertovirtudes force-pushed the spec/table-flat-data-v1-contracts branch from 0635533 to 7c6b965 Compare November 3, 2026 08:05
@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

/approve-spec 7c6b965

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 3, 2026
@humbertovirtudes humbertovirtudes added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 3, 2026
Complete the Table parent, activation, infinite-loading and fixed-height row-virtualization contracts. Record the engineering owner's current decision and use the row-specific useTableRowsVirtualization name. Preserve all explicit v1 non-goals and separate normative contract completion from runtime release verification.

This diff was generated with AI assistance (Navi).
Tags: ai-generated
@humbertovirtudes
humbertovirtudes force-pushed the spec/table-flat-data-v1-contracts branch from 7c6b965 to cd0ac39 Compare November 3, 2026 08:12
@humbertovirtudes

Copy link
Copy Markdown
Contributor Author

/approve-spec cd0ac39

@humbertovirtudes
humbertovirtudes merged commit c1ba7f3 into meta:main Nov 3, 2026
52 of 53 checks passed

This branch was successfully deployed

1 active deployment
Preview — cd0ac398 Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant