Skip to content

docs(spec): contracts leave @astryxdesign/native, which is deprecated; a new prop has a high bar - #12707

Draft
cixzhang wants to merge 6 commits into
mainfrom
lane2/contracts-package-record
Draft

cixzhang wants to merge 6 commits into
mainfrom
lane2/contracts-package-record

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Records only. People building with Astryx install nothing new: the component contracts leave @astryxdesign/native, which is deprecated. Each public prop has one definition that every surface's contract builds in, a consumer installs nothing extra, web pages gain 0 bytes, and no published package depends on where the definitions live. Adding a new prop has a high bar: when a better default behavior meets the need, the component changes its default instead.

Exact decision needed

None: the owner decided both points (spec:AST-082 DEC-7's amendment, DEC-17). This pull request records them.

Existing authority searched

  • spec:AST-082: FR3 (core and platform contracts), FR5 and FR6 (@astryxdesign/native exposes the native platform contracts and the shared core contracts), FR16 (Core never imports native), DEC-7 (native lives in its own package; @astryxdesign/native is the single cross-platform contracts package).
  • spec:AST-112: FR4's package bullet ("@astryxdesign/native is the single cross-platform contracts package of spec:AST-082 (DEC-7)"), OQ2, and its Current-state line on DEC-7.
  • spec:AST-002/DEC-1 (a new prop's bar).
  • Package name for the rename change: @astryxdesign/contracts is not taken on npm (registry 404), and no workspace package under packages/ uses it. This record does not name the package (see Decision).
  • Terms searched: contracts package, cross-platform contracts, @astryxdesign/native, packages/native.

Overlap checked: #12563, #12699 (#12563 edits spec:AST-112, whose FR4 bullet names @astryxdesign/native as the contracts package, and does not touch spec:AST-082; #12699 edits spec:AST-082 FR4 only, for ref props)

Decision

  • DEC-7, amended: the contracts no longer live in @astryxdesign/native. Every public prop has one definition, which every surface's contract builds in; a consumer installs nothing extra, web pages gain 0 bytes, and no published package depends on where it lives. @astryxdesign/native is deprecated; its remaining roles in FR5, FR6, FR9, FR10, FR15, FR16 and FR19, and the native implementations that spec:AST-093 FR1 and FR6 place in it, move to successors that their own changes name. Core never imports or depends on @astryxdesign/native (FR14).
  • Owner decision, 2026-11-18 13:23 PT: she chose "Contracts stay a private workspace package, never published. Core's types include the contract types, React Native includes its own, and the generated Swift and Kotlin are committed with a CI drift check. No published package depends on contracts, web pages gain 0 bytes, and the @astryxdesign/native canary is deprecated."
  • The package and its build mechanism are recorded by architecture:contracts-package, which the rename change adds.
  • FR3 bullet (DEC-17): every public prop has one definition, which every surface's contract builds in; a consumer installs nothing extra, and @astryxdesign/core still exposes the core contracts (FR5, DEC-7). The requirement states the outcome; the record names no package or path (architecture:knowledge-contracts INV18). A new prop is permanent in every contract that carries it, so it has a high bar: when a better default behavior meets the need, the component changes its default and adds no prop.
  • FR3 gap line: the contracts live in packages/native, and Core's published types do not build them in.
  • DEC-7 gap line: FR5, FR6, FR9, FR10, FR15, FR16 and FR19, and spec:AST-093 FR1 and FR6, assign their roles and native implementations to @astryxdesign/native, which DEC-7 deprecates, and the canary still publishes.

Rejected alternatives

  • DEC-7: publishing the contracts as their own package (a compatibility promise, a release slot, one more install for every app).
  • DEC-17 (one definition per public prop): props defined in each package and reconciled later.

Claim scope and non-goals

Evidence and implementation relationship

None needed: this records the owner's decisions. The package does not exist yet; the FR3 gap line states that.

Writing rubric results

  • R1 narration: none in the requirements. DEC-7's amendment is a dated "Amended …" paragraph inside the decision, the form spec:AST-030 uses for amended decisions.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: none. DEC-7's new Rejected: and DEC-17's are one sentence each, inside their decisions.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none touched.
  • R7 project status (build status or work order): none. The FR3 and DEC-7 gap lines state current mismatches with no status words; DEC-7 says the native roles "move to successors that their own changes name", a rule, not a schedule.

Scope

Components: none (record: spec:AST-082)

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: templates and records aligned.
  • Prettier: clean.
  • git diff --check: clean.

…acts package; props live there and a new prop is a high bar
@vercel

vercel Bot commented Nov 18, 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 Nov 19, 2026 12:05am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 18, 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:53 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 18, 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.

Approval waits on an engineering owner's spec decision, and three record fixes are needed.

This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment and DEC-17), and this head has no spec-owner approval yet. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.

  • The FR3 bullet and the DEC-7 amendment make a private, never-published package, its packages/contracts path and a CI drift check product requirements (spec.md:110-112, :595-596), which architecture:knowledge-contracts INV18 keeps out of product specs, so state the observable outcome in FR3 and move the mechanism to an architecture record.
  • Canary users of @astryxdesign/native (defineNativeTheme, the platform contract types, the wire) are told the package is deprecated (spec.md:598), which needs an explicit owner decision for @astryxdesign/native cited in the description, not only a Decider line. Found by: deprecation rule
  • The deprecation contradicts FR5, FR6, FR9, FR10, FR15, FR16 and FR19, which still place the native contracts, bindings, defineNativeTheme and the wire in @astryxdesign/native, so limit it to the contracts role or amend those clauses and name each surface's new home.

Also worth a look: DEC-17 should carry the default-first sentence that the FR3 bullet credits to it.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: records only, no code moves. Verified: one Markdown record changes.
  • Claim: no workspace package uses the contracts package name. Verified: neither the name nor packages/contracts exists on main.
  • Claim: the package name is free on npm. Not verified: the registry could not be reached.
  • Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only AST-082 FR4 there. Verified.
  • Claim: the React Native record pull request is a community pull request. Unclear: its author is listed as an engineering owner.
  • Claim: the amendment follows the dated "Amended" form another current record uses. Verified.
  • Claim: FR5 has Core still expose the core contracts. Verified.
  • Claim: the record states observable behavior and keeps equivalent implementations free. False: FR3 names a private package and its path.
  • Claim: any named internal mechanism is intentionally public. False: the contracts package is never published.
  • Claim: each new rejected alternative is one sentence inside its decision, and the record adds no pull request references or status words. Verified.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
  • Claims that no published package depends on the contracts package and web pages gain 0 bytes: recorded intent, with no code to check.
  • File docs/specs/AST-082-native-first-surfaces/spec.md: the three blocking findings above and the DEC-17 note.

Automated review (maintainer link)

…eps its other roles; DEC-17 carries the default-first rule

@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 waits on an engineering owner's spec decision, and three fixes are needed.

This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment with its @astryxdesign/native deprecation, and DEC-17), and this head has no spec-owner approval. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.

  • The DEC-7 amendment names a private, never-published package, its packages/contracts path, committed Swift and Kotlin and a CI drift check (spec.md:594-598), which architecture:knowledge-contracts DEC-7 and INV18 keep out of product specs, so keep the observable outcomes in DEC-7 and DEC-17 and move the mechanism to an architecture record.
  • Canary users of @astryxdesign/native (defineNativeTheme, the platform contract types, the wire) are told the package is deprecated with no successor (spec.md:600), which needs an explicit owner decision for @astryxdesign/native cited in the description, not only a Decider line. Found by: deprecation rule
  • The description's R7 result quotes DEC-7 as saying the package "is deprecated when the contracts leave it" and reports no project status, but this head says "@astryxdesign/native is deprecated." and adds a DEC-7 gap line that carries work order, so update that result.

Also worth a look: the DEC-7 gap line (spec.md:439-441) reads as work order rather than an <FR or INV id> gap: <observable mismatch> line, and "at run time" at spec.md:603 is narrower than FR14.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
  • Claim: Core's and React Native's published types build the contracts in, web pages gain 0 bytes, and no published package depends on the contracts package. Recorded intent, with no code to check.
  • Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
  • Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's FR4, and the prop-admission decision) says what the description says. Verified.
  • Claim: no workspace package uses the contracts package name. Verified.
  • Claim: the name is free on npm. Not verified: the registry could not be reached.
  • Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified.
  • Claim: the React Native record pull request is a community pull request. Unclear: its author is listed as an engineering owner.
  • Claim: the FR3 bullet states the outcome, so the package and its path may sit in DEC-7. False: the knowledge-contracts rule keeps internal mechanisms out of the whole product spec, not only its requirements.
  • Claim: the FR3 and DEC-7 gap lines state where the contracts live and which clauses still name the native package. Verified against the main branch.
  • Claim: each new rejected alternative is one sentence inside its decision, and R1 to R6 find nothing. Verified.
  • Claim: R7 finds no project status, quoting DEC-7's deprecation sentence. False: the quoted text is gone and the DEC-7 gap line carries work order.
  • Claim: the record states observable behavior, and any named internal mechanism is intentionally public. False: DEC-7 names a private package, its path and a CI drift check.
  • Claim: public text contains no internal context. Verified.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
  • File docs/specs/AST-082-native-first-surfaces/spec.md: the three blocking findings above and three non-blocking notes.

Automated review (maintainer link)

@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 waits on an engineering owner's spec decision, and two fixes are needed.

This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment with its @astryxdesign/native deprecation, and DEC-17), and this head has no spec-owner approval. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.

  • DEC-17's title still says props "live in the contracts package" (spec.md:732), but the record no longer defines such a package and the only one it names is @astryxdesign/native, which the DEC-7 amendment says no longer holds the contracts, so retitle it, for example "Every public prop has one definition, and a new prop is a high bar".
  • The pull request title and description still say the contracts live in a private, unpublished package and that "the package and its path are in DEC-7", but DEC-7 at this head names no package or path and only rejects publishing the contracts as their own package, so update both to match the record.

The DEC-7 and DEC-17 bodies now state outcomes only, the deprecation cites the owner's dated decision, and the R7 result matches the record. Also worth a look: the DEC-7 gap line (spec.md:439-441) does not take the <FR or INV id> gap: <observable mismatch> form, and the Intent and DEC-8 still build on the deprecated package.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
  • Claim: Core's and React Native's published types build the contracts in, web pages gain 0 bytes, and no published package depends on where they live. Recorded intent in the amended decision, with no code to check.
  • Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
  • Claim: the owner's dated decision deprecates the native canary package. Verified: the description quotes it with its time, and the amendment's decider and time match.
  • Claim: the package and its build mechanism are recorded by an architecture record that another change adds. Not checkable: no such record exists on the main branch.
  • Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's FR4, OQ2 and current-state line, and the prop-admission decision) says what the description says. Verified.
  • Claim: no workspace package uses the new package name. Verified. Claim: the name is free on npm. Not verified: the registry could not be reached.
  • Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified; the ref-props pull request also edits the public component API record.
  • Claim: the React Native record pull request is a community pull request. Unclear: its author is an engineering owner and that record's owner.
  • Claim: the amended DEC-7 takes the contracts out of the native package, deprecates it, sends its remaining roles to successors that later changes name, and restates that Core never depends on it. Verified.
  • Claim: the FR3 bullet states the outcome, and the package and its path are in DEC-7. False: DEC-7 names no package or path at this head.
  • Claim: the title says the contracts live in a private, unpublished package. False at this head: the record names no package; it only rejects publishing the contracts as their own package.
  • Claim: the FR3 and DEC-7 gap lines say where the contracts live and which clauses still assign roles to the native package. Verified against the main branch.
  • Claim: each new rejected alternative is one sentence inside its decision, and R1 to R6 find nothing. Verified.
  • Claim: R7 finds no project status. Verified: the gap lines carry no status words, and the knowledge check raises no warning for this record.
  • Claim: the record states observable behavior, and any named internal mechanism is intentionally public. Partly false: DEC-17's title still names a contracts package.
  • Claim: public text contains no internal context. Verified.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
  • File docs/specs/AST-082-native-first-surfaces/spec.md: the two blocking findings above and two non-blocking notes.

Automated review (maintainer link)

@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 waits on an engineering owner's spec decision, and two fixes are needed.

This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment with its @astryxdesign/native deprecation, and DEC-17), and this head has no spec-owner approval. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.

  • The pull request title and description still say the contracts live in a private, unpublished package and that "the package and its path are in DEC-7", but DEC-7 at this head names no package or path and only rejects publishing the contracts as their own package, so update both to match the record.
  • Miss: the DEC-7 amendment lists the deprecated package's remaining roles as the bindings, defineNativeTheme and the wire (spec.md:598-600), but DEC-7's own body also gives it the native implementations, which current spec:AST-093 FR1 and FR6 place in packages/native/apple/ and packages/native/, so add that role to the amendment and the DEC-7 gap line, or limit the deprecation to the contracts role.

Also worth a look: the DEC-7 gap line (spec.md:439-441) does not take the <FR or INV id> gap: <observable mismatch> form, the Intent and DEC-8 still build on the deprecated package, and the FR3 gap line names React Native's published types although no React Native package exists yet.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
  • Claim: Core's and React Native's published types build the contracts in, web pages gain 0 bytes, and no published package depends on where they live. Recorded intent in the amended decision and the new requirement, with no code to check.
  • Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
  • Claim: the owner's dated decision deprecates the native canary package. Verified: the description quotes it with its time, and the amendment's decider and time match.
  • Claim: the package and its build mechanism are recorded by an architecture record that another change adds. Not checkable: no such record exists on the main branch.
  • Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's FR4, OQ2 and current-state line, and the prop-admission decision) says what the description says. Verified.
  • Claim: no workspace package uses the new package name. Verified. Claim: the name is free on npm. Not verified: the registry could not be reached.
  • Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified; the ref-props pull request also edits the public component API record.
  • Claim: the React Native record pull request is a community pull request. Unclear: its author is an engineering owner.
  • Claim: the amended DEC-7 takes the contracts out of the native package, deprecates it, sends its remaining roles to successors that later changes name, and restates that Core never depends on it. Verified, but the remaining roles leave out the native implementations (second fix above).
  • Claim: the FR3 bullet states the outcome, and the package and its path are in DEC-7. False: DEC-7 names no package or path at this head.
  • Claim: the title says the contracts live in a private, unpublished package. Not in the record at this head: it names no package and only rejects publishing the contracts as their own package.
  • Claim: the FR3 and DEC-7 gap lines say where the contracts live and which clauses still assign roles to the native package. Verified against the main branch.
  • Claim: each new rejected alternative is one sentence inside its decision, and the narration, research, evidence, length, reference and open-question rubric items find nothing. Verified.
  • Claim: the project-status rubric item finds nothing. Verified: the gap lines carry no status words, and the knowledge check raises no warning for this record.
  • Claim: the record states observable behavior, and any named internal mechanism is intentionally public. Verified at this head: DEC-17's title no longer names a package.
  • Claim: public text contains no internal context. Verified.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
  • File docs/specs/AST-082-native-first-surfaces/spec.md: the two fixes above and three non-blocking notes.

Automated review (maintainer link)

…ST-093 places there; the FR3 gap names only Core

@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 waits on an engineering owner's spec decision; nothing else needs fixing, and the title and description now match the record.

This pull request changes current direction in spec:AST-082: the new FR3 bullet (one definition per public prop, and a high bar for a new prop that a better default meets first), the DEC-7 amendment that takes the contracts out of @astryxdesign/native and deprecates that whole package, and DEC-17. An engineering owner records that decision by commenting /approve-spec with the full head SHA, and the author may do so as an engineering owner.

Also worth a look, none blocking: "which every surface's contract builds in" (lines 110-111 and 596-597) can read as if every contract carries every prop, where DEC-17's "every contract that carries it" is exact; the DEC-7 gap line is keyed to a decision rather than an FR; and the Intent and DEC-8 still describe @astryxdesign/native as the native home.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules (0): none; the review rules are unchanged since the last review.
  • Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
  • Claim: the contracts leave the native package, which is deprecated. Verified in the DEC-7 amendment.
  • Claim: each public prop has one definition built into every surface's contract, nothing extra is installed, web pages gain 0 bytes, and no published package depends on where the definitions live. Verified as recorded intent in the FR3 bullet and the DEC-7 amendment; no code to check.
  • Claim: a new prop has a high bar, and a better default comes first. Verified in the FR3 bullet and DEC-17.
  • Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
  • Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's package bullet, open question and current-state line, and the prop-admission decision) says what the description says. Verified on the main branch.
  • Claim: the proposed package name is free on npm, and no workspace package uses it. Verified: the registry answers not found, and no package manifest names it.
  • Claim: this record names no package or path for the definitions. Verified.
  • Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified; the ref-props pull request also edits the public component API record.
  • Claim: the React Native record pull request is a community pull request. Unclear: its author is an engineering owner.
  • Claim: the amended DEC-7 takes the contracts out of the native package, deprecates it, moves its remaining roles and native implementations to successors that later changes name, and restates that Core never depends on it. Verified.
  • Claim: the owner's dated decision deprecates the native canary package. Verified: the description quotes it with its time, and the amendment's decider and time match.
  • Claim: an architecture record from a later change records the package and its build mechanism. Not checkable: no such record exists on the main branch.
  • Claim: the FR3 and DEC-7 gap lines say where the contracts live and which clauses still assign roles to the native package. Verified against the main branch.
  • Claim: the successors are not decided here, and the records that still name the native package are left for their own changes. Verified.
  • Claim: each new rejected alternative is one sentence inside its decision, the amendment uses the dated form of other amended decisions, and the writing-rubric items find nothing. Verified; the knowledge check raises no status warning for this record.
  • Claim: the record states observable behavior, names no internal mechanism, and public text contains no internal context. Verified.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
  • File docs/specs/AST-082-native-first-surfaces/spec.md: three non-blocking notes and no blocking finding.

Automated review (maintainer link)

Comment on lines +110 to +111
- Every public prop has one definition, which every surface's contract builds
in; a consumer installs nothing extra for it, and `@astryxdesign/core` still

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.

Non-blocking (missed in earlier reviews): "which every surface's contract builds in" can read as every surface's contract carrying every public prop, against FR3's platform-only props above (lines 90-96 and 103-105). DEC-17 says "every contract that carries it". Could this read "which every contract that carries the prop builds in"? The DEC-7 amendment (lines 596-597) uses the same phrase.

@cixzhang cixzhang changed the title docs(spec): contracts live in a private, unpublished package; a new prop has a high bar docs(spec): contracts leave @astryxdesign/native, which is deprecated; a new prop has a high bar Nov 19, 2026
@imdreamrunner

Copy link
Copy Markdown
Contributor

/approve-spec c79b7fe

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 19, 2026

This branch was successfully deployed

1 active deployment
Preview — c79b7fe0 Deployed Nov 19, 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