Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs: define bounded edge compensation (#6440)

Cindy Zhang9d8c69234261
diff --git a/docs/architecture/container-padding.md b/docs/architecture/container-padding.md
index 5157b7491c..387a8f764b 100644
--- a/docs/architecture/container-padding.md
+++ b/docs/architecture/container-padding.md
@@ -7,7 +7,7 @@ authority: current
archive_reason: null
superseded_by: null
approved_by: cixzhang
-approved_at: 2026-08-30
+approved_at: 2026-09-21
owners: [cixzhang, imdreamrunner]
applies_to:
[
@@ -23,6 +23,9 @@ applies_to:
packages/core/src/ScrollableArea/,
packages/core/src/Layout/,
packages/core/src/Divider/,
+ packages/core/src/Item/,
+ packages/core/src/List/,
+ packages/core/src/TabList/,
packages/core/src/Table/,
packages/core/src/Toolbar/,
packages/core/src/Layer/,
@@ -35,8 +38,10 @@ verified_by:
packages/core/src/Layout/LayoutSlots.test.tsx,
packages/core/src/Layout/overlayPaddingReset.test.tsx,
packages/core/src/Layout/__tests__/edgeCompensation.test.tsx,
+ packages/core/src/List/List.test.tsx,
+ packages/core/src/TabList/TabList.test.tsx,
]
-deciding_specs: [spec:AST-025/DEC-2]
+deciding_specs: [spec:AST-002/DEC-1, spec:AST-002/DEC-2, spec:AST-025/DEC-2]
---
# Container padding architecture
@@ -47,7 +52,8 @@ deciding_specs: [spec:AST-025/DEC-2]
{
"scope": "global",
"triggers": {
- "layout": ["INV1", "INV3", "INV6", "INV8"]
+ "layout": ["INV1", "INV3", "INV6", "INV8", "INV9", "INV10", "INV11"],
+ "public-api": ["INV3", "INV7", "INV9", "INV10", "INV11"]
}
}
```
@@ -86,22 +92,89 @@ The protocol has four layers:
subtract and invalidates values descendants add, so readers fall through to
their own defaults. It does not clear public theme properties.
-### Shipped publishers and consumers
+### Current and admitted publishers and consumers
-| Role | Current participants | Shipped responsibility |
-| ------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
-| Container publisher | Card, Section, Dialog, ScrollableArea | Resolve component padding or publish explicit content-box padding as logical-edge and Layout inset variables |
-| Region publisher | LayoutHeader, LayoutContent, LayoutFooter, LayoutPanel | Publish baseline or explicit-padding geometry; automatic outer-edge publication has the conformance gap below |
-| Bleed consumer | Section, ScrollableArea, Layout, Divider, Table | Subtract inherited inset on the edges each component is designed to escape; ScrollableArea does so only with `isFullBleed` |
-| Alignment consumer | Toolbar and edge-compensating child components | Read the current inline inset to align visible content rather than stacked touch-target padding |
-| Boundary owner | Layer surfaces and dialog-based overlay roots | Apply `overlayPaddingReset` before descendants read inherited page geometry |
+| Role | Participants | Contract responsibility |
+| -------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| Container publisher | Card, Section, Dialog, ScrollableArea | Resolve component padding or publish explicit content-box padding as logical-edge and Layout inset variables |
+| Region publisher | LayoutHeader, LayoutContent, LayoutFooter, LayoutPanel | Publish baseline or explicit-padding geometry; automatic outer-edge publication has the conformance gap below |
+| Bleed consumer | Section, ScrollableArea, Layout, Divider, Table | Subtract inherited inset on the edges each component is designed to escape; ScrollableArea does so only with `isFullBleed` |
+| Edge-compensation consumer | TabList; List/ListItem rows (admitted) | Move visible content toward the container content line while retaining component-owned interaction padding; exact alignment depends on each component's bounded geometry |
+| Alignment consumer | Toolbar and edge-compensating child components | Read the current inline inset to align visible content rather than stacked touch-target padding |
+| Boundary owner | Layer surfaces and dialog-based overlay roots | Apply `overlayPaddingReset` before descendants read inherited page geometry |
The participant list is the shared container system, not a Layout-owned family:
Section and ScrollableArea publish content inset, Section and opt-in full-bleed
ScrollableArea instances consume inherited inset, Layout redistributes inset,
-Table and Divider consume bleed geometry, and Toolbar consumes alignment geometry.
-Participation here does not by itself make Table, Divider, or ScrollableArea a
-member of `family:layout-regions`.
+Table and Divider consume bleed geometry, TabList consumes current edge-
+compensation geometry, List is the admitted next consumer, and Toolbar consumes
+alignment geometry. Participation here does not by itself make any of those
+components a member of `family:layout-regions`.
+
+Edge compensation is a two-sided geometry contract, not a token contract:
+
+1. **Host side.** An eligible container or region state publishes the padding
+ currently available at each logical edge through the existing private
+ `--container-padding-*` variables. Those values must match that state's
+ applied padding and follow nesting and overlay reset; missing values mean zero.
+ A state with a known publication mismatch is ineligible. Publication does not
+ itself opt a descendant into compensation.
+2. **Component side.** A participating component owns the inset retained around
+ its content and derives that inset from the same density- and theme-aware
+ source as its normal padding. The component consumes only the logical edges
+ its public value selects and never requires the container to understand its
+ component tokens.
+
+For a new self-compensating row or surface, the default eligible host state is
+visually neutral: it contributes no background, border, clipping, or interactive
+paint whose boundary would be undermined by the adjustment. A visibly bounded or
+clipping state requires a component-specific contract and evidence for that host.
+Controls and cards whose outer box is already the intended alignment boundary,
+static content outside an admitted collection, and surfaces intended to reach the
+outer container edge are otherwise ineligible. TabList is the existing specialized
+projection: INV11 owns its wider host and overflow geometry.
+
+The repository also has a container-owned slot-compensation mechanism. Ghost
+Buttons and Tabs mark their transparent padding, while Banner and Toolbar move an
+edge slot by their own known inset. It shares the content-alignment intent but
+does not read inherited container padding or give those children a
+caller-controlled compensation API. This revision leaves that mechanism
+unchanged.
+
+`edgeCompensation` names the caller's intent: reduce component-owned inset at
+selected ancestor container content edges while keeping the component's own paint
+or interaction inset. The component contract states when that bounded adjustment
+reaches the host content line. Omission means no compensation. The shared logical
+value vocabulary is:
+
+- `start`: compensate only the logical inline-start edge;
+- `end`: compensate only the logical inline-end edge; and
+- `inline`: compensate both logical inline edges independently.
+
+A component exposes only the values its current contract and evidence support.
+This mode does not promise that the component box reaches the container's outer
+edge. Reserve `isFullBleed` for components such as ScrollableArea whose visible
+surface consumes the full inherited container inset. New edge-alignment APIs use
+`edgeCompensation` rather than exposing margin values or inventing a second name.
+
+### Edge-compensation ledger
+
+| Participant | Source requirement | Canonical owner | Why it belongs | Done criteria | Status |
+| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
+| Container and region publishers | The host owns the actual padding available at each logical edge | `architecture:container-padding` | A consumer cannot compensate safely without a per-edge upper bound from the host | Eligible states publish values matching applied padding, nesting, and overlay reset; missing values resolve to zero; known mismatch states remain excluded | current where conformant |
+| TabList / Tab | The strip moves its first and last visible tab content toward the host lines while retaining tab interaction padding, focus-ring room, overflow controls, its divider rail, and its selection indicator | `component:TabList` | The shipped behavior is edge compensation despite its current name | Preserve bounded content movement, full host-inset consumption, divider span, overflow, clipping, scroll controls, indicator geometry, logical direction, compatibility, and defaults | current behavior; rename deferred |
+| List / ListItem, using Item inset | An optional List header is not horizontally inset, while every row keeps Item's density- and theme-aware inline padding | `component:List` | The caller knows whether the List sits in a neutral container beside content that should share its logical content line | Default unchanged; every row respects its own inset and the available host padding; header and row-local paint stay in place; required geometry evidence passes | accepted; implementation pending |
+| Button | An uncontained ghost Button may need its icon or label aligned while retaining its interaction inset | No current component projection | Its transparent interaction padding can create the same alignment need | Exclude filled and bordered presentations; prove composition, focus/hover paint, logical direction, and unchanged defaults; obtain owner approval | candidate only |
+
+`component:List` owns the only new API projection admitted by this revision.
+`component:TabList` owns its existing behavior and the separately scoped public
+rename and deprecation path. Button remains a candidate and cannot authorize
+implementation; a future projection requires a component contract, evidence, and
+the named owner's explicit approval.
+
+This record adds no EdgeAlignment wrapper or new token vocabulary. Existing
+container-padding participation remains the single host provider, and each
+component contract owns its local retained inset and public projection.
`--_section-padding-propagated` is separate from the public
`--astryx-section-padding` property. The private value carries one ancestor
@@ -143,6 +216,27 @@ without dropping the active theme's Section default.
- **INV8 — Participation is explicit.** Padding alone does not enroll a
component. Stack and Center currently apply local padding without publishing
this protocol, so descendants cannot assume full-bleed compensation there.
+- **INV9 — Edge compensation has two geometry owners, not shared tokens.** A
+ participating host publishes only the padding currently available at each
+ logical edge. A participating component owns the inset retained around its
+ content and derives compensation from the same component-owned source as its
+ applied padding. Neither side names or duplicates the other's theme tokens.
+- **INV10 — The public vocabulary names intent.** `edgeCompensation` means reduce
+ component-owned inset at selected logical host content edges while preserving
+ component-owned interaction or paint inset. Each component contract states the
+ bounded geometry and when content reaches the host line. Omission means no
+ compensation. `start` selects logical inline-start, `end` selects logical
+ inline-end, and `inline` selects both independently. A component exposes only
+ the values its current component contract admits. `isFullBleed` remains for a
+ surface whose public promise is to consume the full available host inset.
+- **INV11 — Participation and host eligibility are explicit.** A new
+ self-compensating row or surface requires a component contract and defaults to
+ visually neutral host states. A component-specific contract may admit a bounded
+ or clipping host only with evidence for that geometry. A host state whose
+ published inset does not match its applied padding is ineligible until that
+ conformance gap is fixed. Container publication alone never opts a child in,
+ and arbitrary consumer CSS that changes a component's padding is outside the
+ shared alignment guarantee.
### Known conformance gap
@@ -168,13 +262,25 @@ evidence, not part of this documentation stack.
updates its declarations and the matching bleed/alignment evidence together.
- Adding a protocol participant identifies whether it publishes, consumes, or
resets geometry and adds a focused cross-component regression before its
- component contract relies on that role.
+ contract relies on that role.
+- An edge-compensation host publishes actual available inset per logical edge;
+ it does not publish a token choice or infer a child's retained padding.
+- A component exposing edge compensation uses `edgeCompensation`, declares only
+ the logical values it currently supports, and keeps its effective inset and
+ compensation on one derived source. Adding another value requires per-edge,
+ asymmetric, zero-padding, RTL, and theme-override evidence.
+- Renaming an existing compensation API preserves the old name as a deprecated
+ alias through its approved compatibility window, moves maintained examples to
+ the canonical name, and tests both paths before removal.
- Changing `container()` or the public-to-private padding lowering reviews Card,
Section, Dialog, Layout regions, and overlay behavior together.
- Changing overlay hosting or adding an overlay root verifies that stale page
geometry stops at the new boundary without suppressing public theme values.
-- A component that wants a new public bleed mode or padding prop follows its
- component/family API review; this architecture does not authorize that API.
+- A component that wants a new public full-bleed mode or padding prop follows
+ its component/family API review; this architecture does not authorize that
+ API. `component:List` owns List's first new projection, and
+ `component:TabList` owns its existing behavior and migration. This record does
+ not authorize another component projection.
## Owning code
@@ -186,26 +292,41 @@ evidence, not part of this documentation stack.
alignment adjustment for marked edge content.
- Card, Section, Dialog, ScrollableArea, and Layout region implementations —
publish their current geometry.
-- Section, ScrollableArea, Layout, Divider, Table, and Toolbar implementations —
- consume the current geometry for bleed or alignment.
+- Section, ScrollableArea, Layout, Divider, Table, TabList, and Toolbar
+ implementations — consume the current geometry for bleed or alignment.
+- TabList currently lowers its component-owned projection; List owns its admitted
+ next projection. `component:TabList` and `component:List` define their local
+ padding, row/strip geometry, and private propagation.
- Overlay roots — apply the reset at the visual boundary.
## Deciding specs
-- `spec:AST-025/DEC-2` — ScrollableArea publishes optional content padding and
- consumes inherited inset only through explicit full bleed.
+- `spec:AST-002/DEC-1` and `spec:AST-002/DEC-2` require the caller-owned
+ opt-in and its name to describe a dependable result rather than the margin or
+ token mechanism.
+- `spec:AST-025/DEC-2` and `component:ScrollableArea/FR5` establish the
+ contrasting full-bleed contract: ScrollableArea consumes the full inherited
+ inset only through explicit `isFullBleed`. List cancels at most its own Item
+ inset and may stop inside the container padding; TabList consumes the full host
+ inset but restores `max(host inset - edge-tab padding, 0)` inside its strip, so
+ tab content may likewise stop short of the host line. Both are edge compensation
+ rather than content-level full bleed.
## Verification
-| Invariant | Evidence | Failure signal |
-| ---------------- | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
-| INV2, INV5 | `Section.test.tsx` per-edge and nested-propagation tests | A per-edge prop leaves a stale geometry variable, or nested Sections lose the shipped propagation order |
-| INV2, INV3, INV8 | `ScrollableArea.test.tsx` padding and full-bleed tests | The content box publishes inset different from its applied padding, or the viewport escapes inherited padding without explicit full bleed |
-| INV4 | Layout source review plus `Layout.test.tsx` and `LayoutSlots.test.tsx` | Slot presence stops selecting the shipped applied outer/inner edge styles; exact republished geometry remains limited by the named conformance gap |
-| INV6 | `overlayPaddingReset.test.tsx` | An overlay inherits page inset, loses its theme's Section padding, or lets ancestor Section propagation cross the boundary |
-| INV3, INV7 | `Layout/__tests__/edgeCompensation.test.tsx` plus component tests | An unmarked child is compensated, or marked edge content loses direct-child discoverability |
-
-The current suite does not provide one browser matrix that compares computed
-padding and bleed across every publisher and consumer. Component tests and the
-overlay regression prove the listed paths; broader cross-component parity
-remains verification work rather than an implied guarantee.
+| Invariant | Evidence | Failure signal |
+| ---------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
+| INV2, INV5 | `Section.test.tsx` per-edge and nested-propagation tests | A per-edge prop leaves a stale geometry variable, or nested Sections lose the shipped propagation order |
+| INV2, INV3, INV8 | `ScrollableArea.test.tsx` padding and full-bleed tests | The content box publishes inset different from its applied padding, or the viewport escapes inherited padding without explicit full bleed |
+| INV4 | Layout source review plus `Layout.test.tsx` and `LayoutSlots.test.tsx` | Slot presence stops selecting the shipped applied outer/inner edge styles; exact republished geometry remains limited by the named conformance gap |
+| INV6 | `overlayPaddingReset.test.tsx` | An overlay inherits page inset, loses its theme's Section padding, or lets ancestor Section propagation cross the boundary |
+| INV3, INV7 | `Layout/__tests__/edgeCompensation.test.tsx` plus component tests | An unmarked child is compensated, or marked edge content loses direct-child discoverability |
+| INV9, INV10 | `List.test.tsx` plus real-browser geometry evidence | The header moves; a row reads the wrong logical edge, diverges from themed/density padding, applies the wrong bounded movement, or loses paint inset |
+| INV10, INV11 | `TabList.test.tsx` plus real-browser overflow, divider, and indicator evidence | Full host-inset consumption, bounded content movement, divider span, interaction, focus, overflow, scroll controls, or indicator geometry regresses |
+
+The List evidence must cover its neutral root with the optional header,
+interactive and static rows, all densities, a theme `item.paddingInline`
+override, LTR and RTL, host inset smaller than/equal to/larger than Item inset,
+uniform/asymmetric/zero/missing container padding, and hover/selection paint
+geometry. TabList uses its separately scoped evidence; Buttons, menu rows, and
+toolbar items are not admitted or verified by List's evidence.
diff --git a/packages/core/src/List/List.spec.md b/packages/core/src/List/List.spec.md
new file mode 100644
index 0000000000..9f83500c25
--- /dev/null
+++ b/packages/core/src/List/List.spec.md
@@ -0,0 +1,200 @@
+---
+schema_version: 3
+template_version: 5
+kind: component
+id: component:List
+authority: current
+archive_reason: null
+superseded_by: null
+approved_by: cixzhang
+approved_at: 2026-09-21
+owners: [cixzhang]
+review_triggers: [public-api, behavior, layout, theming]
+verified_by:
+ [
+ packages/core/src/List/List.test.tsx,
+ packages/core/src/Item/Item.test.tsx,
+ packages/core/src/theme/derivedVarRegistry.test.ts,
+ packages/core/src/theme/generateThemeRules.test.ts,
+ apps/storybook/stories/List.stories.tsx,
+ scripts/check-knowledge.mjs,
+ ]
+modules: []
+families: []
+design_specs: []
+architecture:
+ [architecture:container-padding, architecture:public-component-api]
+contributing: [contributing:api-conventions]
+system_specs: [spec:AST-002/DEC-1, spec:AST-002/DEC-2]
+---
+
+# List component contract
+
+## Contract at a glance
+
+| Area | Contract |
+| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| Public contract | Add optional `edgeCompensation?: 'inline'`; omission preserves current layout. |
+| Behavior | Every ListItem row moves its content toward a neutral host's inline content edges, reaching them when the host inset is at least the Item inset, while retaining Item-owned interaction padding. |
+| End-user impact | List content can reduce or remove the extra inset beside its optional header and adjacent content without shrinking hover, press, selection, or focus paint. |
+| Builder impact | Builders opt in only when the List is placed directly in an eligible container-padding host state. |
+| Compatibility/readiness | Additive API; implementation and required real-browser evidence are pending. |
+| Review checks | Reject header movement, unbounded negative margins, duplicated padding values, physical-edge logic, automatic opt-in, or a ListItem-level public prop. |
+| Governing rules | `architecture:container-padding/INV9–INV11`; `spec:AST-002/DEC-1–DEC-2`. |
+
+This table is a review projection; the body below is authoritative.
+
+## Intent
+
+List owns collection-wide edge alignment because its optional header is not
+horizontally inset while every ListItem retains Item's inline padding. The caller
+knows whether the List is placed in a neutral host where these content lines
+should align; List cannot derive that design relationship from its children.
+
+## Compatibility and migration
+
+- Released default preserved: `yes`; omission keeps current List and ListItem geometry.
+- Compatibility class: additive optional prop with no default behavior change.
+- Controlled/uncontrolled behavior: not applicable.
+- Migration decision: `component:List/DEC-1` and `component:List/DEC-2`.
+
+Consumer migration instructions belong in consumer docs and release notes.
+
+## Ownership boundary
+
+**Owns**
+
+- The collection-wide `edgeCompensation` opt-in and its propagation to every
+ ListItem row.
+- Keeping the optional header in place while moving row content toward its line.
+- The supported relationship between ListItem row geometry and Item's normal
+ density- and theme-aware inline inset.
+
+**Does not own / non-goals**
+
+- Container padding values, nesting, or overlay resets — owned by
+ `architecture:container-padding`.
+- A ListItem-level compensation prop, automatic host detection, full bleed, or
+ arbitrary margin controls.
+- TabList or Button projections.
+
+## Public concepts
+
+| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |
+| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------- | ---------------- | -------------------------------- | -------------------------------------------- |
+| Edge compensation | omitted, `inline` | Move row content toward both logical host content edges while retaining row-local interaction padding | Every List density and marker style in an eligible host | omitted | `component:List` | accepted; implementation pending | Other values are rejected by the public type |
+
+## Behavioral and layout contract
+
+| ID | Invariant | Basis | Status |
+| --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ----------------------------------------- |
+| FR1 | List MUST own `edgeCompensation?: 'inline'`; ListItem MUST NOT expose a parallel public prop. | `component:List/DEC-1` | Accepted contract; implementation pending |
+| FR2 | Omission MUST preserve current header, list, and row geometry. Enabling `inline` MUST leave the optional header in place and apply one compensation policy to every ListItem, including non-interactive rows. | Owner direction | Accepted contract; implementation pending |
+| FR3 | Each row MUST resolve each logical margin independently as the negative smaller of its own component-owned inline inset and the matching available host inset. Missing host inset MUST resolve to zero. Content reaches the host line only when the host inset is at least the row inset; otherwise it moves toward that line without crossing the host boundary. | `architecture:container-padding/INV9–INV10`; `component:List/DEC-2` | Accepted contract; implementation pending |
+| FR4 | The retained row inset MUST come from the same private density- and theme-derived source as Item's applied inline padding. A consumer override of row padding through `xstyle`, `className`, or `style` is outside the alignment guarantee; `edgeCompensation` MUST NOT mirror or infer that arbitrary CSS. | Shared two-owner geometry contract | Accepted contract; implementation pending |
+| FR5 | Compensation MUST preserve Item's hover, press, selection, focus, content, semantics, and hit target. It MUST NOT make the row a full-bleed surface or pull it past either available host edge. | Owner direction | Accepted contract; implementation pending |
+| FR6 | The opt-in is valid only under a host state whose published inline inset matches its applied padding and whose relevant boundary is visually neutral. Current automatic LayoutContent/LayoutPanel states with known publication mismatch are not eligible until that conformance gap is fixed. | `architecture:container-padding/INV8–INV11` | Accepted contract; implementation pending |
+
+### Allowed variation
+
+- Density and `item.paddingInline` theme overrides may change the retained inset;
+ compensation follows the same derived value.
+- Container padding may be uniform, asymmetric, zero, or absent; each logical
+ edge resolves independently.
+- Labels, descriptions, markers, start/end content, interactivity, and selection
+ may vary without changing the collection-wide alignment rule.
+
+### Representative states
+
+| State | Required invariant | Allowed variation |
+| ------------------------------------ | --------------------------------------------------------------------------------------- | --------------------------------------------------------- |
+| Default/omitted | Header and every row keep current geometry. | Any current List content and density. |
+| Host inset at least Item inset | Row content reaches the host content line; row-local paint keeps Item padding. | Uniform or asymmetric inline padding. |
+| Smaller, zero, or missing host inset | The row moves only by the available inset and is never pulled beyond the host boundary. | Either logical edge may independently be smaller or zero. |
+| LTR or RTL | Logical start/end mapping follows direction without changing the `inline` meaning. | Writing direction. |
+| Themed Item padding | Row padding and compensation move together. | Supported `item.paddingInline` value. |
+
+### Transformation and precedence order
+
+- **ORD1 — Host bound.** Read the matching published host inset for each selected
+ logical edge, with missing values falling back to zero.
+- **ORD2 — Local inset.** Resolve Item's component-owned inline inset from density
+ and theme through the same private value that supplies applied padding.
+- **ORD3 — Compensation.** Apply the negative minimum of those values to the row;
+ then compose supported consumer styles without claiming alignment for a consumer
+ override of row inline padding.
+
+### Performance and resources
+
+- **PR1 — CSS geometry only.** Edge compensation MUST add no measurement,
+ observer, listener, state, Effect, or render pass.
+
+## Accessibility contract
+
+- **AR1 — Interaction geometry remains local.** Compensation MUST NOT change the
+ interactive element, accessible role/name/state, focus target, tab order, or
+ hit target.
+- **AR2 — Direction remains logical.** The same `inline` value MUST produce the
+ corresponding mirrored geometry under RTL without changing DOM order.
+
+## Design relationships
+
+| Anatomy or state | Design requirement | Representation authority | Hierarchy role | Component contract |
+| ---------------- | ----------------------------------------------------------------------------------------------------------- | ------------------------ | ------------------ | ------------------ |
+| Optional header | Stays on the host content line and is not moved by row compensation. | `component:List/DEC-1` | Context | FR2 |
+| ListItem row | Retains local interaction paint and hit-target padding. | Item composition | Supporting surface | FR3–FR5 |
+| Row content | Moves toward each host content line and reaches it only when the host inset can fully absorb the row inset. | `component:List/DEC-2` | Prominent | FR2–FR5 |
+
+## Family and system relationships
+
+- `architecture:container-padding` owns host publication, the shared
+ `edgeCompensation` vocabulary, eligibility, logical-edge semantics, and overlay
+ reset.
+- `architecture:public-component-api` and `spec:AST-002` own public API admission.
+- Item remains the implementation owner of row padding and interaction paint;
+ List owns only the collection-level opt-in and row application.
+
+## Verification map
+
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| ---------------- | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------------- |
+| FR1–FR4 | List, Item, and theme-registry tests | omitted/enabled; all densities; theme override; static/interactive rows | Removing context propagation, duplicating a padding value, or using one host edge for both margins fails | `audit:List/layout` |
+| FR2–FR6, AR1–AR2 | Real-browser List geometry evidence | header; LTR/RTL; uniform/asymmetric/zero/missing host inset; host inset smaller/equal/larger than Item inset; hover/selection/focus | Header movement, over-pull, wrong bounded movement, or lost row-local paint fails | `audit:List/visual` |
+| Documentation | `List.doc.mjs`, Storybook, and `scripts/check-knowledge.mjs` | public prop/default and representative composition | Missing or stale contract, docs, or example fails | `audit:List/docs` |
+
+## Decision log
+
+### DEC-1 — List owns the collection-wide opt-in
+
+**Reference:** `component:List/DEC-1`
+
+**Decider:** cixzhang, 2026-09-21
+
+The List header and ListItem rows otherwise begin on different content lines.
+Only the caller knows when the containing composition requires alignment, while
+List can apply one consistent decision to every row without exposing Item-level
+configuration.
+
+### DEC-2 — Compensation is row-local and bounded
+
+**Reference:** `component:List/DEC-2`
+
+**Decider:** cixzhang, 2026-09-21
+
+Each row cancels no more than its own component-owned inline inset or the
+matching host inset. When the host inset is at least the row inset, content
+reaches the host content line. When it is smaller, content moves toward that line
+without pulling row paint beyond the host boundary.
+
+Rejected: `isFullBleed`, because the row may stop inside the host padding and the
+name would promise outer-edge bleed that the component does not provide.
+
+## Open questions
+
+None.
+
+## Content boundary
+
+This claim-scoped contract does not duplicate List's complete prop table,
+container-padding internals, consumer examples, implementation steps, or future
+TabList/Button projections. Those remain with their named owners.
diff --git a/packages/core/src/TabList/TabList.spec.md b/packages/core/src/TabList/TabList.spec.md
new file mode 100644
index 0000000000..b613bc543f
--- /dev/null
+++ b/packages/core/src/TabList/TabList.spec.md
@@ -0,0 +1,204 @@
+---
+schema_version: 3
+template_version: 5
+kind: component
+id: component:TabList
+authority: current
+archive_reason: null
+superseded_by: null
+approved_by: cixzhang
+approved_at: 2026-09-21
+owners: [cixzhang]
+review_triggers: [public-api, behavior, layout, accessibility]
+verified_by:
+ [
+ packages/core/src/TabList/TabList.test.tsx,
+ apps/storybook/stories/TabList.stories.tsx,
+ scripts/check-knowledge.mjs,
+ ]
+modules: []
+families: []
+design_specs: []
+architecture:
+ [architecture:container-padding, architecture:public-component-api]
+contributing: [contributing:api-conventions]
+system_specs: [spec:AST-002/DEC-1, spec:AST-002/DEC-2, spec:AST-017/DEC-1]
+---
+
+# TabList component contract
+
+## Contract at a glance
+
+| Area | Contract |
+| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Public contract | Canonicalize the existing alignment mode as `edgeCompensation?: 'inline'`; deprecate `isFullBleed` and remove it in the next minor release. |
+| Behavior | Move first and last visible tab content toward the host content line, reaching it when the host inset is at least the edge-tab padding, while preserving tab interaction padding, focus-ring room, overflow controls, selection-indicator geometry, and the optional divider rail. |
+| End-user impact | Edge tabs lose unnecessary extra inset where host geometry permits and remain fully interactive without clipped focus, selection, overflow, or divider treatment. |
+| Builder impact | Existing `isFullBleed` callsites keep working during the deprecation window and migrate mechanically to `edgeCompensation="inline"`. |
+| Compatibility/readiness | Current behavior is shipped; the canonical alias is additive, while removing the released legacy prop is a separately implemented breaking change in the next minor release. |
+| Review checks | Reject a behavior change disguised as a rename, directional values without overflow/indicator proof, or early removal of the legacy prop. |
+| Governing rules | `architecture:container-padding/INV9–INV11`; `spec:AST-002/DEC-1–DEC-2`; `spec:AST-017/DEC-1`. |
+
+This table is a review projection; the body below is authoritative.
+
+## Intent
+
+TabList's current opt-in is edge compensation: it consumes the full inherited
+host inset, moves visible edge-tab content toward the surrounding content line,
+and retains Tab-owned interaction padding plus TabList-owned divider, overflow,
+and indicator geometry. Content reaches the host line only when that inset is at
+least the edge tab's own padding. The public `isFullBleed` name is misleading
+because the strip restores uncovered content inset after the outer box expands.
+
+## Compatibility and migration
+
+- Released default preserved: `yes`; omission keeps current TabList geometry.
+- Compatibility class: the canonical alias is additive while the released
+ `isFullBleed` prop remains; removing that prop is a breaking change in the next
+ minor release under `spec:AST-017/DEC-1`.
+- Controlled/uncontrolled behavior: active-value control is unchanged.
+- Migration decision: `component:TabList/DEC-1`.
+
+During the compatibility window:
+
+- `edgeCompensation="inline"` is the canonical spelling;
+- omitted `edgeCompensation` plus `isFullBleed={true}` selects the same mode;
+- `isFullBleed` is deprecated and maintained examples use the canonical prop;
+- if both props are supplied, explicit `edgeCompensation` is canonical and the
+ legacy boolean cannot disable it.
+
+The removal release MUST include a `[breaking]` Changeset for
+`@astryxdesign/core`, consumer release notes, and an `astryx upgrade` codemod that rewrites
+`isFullBleed` to `edgeCompensation="inline"`.
+
+## Ownership boundary
+
+**Owns**
+
+- The TabList-wide edge-compensation mode and its compatibility alias.
+- The relationship between the outer TabList box, inner strip padding, edge tabs,
+ focus-ring room, overflow controls, and selection indicator.
+- Which logical edges are supported by the public mode.
+
+**Does not own / non-goals**
+
+- Host padding publication, nesting, or overlay resets — owned by
+ `architecture:container-padding`.
+- Button or List edge-compensation projections.
+- New `start` or `end` values without separate proof and owner approval.
+- A change to navigation/tab semantics, selection state, keyboard behavior, or
+ overflow ownership.
+
+## Public concepts
+
+| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |
+| ----------------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | --------------- | ------------------- | ------------------------------- | ------------------------------------------------------ |
+| Edge compensation | omitted, `inline` | Consume both inherited inline host insets and move edge-tab content toward the host lines while retaining local interaction and strip-owned geometry | Navigation and tabs patterns across current layout/overflow states | omitted | `component:TabList` | accepted; canonical API pending | Other values are rejected by the public type |
+| Legacy alias | omitted, `false`, `true` | Compatibility spelling for omitted or inline edge compensation | Until the next minor release | omitted/`false` | `component:TabList` | deprecated | `true` maps to `inline`; explicit canonical input wins |
+
+## Behavioral and layout contract
+
+| ID | Invariant | Basis | Status |
+| --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | -------------------------------------------------------- |
+| FR1 | The current opt-in MUST remain edge compensation: the outer TabList box consumes the full inherited inline host inset and any `hasDivider` rail spans that expanded width; the inner strip restores `max(host inset - edge-tab padding, 0)` at each logical edge. Visible edge-tab content reaches the host line only when the host inset is at least the tab padding; otherwise it moves toward that line without crossing the host boundary. | Current source and `component:TabList/DEC-1` | Shipped behavior |
+| FR2 | Compensation MUST preserve Tab interaction padding, focus-ring room, overflow detection and controls, scroll access, selection-indicator geometry, and the optional divider rail's expanded inline span. | Current source plus owner direction | Shipped behavior; expanded evidence required with rename |
+| FR3 | `edgeCompensation?: 'inline'` MUST become the canonical API without changing FR1–FR2 geometry or the omitted default. | `architecture:container-padding/INV10`; `component:TabList/DEC-1` | Accepted contract; implementation pending |
+| FR4 | During the deprecation window, omitted `edgeCompensation` plus `isFullBleed={true}` MUST produce the canonical `inline` behavior. Explicit `edgeCompensation` MUST remain authoritative when both props are supplied. | Compatibility decision | Accepted contract; implementation pending |
+| FR5 | `isFullBleed` MUST be removed in the next minor release only after maintained docs/examples use `edgeCompensation`, both paths have compatibility evidence, and the removal includes a `[breaking]` Changeset plus an `astryx upgrade` codemod for mechanical consumer migration. | `component:TabList/DEC-1`; `spec:AST-017/DEC-1` | Accepted contract; implementation pending |
+| FR6 | `start` and `end` MUST remain rejected until per-edge overflow, clipping, scroll-control, focus-ring, indicator, direction, and theme-padding evidence receives owner approval. | Shared logical vocabulary and TabList boundary | Accepted boundary |
+
+### Allowed variation
+
+- Layout, size, role, selected value, labels, tab content, and overflow mode may
+ vary while the same edge-compensation meaning is preserved.
+- The implementation may retain the current outer-box/inner-strip technique or
+ replace it with equivalent geometry that satisfies FR1–FR2.
+- A host may be painted or bounded only where TabList's component-specific
+ evidence proves the outer box, clipping, focus, and indicator behavior safe.
+
+### Representative states
+
+| State | Required invariant | Allowed variation |
+| --------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- |
+| Default/omitted | Current TabList box, strip, and tab geometry are unchanged. | Any current layout, role, or overflow mode. |
+| Canonical inline mode | Outer box consumes each host inset; edge content reaches the host line only when that inset is at least the tab padding. | Host inset smaller than, equal to, or larger than edge-tab padding; asymmetric insets; LTR/RTL. |
+| Divider | `hasDivider` rail spans the expanded outer inline width. | Fitting or overflowing strips. |
+| Legacy alias | `isFullBleed={true}` matches canonical inline geometry during the compatibility window. | The canonical prop may also be present. |
+| Overflowing strip | Scroll access, edge fades, controls, and selected-tab reveal remain correct. | Start/end overflow independently. |
+| Focused edge tab | The focus ring remains visible and local to the tab. | Keyboard or pointer focus. |
+
+### Transformation and precedence order
+
+- **ORD1 — Public input.** Resolve explicit `edgeCompensation`; otherwise map
+ `isFullBleed={true}` to `inline` during the compatibility window; otherwise use
+ no compensation.
+- **ORD2 — Host geometry.** Read the matching inherited logical host insets, with
+ missing values falling back to zero.
+- **ORD3 — Component geometry.** Resolve edge-tab padding and focus/indicator
+ allowances from TabList-owned sources, restore the non-overlapping portion of
+ each content inset, and preserve interaction padding and owned affordances.
+
+### Performance and resources
+
+- **PR1 — CSS-first geometry.** The rename MUST add no observer, listener,
+ state, Effect, or render pass. Existing overflow measurement remains unchanged.
+
+## Accessibility contract
+
+- **AR1 — Interaction remains stable.** Edge compensation MUST NOT change the
+ tab/nav pattern, accessible names, selected state, keyboard movement, tab stop,
+ focus target, or controlled value behavior.
+- **AR2 — Overflow remains reachable.** Compensated edge geometry MUST NOT clip or
+ hide a focus ring, selected indicator, visible tab content, or an overflow
+ control required to reach offscreen tabs.
+
+## Design relationships
+
+| Anatomy or state | Design requirement | Representation authority | Hierarchy role | Component contract |
+| ----------------- | ----------------------------------------------------------------------------------------------------- | ------------------------- | -------------- | ------------------ |
+| Outer TabList box | Consumes the full inherited inline host inset; with `hasDivider`, its rail spans that expanded width. | `component:TabList/DEC-1` | Supporting | FR1–FR3 |
+| Inner strip | Restores `max(host inset - edge-tab padding, 0)` and owns scrolling/fades. | Current TabList behavior | Structural | FR1–FR2 |
+| Edge Tab | Retains interaction padding and visible focus/selection treatment. | Tab composition | Prominent | FR1–FR2, AR1–AR2 |
+
+## Family and system relationships
+
+- `architecture:container-padding` owns host publication, the shared
+ `edgeCompensation` vocabulary, logical-edge semantics, and overlay reset.
+- `architecture:public-component-api` and `spec:AST-002` own public API
+ admission; `spec:AST-017/DEC-1` owns the breaking classification and migration
+ evidence required when the released alias is removed.
+- TabList owns its specialized host, overflow, focus, and indicator projection.
+
+## Verification map
+
+| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
+| ---------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------- |
+| FR1–FR4 | `TabList.test.tsx` and type/docs tests | omitted, canonical, legacy, both props, and `hasDivider` | Alias drift, changed defaults, wrong precedence, or lost divider span fails | `audit:TabList/api` |
+| FR1–FR6, AR1–AR2 | Real-browser TabList geometry and interaction evidence | LTR/RTL; host inset smaller/equal/larger than edge-tab padding; asymmetric/zero inset; divider; fitting/overflowing; selected/focused edge tabs | Wrong bounded movement, clipped focus/indicator/divider, inaccessible overflow, or scroll regression fails | `audit:TabList/visual` |
+| FR5 and docs | `TabList.doc.mjs`, Storybook, `[breaking]` Changeset, `astryx upgrade` codemod tests, and `scripts/check-knowledge.mjs` | canonical examples, deprecated alias, and removal migration | Missing migration guidance, wrong Changeset class, missing codemod rewrite, or stale canonical usage fails | `audit:TabList/docs` |
+
+## Decision log
+
+### DEC-1 — TabList migrates from full-bleed wording to edge compensation
+
+**Reference:** `component:TabList/DEC-1`
+
+**Decider:** cixzhang, 2026-09-21
+
+TabList's current mode consumes the full inherited inline host inset, keeps an
+optional divider across that expanded width, and restores only the portion of
+content inset not already supplied by edge-tab padding. The user-facing intent is
+therefore edge compensation, not a promise that tab content itself reaches an
+outer edge. `edgeCompensation="inline"` becomes the canonical spelling;
+`isFullBleed` remains a compatibility alias until its `[breaking]` next-minor
+removal, with the required codemod and release evidence.
+
+## Open questions
+
+None.
+
+## Content boundary
+
+This claim-scoped contract does not duplicate TabList's complete navigation,
+selection, overflow, or theming contract, consumer examples, implementation
+steps, or List/Button projections. Those remain with their named owners.