Skip to content

Spec: generate the visual-prop contract from TypeScript - #6091

Draft
imdreamrunner wants to merge 3 commits into
feat/theme-tiersfrom
agentcloud/theme-visual-prop-contract-spec
Draft

imdreamrunner wants to merge 3 commits into
feat/theme-tiersfrom
agentcloud/theme-visual-prop-contract-spec

Conversation

@imdreamrunner

Copy link
Copy Markdown
Contributor

Summary

  • propose a generated, versioned Core visual-prop contract derived from checked TypeScript and reconciled with public component docs
  • keep visual props separate from states and preserve mixed finite/open domains
  • record existing public augmentation wiring without introducing theme syntax or a TypeScript runtime dependency
  • define deterministic Core/CLI fallback behavior and one contract for theme validation, declarations, discovery, and probes

Non-goals

  • no public theme-authoring syntax change
  • no hand-maintained allowed-value tables
  • no automatic approval of unrelated extension interfaces
  • no implementation changes in this PR

Validation

  • pnpm check:knowledge
  • independent architecture review completed with no remaining actionable findings

This draft targets feat/theme-tiers so it can be reviewed separately from the implementation in #6061.

@vercel

vercel Bot commented Sep 6, 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:12pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 6, 2026
Propose a build-time TypeScript-derived contract that reconciles public theming docs with rendered selector evidence. The contract keeps visual props separate from states, records finite/open/unresolved domains and existing augmentation wiring, and lets runtime consumers avoid compiler-driven inference.

Test Plan: pnpm check:knowledge
@xinzi-bot

Copy link
Copy Markdown

Heads-up: this PR and #6123 both add docs/specs/AST-031/spec.md.

Both branches add the file (neither modifies an existing one), and their shared base feat/theme-tiers does not contain AST-031 — so whichever merges second will hit an add/add conflict on that path.

They are two different specs sharing one id, not a duplicate:

Verified next free id: AST-033. AST-032 is not a safe fallback — it is already claimed by two other open PRs (#6066 and #6153). AST-014, -016, -019, -023 and -025 are unused gaps on main, if the team would rather fill those than keep allocating upward.

This PR was opened a day earlier, so the tidiest fix is for #6123 to take the next id before merge. Worth noting this branch already shows conflicts against feat/theme-tiers from other files, so it needs a rebase regardless. Ordering is up to you two — both specs share the same owners — as long as the renumber happens before the second one merges.

Flagging only; I have not touched either branch.

@imdreamrunner
imdreamrunner force-pushed the feat/theme-tiers branch 6 times, most recently from cad7c4b to 5f40dab Compare September 9, 2026 00:53
@github-actions
github-actions Bot deleted the branch feat/theme-tiers September 9, 2026 06:23
@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:54 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 — aa19de8f 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