Skip to content

feat(core): add component icon role and state infrastructure - #7219

Closed
rubyycheung wants to merge 1 commit into
agent/ast054-core-capability-enginefrom
agent/ast054-component-role-state
Closed

rubyycheung wants to merge 1 commit into
agent/ast054-core-capability-enginefrom
agent/ast054-component-role-state

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

AST-054 PR 3 — component icon role/state infrastructure

Ready for technical review, but not landable. This infrastructure slice remains structurally blocked on the Button-family example in #7221; synthetic fixtures are not enrollment, wrapper/glyph geometry, or browser proof.

User need

Component owners need to select a shared glyph by purpose and apply one clearly owned state without adding role/state controls to product-facing Icon props. Source-only slot lookup does not describe participation, and guessing participation from a mapping or a state name would change existing callers. This slice supplies the explicit role metadata and lossless theme/build transport needed before one real owner can prove the complete path.

Problem and solution fit

  • Preserve the source-only slot contract and add metadata-bearing participation separately. Both legacy literal true and {slot: true} remain stateless/nonparticipating.
  • Select one finite state by exhaustive, declared precedence. State changes appearance only; final size still controls per-size weight.
  • Keep owner slot/state transport private and default size in immutable owner metadata. Public callers cannot inject those controls through Icon props.
  • Normalize, inherit and emit component mappings, role sizes and state appearance consistently. Invalid or erased authored intent fails before artifact writes, rather than disappearing during normalization.
  • Keep synthetic tests, public consumer programs, focused builder docs and a changeset with that single infrastructure change.

Current specification

Code base: public code-only PR #7214, exactly 724d3f3df635503d15e1902dbf4766f4172fa172. The local commit is a direct child of that commit; it is not based on the integrated reference or the closed static-slot branch.

Approval dependencies, not code bases: AST-054 proposal #6891 and owner-authority proposal #7116. Linking these does not imply approval or make a draft record current. No specification, architecture, design, family, or authority record is edited here.

Current exact owners were read: Icon.spec.md and icon resolution/component slots architecture. The routed current-baseline claims are preserved below; a route contributes only its listed claim, not the whole record.

Closed PR #7122, head f1eb2f637d59ae2b9339f75fe7f4368284920815, was compared only for the canonical empty/augmented slot-map types and approved static lookup/hook signatures. Its implementation was not used as a base. 71b0849084d2242d2176f37ffd07ed60963b1a8f was behavioral reference only.

Public delta and caller burden

The canonical public ComponentIconSlotMap lives in @astryxdesign/core/Icon. With no declarations, ComponentIconMap is exactly Record<string, never>; with declarations it is a partial mapping to shared IconName | null. Namespaced artwork and SVG nodes remain in icons, not componentIcons.

The agreed static source-only signatures match the compatibility snapshot exactly; this does not claim that PR #7214 already exported them:

getComponentIconName(slot, fallback, source?) // IconName | null
getComponentIcon(slot, fallback, source?)     // ReactNode
useComponentIcon(slot, fallback)             // ReactNode

The approved source-name hook is useComponentIconName(slot, fallback). None of these accepts request/state/default-size arguments. Undefined mapping uses the owner fallback; null suppresses the icon.

Participation is additive and explicit:

declare module '@astryxdesign/core/Icon' {
  interface ComponentIconSlotMap {
    'sample-action-leading': {slot: true; states: 'disabled' | 'selected'};
  }
}
declareComponentIconRole({
  slot: 'sample-action-leading',
  defaultSize: 'sm',
  statePrecedence: ['disabled', 'selected'],
});
getComponentIconState('sample-action-leading', {
  disabled: false,
  selected: true,
}); // 'selected'

This is synthetic owner authoring, not a public render adapter and not Core enrollment. Owners choose a stable purpose, a typed default size, finite state meanings and precedence. Theme admission does not require importing the owner declaration first; effective state is checked against the selected owner's metadata at resolution.

For an explicitly participating renderer:

  • Size: admitted explicit Icon size, then non-null role-size override, then admitted owner default, with the existing safe fallback. Null role-size entries clear inherited choices.
  • Appearance: explicit intent, effective-state appearance, final-size appearance, then theme default.
  • Weight: explicit intent, final-size weight, then theme default. State never selects weight.
  • presentation replaces atomically; null clears it. Component maps and role-size maps merge by key, skip own undefined entries and retain null markers. Own undefined state-map entries are omitted; null state requests, accessors and state weight remain invalid.
  • Participating size uses final active-theme/canonical dimensions. Legacy nonparticipating implicit built-in context keeps its released geometry. No public wrapper API or Button enrollment is supplied here.

IconRequest remains size/appearance/weight only. Native SVG role, ref, ARIA and ordinary SVG props retain their meanings. Private context is cleared at the selected glyph boundary so nested artwork Icons do not accidentally inherit participation.

Design and alternatives

Explicit metadata separates source selection from participation; it avoids automatic promotion of old slots. A finite per-owner precedence replaces competing simultaneous states, not a universal taxonomy. Lexical theme/build admission is independent of runtime owner imports. Existing capability constructors and actual authored inputs drive build compatibility checks; there are no new public resolver/provider/registry probes.

Automatic slot promotion, namespaced/artwork component mappings, state-dependent weight, widened lookup signatures, adapters and sibling component migrations are outside this slice.

Evidence

  • Default/configured/composed/edge: 65 new synthetic Core cases cover immutable finite owner declarations, precedence, source-only nonparticipation, late declaration after cached reads, size/state/weight precedence, null/undefined inheritance and atomic presentation clearing. No automatic Core enrollment.
  • Compatibility and emitted behavior: independent source/emitted consumer programs check the exact static contracts, finite/broad state boundaries, empty-map behavior and private export containment. All CLI theme-build suites check real source/built/extending-built/family artifacts, including source-file deletion, contributor replay, per-field erasure and unsupported-intent fail-before-write cases.
  • DOM and isolation: synthetic Icon cases preserve native SVG role semantics, reject/filter private role/state/default-size spoofing and clear context at the glyph boundary. Synthetic sparse-artwork geometry and legacy-context controls are not real Button/wrapper proof.
  • Review: independent read-only source/test-code review found and rechecked the optional byState undefined-entry mismatch. Both Core and CLI now omit those entries after safe-key validation; null/accessors/weight remain invalid. No remaining source/scope finding. The reviewer did not run duplicate tests or claim browser evidence.
  • Supporting delivery: focused builder docs and a core/CLI patch changeset ship with the capability. The only old-test maintenance is the six agreed public additions in the previous export whitelist and a generic-aware theme-template declaration parser; neither weakens field/private-boundary checks.

Scope

  • One infrastructure capability, with supporting tests/docs/changeset.
  • No direct adapter code, Button/Core enrollment, inventory/conformance product, or public internal resolver/provider plumbing.
  • No specification/architecture/authority edits or unrelated product cleanup.
  • Public text and committed files contain no private operational context.
  • Local commit only; no push, PR publication or land.
  • Future Button proof PR 4: real participating owner, dynamic wrapper/glyph agreement, accessibility and browser/state proof.
  • Node 24 and full CI/browser lanes.

Testing

Local execution used Node 22.14.0. Node 24, full CI and real-browser/state lanes remain pending; this is not an independent release-readiness claim. Dependency-status auto-install was disabled for existing pnpm 11 scripts; checks/hooks themselves were not disabled.

Core build and types

The exact Core package build-script sequence was replayed directly using the existing installed tool binaries:

# From packages/core
node ../../scripts/clean-dist.mjs
node ../../scripts/generate-i18n-runtime.mjs
node scripts/build-pseudo-locale.mjs
node node_modules/@babel/cli/bin/babel.js src --out-dir dist \
  --extensions .ts,.tsx --out-file-extension .js \
  --ignore '**/*.test.ts,**/*.test.tsx,**/__tests__/**,**/*.perf.test.*,**/*.doc.mjs,**/*.d.ts,**/*.css,**/*.css.d.ts' \
  --config-file ./babel.config.json
node ../../node_modules/typescript/bin/tsc --project tsconfig.build.json
node ../../scripts/build-css.mjs
node ../../scripts/check-no-dev-jsx.mjs
node ../../scripts/check-fully-specified.mjs

Passed: 700 emitted JavaScript files and declarations, 785 reachable CSS source files/7,495 rules, no development JSX, and all 700 files' relative specifiers fully specified. Native package resolution was asserted to point at this slice's fresh Core distribution, not another build or a source alias.

# From repository root
node node_modules/typescript/bin/tsc --project packages/core/tsconfig.json --noEmit
node node_modules/typescript/bin/tsc --project packages/core/tsconfig.docs.json
node node_modules/typescript/bin/tsc --project packages/cli/tsconfig.template-docs.json
node node_modules/typescript/bin/tsc --project packages/cli/tsconfig.strict.json

All passed. The unchanged Neutral theme was built locally with its existing package build sequence to supply the templates' missing theme-neutral/built prerequisite. No Neutral source, manifest or tracked output was changed.

Focused Core regression

node node_modules/vitest/vitest.mjs run --project ui \
  packages/core/src/Icon/componentIconRoles.test.tsx \
  packages/core/src/theme/iconRoleStatePolicy.test.tsx \
  packages/core/src/theme/iconPolicy.test.tsx \
  packages/core/src/theme/Theme.test.tsx \
  packages/core/src/theme/defineTheme.test.ts \
  packages/core/src/Icon/iconCapabilities.test.tsx \
  packages/core/src/Icon/Icon.test.tsx \
  packages/core/src/Icon/globalIconRegistry.test.tsx --maxWorkers=2

Passed 308/308 across eight suites. The 23 role tests and 42 policy tests are quiet. Existing legacy suites retain their intentional development diagnostics; these are not new C-suite warnings or browser proof.

Public consumer programs

node scripts/icon-role-consumer-contract.test.mjs --source-only
node scripts/icon-role-consumer-contract.test.mjs --emitted-only
node scripts/icon-consumer-contract.test.mjs --source-only
node scripts/icon-consumer-contract.test.mjs --emitted-only

Passed: C source 5/5, C emitted 5/5, previous A source 5/5, previous A emitted 6/6, including server-only runtime smoke. Programs are independent: unaugmented, source-only, finite and broad state cases cannot accidentally borrow another fixture's augmentation. Exact empty-map/function contracts and private export/subpath containment are checked.

CLI build regression

Passed 447/447 across all 23 CLI theme-build suites, including all 60 new role/state native cases and 30 modern per-field-erasure/old-Core controls. The native suite covers standalone source, built output, extending built output, keyed family, source-file deletion, contributor references, hidden own data, undefined omission, null clearing and fail-before-write sentinels for every new field. Getter/unsupported appearance-only intent checks retain exact invalid-intent failure and no getter side effects or output writes.

This reliable Node lane uses the fresh Core build, not root test global setup. One unchanged native doc-loader helper is externalized to Node because Vite rewrites its variable file:// import into an invalid SSR glob. This avoids an instrumenter-only warning without suppressing logs, changing production code, mocking Core or skipping the actual native import. The equivalent root-relative runner is:

pnpm_config_verify_deps_before_run=false node --input-type=module <<'JS'
import {readdirSync} from 'node:fs';
import {startVitest} from 'vitest/node';
const root = process.cwd();
const dir = 'packages/cli/api/theme/build';
const files = readdirSync(dir).filter(file => file.endsWith('.test.mjs'))
  .sort().map(file => `${dir}/${file}`);
const ctx = await startVitest('test', files, {
  root, config: false, globals: true, environment: 'node', pool: 'forks',
  run: true, watch: false, maxWorkers: 2,
  testTimeout: 30000, hookTimeout: 30000, include: files, globalSetup: [],
}, {test: {server: {deps: {
  external: [/\/packages\/cli\/foundation\/doc-compiler\/import\.mjs$/],
}}}});
if (!ctx) throw new Error('Vitest did not start');
await ctx.close();
if (ctx.state.getFiles().some(file => file.result?.state === 'fail'))
  process.exitCode = 1;
JS

Native C/A fixtures install their own Core package link and assert public package resolution reaches the prepared Core distribution before testing. The existing family fixture still runs its actual pnpm exec tsc; the environment prevents only pnpm's incidental dependency-status install, not compilation.

Supporting checks

  • Template drift 9/9, focused builder doc parsing/rendering, changeset and knowledge checks passed.
  • Configured changed-source strict lint passed with zero errors/warnings. On Node 22, a temporary byte-identical .mjs copy of the repository ESLint configuration was used to avoid the unchanged .js loader advisory; representative effective configurations were compared for exact equality. No rule changes or suppressions; the temporary configuration was removed before commit.
  • Changed files passed Prettier and git diff --check.
  • Normal commit hooks ran pnpm exec lint-staged and pnpm check:repo. Repository guards passed; the unchanged localization guard still reports informational fallback/plural-category/unverifiable-key notes. No changed icon source, new C test or strict lint warning is left unexplained.

Local commit: a0b54a8a606c62f4765cb4a1f6f0d0f39b9bc58f. Exact parent: 724d3f3df635503d15e1902dbf4766f4172fa172. No push or land.

Exact-head current global baseline receipt

Semantic triggers: public API, behavior, theming, component slots, layout, accessibility, compatibility, React runtime and testing. They reflect the new authored contract, private context/DOM isolation, preserved static signatures, role geometry, theme/build semantics and validation—not enrollment or a claim of browser readiness.

The route is pinned to the merge-base authority commit and the actual local review head. Only matched claims govern their stated boundary; no whole-record authority is inferred. To avoid repeating identical metadata, the JSON below factors each record's path/digest and each exact claim text once. claims rows are [recordId, claimId, exactClaimText]; orderedMatches rows are [claimIndex, requestedTriggerIndex], using zero-based array indices. Those indices retain every match's exact record, claim and trigger in order; its exact reason follows matchReasonTemplate, and all matches use the listed authorityCommit. Reconstruction was asserted equal to the original complete match list, including order and every field.

249 ordered matches across 22 current records; lossless reconstruction verified.

Complete factored receipt
{
  "schemaVersion": 1,
  "receiptFormat": "indexed-claims-v1",
  "authorityCommit": "bbeffca1a6f031eec14c4041fc6be17fa597b6ab",
  "reviewHead": "a0b54a8a606c62f4765cb4a1f6f0d0f39b9bc58f",
  "requestedTriggers": ["accessibility","behavior","compatibility","component-slots","layout","public-api","react-runtime","testing","theming"],
  "matchReasonTemplate": "Requested trigger \"<trigger>\" matched review-applicability:v1 claim \"<recordId>/<claimId>\".",
  "records": {
    "architecture:component-size-cascade": {"path":"docs/architecture/component-size-cascade.md","recordDigest":"a66fae4c1dd966500a2a2c3c1f345de7afe19c142a744e9eb32449ac8c451410"},
    "architecture:component-test-sufficiency": {"path":"docs/architecture/component-test-sufficiency.md","recordDigest":"2312a6256ab09360e04167e14f562aa6cebc34fbd7e6eba7c68cdf773679de66"},
    "architecture:component-theming-surface": {"path":"docs/architecture/component-theming-surface.md","recordDigest":"78928cd4356402a212c2c8d4d76a9a67bd0831e873e7e7cd0dbe777e12ec8597"},
    "architecture:container-padding": {"path":"docs/architecture/container-padding.md","recordDigest":"3e277a151e5184eebc1115cd0eda4212817e6c328495e34629aa967efb6360f5"},
    "architecture:icon-resolution-and-component-slots": {"path":"docs/architecture/icon-resolution-and-component-slots.md","recordDigest":"fb4160089d30a46465c988c357f0aa3cc02cfda92b47bc51b950151da595b81c"},
    "architecture:layer-runtime": {"path":"docs/architecture/layer-runtime.md","recordDigest":"f1330dd884a04ecd0505934f4ab9812ede8602baf35036876d6a149cebde6aca"},
    "architecture:public-component-api": {"path":"docs/architecture/public-component-api.md","recordDigest":"1cd2cc5d705ba8f94886794ae844dd5be86262261db276fad539074f3775f33c"},
    "architecture:react-component-runtime": {"path":"docs/architecture/react-component-runtime.md","recordDigest":"3907a3bc6cc690fa9c0ac1ba0499bbb1049a76f9e676ab8f5912d7105dc8753c"},
    "architecture:theme-application": {"path":"docs/architecture/theme-application.md","recordDigest":"77631b8bd5cf5aa74f6ea402a403d5e49dcd3f454cd418c61b0aabbdcf0cc3e2"},
    "architecture:theme-authoring-contract": {"path":"docs/architecture/theme-authoring-contract.md","recordDigest":"09b609519bc2acb4a22a0f0cbcf43da7e8ba6e67c7327f5381797bfe2e29710b"},
    "architecture:theme-compilation": {"path":"docs/architecture/theme-compilation.md","recordDigest":"623dcf810adda23681bcff3c2cfd39a25d2bce8e8301ddb7436d11372ad57b2f"},
    "spec:AST-002": {"path":"docs/specs/AST-002/spec.md","recordDigest":"cf7c14cf5f607a2a224044ffa835fd207dd4d5ebe00a8958581e4b9d41d7243c"},
    "spec:AST-009": {"path":"docs/specs/AST-009/spec.md","recordDigest":"d779066d710ce499c8c124bfdc734b4b38e8cc207cfe75bf5a31cb3bba349a2f"},
    "spec:AST-012": {"path":"docs/specs/AST-012/spec.md","recordDigest":"f06af20e9991a664c47c81e62d38965ac15ce9cf08e77b2db1c9c5c268e373ce"},
    "spec:AST-017": {"path":"docs/specs/AST-017/spec.md","recordDigest":"1cc3879298f7a9db0dec9ab7af88aadd9bc2c922a5628bdc3e3d5f13ddadb32b"},
    "spec:AST-020": {"path":"docs/specs/AST-020/spec.md","recordDigest":"07e607f636b6243057d510d11bef4385e77e9644e16a1f61ad9a1b5af8489dba"},
    "spec:AST-030": {"path":"docs/specs/AST-030/spec.md","recordDigest":"1fc6ffc51f3d19e7877d6d88157d717dcf157ffc64e77b58781f94605cf12925"},
    "spec:AST-055": {"path":"docs/specs/AST-055-caller-rendered-trigger/spec.md","recordDigest":"e40db994f7de57d27adf6a148460a169625bc605b437570c2af957808713acc9"},
    "spec:AST-056": {"path":"docs/specs/AST-056-search-prop-shape/spec.md","recordDigest":"d308f4bde211ce082c0eccd1fdc2c4d85a3a40fecb78db893a8d1dc7fb579b1f"},
    "spec:AST-057": {"path":"docs/specs/AST-057-row-actions/spec.md","recordDigest":"1e1dff68e3a59c8c6ada5f8348e36647a4aa3c497f3baf645746047a5a5d0be0"},
    "spec:AST-058": {"path":"docs/specs/AST-058-option-actions/spec.md","recordDigest":"c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"},
    "spec:AST-059": {"path":"docs/specs/AST-059-layer-viewport-inset/spec.md","recordDigest":"f638794dcd66ae5bd6dd206540a5efaf84dcf805e5ccc4e99b3375aa2f8e7b35"}
  },
  "claims": [
    ["architecture:component-size-cascade","INV1","The standard axis is shared."],
    ["architecture:component-size-cascade","INV2","Participation is explicit."],
    ["architecture:component-size-cascade","INV3","Explicit intent wins."],
    ["architecture:component-size-cascade","INV4","The nearest provider wins."],
    ["architecture:component-size-cascade","INV5","Local default is final."],
    ["architecture:component-size-cascade","INV9","Public, rendered, and visual size agree."],
    ["architecture:component-test-sufficiency","INV1","Authority and evidence are distinct."],
    ["architecture:component-test-sufficiency","INV10","Gaps and hardening are distinct."],
    ["architecture:component-test-sufficiency","INV11","New tests require a new proof obligation."],
    ["architecture:component-test-sufficiency","INV2","Critical promises have regression evidence."],
    ["architecture:component-test-sufficiency","INV3","Previously fixed behavior defects remain protected."],
    ["architecture:component-test-sufficiency","INV4","Partitions follow behavior and risk."],
    ["architecture:component-test-sufficiency","INV5","Assertions observe the contract."],
    ["architecture:component-test-sufficiency","INV6","Evidence is mutation-sensitive."],
    ["architecture:component-test-sufficiency","INV7","Coverage remains bounded and intentional."],
    ["architecture:component-theming-surface","INV10","Public semantic variables are admitted, not inferred."],
    ["architecture:component-theming-surface","INV12","Aliases are compatibility, not anatomy."],
    ["architecture:component-theming-surface","INV14","Extensible axes need a theme-independent fallback."],
    ["architecture:component-theming-surface","INV15","Conditional styling does not create conditional API."],
    ["architecture:component-theming-surface","INV3","Anatomy does not imply target proliferation."],
    ["architecture:component-theming-surface","INV4","Targets paint."],
    ["architecture:component-theming-surface","INV5","Composition preserves ownership."],
    ["architecture:component-theming-surface","INV6","State stays on the owning target."],
    ["architecture:component-theming-surface","INV7","Guarantees use one catalog and exact target declarations."],
    ["architecture:component-theming-surface","INV8","Names imply nothing beyond themselves."],
    ["architecture:component-theming-surface","INV9","Generic styling is best effort."],
    ["architecture:container-padding","INV1","Internal geometry is not theme API."],
    ["architecture:container-padding","INV10","The public vocabulary names intent."],
    ["architecture:container-padding","INV11","Participation and host eligibility are explicit."],
    ["architecture:container-padding","INV3","Bleed is opt-in and edge-specific."],
    ["architecture:container-padding","INV6","Overlay boundaries terminate stale geometry."],
    ["architecture:container-padding","INV8","Participation is explicit."],
    ["architecture:container-padding","INV9","Edge compensation has two geometry owners, not shared tokens."],
    ["architecture:container-padding","INV7","Composition keeps component ownership."],
    ["architecture:icon-resolution-and-component-slots","INV1","Shared names and component roles are separate."],
    ["architecture:icon-resolution-and-component-slots","INV10","Existing keys coexist."],
    ["architecture:icon-resolution-and-component-slots","INV2","Slots are typed and owner-declared."],
    ["architecture:icon-resolution-and-component-slots","INV3","Slots map to shared meanings."],
    ["architecture:icon-resolution-and-component-slots","INV6","Resolution order is stable."],
    ["architecture:icon-resolution-and-component-slots","INV7","Component slots do not grow the shared name set."],
    ["architecture:layer-runtime","INV11","One viewport gutter."],
    ["architecture:layer-runtime","INV12","The first frame is the settled frame."],
    ["architecture:layer-runtime","INV3","Positioning modes do not leak."],
    ["architecture:public-component-api","INV1","Public exports are reachable."],
    ["architecture:public-component-api","INV12","Reachability outranks internal labels."],
    ["architecture:public-component-api","INV2","Names carry the same meaning."],
    ["architecture:public-component-api","INV3","One prop controls one independent concept."],
    ["architecture:public-component-api","INV4","New props express caller-owned intent."],
    ["architecture:public-component-api","INV5","Accepted consumer props are preserved."],
    ["architecture:public-component-api","INV6","Styling inputs combine."],
    ["architecture:public-component-api","INV7","Event handlers compose deliberately."],
    ["architecture:public-component-api","INV8","Refs follow React 19."],
    ["architecture:public-component-api","INV9","Released APIs change deliberately."],
    ["architecture:react-component-runtime","INV1","Render starts from a valid state."],
    ["architecture:react-component-runtime","INV2","Discrete intent stays discrete."],
    ["architecture:react-component-runtime","INV3","Effects synchronize external systems."],
    ["architecture:react-component-runtime","INV4","Mutable refs do not become hidden rendered state."],
    ["architecture:react-component-runtime","INV5","Resource ownership is complete."],
    ["architecture:react-component-runtime","INV6","Node replacement is a lifecycle event."],
    ["architecture:react-component-runtime","INV8","Behavior stays with its stable lifecycle owner."],
    ["architecture:theme-application","INV1","The nearest provider wins."],
    ["architecture:theme-application","INV2","Only the root provider changes `<html>`."],
    ["architecture:theme-application","INV3","Detached consumers share one root-theme store."],
    ["architecture:theme-application","INV7","System mode follows the platform."],
    ["architecture:theme-application","INV8","Media surfaces do not replace the theme."],
    ["architecture:theme-application","INV9","Application does not change compiled rules."],
    ["architecture:theme-authoring-contract","INV1","One input produces one normalized theme."],
    ["architecture:theme-authoring-contract","INV11","`defineTheme` validates only what it constructs."],
    ["architecture:theme-authoring-contract","INV12","Theme `define*` helpers construct theme values."],
    ["architecture:theme-authoring-contract","INV3","Extension is semantically flattened."],
    ["architecture:theme-authoring-contract","INV8","Local-token enrollment is explicit and owner-tracked."],
    ["architecture:theme-authoring-contract","INV9","Authoring and output are separate systems."],
    ["architecture:theme-compilation","INV10","Shared intent keeps the same meaning."],
    ["architecture:theme-compilation","INV2","Web has one compiler."],
    ["architecture:theme-compilation","INV3","Mounting and saving do not change the rules."],
    ["architecture:theme-compilation","INV4","Web uses one cascade contract."],
    ["architecture:theme-compilation","INV6","Private variables stay private."],
    ["architecture:theme-compilation","INV9","Platform details stay out of shared authoring."],
    ["spec:AST-002","DEC-1","Public props require a non-derivable caller distinction"],
    ["spec:AST-002","DEC-2","Caller need does not admit an unclear or unenforceable API"],
    ["spec:AST-002","DEC-3","One semantic action uses one canonical operation name"],
    ["spec:AST-002","DEC-6","Public inputs keep one semantic responsibility"],
    ["spec:AST-002","DEC-7","Public module and utility verbs disclose atomic roles"],
    ["spec:AST-002","DEC-8","Public primitives are intentional semantic contracts"],
    ["spec:AST-002","FR15","Invalid states are prevented where practical."],
    ["spec:AST-002","FR4","Existing composition and styling seams come first."],
    ["spec:AST-009","FR1","The gate follows the claimed user outcome. Real AT/browser evidence is required only when the intended outcome depends on AT-specific behavior: how AT exposes or announces focus, AT-specific focus order, spoken/braille output, browse or virtual-cursor behavior, mode changes, or a known AT/browser divergence. A semantic code change or focus-only browser behavior is not the trigger; the trigger is an AT-dependent claim that cannot be proved below the real-AT layer."],
    ["spec:AST-009","FR10","The tested state is the claimed state. Evidence exercises the transition or state that carries the user outcome, such as opening the surface, moving focus, producing the status update, dismissing and restoring focus, or entering with the virtual cursor. A static baseline that merely contains the component is insufficient."],
    ["spec:AST-009","FR11","Real means the shipping pairing. A real-AT check runs the named assistive technology against the named shipping browser on its supported operating system. A virtual machine, remote machine, or simulator is acceptable only when it runs that actual pairing and preserves the input/mode under test. A DOM emulator, accessibility snapshot, synthetic speech stub, or browser engine standing in for a branded browser is not real-AT evidence."],
    ["spec:AST-009","FR12","Desktop-neutral AT-specific focus exposure/order or announcement claims use two independent stacks: at least NVDA + Chrome on Windows and VoiceOver + Safari on macOS. A platform-specific claim uses its matching pairing only unless FR14 expands it."],
    ["spec:AST-009","FR13","Mobile claims use a matching mobile stack. A mobile or touch/virtual-cursor outcome uses at least one matching mobile pairing. Both iOS and Android are required only when the claim covers both and platform-specific code, behavior, or recorded evidence gives reason to expect different outcomes."],
    ["spec:AST-009","FR14","Divergence expands rather than replaces. Every side named in a known divergence is included even when that adds a pairing beyond FR12 or FR13."],
    ["spec:AST-009","FR15","Versions and modes are part of the matrix. The receipt names OS, AT, browser, input mode, and material settings or verbosity that affect the result. “Screen reader checked” or a browser name without its AT is not a matrix."],
    ["spec:AST-009","FR16","Representative does not mean exhaustive. Passing the selected matrix supports only the recorded outcome and pairings. It does not claim every AT, browser, verbosity setting, locale, or input method behaves identically."],
    ["spec:AST-009","FR2","Focus changes trigger only for AT-specific outcomes. Real AT/browser verification is required when the claim depends on how AT exposes, announces, or orders programmatic, initial, restored, composite, or after-dismissal focus. Focus destination, order, return, keyboard operation, focus-ring styling, a refactor preserving the same browser focus target, or a static `tabIndex` correction does not trigger by itself. The owning component and [interaction-modality record](../../architecture/interaction-modality.md) define those browser and visual behaviors."],
    ["spec:AST-009","FR3","Role, name, and description changes trigger when announcement or mode is the outcome. A computed role, accessible name, or description may be proved by accessibility-tree evidence when the claim ends at browser exposure. Real AT/browser verification is additionally required when the change relies on that semantic being announced during entry or a state transition, changing interaction/browse mode, or resolving a known AT/browser divergence."],
    ["spec:AST-009","FR4","Announcement content and timing trigger directly. A live region, status message, alert, validation announcement, loading/completion transition, or other spoken/braille update requires real AT/browser evidence when success depends on what is announced, its order, when it occurs, whether it repeats, or whether it is skipped."],
    ["spec:AST-009","FR5","Virtual-cursor entry triggers directly. Opening, navigation, or focus behavior requires real AT/browser evidence when success depends on where screen-reader browse or virtual cursor enters, whether content is discoverable from that entry point, or whether the user can move between browse and interaction modes. Ordinary keyboard Tab order with no browse-mode claim does not trigger this requirement."],
    ["spec:AST-009","FR6","Known divergence keeps the gate active. A changed pattern with a recorded AT/browser divergence requires checks for every named side of that divergence until an owner records that the divergence no longer applies. A passing result from one side does not stand in for another known to differ."],
    ["spec:AST-009","FR7","Untriggered changes use proportionate evidence. Static semantics, keyboard behavior, color/contrast, target size, source order, and similar accessibility changes use the least expensive evidence layer that directly proves the claim. They do not acquire a real-AT gate merely because they are accessibility work."],
    ["spec:AST-009","FR9","Evidence composes by claim. A triggered change normally keeps its lower-layer evidence and adds real AT/browser checks only for claims those checks can prove. Real AT observation MUST NOT replace deterministic regression coverage for behavior the lower layers own."],
    ["spec:AST-012","FR4","Rules use the theme value contract."],
    ["spec:AST-012","FR5","Media surfaces remain more specific."],
    ["spec:AST-012","FR6","Rule order determines precedence."],
    ["spec:AST-012","FR7","Theme extension preserves cascade order."],
    ["spec:AST-017","DEC-1","Breaking means a released consumer must change"],
    ["spec:AST-017","DEC-10","Replacement-first records own deprecation and cleanup"],
    ["spec:AST-017","DEC-11","Behavior-correcting incompatibility is not an ordinary fix"],
    ["spec:AST-017","DEC-12","The paired minor admits only three delta classes"],
    ["spec:AST-017","DEC-13","Cadence guides planning; readiness and authority gate the cut"],
    ["spec:AST-017","DEC-14","Documentation catalog display names and routes are mutable data"],
    ["spec:AST-017","DEC-15","A minor is scheduled before its breaking work lands"],
    ["spec:AST-017","DEC-16","Deprecation acts at authoring surfaces, not production runtime"],
    ["spec:AST-017","DEC-5","Supported CLI behavior is never hidden"],
    ["spec:AST-017","DEC-6","Global CLI controls prove global value"],
    ["spec:AST-017","DEC-7","Cross-cutting controls are complete, observable, and per invocation"],
    ["spec:AST-017","DEC-8","Configuration is a last resort, and contributions compose"],
    ["spec:AST-017","DEC-9","Existing stable components incubate APIs behind one explicit boundary"],
    ["spec:AST-017","FR12","Supported inter-package ranges are contracts."],
    ["spec:AST-017","FR14","No supported CLI behavior is hidden."],
    ["spec:AST-017","FR15","Global controls require CLI-wide value and semantics."],
    ["spec:AST-017","FR16","Cross-cutting guarantees define and close their boundary."],
    ["spec:AST-017","FR17","Suppressed work is observable."],
    ["spec:AST-017","FR18","Programmatic controls are explicit and invocation-scoped."],
    ["spec:AST-017","FR19","Configuration is admitted only on evidence."],
    ["spec:AST-017","FR20","Integration contributions compose predictably and visibly."],
    ["spec:AST-017","FR21","Experimental APIs are explicit and opt-in before publication."],
    ["spec:AST-017","FR22","Experimental changes are patch-level and stay confined."],
    ["spec:AST-017","FR23","Promotion creates a stable contract deliberately."],
    ["spec:AST-017","FR24","Experimental status is verified per public surface."],
    ["spec:AST-017","FR25","Stable Core and every published stable package default to compatibility."],
    ["spec:AST-017","FR26","Public lifecycle state is explicit."],
    ["spec:AST-017","FR27","Experimental isolation covers every surface kind."],
    ["spec:AST-017","FR28","Deprecation is replacement-first, actionable, and machine-readable."],
    ["spec:AST-017","FR29","Deprecation adds no production-runtime behavior."],
    ["spec:AST-017","FR29a","Warnings live at the earliest accurate authoring surface."],
    ["spec:AST-017","FR29b","Guidance teaches one modern path."],
    ["spec:AST-017","FR29c","Modernization is safe and verifiable."],
    ["spec:AST-017","FR29d","Each public surface projects the lifecycle without inventing another one."],
    ["spec:AST-017","FR3","Released contracts include behavior, not only types."],
    ["spec:AST-017","FR30","Deprecation minima come only from direct authority."],
    ["spec:AST-017","FR31","Cleanup is one-to-one with approved ids and proven modernization."],
    ["spec:AST-017","FR32","Behavior-correcting incompatibility is a distinct classification."],
    ["spec:AST-017","FR33","Incompatible-fix evidence and approval are complete."],
    ["spec:AST-017","FR34","Incompatible fixes use a corrective lifecycle."],
    ["spec:AST-017","FR35","Emergency correction is narrow and never relabeled as a patch."],
    ["spec:AST-017","FR36","Minor frequency is planning guidance, not eligibility."],
    ["spec:AST-017","FR37","Every minor has an owner-approved public plan and freeze."],
    ["spec:AST-017","FR38","The final patch is the paired minor's locked baseline."],
    ["spec:AST-017","FR39","Every final-patch-to-minor delta has exactly one class."],
    ["spec:AST-017","FR4","Preserved old usage is nonbreaking."],
    ["spec:AST-017","FR40","Compatible fixes may be disclosed separately in the minor."],
    ["spec:AST-017","FR41","Records use closed schemas."],
    ["spec:AST-017","FR42","Contributors declare compatibility intent once."],
    ["spec:AST-017","FR43","CI validates semantics, not labels."],
    ["spec:AST-017","FR44","Exact-main release gates and rollback preserve one identity."],
    ["spec:AST-017","FR45","Documentation catalog display names and routes are mutable data."],
    ["spec:AST-017","FR46","Main targets a patch by default."],
    ["spec:AST-017","FR47","A minor is scheduled explicitly, by an owner, before its work lands."],
    ["spec:AST-017","FR48","While main targets a patch, incompatible work is refused."],
    ["spec:AST-017","FR49","The schedule fails closed."],
    ["spec:AST-017","FR5","Additive and victim-free contract restorations are nonbreaking."],
    ["spec:AST-017","FR50","Returning to a patch target is ordinary cleanup."],
    ["spec:AST-020","FR1","WCAG 2.2 A and AA are the conformance baseline."],
    ["spec:AST-020","FR2","APG defines an adopted widget pattern, not universal conformance."],
    ["spec:AST-020","FR6","Evidence layers keep distinct proof boundaries."],
    ["spec:AST-030","FR11","Each surface owns one test and applicable build lane."],
    ["spec:AST-030","FR7","Required check names remain stable."],
    ["spec:AST-055","AR1","The caller's control carries the disclosure."],
    ["spec:AST-055","AR2","One interactive element, one focus ring."],
    ["spec:AST-055","AR3","Focus returns to the control."],
    ["spec:AST-055","AR4","Every supported configuration keeps a complete keyboard path."],
    ["spec:AST-055","DEC-1","A caller-supplied overlay control is a render prop"],
    ["spec:AST-055","DEC-4","Hook trigger props are a different convention"],
    ["spec:AST-055","FR1","A component that lets a caller supply the control which opens its overlay MUST take that control as a render prop named `renderTrigger` (DEC-5): a function the component calls with one props object, whose returned element the component renders as given. The component MUST NOT wrap the returned element in an element of its own, and MUST NOT require a particular tag or a particular Astryx component."],
    ["spec:AST-055","FR2","Spreading the handed-back props onto one element MUST be the whole integration. The object MUST carry the ref or anchor the overlay positions against, the `id` AR1 needs, every handler that opens, toggles, and closes the overlay from that control on the component's supported input paths, and the disclosure attributes of AR1. The object's type MUST be exported from the component's public entry point."],
    ["spec:AST-055","FR3","A caller-supplied control MUST NOT be taken as a `ReactNode` slot that the component renders inside an interactive element of its own. Callers routinely pass an interactive component, and that shape nests one interactive element inside another (AR2). A content slot rendered inside a component-owned control remains valid for non-interactive content and is unchanged."],
    ["spec:AST-055","FR7","Where a component offers both a built-in control and this prop, exactly one control MUST render. The caller's control MUST win, identically in every presentation the component supports, and a development warning MUST fire; the component's own chrome for the replaced control MUST NOT render. Silently ignoring a supplied prop, or rendering both, is rejected."],
    ["spec:AST-055","FR8","A hook that returns props for a trigger — `triggerProps` and `getTriggerProps` on `useLightbox`, `usePopover`, `useMenuHover`, and `useHoverCard` — follows hook conventions and is unchanged by this record. Those return-value names are NOT precedent for a component prop's name or shape. This record does not require a hook to grow a render prop, nor a component to republish its trigger props as a hook return."],
    ["spec:AST-056","AR1","The empty-result message reaches assistive technology as written."],
    ["spec:AST-056","AR2","The query input has an accessible name that is not its placeholder."],
    ["spec:AST-056","FR7","Every prop this record renames is a released public surface with a victim, so it MUST follow `spec:AST-017` FR28–FR31: the replacement ships first, old usage stays equivalent through the overlap, each old prop gets a `DEP-*` id and a distinct `CLN-*` id, and removal happens only in a minor whose frozen manifest carries both. While both exist, a component given both MUST resolve to the new prop and MUST fire a development warning."],
    ["spec:AST-056","DEC-1","One name and one type for \"the query matched nothing\""],
    ["spec:AST-056","DEC-2","No `search` configuration object"],
    ["spec:AST-056","DEC-3","A query-only capability is enabled by a boolean and reported through the existing change callback"],
    ["spec:AST-056","DEC-4","The vocabulary is fixed; new capabilities join it"],
    ["spec:AST-056","FR1","One observable state has one prop name and one type across every component with a typed query. \"The query matched nothing\" is `emptySearchText`, accepting `ReactNode`. `emptySearchResultsText` resolves to it and its `string` typing is widened, so a caller may pass an element. No component may name or type this state differently."],
    ["spec:AST-056","FR2","\"The query matched nothing\" and \"the component was given no choices at all\" are different states and MUST stay separately expressible under distinct names: `emptySearchText` and `emptyText`. `Selector` and `MultiSelector` already declare both, so neither name may absorb the other, and a component offering only one MUST still use the name that matches the state it means."],
    ["spec:AST-056","FR3","Whatever a caller supplies for an empty state MUST reach the person operating the component, visually and non-visually alike. A component that announces this state MUST announce what it rendered. Announcing a built-in default while rendering the caller's element is a defect, not a fallback."],
    ["spec:AST-056","FR4","Who resolves the query is settled by who owns the choices, and is not restated per component. A component that holds its own choice set resolves the query itself, matching case-insensitively on each choice's displayed label at minimum, and exposes a boolean to turn the query input on. A component whose presented choices ARE the query's result takes a required `searchSource`. Both kinds reach the same observable states: a narrowed list, an empty result, and `emptyText`."],
    ["spec:AST-056","FR5","A capability that cannot function without a typed query MUST have exactly one switch, and MUST report through the component's primary change callback with a descriptor naming the kind of change, rather than through a handler prop of its own. A caller MUST NOT be able to express a configuration that renders nothing and reports nothing, which `hasCreate && hasSearch && onCreate != null` permits whenever any one piece is missing. Enabling it on a component with no query input MUST warn in development rather than fail silently."],
    ["spec:AST-056","FR6","A new search-related capability is admitted under `spec:AST-002` against this record, or not at all. A new top-level prop whose name carries the word `search` MUST name the state or capability it governs in the vocabulary this record fixes, and MUST NOT introduce a second name for a state one of these props already expresses."],
    ["spec:AST-057","AR1","The panel is real while resting and absent while closed."],
    ["spec:AST-057","AR2","The gesture touches nothing on a pointer that can hover."],
    ["spec:AST-057","AR3","The row's primary stays one tab stop."],
    ["spec:AST-057","DEC-2","Rest is the default; commit is a caller choice for one verb"],
    ["spec:AST-057","DEC-5","The root translates and the panels counter-translate; no element is added"],
    ["spec:AST-057","FR4","A sideways drag on a coarse pointer MUST move the row and uncover the side's panel, showing each entry's `label` and `icon` as a filled surface in its `variant`'s colour; the panel MUST NOT be visible at rest, by any pixel."],
    ["spec:AST-057","FR5","Under `reveal`, a release past the panel's width MUST leave the row resting open with every entry tappable, and a drag past the commit point or a fling MUST fire the **outermost** entry and no other. Under `commit`, a release past the commit point or a fling MUST slide the row out and fire the outermost entry; nothing MUST rest. After any entry fires, under either model, the row MUST spring back unless the entry has `hasRemoval`, in which case it MUST hold out at the edge it travelled toward. That bit is the only thing an entry declares about the row; the component MUST NOT wait on, observe, or act on what the caller does next, and MUST NOT warn if a held-out row is never removed. A release short of the threshold MUST spring back under both models. `onActivate` MUST fire at activation and may return a Promise."],
    ["spec:AST-057","FR6","The drag MUST decide its axis once, early, and a mostly vertical drag MUST stay the scroller's. A mouse MUST NOT start the drag. The click the browser synthesizes after a drag MUST NOT fire the row's primary action."],
    ["spec:AST-057","FR7","A resting row MUST close on a pointer landing anywhere outside it, on Escape with focus inside it, on firing an entry, and on unmount. Because a drag on a neighbour is a pointer outside it, at most one row rests open at a time without any shared state."],
    ["spec:AST-057","FR8","Directions MUST be logical: `trailing` is uncovered by a drag toward the inline start and sits at the inline end; `leading` the reverse; so the finger, the uncovered edge, and the panel agree under RTL."],
    ["spec:AST-057","DEC-1","Swipe actions are declared as data"],
    ["spec:AST-057","DEC-3","The capability is `Item`'s; where it is available follows the row's role"],
    ["spec:AST-057","DEC-4","No hover reveal"],
    ["spec:AST-057","DEC-6","The verb variant set is `neutral | accent | destructive`, minted knowingly"],
    ["spec:AST-057","FR1","`Item` MUST take its swipe actions as `swipeActions: {leading?: ItemSwipeAction[]; trailing?: ItemSwipeAction[]}`, where `ItemSwipeAction` is `{id?, label: string, icon?: ReactNode, onActivate, isDisabled?, variant?: 'neutral' \\"],
    ["spec:AST-057","FR2","`Item` MUST render each side's panel from its entries into an out-of-flow position on its existing root and MUST add no element to the row for it. The gesture MUST drive the row's travel by writing a custom property on the root; the root's transform MUST read it and each panel's transform its negation."],
    ["spec:AST-057","FR3","`swipeBehavior` MUST be one enum with the closed values `reveal` and `commit`, default `reveal`. `commit` with more than one entry on a side MUST warn in development, because the other entries have no touch path."],
    ["spec:AST-057","FR9","The element containing swipe-capable rows MUST clip in the inline axis with `overflow-inline: clip`, never `hidden`. `List` MUST set it; `Item`'s consumer documentation MUST state the obligation for any other host."],
    ["spec:AST-058","AR1","The tree is valid in both modes."],
    ["spec:AST-058","AR2","Names stay separate."],
    ["spec:AST-058","AR3","Every modality reaches the action."],
    ["spec:AST-058","AR4","Selection semantics are unchanged."],
    ["spec:AST-058","DEC-2","The host is a grid once an option carries an action"],
    ["spec:AST-058","DEC-3","Two fixed cells per row"],
    ["spec:AST-058","FR3","In a grid, each option is one `role=\"row\"` carrying the option's id, `aria-selected`, and `aria-disabled`, with exactly two `gridcell` children for every row: the first holds everything the option renders today — selection mark or checkbox, icon, label, description, `renderOption` output — and the second holds its `action` node, empty when it declares none. Rows the component mints (select-all, a create row) are rows of the same shape with an empty action cell. No row has one cell or three."],
    ["spec:AST-058","FR4","Activating an action runs the caller's own handler and nothing else: the selection does not change, the highlighted row does not change on its account, and the panel neither closes nor re-filters. Pressing the option cell selects or toggles exactly as it does today. An option's `disabled` governs its selection only; whether an action is disabled is the caller's control's own state, and the host does not read it."],
    ["spec:AST-058","FR5","Up and Down move the highlight between rows as today, landing on the option cell; the inline-end arrow moves it from the option cell to the row's action cell, and the inline-start arrow moves it back, so the keys follow visual direction under RTL. Enter or Space on the option cell selects as today; Enter or Space on the action cell activates the control there. Typing to jump, Home, End, PageUp, PageDown, Escape and Tab keep their current meanings. No action control is in the sequential tab order."],
    ["spec:AST-058","FR6","`aria-activedescendant` on the element that holds focus — the trigger, the search input, or the bottom-sheet panel — references the row while the highlight is on the option cell, and the action's control while it is on the action cell. It never references an element the person cannot act on."],
    ["spec:AST-058","FR7","In a grid, a section is a `rowgroup` named by its title, with its heading hidden as today. Dividers and the \"nothing matched\" message stay out of the accessibility tree, as `Selector` and `MultiSelector` already keep them; `BaseTypeahead`'s message, an `option` today, becomes presentational in every mode and is announced as `spec:AST-056` AR1 requires. The popover and the bottom sheet render the same tree."],
    ["spec:AST-058","FR8","An action is visible at rest on every input and every pointer type. The host places the caller's control in the action cell with the cell's size and alignment and paints nothing of its own over it. Nothing is revealed on hover, focus, or swipe."],
    ["spec:AST-058","DEC-1","The action is one node on the option, because the host only places it"],
    ["spec:AST-058","DEC-4","One key, one type, both option vocabularies; the typeahead family adopts through its one panel"],
    ["spec:AST-058","DEC-5","The grid is conditional: detection reads the declared options and latches"],
    ["spec:AST-058","FR1","An option carries its secondary control as `action?: ReactNode`, one node. The key has the same name and the same type on `SelectorOptionData` and on `SearchableItem`. The caller renders the control and owns its name, its handler, its disabled state, and its appearance; a caller with several verbs renders one menu trigger whose popup owns the rest. The host renders the node where FR3 says and MUST NOT inspect, clone, or wrap it to decide anything; checking that it is present (FR2) is not inspection. No host-owned type or component for an action exists."],
    ["spec:AST-058","FR2","A popup is a listbox until a render in which any declared option — at any depth of sections, before any query filters it — carries an `action` that is not `null` or `undefined`; from that render it is a grid and stays a grid while the component is mounted. The control that owns the popup advertises the role in force through `aria-haspopup` (`grid`; the bottom sheet keeps `dialog`). A popup whose role followed the filtered view, or switched back, is a defect."],
    ["spec:AST-058","FR9","`Selector`, `MultiSelector`, `Typeahead`, and `Tokenizer` adopt this contract; the last two through the one panel `BaseTypeahead` renders. A host that renders either option vocabulary in a listbox it owns and has not adopted MUST NOT render the action inside the option; until it adopts, it renders the option without the action and warns in development when an item carries one."],
    ["spec:AST-059","FR2","The cap is the viewport, never the span."],
    ["spec:AST-059","FR4","One fallback order."],
    ["spec:AST-059","FR5","An off-screen anchor holds."],
    ["spec:AST-059","FR7","Consumers inherit; a consumer's own size rule cannot defeat the cap."],
    ["spec:AST-059","FR8","The first frame is the settled frame."],
    ["spec:AST-059","DEC-2","A content-sized layer wraps if it can and moves if it cannot"],
    ["spec:AST-059","FR1","One gutter."],
    ["spec:AST-059","FR3","Placement-axis cap."],
    ["spec:AST-059","FR6","The app declares a floating bar once, on `LayerProvider`."],
    ["spec:AST-059","DEC-4","An app's floating bar is app state, not a theme value"],
    ["spec:AST-059","DEC-5","One declaration serves toasts and anchored layers; zero is the default"]
  ],
  "orderedMatches": [
    [0,4],
    [1,4],
    [2,4],
    [3,4],
    [4,4],
    [5,4],
    [6,7],
    [7,7],
    [8,7],
    [9,7],
    [10,7],
    [11,7],
    [12,7],
    [13,7],
    [14,7],
    [15,8],
    [16,8],
    [17,8],
    [18,8],
    [19,8],
    [20,8],
    [21,8],
    [22,8],
    [23,8],
    [24,8],
    [25,8],
    [26,4],
    [27,4],
    [28,4],
    [29,4],
    [30,4],
    [31,4],
    [32,4],
    [27,5],
    [28,5],
    [29,5],
    [33,5],
    [32,5],
    [34,3],
    [35,3],
    [36,3],
    [37,3],
    [38,3],
    [39,3],
    [40,4],
    [41,4],
    [42,4],
    [43,5],
    [44,5],
    [45,5],
    [46,5],
    [47,5],
    [48,5],
    [49,5],
    [50,5],
    [51,5],
    [52,5],
    [53,6],
    [54,6],
    [55,6],
    [56,6],
    [57,6],
    [58,6],
    [59,6],
    [60,8],
    [61,8],
    [62,8],
    [63,8],
    [64,8],
    [65,8],
    [66,8],
    [67,8],
    [68,8],
    [69,8],
    [70,8],
    [71,8],
    [72,8],
    [73,8],
    [74,8],
    [75,8],
    [76,8],
    [77,8],
    [78,5],
    [79,5],
    [80,5],
    [81,5],
    [82,5],
    [83,5],
    [84,5],
    [85,5],
    [86,0],
    [87,0],
    [88,0],
    [89,0],
    [90,0],
    [91,0],
    [92,0],
    [93,0],
    [94,0],
    [95,0],
    [96,0],
    [97,0],
    [98,0],
    [99,0],
    [100,0],
    [101,8],
    [102,8],
    [103,8],
    [104,8],
    [105,2],
    [106,2],
    [107,2],
    [108,2],
    [109,2],
    [110,2],
    [111,2],
    [112,2],
    [113,2],
    [114,2],
    [115,2],
    [116,2],
    [117,2],
    [118,2],
    [119,2],
    [120,2],
    [121,2],
    [122,2],
    [123,2],
    [124,2],
    [125,2],
    [126,2],
    [127,2],
    [128,2],
    [129,2],
    [130,2],
    [131,2],
    [132,2],
    [133,2],
    [134,2],
    [135,2],
    [136,2],
    [137,2],
    [138,2],
    [139,2],
    [140,2],
    [141,2],
    [142,2],
    [143,2],
    [144,2],
    [145,2],
    [146,2],
    [147,2],
    [148,2],
    [149,2],
    [150,2],
    [151,2],
    [152,2],
    [153,2],
    [154,2],
    [155,2],
    [156,2],
    [157,2],
    [158,2],
    [159,2],
    [160,2],
    [161,2],
    [162,2],
    [163,0],
    [164,0],
    [165,0],
    [166,7],
    [167,7],
    [168,0],
    [169,0],
    [170,0],
    [171,0],
    [172,5],
    [173,5],
    [174,5],
    [175,5],
    [176,5],
    [177,5],
    [178,5],
    [179,0],
    [180,0],
    [181,2],
    [182,5],
    [183,5],
    [184,5],
    [185,5],
    [186,5],
    [187,5],
    [188,5],
    [189,5],
    [190,5],
    [191,5],
    [181,5],
    [192,0],
    [193,0],
    [194,0],
    [195,1],
    [196,1],
    [197,1],
    [198,1],
    [199,1],
    [200,1],
    [201,1],
    [202,5],
    [203,5],
    [204,5],
    [205,5],
    [206,5],
    [207,5],
    [208,5],
    [209,5],
    [210,0],
    [211,0],
    [212,0],
    [213,0],
    [214,0],
    [215,0],
    [216,1],
    [217,1],
    [218,1],
    [219,1],
    [220,1],
    [221,1],
    [222,5],
    [223,5],
    [224,5],
    [225,5],
    [226,5],
    [227,5],
    [228,1],
    [229,1],
    [230,1],
    [231,1],
    [232,1],
    [233,4],
    [234,4],
    [228,4],
    [235,4],
    [229,4],
    [230,4],
    [236,4],
    [232,4],
    [237,5],
    [238,5],
    [236,5]
  ]
}

@vercel

vercel Bot commented Oct 9, 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 Oct 9, 2026 2:24am UTC

Request Review

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

astracat-bot Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 9, 2026, 4:41 AM UTC

@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.

Thanks for the careful write-up and the synthetic coverage. This review is pausing for a maintainer decision rather than requesting code changes on the idea itself.

The source-only slot half (a slot mapping to a shared icon name, with fallback and null-suppress behavior) lines up with the current icon-resolution architecture. The new participating half — metadata-bearing slots, declareComponentIconRole/getComponentIconState, owner default size and state precedence, roleSizeOverrides, appearance-only presentation.byState, and the new participating size/appearance tiers in Icon — does not yet have a governing spec on main: the current Icon and icon-resolution records settle only source-only slots and keep state with the rendering component, and the PR itself names the AST-054 and owner-authority drafts as unapproved proposals. Approval therefore needs a maintainer to provide or identify the current spec for that participating role/state model (including whether byState keys are global or per-role), or to land that record first.

Two things are also preserved for after that decision: at 4,231 verified changed lines with no enrolled component yet, the slice still needs either its first real participating owner (the planned Button-family proof, with wrapper/glyph and accessibility/browser evidence) or an accepted decomposition, so the full contract can be verified end to end. For reference, the new Core, consumer-contract, and CLI suites were rerun independently and pass, so this hold is about governing direction and verifiable scope, not a failing implementation.

[Automated review]

This branch was successfully deployed

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

Labels

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.

2 participants