Skip to content

docs(authority): project complete AST-054 icon capabilities - #7116

Closed
rubyycheung wants to merge 2 commits into
feat/theme-aware-icon-weightfrom
agent/ast054-authority
Closed

rubyycheung wants to merge 2 commits into
feat/theme-aware-icon-weightfrom
agent/ast054-authority

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Blocked authority projection

This authority projection is blocked until spec:AST-054 becomes current. The local source is still authority: draft; this change must not land before DEC-1 through DEC-10 are approved and current, DEC-7 through DEC-10 have named deciders, and the owners of every changed canonical record approve the final projection.

Summary

Projects the corrected AST-054 Icon capability contract into its existing canonical owners without creating another decision log or implementation path.

The projection keeps the approved componentIcons role-to-IconName/null model, preserves ComponentIconSlotMap entries whose value is true, and refines only the ownership needed for metadata-bearing roles: a theme may provide a default role size and appearance for one effective state, while components continue to own source, state transitions, transforms, placement, color, interaction, and accessibility.

No implementation, generated package output, consumer documentation, Changeset, dependency update, or migration is included. Each owner records the AST-054 capability surface as accepted but unshipped and preserves the released implementation baseline.

Exact changed owners

Canonical owner Projected contract
component:Icon — packages/core/src/Icon/Icon.spec.md Adds optional independent size/appearance/weight requests, application-admitted icon-only sizes and dimensions, fixed/adaptive registry and ordinary/adapted direct source behavior, explicit request precedence, safe adapter fallback, mismatch reporting, and intentional unresolved-namespaced-key compatibility. Released dimensions, default pixels, styling order, color, anatomy, and accessibility remain unchanged.
architecture:component-theming-surface Distinguishes grouped Icon capabilities from ordinary module-augmentable component axes and CSS target properties. Themes may own admitted Icon dimensions, default/final-size appearance and weight, and appearance-only effective-state presentation. true slots do not participate.
architecture:icon-resolution-and-component-slots Preserves componentIcons source mapping and precedence; extends slot values additively with metadata-bearing finite state vocabularies; derives ComponentIconStateName conditionally; requires zero or one effective state; preserves selected/pressed source overrides; defines malformed-registry fallback; and projects generated owner metadata, inventory, conformance, and the durable structural/visual ownership split.
architecture:public-component-api Records that Icon size/appearance/weight are independent caller intent, appearance is admitted only when not derivable, adapted direct exports remain IconType-compatible through opaque metadata, and ordinary direct components plus true slot declarations remain compatible nonparticipants.
architecture:theme-application Applies normalized Icon capability data through the existing nearest-provider and registered-root paths, with no Icon-specific provider or observer. Requires nested, detached-root, hydration, theme-switching, server, and built/unbuilt parity.
architecture:theme-authoring-contract Adds grouped capability references, canonical and theme-overridden Icon dimensions, fixed/adaptive entries, presentation and role-size normalization, atomic presentation inheritance, per-role merge/null clear, reject-before-use validation, and exact source/built normalization.
architecture:theme-compilation Assigns the compiler/build path the accepted ownership target for preserving non-CSS Icon capability, registry, slot, role/state, presentation, and dimension metadata in built JavaScript/types without translating it into CSS. The contract requires runtime/build/server resolver and diagnostic parity and no partial output from invalid authoring, but is explicitly unshipped; current build.mjs does not preserve that metadata.
family:buttons Keeps Button-family Icon policy structural: source, derived default size, and state transitions. Inserts metadata-bearing theme role size into the size cascade, keeps default pixels, limits roles to one effective state, leaves appearance/final-size weight to the theme, and preserves pressedIcon as an explicit source override.
contributing:api-conventions Projects the grouped capability and adapter authoring rules, true versus metadata-bearing role participation, caller-ownership gate, exact mismatch behavior, default-pixel/namespaced compatibility, and shared generated inventory/conformance expectations.

No other canonical owner is changed.

Decision references

The owner records link the corrected system decisions instead of reproducing them:

  • spec:AST-054/DEC-1 — one grouped application capability set;
  • spec:AST-054/DEC-2 — canonical and theme-overridable Icon dimensions;
  • spec:AST-054/DEC-3 — non-throwing fallback and caller-versus-policy diagnostics;
  • spec:AST-054/DEC-4 — component/family structural defaults only;
  • spec:AST-054/DEC-5 — one-direction, source-local resolution;
  • spec:AST-054/DEC-6 — explicit caller-owned Icon appearance;
  • spec:AST-054/DEC-7 — typed safe direct-icon adapters;
  • spec:AST-054/DEC-8 — theme appearance and final-size global weight;
  • spec:AST-054/DEC-9 — additive role metadata and one effective state; and
  • spec:AST-054/DEC-10 — atomic presentation inheritance, per-role size inheritance, inventory, and conformance.

The standing owners contain only the claims each owner must enforce. AST-054 remains the sole decision owner.

Compatibility preserved

  • xsm, sm, md, and lg keep 12px, 16px, 20px, and 24px defaults.
  • Components, roles, and themes that omit capability metadata retain established bytes and pixels.
  • Metadata-bearing participation has a contract-default pixel baseline equal to nonparticipation.
  • ComponentIconSlotMap values of true remain valid, stateless, nonparticipating, and continue to use componentIcons source mapping.
  • componentIcons continues mapping a role to an IconName or null before shared registry resolution.
  • Ordinary direct IconType components remain fixed and receive no presentation props.
  • Fixed registry entries and one-argument programmatic reads remain valid.
  • An unresolved namespaced key still renders nothing through Icon, returns no node through getIcon, and uses the caller fallback through getExtendedIcon.
  • Existing selectedIcon and pressedIcon values remain explicit caller source overrides.
  • Default structure, color, placement, accessibility, interaction, focus, direction, state transitions, styling precedence, and control geometry do not move to the theme.

Exact diagnostic projection

The canonical records defer the complete matrix to spec:AST-054/DEC-3 and project only their owned consequences:

  • malformed capability contracts, conflicting custom-size defaults, invalid ranges, missing adaptive defaults, unadmitted theme dimensions/presentation, invalid role-size overrides, and role-size overrides targeting a true role reject before theme use or build output;
  • an untyped unadmitted consumer size is ignored, warns once in development, remains inspectable, and continues through metadata role size, component/family size, then md;
  • an untyped unadmitted runtime appearance/weight value is not delivered, uses the selected source default, warns once in development, and remains inspectable;
  • an explicit admitted appearance/weight value unsupported by the selected adaptive branch uses that branch's default, continues through later axes, warns once in development, and remains inspectable;
  • theme appearance/weight unsupported by the selected adaptive branch uses that branch's default, continues through later axes, and reports through inspection only;
  • missing size artwork uses the selected entry's root branch in the resolved box without warning;
  • theme presentation targeting a fixed or ordinary direct source is ignored without warning, while an explicit unsupported caller request warns once;
  • a malformed runtime theme registry entry that reaches resolution through untyped, hand-assembled, or incompatible built data warns once and skips to process-wide then built-in precedence; a malformed process-wide entry skips to built-in;
  • an adapter receives only admitted supported axes; explicit unsupported caller axes warn once, theme-policy omissions are inspection-only, and malformed mapped output warns once then renders the wrapped component without mapped presentation props; and
  • production emits no capability-mismatch console warnings.

Related work and dependency

Global-baseline review receipt

  • Authority base: fa4c5fcb0f3344ca7090af4fd1dce08ed3a95aba.
  • Review head: 9c04be264bcde9957949cf58a8eabeaecc818653.
  • Requested triggers: accessibility, behavior, component-slots, layout, public-api, theming.
  • Result: 172 matched claims across 18 records and 27 record/trigger groups.
  • Trigger derivation: component:Icon contributes public-api, behavior, theming, and accessibility; family:buttons contributes those plus layout; changed architecture routing contributes component-slots, public-api, and theming. The union is the six requested triggers above.
  • Receipt semantics: each row groups the tool’s claim-level matches by record and trigger. The claim IDs identify every matched authority-base claim; the reason is the common routing rule for those claims.
  • Review-head route additions: once this blocked projection becomes current, component-theming-surface/INV16, icon-resolution-and-component-slots/INV8, INV11, and INV12, public-component-api/INV15, theme-application/INV11, theme-authoring-contract/INV13, and theme-compilation/INV15 join their matching global review routes.
Matched record Trigger Matched claims Match reason
architecture:component-size-cascade layout INV1, INV2, INV3, INV4, INV5, INV9 Requested layout matched each listed architecture:component-size-cascade/<claim> through review-applicability:v1 at the authority base.
architecture:component-theming-surface theming INV10, INV12, INV14, INV15, INV3, INV4, INV5, INV6, INV7, INV8, INV9 Requested theming matched each listed architecture:component-theming-surface/<claim> through review-applicability:v1 at the authority base.
architecture:container-padding layout INV1, INV10, INV11, INV3, INV6, INV8, INV9 Requested layout matched each listed architecture:container-padding/<claim> through review-applicability:v1 at the authority base.
architecture:container-padding public-api INV10, INV11, INV3, INV7, INV9 Requested public-api matched each listed architecture:container-padding/<claim> through review-applicability:v1 at the authority base.
architecture:icon-resolution-and-component-slots component-slots INV1, INV10, INV2, INV3, INV6, INV7 Requested component-slots matched each listed architecture:icon-resolution-and-component-slots/<claim> through review-applicability:v1 at the authority base.
architecture:layer-runtime layout INV11, INV12, INV3 Requested layout matched each listed architecture:layer-runtime/<claim> through review-applicability:v1 at the authority base.
architecture:public-component-api public-api INV1, INV12, INV2, INV3, INV4, INV5, INV6, INV7, INV8, INV9 Requested public-api matched each listed architecture:public-component-api/<claim> through review-applicability:v1 at the authority base.
architecture:theme-application theming INV1, INV2, INV3, INV7, INV8, INV9 Requested theming matched each listed architecture:theme-application/<claim> through review-applicability:v1 at the authority base.
architecture:theme-authoring-contract theming INV1, INV11, INV12, INV3, INV8, INV9 Requested theming matched each listed architecture:theme-authoring-contract/<claim> through review-applicability:v1 at the authority base.
architecture:theme-compilation theming INV10, INV2, INV3, INV4, INV6, INV9 Requested theming matched each listed architecture:theme-compilation/<claim> through review-applicability:v1 at the authority base.
spec:AST-002 public-api DEC-1, DEC-2, DEC-3, DEC-6, DEC-7, DEC-8, FR15, FR4 Requested public-api matched each listed spec:AST-002/<claim> through review-applicability:v1 at the authority base.
spec:AST-009 accessibility FR1, FR10, FR11, FR12, FR13, FR14, FR15, FR16, FR2, FR3, FR4, FR5, FR6, FR7, FR9 Requested accessibility matched each listed spec:AST-009/<claim> through review-applicability:v1 at the authority base.
spec:AST-012 theming FR4, FR5, FR6, FR7 Requested theming matched each listed spec:AST-012/<claim> through review-applicability:v1 at the authority base.
spec:AST-020 accessibility FR1, FR2, FR6 Requested accessibility matched each listed spec:AST-020/<claim> through review-applicability:v1 at the authority base.
spec:AST-055 accessibility AR1, AR2, AR3, AR4 Requested accessibility matched each listed spec:AST-055/<claim> through review-applicability:v1 at the authority base.
spec:AST-055 public-api DEC-1, DEC-4, FR1, FR2, FR3, FR7, FR8 Requested public-api matched each listed spec:AST-055/<claim> through review-applicability:v1 at the authority base.
spec:AST-056 accessibility AR1, AR2 Requested accessibility matched each listed spec:AST-056/<claim> through review-applicability:v1 at the authority base.
spec:AST-056 public-api DEC-1, DEC-2, DEC-3, DEC-4, FR1, FR2, FR3, FR4, FR5, FR6, FR7 Requested public-api matched each listed spec:AST-056/<claim> through review-applicability:v1 at the authority base.
spec:AST-057 accessibility AR1, AR2, AR3 Requested accessibility matched each listed spec:AST-057/<claim> through review-applicability:v1 at the authority base.
spec:AST-057 behavior DEC-2, DEC-5, FR4, FR5, FR6, FR7, FR8 Requested behavior matched each listed spec:AST-057/<claim> through review-applicability:v1 at the authority base.
spec:AST-057 public-api DEC-1, DEC-3, DEC-4, DEC-6, FR1, FR2, FR3, FR9 Requested public-api matched each listed spec:AST-057/<claim> through review-applicability:v1 at the authority base.
spec:AST-058 accessibility AR1, AR2, AR3, AR4, DEC-2, DEC-3 Requested accessibility matched each listed spec:AST-058/<claim> through review-applicability:v1 at the authority base.
spec:AST-058 behavior FR3, FR4, FR5, FR6, FR7, FR8 Requested behavior matched each listed spec:AST-058/<claim> through review-applicability:v1 at the authority base.
spec:AST-058 public-api DEC-1, DEC-4, DEC-5, FR1, FR2, FR9 Requested public-api matched each listed spec:AST-058/<claim> through review-applicability:v1 at the authority base.
spec:AST-059 behavior FR2, FR4, FR5, FR7, FR8 Requested behavior matched each listed spec:AST-059/<claim> through review-applicability:v1 at the authority base.
spec:AST-059 layout DEC-2, FR1, FR2, FR3, FR4, FR5, FR6, FR8 Requested layout matched each listed spec:AST-059/<claim> through review-applicability:v1 at the authority base.
spec:AST-059 public-api DEC-4, DEC-5, FR6 Requested public-api matched each listed spec:AST-059/<claim> through review-applicability:v1 at the authority base.

Writing rubric results

R1 narration: AST-054 projection clauses are present-tense statements of behavior, ownership, compatibility, or evidence. No project-stage narration was added. Existing unrelated migration/conformance sections in current records were preserved rather than broadened by this scoped projection.

R2 research: no survey, options comparison, benchmark, or test-design narrative was added to a standing record. The public library survey and historical research remain only in the AST-054 preview body.

R3 evidence: added verification cells name type, runtime, browser, accessibility, inventory, diagnostic, source/build/server, and pixel-baseline facts; none uses a pull request, issue, or commit as evidence.

R4 rejected alternatives: no rejected-alternative prose was added. Rejections remain owned by AST-054 DEC-1 through DEC-10.

R5 change references: no pull request, issue, or commit reference was added to a standing record. Related-work references appear only in this local pull request body.

R6 open questions: no settled question was added as open. Final exported spellings/module paths and the inventory/conformance command location remain the two open AST-054 questions; owner projections do not choose them.

Validation

  • PR stack: corrected AST-054 base 51c949530ed6130e566ff27a3b265c2ef245060d; authority head 5c768b9c00e59319b5d36cb105b717b41b238a7c.
  • Scope: the PR diff contains exactly the nine canonical owners listed above.
  • Prettier, check:knowledge, 100/100 knowledge tests, committed-range git diff --check, table-shape checks, and standing-reference scans passed.
  • Global-baseline routing passed for all six derived triggers. The concrete 172-claim receipt above was generated from the equivalent authority-only projection before it was stacked on the corrected AST-054 base.
  • Targeted checks covered DEC-1 through DEC-10 citations, additive true compatibility, conditional state typing, one effective state, no state weight, direct-adapter isolation, malformed registry fallback, namespaced-key outcomes, inheritance, provisional API naming, inventory columns, and explicit unshipped gaps.
  • Independent review gave a GO for this blocked authority review surface. Landing remains prohibited until AST-054 becomes current and affected owners approve the projection.

Implementation boundary

This PR changes exactly nine authority records relative to its #6891 base. It includes no runtime code, test-file changes, generated source, theme package, CLI behavior, consumer docs, or Changeset. Implementation remains in blocked dependent PRs and cannot land before this authority projection is approved.

@vercel

vercel Bot commented Oct 7, 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 1:00am UTC

Request Review

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

astracat-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 15, 2026, 2:01 AM UTC

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

@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 transcription — the seven records track the AST-054 draft decisions faithfully, released defaults are preserved on paper, and the scope is clean.

Approval needs a maintainer decision first: spec:AST-054 is still a draft (its decisions list no decider yet) and is not part of the current authority on main, while this PR writes those decisions into records that are current. Under the project's own promotion rule, a maintainer needs to approve and promote spec:AST-054 to current authority so this PR applies an established decision rather than creating one.

Two things to settle in that promotion so the records can govern implementation afterwards:

  • the final request-aware type and overload spelling, which the amended icon-resolution record currently defers to the draft's still-open spelling question;
  • how built themes store or expose resolver-valued component slots, which the compilation record currently leaves out while runtime slot resolvers are specified.

No removal or restructuring of this PR is being asked for on authority grounds — once the governing spec is current, this change can be re-judged on its merits.

[Automated review]

@rubyycheung
rubyycheung force-pushed the agent/ast054-authority branch from a633319 to be95b4e Compare October 8, 2026 22:09
@rubyycheung rubyycheung changed the title docs(authority): admit Icon variant resolvers docs(authority): project complete AST-054 icon capabilities Oct 8, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the careful projection — the nine records track the AST-054 draft decisions faithfully, keep the released defaults intact on paper, honestly mark the new surface as unshipped, and pass the repository knowledge checks.

Approval needs a maintainer decision first. spec:AST-054 is still a draft — DEC-7 through DEC-10 list no decider yet, and its two open questions (final exported spellings, and where the generated inventory/conformance command lives) are unsettled — and it is not part of the current authority on main, while this PR writes those decisions into records that are current. A maintainer needs to approve and promote spec:AST-054 to current authority on main, including approval from the owners of the nine changed records, so this PR applies an established decision rather than creating one. That matches the blocked-projection note in the PR description.

Two smaller things to settle alongside that promotion:

  • The PR body's global-baseline receipt and validation list cite a different base and head than the current PR commits, so they can't be checked against this change — please refresh them (the knowledge check and its tests do pass on the current head).
  • The records currently use conceptual field/helper spellings deferred to the draft's open spelling question; landing the final spellings with the promotion will keep the current records self-contained.

No removal or restructuring is being asked for on authority grounds — once the governing spec is current, this change can be re-judged on its merits.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the careful projection — the nine records track the draft Icon capability decisions faithfully, keep the released defaults intact on paper, honestly mark the new surface as unshipped, and pass the repository knowledge checks.

Approval needs a maintainer decision first. The deciding spec is still a draft — four decisions list no decider yet, and its two open questions (final exported spellings, and where the generated inventory/conformance command lives) are unsettled — and it is not part of the current authority on main, while this PR writes those decisions into records that are current. A maintainer needs to approve and promote the deciding spec to current authority on main, including approval from the owners of the nine changed records, so this PR applies an established decision rather than creating one. That matches the blocked-projection note in the PR description.

Two smaller things to settle alongside that promotion:

  • The PR body's global-baseline receipt cites a different base and head than the current PR commits, so it can't be checked against this change — please refresh it (the knowledge check and its tests do pass on the current head).
  • The records currently use conceptual field/helper spellings deferred to the draft's open spelling question; landing the final spellings with the promotion will keep the current records self-contained.

No removal or restructuring is being asked for on authority grounds — once the governing spec is current, this change can be re-judged on its merits.

[Automated review]

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval needs a maintainer decision first: these records would make the draft Icon capability decisions current, including intended changes to Icon's closed size set, component-slot size ownership and the namespaced-key statement, but the deciding spec is still a draft that is not on main (four decisions have no decider, and its export-spelling and inventory-location questions are open), so a maintainer needs to approve and promote it, with the owners of the changed records signing off. Separately, this branch predates current main, where architecture:public-component-api already uses INV15 for part styling inputs and the theming-surface Verification table has changed. Once that decision lands, please rebase, renumber the Icon claim (for example to INV16) everywhere it appears, and rebuild the theming-surface table from main, adding only the INV16 row. No removal or split is being asked for on authority grounds.

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 5c768b9c 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