Repository navigation
spec(AST-082): a boolean combined with a closed string set is portable - #8093
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
The exact-head preview is not available yet. Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approval of this amendment waits on one engineering-owner decision: the new spec:AST-082 FR4 rule that a boolean combined with a closed string set keeps true, false and every named state distinct on every platform, with the web value on the wire, together with its verification row and DEC-13, is new normative text in a current record and has no exact-head approval yet. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), and any later commit, including a rebase after #8070 lands, needs it again. Optionally, the FR4 verification row could name a set with several named states and the failure "collapses into true, false, or another named state", so two named states folding together is caught too.
[Automated review]
| | Contract | Verification | Representative states | Mutation or failure expectation | | ||
| | -------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | FR1, FR3 | Component documentation metadata check, plus type and build tests importing a platform-specific component | a shared component; a web-only component; a component on some native platforms; an unsupported platform | A component declares no platforms, claims an unsupported native platform, or an unsupported import type-checks, builds, or renders a substitute | | ||
| | FR4 | Contract generation to TypeScript, Swift, and Kotlin, compiled in each language | every core prop kind; a boolean combined with a closed string set; an open string set with a built-in name, a theme-declared name, and a name the platform has no rule for; a projected prop at each portable value and at a web-only value; a text, icon, and content slot, and a web call site passing a wider form; a free-form content or render-function prop in the core | A core prop has no Swift or Kotlin form, a non-portable prop enters the core, a named state collapses into `true` or `false`, a theme-declared name is rejected by a platform type, an unknown open-set name fails instead of drawing the base look, a wire value differs from the web value, a projected value maps to a different web value or a web-only value reaches a native type, or a slot accepts a wider form on a platform that cannot render it | |
There was a problem hiding this comment.
Optional: the new state "a boolean combined with a closed string set" is met by boolean | 'indeterminate' alone, and the new failure only catches a named state collapsing into true or false. Naming a set with several named states (Heading and Text hasTruncateTooltip: 'above' | 'below' | 'start' | 'end') and the failure "a named state collapses into true, false, or another named state" would cover every value the FR4 rule keeps distinct.
88ebb37 to
8a88a99
Compare
f5d7c9a to
895e2b3
Compare
There was a problem hiding this comment.
Approval of this amendment waits on one engineering-owner decision: the new spec:AST-082 FR4 rule that a boolean combined with a closed string set keeps true, false and every named state distinct on every platform, with the web value on the wire, together with its verification row and DEC-13, is new normative text in a current record and has no approval on this head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), and any later commit, including a rebase onto main after #8070 lands, needs it again. Nothing else needs to change; the optional verification wording suggested on the FR4 row still applies.
[Automated review]
895e2b3 to
949d56b
Compare
There was a problem hiding this comment.
Approval of this amendment waits on one engineering-owner decision: the new spec:AST-082 FR4 rule that a boolean combined with a closed string set keeps true, false and every named state distinct on every platform, with the web value on the wire, together with its verification row and DEC-13, is new normative text in a current record and has no approval on this head. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), and any later commit, including a rebase onto main after #8070 lands, needs it again. Nothing else needs to change; the optional verification wording suggested on the FR4 row still applies.
[Automated review]
949d56b to
f8b553c
Compare
|
/approve-spec f8b553c |
There was a problem hiding this comment.
This spec amendment is ready to merge: an engineering owner approved the new spec:AST-082 FR4 rule for a boolean combined with a closed string set, its verification row and DEC-13 on this exact head, and the record passes the knowledge check without contradicting the rest of the spec. Nothing else needs to change, but any further commit needs a fresh /approve-spec <full head SHA> from an engineering owner. Optionally, the FR4 verification row could also name the failure where one named state collapses into another, such as Heading's 'below' into 'above'.
[Automated review]
Exact decision needed
The portable form of a prop that is a boolean combined with named states, such as CheckboxInput
value: boolean | 'indeterminate', which today has no Swift or Kotlin form and stays web-only.Existing authority searched
spec:AST-082(current) FR4 lists booleans and closed string sets separately; a union of the two has no portable form, so the generator leaves such props on the web.boolean | 'indeterminate'); HoverCard.hasHoverIndication, Tooltip.hasHoverIndication ('auto' | boolean); Heading.hasTruncateTooltip, Text.hasTruncateTooltip (boolean | 'above' | 'below' | 'start' | 'end').string | booleanwith an open string is not this shape and stays web-only.Decision
true,false, and every named state as distinct values on every platform, and its wire value is the same as the web value.trueorfalse".Rejected alternatives
checked | unchecked | indeterminate): one value would have two names.Claim scope and non-goals
Covers this one form. Not covered: open strings combined with booleans, and which native contracts adopt it first. No web type or output changes (FR14).
Evidence and implementation relationship
No implementation in this PR. The generator change and the CheckboxInput contract follow once this is approved.
Writing rubric results
Rejected:sentences inside DEC-13.Scope
Validation
pnpm check:knowledge: alignedgit diff --check: clean