Skip to content

Validate theme visual props from generated Core contract - #6061

Draft
imdreamrunner wants to merge 3 commits into
feat/theme-tiersfrom
agentcloud/theme-alias-validator
Draft

imdreamrunner wants to merge 3 commits into
feat/theme-tiersfrom
agentcloud/theme-alias-validator

Conversation

@imdreamrunner

@imdreamrunner imdreamrunner commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • generate and commit a versioned Core visual-prop contract from checked TypeScript types plus public component theming docs
  • consume the same contract for root, media-surface, and adaptation validation; generated module augmentation; target discovery; and visual-probe generation
  • keep TypeScript entirely in repository-time generation so the shipped CLI has no TypeScript runtime dependency
  • preserve deterministic legacy validation when an installed Core package has no supported contract, while failing early on malformed supported contracts
  • distinguish finite, open, and unresolved domains; keep states separate from visual props; and preserve the established CustomTextTypes extension point
  • escape generated class selectors for fractional numeric values and probe deprecated compatibility aliases independently from their canonical targets

The generated snapshot currently covers 276 targets and 304 selectors: 225 finite visual-prop domains, 9 open domains, 0 unresolved visual-prop domains, and 20 public augmentation interfaces.

Architecture and compatibility semantics are documented separately in draft #6091 (AST-031).

Test plan

  • pnpm check:repo
  • pnpm build
  • full CLI suite: 224 files / 3,287 tests
  • focused generator, loader, Core selector, packaging, probe, root-theme, and adaptation suite: 91 tests
  • pnpm -F @astryxdesign/cli typecheck:strict
  • ESLint on changed CLI runtime and test files
  • independent implementation review: no remaining actionable findings

@vercel

vercel Bot commented Sep 4, 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 Sep 6, 2026 11:53pm UTC

Request Review

@imdreamrunner
imdreamrunner force-pushed the agentcloud/theme-alias-validator branch from 50eec2e to 9920b9d Compare September 6, 2026 23:46
@imdreamrunner imdreamrunner changed the title Fix theme visual-prop alias validation Validate theme visual props from generated Core contract Sep 6, 2026
@cixzhang

cixzhang commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This draft is the release-clearing child of #5543. The remaining blocker is fail-closed validation for alias-backed finite visual props across both root themes and adaptations. Before the breaking API can ship, please resolve the current correctness edge cases, rebase the #5543 → #6061 stack onto current main, mark this PR ready, and obtain owner review plus exact-head pr-a11y, Stable visual regression, and full CI. If the shared validator cannot meet that bar today, the safe release action is to exclude the entire adaptations stack rather than ship #5543 alone.

@astracat-bot

astracat-bot Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 27, 2026, 12:46 PM 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.

This pull request needs a maintainer check before review continues.

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 9920b9d7 Deployed Sep 6, 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