Repository navigation
spec(AST-112): React Native commands are one astryx rn group; package shape (Expo wrapper, default linking, named features) - #12563
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
…fault linking, named features - FR1, DEC-11: the Expo configuration plugin and host hooks ship in @astryxdesign/react-native-expo; the core package carries no Expo code, and its old plugin entry fails with an error that names the new package (DEP-0020, CLN-0020). - FR1, DEC-12: the Preview host ships in its own host package; the library keeps the project side; Preview is not a capability (OQ7: publication). - FR1, FR3, FR5, DEC-13: the native half of the library's own components links by default; camera, media, microphone, pdf, photos, and web stay opt-in. - FR1, DEC-16: native modules whose alternative is an open-source library with native code are part of the package. - FR7, FR8, FR12, DEC-14: contracts at revision 1 plus named features; Astryx Stage pairs by contract spec hash plus a version floor. - FR4, DEC-15: public platform API only. - FR7: links the group records AST-123 to AST-132. - OQ8: whether the system sign-in session is its own opt-in.
…the Stage version floor
…ec/ast-112-package-shape
…tion DEP-0020 is taken by an open pull request and CLN-0020 by a current record.
There was a problem hiding this comment.
This pull request needs an engineering owner's decision before it can be approved: every change is a proposal in the draft spec:AST-112 record, and none is approved at this head. An engineering owner records both directions (React Native commands as astryx commands, and the package shape) by commenting /approve-spec <full head SHA>, which the author may do as an engineering owner; approval also waits on imdreamrunner, the original decider, approving the changed DEC-6 Decider line in spec:AST-112 at this head. These record fixes are needed as well:
- The Expo package's native host hooks (FR1, FR11, DEC-11) contradict
spec:AST-082DEC-7, which keeps all React Native native code in the platform layer of@astryxdesign/react-native, while this record's Intent, FR4 and DEC-3 still say the same and Current-state impact does not name the DEC-7 amendment. - DEP-0032 makes the old
./app.plugin.jsfail on load, whichspec:AST-017FR28 and FR29a treat as a break rather than a deprecation, and DEP-0019's JSON mode gives the replacement only on standard error instead of in the machine result. - People running
astryx-react-native <command>get a deprecation line on every run and later lose every command exceptcreate, which needs an explicit owner decision that names those commands — Found by: deprecation rule - Expo apps that name
@astryxdesign/react-nativein their plugin list get a failing prebuild and later lose the entry, which needs an explicit owner decision that names./app.plugin.js— Found by: deprecation rule astryx applywrites into native projects that an app keeps itself, which FR4 (an app's native projects are generated) and DEC-3 (no app-owned native code) rule out.- FR7's group table gives no record for the opt-in
microphone,pdfandphotoscapabilities or for the app-level modules that FR1 sends to FR7. - The description says no open pull request changes
spec:AST-114or the CLI commands this record names, but #12302 renamesexperimental render(named in FR13 and Current-state impact) and editsspec:AST-114, #11596 also editsspec:AST-114, and CLN-0024 is not used by any current record.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the base record becomes current through a separate open pull request. Verified: that pull request is open and the record is draft on
main. - Claim: the bases record sends the commands contribution back to this record's OQ5. Verified in its non-goals.
- Claim: each renamed flag clashes with an existing CLI flag of another meaning. Verified for
--package,--variant,--png,--checkand--out;--metrobelongs to the React Native tool and was not checked. - Claim: the unscoped
astryxnpm package is not the CLI. Verified on the public registry. - Claim: a one-off package runner does not resolve the base. Verified against the global-mode record's install-root rule.
- Claim: no open pull request changes the bases record or the CLI commands named here. False: #12302 and #11596.
- Claim: the chosen deprecation and cleanup ids are free, and CLN-0020 to CLN-0029 are taken by current records. The chosen ids are free; CLN-0024 is not taken (false).
- Claim:
astryx docs react-nativeworks today. Not verifiable: the package is not in this repository or on npm. - Claim: the knowledge check exits 0 with no warning on this record. Verified for the checks that ran.
- Claim: the record has no narration, pull request references or project status beyond four gap lines. Verified: the gap lines use the allowed form.
- Claim: no implementation pull request exists yet. Consistent: no React Native package is in the repository.
- File
docs/specs/AST-112-react-native-foundation/spec.md: the seven findings above.
|
|
||
| **Reference:** `spec:AST-112/DEC-6` | ||
| **Decider:** imdreamrunner, 2026-11-09 | ||
| **Decider:** imdreamrunner, 2026-11-17 |
There was a problem hiding this comment.
This edits an existing Decider line, so approval waits on its original decider, imdreamrunner, approving this exact head (architecture:knowledge-contracts INV31).
… in FR4/DEC-3; deprecations keep working and report in JSON
…precate @astryxdesign/native; own decisions for the lab and Expo answers; RN-only components as an open question
There was a problem hiding this comment.
Approval waits on two owner steps, and six fixes are needed.
- An engineering owner decides the directions in the draft
spec:AST-112record by commenting/approve-spec <full head SHA>; the author may do so as an engineering owner. The Decider lines that name another owner do not count as approval while the record is draft. The directions are:- the
astryx rncommand group; - an Expo-neutral core with one lifecycle entry, and a lightweight Expo wrapper with no native code;
- default linking, one home per native piece, and named features;
- private shared contracts in place of
@astryxdesign/native; - the React Native
NavigationStackin the package's lab, andsurfaceonButtonandIconButtonas a per-call-site choice; - push and background work out of scope, and Stage and Preview outside Astryx.
- the
- The record edits DEC-6's Decider line and removes DEC-7, so approval also waits on their original decider, imdreamrunner, approving this exact head (
architecture:knowledge-contractsINV31); one/approve-spec <full head SHA>comment from imdreamrunner settles both steps.
Fixes needed:
- Canary users of
@astryxdesign/nativewould see it marked deprecated, with its contracts moving into a package that is never published (FR4, DEC-19); that needs an explicit owner decision for@astryxdesign/native, quoted with its time in the description. Found by: deprecation rule - The deprecation leaves current
spec:AST-082FR5, FR6, FR10, FR15, FR16 and FR19 (andspec:AST-093) naming@astryxdesign/nativeas the home of the platform contracts, the Swift and Kotlin bindings, thesharedcondition anddefineNativeTheme, so please name those amendments in Current-state impact and say which published package exportsdefineNativeThemeand the platform-prop conditions. - DEC-20 moves
NavigationStack"to the main entry", but FR5 and FR23 move it to./navigationand FR5 says.holds no router, so please say./navigationin DEC-20. - FR21 now lets
ButtonandIconButtontakesurfacewhatever theirrendervalue, but FR21's verification row still fails asurfacelook on a system-drawn element, so please say whether a system-drawn button shows its surface and scope the row to match. - The description's FR21 bullet says
surfaceapplies only when the element is drawn and that one native-surfaces decision sentence callssurfaceandrenderpresentation choices, which the record no longer says, so please update it. - The description's FR20 bullet says a host package carries its own app-shell pieces and an app with its own native projects links neither, while FR20 names no host package and says such an app keeps its own, so please update it.
The last review's FR17 description fix is in. Two new non-blocking notes are inline, and the earlier wording notes still stand.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the Stage and Preview requirements leave this record (the Stage contract, its decision, the binaries question, the stage and preview commands): verified; none remain, and the record names Stage and Preview only as tools outside Astryx.
- Claim: the amendment has two parts, the commands and the package shape: verified; the record also carries the contracts, lab, look, scope, parity, gesture, accessibility and engine requirements the description lists further down.
- Claim: one
astryx rngroup, run through the app's package runner, with the CLI's flags, output, codes and refusals, and the extension point left open: verified. - Claim: the bases record's non-goals send the commands contribution back to this record's open question: verified in that record.
- Claim: the named web flags exist in the CLI's command docs: verified at the base.
- Claim: of the two related pull requests, one edits the bases record's adapter declaration and the other renames an experimental web command this record does not name: verified as before; the record names neither spelling.
- Claim: the subcommands, the
doctoralias over the shared doctor with one appended checks step, and the shared docs topic: verified. - Claim: the CLI holds no React Native command, and the group needs an extension point that does not exist yet: verified (gap line).
- Claim:
astryx rn createwrites the CLI as a development dependency at the package's peer floor: verified. - Claim: a new app outside a project comes from a computer install of both packages, a project installs the package first, and a one-off runner is an open question: verified.
- Claim:
rnis the one reserved name, hidden from help and refused withERR_BASE_COMMANDand the install command for that place: verified. - Claim: the command-mapping table: verified against the record's command and code tables; its left column describes the exploration program, which is not in the repository.
- Claim: no new detection; the bases-record resolution rule and its decision exception are named: verified, and it keeps the global-mode project boundary.
- Claim: help in a React Native app lists the group; the missing-package error text, exit and manifest entry: verified.
- Claim: a long-running
runwrites one result, closes standard output and exits 0 on SIGINT or SIGTERM, with the output-contract change named: verified. - Claim: one new top-level command, with an admission row per subcommand: verified for
create,shell,shell save-lock,apply,runanddoctor. - Claim: the Expo package is a lightweight wrapper (plugin and declaration JSON, no native code), and the core carries no Expo code, exports no plugin entry and owns the lifecycle hookup: verified.
- Claim: the library's native half links by default; camera, media, photos and web stay opt-in; the minimal opt-out has no fixed shape: verified.
- Claim: contracts grow by named features from a baseline after the canary channel: verified.
- Claim: native code uses public platform API only, and the group table links each group record: verified.
- Claim: all native code, the lifecycle hookup included, lives in the platform layer behind one neutral lifecycle entry that each app shell calls: verified.
- Claim: the core is Expo-neutral, and its verification fails on an Expo-named symbol or branch: verified.
- Claim: the navigation hosts and
./controlsare in the default-linked core, andNavigationStackstarts under./unstable/*and moves to./navigationwhen web's leaves Lab: verified against the requirements; the decision itself says "the main entry" (a blocking finding). - Claim: web parity with gaps in each component's record, and React Native-only components as an open question: verified.
- Claim: the piece ledger, gesture arbitration, native accessibility and the Platform asks table, with no requirement resting on an unagreed ask: verified; the table's status cells are a non-blocking note.
- Claim: the build system is the app's, Expo Go is not a target, and the package is the platform package the native-surfaces record names: verified.
- Claim: core
Animated, no Reanimated dependency, and the package versioning on its own while canary-only: verified. - Claim: the non-goals cover push notifications and background work, Stage and Preview, brownfield apps and the template's two standing bullets: verified.
- Claim: no third-party native dependency apart from the Expo wrapper's
expopeer, coexistence under a release-blocking compatibility test, and other routers: verified; the verification row's unscoped peer rule is a non-blocking note. - Claim: one home per native piece, with its guardrails: verified.
- Claim:
rendervalues,surfaceapplying only when the element is drawn, and one native-surfaces decision sentence calling both presentation choices: false; the record no longer limitssurfaceto drawn elements and adds two such sentences, calling onlyrendera presentation choice. - Claim:
surfaceonButtonandIconButtonis a per-call-site choice recorded in the native-surfaces amendment: verified. - Claim: internal conventions while canary-only, motion on the UI thread, engine-neutral contracts, and the lab folder with mixed-lane CI: verified.
- Claim: the platform-code rules point to the platform-code record, and the record names no JavaScript engine: verified.
- Claim: DEC-6's and DEC-11's Decider lines change and DEC-7 is removed: verified for DEC-6 and DEC-7; DEC-11 is new against the base, so the append-only rule covers only those two.
- Claim: the Expo wrapper, scope, Stage and Preview, contracts and lab decisions and the button
surfaceamendment were decided by another owner on a given date: not checkable; no source this review reads records that decision, and the record is still draft. - Claim: the
./navigation-legacyentry and its optional peers are gone, and the only peers outside Astryx are React and React Native: verified. - Claim: the record describes what is built now, and options not chosen are no longer written as bans: verified.
- Claim: a separate package exists when it brings a third-party dependency: verified.
- Claim: the shared contracts are a private, never-published workspace package built into Core's and React Native's types, with committed generated Swift and Kotlin and a drift check, and
@astryxdesign/nativeis deprecated: verified as record text; the deprecation has no explicit owner decision and leaves the native-surfaces record's other claims unamended (blocking findings). - Claim:
./networkis gone and public entries carry the canary caveat; the gesture handle API is the gestures record's: verified. - Claim: canary caveats for the result shape, contracts and the Platform asks exits; the theme reaches native appearance through
defineNativeTheme; no installer or global: verified. - Claim: the changelog lists renames and removals; linking is not build policy; three API tiers; generated docs; the throwing frame recorder: verified.
- Claim: app-shell pieces come from
astryx rn shell, a host package carries its own, and an app with its own native projects links neither: false; the record names no host package and says an app with its own native projects keeps its own. - Claim: no rejected alternatives are recorded, and this pull request edits no other record: verified; Current-state impact also names the native-surfaces record's amendments.
- Claim: the device coexistence result, the registry's unscoped package and the exploration program's flag meanings: not checkable from the repository.
- Claim: rubric results, including four gap lines and no pull request references: verified.
- Claim: the knowledge check exits 0 with no warning on this record, and Prettier and the whitespace check are clean: verified at this head.
- File:
docs/specs/AST-112-react-native-foundation/spec.md: four blocking findings in the record (deprecation decision, unnamed native-surfaces amendments, DEC-20's entry, FR21's verification row), two non-blocking notes and eight carried; two blocking fixes are in the description.
| module package. | ||
| - The core carries what drawing components need. The app-shell pieces, the | ||
| native classes and launch steps of an app's shell, are not capabilities and | ||
| are not in the capability list (FR3): `astryx rn shell` writes them into a |
There was a problem hiding this comment.
Non-blocking: this names who supplies app-shell pieces for an astryx rn shell app and for an app with its own native projects, but not for an Expo app, which FR20's verification row (line 790) builds with the core only and checks for pieces "missing from a generated app". Consider saying whether Expo's prebuild shell carries them.
| - The internals of Astryx Stage (FR12), beyond what an app and the | ||
| CLI depend on. | ||
| - The Astryx app's design, features, and distribution. | ||
| - Push notifications and background work are out of scope for v0; apps get |
There was a problem hiding this comment.
Non-blocking: "for v0" here, "not a v0 target" (line 50) and DEC-17 name a release phase that goes stale (architecture:knowledge-contracts INV32); the non-goals stand without it.
…cts; DEC-20 names ./navigation; surface on system-drawn buttons
…s an open question
There was a problem hiding this comment.
Approval waits on two owner steps, and three fixes are needed.
- An engineering owner decides the directions in the draft
spec:AST-112record by commenting/approve-spec <full head SHA>; the author may do so as an engineering owner. The Decider lines that name another owner do not count as approval while the record is draft. The directions are:- the
astryx rncommand group; - an Expo-neutral core with one lifecycle entry, and a lightweight Expo wrapper with no native code;
- default linking, one home per native piece, and named features;
- private shared contracts in place of
@astryxdesign/native, with where its other parts go left to OQ8; - the React Native
NavigationStackin the package's lab, andsurfaceonButtonandIconButtonas a per-call-site choice; - push and background work out of scope, and Stage and Preview outside Astryx.
- the
- The record edits DEC-6's Decider line and removes DEC-7, so approval also waits on their original decider, imdreamrunner, approving this exact head (
architecture:knowledge-contractsINV31); one/approve-spec <full head SHA>comment from imdreamrunner settles both steps.
Fixes needed:
- Canary users of
@astryxdesign/nativewould see it marked deprecated, with its contracts moving into a package that is never published (FR4, DEC-19); that needs an explicit owner decision for@astryxdesign/native, and the description now gives a time but paraphrases the decision, so please quote the owner's words with that time. Found by: deprecation rule - Current-state impact now moves the
ios,androidandsharedtype conditions intopackages/contracts, which is never published, while currentspec:AST-082FR5 makes those conditions public consumer configuration, so please name the published package whose exports carry them (or add them to OQ8) and addspec:AST-082FR9 to the amended claims. - Miss: the description lists #11596 and #12302 as open pull requests, but #11596 closed unmerged and #12302 merged before the last review, so please update that bullet.
The last review's DEC-20, FR21-row and description fixes are in. One new non-blocking note is inline, and the earlier wording notes still stand.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the Stage and Preview requirements leave this record (the Stage contract, its decision, the binaries question, the stage and preview commands): verified; only a non-goal and one decision name them, as tools outside Astryx.
- Claim: the amendment has two parts, the commands and the package shape: verified; the record also carries the contracts, lab, look, scope, parity, gesture, accessibility and engine requirements the description lists further down.
- Claim: one
astryx rngroup, run through the app's package runner, with the CLI's flags, output, codes and refusals, and the extension point left open: verified. - Claim: the bases record's non-goals send the commands contribution back to this record's open question: verified in that record on
main. - Claim: the named web flags exist in the CLI's command docs: verified for
--packageand--variant; the--metromeanings belong to the exploration program and are not checkable. - Claim: the two related pull requests are open: false; #11596 closed unmerged and #12302 merged before the last review (blocking, a miss).
- Claim: the subcommands, the
doctoralias over the shared doctor with one appended checks step, and the shared docs topic: verified. - Claim: the CLI holds no React Native command, and the group needs an extension point that does not exist yet: verified (gap line).
- Claim:
astryx rn createwrites the CLI as a development dependency at the package's peer floor: verified. - Claim: a new app outside a project comes from a computer install of both packages, a project installs the package first, and a one-off runner is an open question: verified.
- Claim:
rnis the one reserved name, hidden from help and refused withERR_BASE_COMMANDand the install command for that place: verified. - Claim: the command-mapping table: verified against the record's command and code tables; its left column describes the exploration program, which is not in the repository.
- Claim: no new detection; the bases-record resolution rule and its decision exception are named: verified, and it keeps the global-mode project boundary.
- Claim: help in a React Native app lists the group; the missing-package error text, exit and manifest entry: verified, the first through the bases record's help rule the record cites.
- Claim: a long-running
runwrites one result, closes standard output and exits 0 on SIGINT or SIGTERM, with the output-contract change named: verified. - Claim: one new top-level command, with an admission row per subcommand: verified for
create,shell,shell save-lock,apply,runanddoctor. - Claim: the Expo package is a lightweight wrapper (plugin and declaration JSON, no native code), and the core carries no Expo code, exports no plugin entry and owns the lifecycle hookup: verified.
- Claim: the library's native half links by default; camera, media, photos and web stay opt-in; the minimal opt-out has no fixed shape: verified.
- Claim: contracts grow by named features from a baseline after the canary channel: verified.
- Claim: native code uses public platform API only, and the group table links each group record: verified.
- Claim: all native code, the lifecycle hookup included, lives in the platform layer behind one neutral lifecycle entry that each app shell calls: verified.
- Claim: the core is Expo-neutral, and its verification fails on an Expo-named symbol or branch: verified.
- Claim: the navigation hosts and
./controlsare in the default-linked core, andNavigationStackstarts under./unstable/*and moves to./navigationwhen web's leaves Lab: verified; the decision now agrees. - Claim: web parity with gaps in each component's record, React Native-only components as an open question, the piece ledger, gesture arbitration, native accessibility and the Platform asks table: verified; the table's status cells are a non-blocking note.
- Claim: the build system is the app's, Expo Go is not a target, and the package is the platform package the native-surfaces record names: verified.
- Claim: core
Animated, no Reanimated dependency, and the package versioning on its own while canary-only: verified. - Claim: the non-goals cover push notifications and background work, Stage and Preview, brownfield apps and the template's two standing bullets: verified.
- Claim: no third-party native dependency apart from the Expo wrapper's
expopeer, coexistence under a release-blocking compatibility test, and other routers: verified; the verification row's unscoped peer rule is a non-blocking note. - Claim: one home per native piece, with its guardrails: verified.
- Claim:
rendernames who draws;surfacenames the kind of surface and the theme'smaterialmember its look; on buttonssurfaceis a per-call-site choice that a drawn button draws and a system-drawn button shows as the platform's matching style; one theme member and two native-surfaces decision sentences: verified; how the theme member and the platform style combine on a system-drawn button is a non-blocking note. - Claim: internal conventions while canary-only, motion on the UI thread, engine-neutral contracts, and the lab folder with mixed-lane CI: verified.
- Claim: the platform-code rules point to the platform-code record, and the record names no JavaScript engine: verified; that record is not on
main. - Claim: DEC-6's and DEC-11's Decider lines change and DEC-7 is removed: verified for DEC-6 and DEC-7; DEC-11 is new against the base, so the append-only rule covers only those two.
- Claim: the native contracts package's deprecation was decided by another owner at a stated time, the native-surfaces and component-guidelines amendments are named, and where the remaining parts go is a new open question: record text verified; the decision is paraphrased, not quoted (blocking), and the named amendment moves the public type conditions into the never-published package (blocking).
- Claim: the Expo wrapper, scope, Stage and Preview, lab and button
surfacedecisions were made by another owner on a given date: not checkable; no source this review reads records that decision, and the record is still draft. - Claim: the
./navigation-legacyentry and its optional peers are gone, and the only peers outside Astryx are React and React Native: verified. - Claim: the record describes what is built now; a separate package exists when it brings a third-party dependency; the private contracts package with committed generated Swift and Kotlin and a drift check;
./networkgone; the gesture handle API is the gestures record's: verified. - Claim: canary caveats for the result shape, contracts and the Platform asks exits; the theme reaches native appearance through
defineNativeTheme; no installer or global: verified. - Claim: the changelog lists renames and removals; linking is not build policy; three API tiers; generated docs; the throwing frame recorder; app-shell pieces come from
astryx rn shellor the app's own projects; a size table per capability: verified. - Claim: no rejected alternatives are recorded, and this pull request edits no other record: verified; Current-state impact names the other records' amendments.
- Claim: the device coexistence result, the registry's unscoped package and the exploration program's flag meanings: not checkable from the repository.
- Claim: rubric results, including four gap lines and no pull request references: verified.
- Claim: the knowledge check exits 0 with no warning on this record, and Prettier and the whitespace check are clean: verified at this head.
- File:
docs/specs/AST-112-react-native-foundation/spec.md: two blocking findings in the record (the deprecation decision, the type conditions in the private package), two new non-blocking notes and ten carried; one blocking fix is in the description.
| - On `Button` and `IconButton`, `surface` is a situational appearance | ||
| choice made per call site, whatever the button's `render` value: each use | ||
| picks the surface that fits where the button sits. A drawn button draws | ||
| that surface, and a system-drawn button shows it as the platform's |
There was a problem hiding this comment.
Non-blocking: lines 636-637 and the spec:AST-082 DEC-2 sentence (lines 754-757) let the theme's material member decide how a surface looks, while this sentence gives a system-drawn button the platform's matching button style. Please say which one decides a system-drawn button's look, and which platform style each of glass, material and plain maps to on iOS and Android, or which group record holds that mapping.
There was a problem hiding this comment.
Approval waits on two owner steps, and one fix is needed.
- An engineering owner decides the directions in the draft
spec:AST-112record by commenting/approve-spec <full head SHA>; the author may do so as an engineering owner. The Decider lines that name another owner do not count as approval while the record is draft. The directions are:- the
astryx rncommand group; - an Expo-neutral core with one lifecycle entry, and a lightweight Expo wrapper with no native code;
- default linking, one home per native piece, and named features;
- private shared contracts in place of
@astryxdesign/native, with the published home ofdefineNativeTheme, the Swift binding and the public type conditions left to OQ8; - the React Native
NavigationStackin the package's lab, andsurfaceonButtonandIconButtonas a per-call-site choice; - push and background work out of scope, and Stage and Preview outside Astryx.
- the
- The record edits DEC-6's Decider line and removes DEC-7, so approval also waits on their original decider, imdreamrunner, approving this exact head (
architecture:knowledge-contractsINV31); one/approve-spec <full head SHA>comment from imdreamrunner settles both steps.
Fix needed:
- Canary users of
@astryxdesign/nativewould see it marked deprecated, with its contracts moving into a package that is never published (FR4, DEC-19); that needs an explicit owner decision for@astryxdesign/native, and the description still gives only a paraphrase with a time, so please add the owner's own words with that time, or a reference to where her decision is recorded, to the description (the record itself need not quote anyone), or take the deprecation out of this pull request. Found by: deprecation rule
The last review's type-condition and description fixes are in. One new non-blocking note is inline, and the earlier wording notes still stand.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the Stage and Preview requirements leave this record (the Stage contract, its decision, the binaries question, the stage and preview commands): verified; only a non-goal and one decision name them, as tools outside Astryx.
- Claim: the amendment has two parts, the commands and the package shape: verified; the record also carries the contracts, lab, look, scope, parity, gesture, accessibility and engine requirements the description lists further down.
- Claim: one
astryx rngroup, run through the app's package runner, with the CLI's flags, output, codes and refusals, and the extension point left open: verified. - Claim: the bases record's non-goals send the commands contribution back to this record's open question: verified in that record on
main. - Claim: the named web flags exist in the CLI's command docs: verified for
--package,--variant,--png,--template,--from,--out,--checkand--dry-run; the--metromeanings belong to the exploration program and are not checkable. - Claim: the subcommands, the
doctoralias over the shared doctor with one appended checks step, and the shared docs topic: verified. - Claim: the CLI holds no React Native command, and the group needs an extension point that does not exist yet: verified (gap line).
- Claim:
astryx rn createwrites the CLI as a development dependency at the package's peer floor: verified. - Claim: a new app outside a project comes from a computer install of both packages, a project installs the package first, and a one-off runner is an open question: verified.
- Claim:
rnis the one reserved name, hidden from help and refused withERR_BASE_COMMANDand the install command for that place: verified. - Claim: the command-mapping table: verified against the record's command and code tables; its left column describes the exploration program, which is not in the repository.
- Claim: no new detection; the bases-record resolution rule and its decision exception are named: verified.
- Claim: help in a React Native app lists the group; the missing-package error text, exit and manifest entry: verified.
- Claim: a long-running
runwrites one result, closes standard output and exits 0 on SIGINT or SIGTERM, with the output-contract change named: verified. - Claim: one new top-level command, with an admission row per subcommand: verified for
create,shell,shell save-lock,apply,runanddoctor. - Claim: the Expo package is a lightweight wrapper (plugin and declaration JSON, no native code), and the core carries no Expo code, exports no plugin entry and owns the lifecycle hookup: verified.
- Claim: the library's native half links by default; camera, media, photos and web stay opt-in; the minimal opt-out has no fixed shape: verified.
- Claim: contracts grow by named features from a baseline after the canary channel: verified.
- Claim: native code uses public platform API only, and the group table links each group record: verified.
- Claim: all native code, the lifecycle hookup included, lives in the platform layer behind one neutral lifecycle entry that each app shell calls, and the core's verification fails on an Expo-named symbol or branch: verified.
- Claim: the navigation hosts and
./controlsare in the default-linked core, andNavigationStackstarts under./unstable/*and moves to./navigationwhen web's leaves Lab: verified. - Claim: web parity with gaps in each component's record, React Native-only components as an open question, the piece ledger, gesture arbitration, native accessibility and the Platform asks table: verified; the table's status cells are a non-blocking note.
- Claim: the build system is the app's, Expo Go is not a target, and the package is the platform package the native-surfaces record names: verified.
- Claim: core
Animated, no Reanimated dependency, and the package versioning on its own while canary-only: verified. - Claim: the non-goals cover push notifications and background work, Stage and Preview, brownfield apps and the template's two standing bullets: verified.
- Claim: no third-party native dependency apart from the Expo wrapper's
expopeer, coexistence under a release-blocking compatibility test, and other routers: verified; the verification row's unscoped peer rule is a non-blocking note. - Claim: one home per native piece, with its guardrails: verified.
- Claim:
rendernames who draws;surfacenames the kind of surface and the theme'smaterialmember its look; on buttonssurfaceis a per-call-site choice; one theme member and two native-surfaces decision sentences: verified; how the theme member and the platform style combine on a system-drawn button is a non-blocking note. - Claim: internal conventions while canary-only, motion on the UI thread, engine-neutral contracts, and the lab folder with mixed-lane CI: verified.
- Claim: the platform-code rules point to the platform-code record, and the record names no JavaScript engine: verified; that record is not on
main. - Claim: DEC-6's and DEC-11's Decider lines change and DEC-7 is removed: verified for DEC-6 and DEC-7; DEC-11 is new against the base, so the append-only rule covers only those two.
- Claim: the native contracts package's deprecation was decided by another owner at a stated time; the native-surfaces amendments (the documentation claim included) and the component-guidelines amendment are named; which published package carries the public type conditions and the other non-contract parts is an open question: record text verified; the decision is paraphrased, not cited (blocking); the open question leaves out the
macosandwindowsconditions (non-blocking). - Claim: the Expo wrapper, scope, Stage and Preview, lab and button
surfacedecisions were made by another owner on a given date: not checkable; no source this review reads records that decision, and the record is still draft. - Claim: the
./navigation-legacyentry and its optional peers are gone, and the only peers outside Astryx are React and React Native: verified. - Claim: the record describes what is built now; a separate package exists when it brings a third-party dependency; the private contracts package with committed generated Swift and Kotlin and a drift check;
./networkgone; the gesture handle API is the gestures record's: verified. - Claim: canary caveats for the result shape, contracts and the Platform asks exits; the theme reaches native appearance through
defineNativeTheme; no installer or global: verified. - Claim: the changelog lists renames and removals; linking is not build policy; three API tiers; generated docs; the throwing frame recorder; app-shell pieces come from
astryx rn shellor the app's own projects; a size table per capability: verified. - Claim: no rejected alternatives are recorded, and this pull request edits no other record: verified; Current-state impact names the other records' amendments.
- Claim: the device coexistence result, the registry's unscoped package and the exploration program's flag meanings: not checkable from the repository.
- Claim: rubric results, including four gap lines and no pull request references: verified.
- Claim: the knowledge check exits 0 with no warning on this record, and Prettier and the whitespace check are clean: verified at this head.
- File:
docs/specs/AST-112-react-native-foundation/spec.md: one blocking finding (the deprecation's owner decision), two new non-blocking notes and the earlier wording notes carried.
| - **OQ8 — Where do `@astryxdesign/native`'s non-contract parts live after its | ||
| deprecation?** (`human-api`) The native theme definition | ||
| (`defineNativeTheme`), the Swift binding, and the public `ios`, `android`, | ||
| and `shared` type conditions that consumer configuration depends on |
There was a problem hiding this comment.
Non-blocking (Miss): spec:AST-082 FR5 makes four conditions public (ios, android, macos, windows), and shared is FR6's. The deprecation covers every platform, so please add macos and windows here, or say which record keeps them.
|
/approve-spec 610c0c9 |
This amendment removes the Stage and Preview requirements from AST-112 (FR12, DEC-7, OQ4 and the
stage/previewcommands): Astryx Stage and Preview in the Astryx app are separate tools outside Astryx, and Astryx specs, releases and docs don't require them (DEC-18).This amendment carries two parts: the React Native commands as Astryx CLI commands (FR13, DEC-6, OQ5, OQ6) and the package shape (FR1 to FR5, FR7, FR8, FR11, FR14, FR15, FR20, DEC-11, DEC-13 to DEC-16).
Exact decision needed
How a developer and an agent run the React Native commands of
@astryxdesign/react-native: as one Astryx CLI command group,astryx rn <command>(npx astryx rn <command>in an app), with the CLI's flag names, output, exit codes and refusals. The record states the command shape and what the commands need from the CLI; the shape of the CLI's command extension point stays open (OQ5, withspec:AST-114).Also: how the React Native packages are shaped. Which package holds the Expo support, which native pieces link by default and which an app opts in, how native contracts evolve, and which native modules belong in the platform package.
Existing authority searched
spec:AST-112FR1, FR2, FR5, FR13, FR14, DEC-6, OQ5 (this record).spec:AST-114FR2 to FR9 and its non-goals, which send thecommandscontribution back tospec:AST-112OQ5.spec:AST-042FR1, FR2, FR4 (admission of top-level commands), FR5 (flag names).spec:AST-081FR2, FR4, FR7, FR12;spec:AST-017FR14, FR15;architecture:cli-surfaceINV1 to INV10, INV23, DEC-15, DEC-16.packages/cli/clients/cli/commands/*.doc.mjsfor every existing flag name (--package,--variant,--png,--template,--from,--out,--check,--dry-run) and forinit,build,doctor,template,experimental theme preview app,experimental render.spec:AST-112FR1 to FR5, FR7, FR8, FR11, FR14, DEC-2, DEC-5;spec:AST-082FR13 (required dependencies) and DEC-7 (one contracts package); the open group recordsspec:AST-123tospec:AST-132andspec:AST-135, which detail AST-112 per group and ask it to link the library's own native pieces by default and to use revision 1 plus named features.Decision
The
astryx rngroupastryxcontributes one command group,rn:astryx rn create,astryx rn shell,astryx rn apply,astryx rn run.astryx rn doctoris an alias that runs the sharedastryx doctorscoped to the React Native base; the React Native checks stay one base step (setup.checks) insideastryx doctor.astryx docs react-nativestays shared.@astryxdesign/cliholds no React Native commands. The group needs the CLI's command extension point, which does not exist yet (FR13 gap); OQ5 now asks only how that extension point is shaped.npx astryx rn <command>(orpnpm exec astryx rn <command>).astryx rn createwrites@astryxdesign/cliinto the app'sdevDependencies, and the package declares the CLI as an optional peer with a floor. The unscopedastryxpackage on npm is not the CLI, so this install matters.npm install -g @astryxdesign/cli @astryxdesign/react-native, thenastryx rn create my-app. Inside a project (a web repository adding a mobile app), the project installs@astryxdesign/react-nativefirst. A one-off package runner is OQ6.rnis the one reserved name. Where the package is not installed,astryx rnis hidden from help, still recognized, and refuses withERR_BASE_COMMANDand the install command as its suggestion; it never fails as an unknown command.Command mapping
astryx-react-native …)create <name> [--dir <parent>]astryx rn create <path>create --template <t>(15 app templates)astryx rn create <path> --template <t>,astryx rn create --list--listis the CLI's listing conventioncreate --package <spec>--package-spec <version|tarball>--packagescopes a lookup to a packagecreateinstalls by default;--no-install,--no-shell--install-depsruns it;astryx rn rungenerates missing native projectsupgrade --install-deps); no--no-*flagsshell [--check | --ensure | --entry-only] [--profile]astryx rn shell …--checkwith--ensurefails withERR_INVALID_OPTIONshell --save-lockastryx rn shell save-lockapply [--check]astryx rn apply [--check]run ios|android --configuration Debug|Release/--variant debug|releaseastryx rn run ios|android [--release]--variantis a component or icon variantrun --metro/--no-metro--with-dev-server/--skip-dev-serverrun --no-launch--skip-launch--no-*flagsrun --simulator,--device,--emulator--target <name|id>run --port,doctor --port--dev-server-port <n>run -- <react-native flags>--app <dir>ASTRYX_MAX_WORKERS,ASTRYX_SHELL_PROFILEshell --profiledoctor [--platform] [--scope preview] [--port] [--json]astryx doctor [--platform] [--dev-server-port], orastryx rn doctorsetup.checks, in doctor's issue formatastryx docs react-nativeERR_INVALID_*/ERR_MISSING_ARGUMENT,ERR_DEP_MISSINGHow a run knows it is a React Native project
No new detection: the package's integration manifest declares
base(spec:AST-114FR3), andspec:AST-114FR2 resolves the run. An app with the package and no Core runs on it with no flag; a project with both answers from Core (spec:AST-114DEC-5),astryx rnreads the package as its base there, and only the shared commands (astryx doctor,astryx docs react-native) take--base @astryxdesign/react-native. Current-state impact names the matchingspec:AST-114change: FR2's resolution order gains a rule for the reservedrngroup (inside a project it reads only the project's install, asspec:AST-081FR12 allows; outside one, the package set serving the run or the computer's install; otherwiseERR_BASE_COMMAND), and DEC-5 its exception.Help and the missing-package error
In a React Native app,
astryx helplists therngroup beside the CLI's own commands and hides what the base does not serve, withspec:AST-114FR7's count line. Each command's help comes from its CommandDoc, and the summary of a command that keeps running says so.In a web project:
Exit 1,
ERR_BASE_COMMAND, no write. The suggestion is the install command.astryx rn --helpprints the same line;astryx manifestlistsrnwithavailable: false. Only the reserved namernis recognized this way.Long-running commands
run(while it holds the dev server) writes one result when ready (one envelope under--json, withrunning,pid,port,url), closes standard output, sends progress and child output to standard error, and exits 0 on SIGINT or SIGTERM. The record lists the INV2 / INV9 change in Current-state impact.What
spec:AST-114owns, and what this record points tospec:AST-114FR2 (DEC-5 for a project with Core and the package).setup.checks, fordoctor, and lists it in Current-state impact;doctor's two options,--platformand--dev-server-port, declarerequiresunder FR5.astryx rnrefusal follows FR8's shape with its own code,ERR_BASE_COMMAND, because FR5's requirements name steps, never packages.spec:AST-114's non-goals send thecommandscontribution back tospec:AST-112OQ5, which now asks only that. FR13 lists what any mechanism carries: long-running streamed processes, many and binary files,createbefore any install, CommandDocs, codes, response types, output blocks, write confinement andoutsideProject.Admission (
spec:AST-042FR4)rnis the one new top-level command; FR13 states its question, why no existing command answers it (init,buildandexperimental theme preview appwork on web projects and pages), its one job, and that its results are data. A table gives each subcommand (create,shell,apply,run, and thedoctoralias) its question, why another subcommand's option cannot answer it, its function in the package's./commandsentry, and its result.Package shape
@astryxdesign/react-native-expois a lightweight wrapper: a configuration plugin plus the declaration JSON it applies at prebuild, with no native code (peers:@astryxdesign/react-nativeandexpo). The core package carries no Expo code and exports no./app.plugin.js, and it owns the app's lifecycle hookup. FR1 states the rule and names no capability list; the group records hold each group's pieces.camera,media,photos, andwebstay opt-in. A minimal mode is an explicit opt-out of the default set; its shape is not specified.spec:AST-140/FR5).spec:AST-123tospec:AST-132, andspec:AST-135for thephotoscapability) as the per-group detail.AppDelegateandMainApplicationat prebuild,astryx rn shellwrites them into the projects it generates, and an app with its own native projects calls the entry itself. Generated projects are the default path; native code an app adds beyond the package is the app's, a declared tier that upgrades carry through../controlsin the default-linked core. The React NativeNavigationStack, withScreen,useScreenScrollProps()and the stack navigator, starts in the React Native lab under./unstable/*and moves to./navigationwhen web'sNavigationStackleaves Lab (DEC-20, Decider: cixzhang, 2026-11-18).Parity, structure, gestures, accessibility, and platform asks
spec:AST-082/FR3), and a gap is a line in that component's record. Where a React Native–only component with no Core counterpart starts is open (OQ7).spec:AST-094,spec:AST-107andspec:AST-108. Astryx owns its recognizers, not every gesture in an app.spec:AST-082/FR11; native transitions and gestures follow reduced motion; FR15 needs a real device for a screen-reader claim.astryx rn shell,astryx rn applyor the Expo wrapper's configuration plugin applies. Expo Go is not a target.@astryxdesign/react-nativeis the React Native platform package thatspec:AST-082DEC-7 names.Animated; no Reanimated dependency (apps may use it alongside).spec:AST-082/FR15).Native code, coexistence, and routers
@astryxdesign/react-nativebrings all the native code Astryx needs and takes no third-party native dependency (the Expo wrapper'sexpopeer is the set's one third-party dependency); it owns its own recognizers and measures its own insets, and its components work beside third-party libraries in the same app.TopNav), tab bar and sheets. An app may use another router, such as Expo Router: Astryx components work inside it, and the app keeps that router's own navigation and chrome.Coverage, look, conventions, engines, and the lab folder
@astryxdesign/react-nativewhen an Astryx component orcreatetemplate uses it (core, or an opt-in capability when it carries a permission, a usage string or a heavy dependency, ascameraandphotosdo); in a module package of its own when Astryx owns a module no component uses but several apps share; outside Astryx otherwise (the host platform's implementation or the app's libraries). Guardrails: a piece moves into the core only when a component or template uses it and leaves when none does; the core never holds a module for one app; no Astryx package depends on a module package.rendernames who draws an element's pixels:system(the platform: a host-presented bar or tab bar, a platform control, system menu or sheet chrome),drawn(Astryx in React), orauto(the component's own default, per platform where they differ); the value issystem, nevernative. Glass and materials are notrendervalues:surface(glass,material,plain) says which kind of surface an element is, and the native theme'smaterialmember decides how it looks; no public JavaScript glass or material component. OnButtonandIconButton,surfaceis a situational, per-call-site choice whatever the button'srendervalue: a drawn button draws it, and a system-drawn button shows it as the platform's matching button style. Current-state impact adds onedefineNativeThememember,render.default: 'auto' | 'system' | 'drawn'(spec:AST-082FR10), and twospec:AST-082DEC-2 sentences:surfaceonButtonandIconButtonas a per-call-site choice (Decider: cixzhang, 2026-11-18), and, as this record's proposal,renderas a presentation choice.architecture:public-component-api).Animatedon the native driver, or native hosts), with no JavaScript per frame; its feel followsspec:AST-107andspec:AST-108.NavigationStack(withScreen,useScreenScrollProps()and the stack navigator) starts in the package's lab folder,packages/react-native/lab/, exported only under./unstable/*, and moves to./navigationwhen web'sNavigationStackleaves Lab; Current-state impact names the narrowedspec:AST-017FR27 amendment. A lab pull request runs CI as any mixed pull request does (spec:AST-030FR13).Platform code rules
spec:AST-140(React Native platform code), which owns registration and exposure, the result vocabulary across the boundary, additive evolution of native interfaces (FR8's module-level rules moved there), threading, the native-layer conformance tests, and the engine-specific versus neutral split. The record names no JavaScript engine.Owner decisions needed
@astryxdesign/nativedeprecation (DEC-19): decided by cixzhang on 2026-11-18 at 13:23 PT: the shared contracts are internal and built into each package, so@astryxdesign/nativeis deprecated for its canary users and its contracts move intopackages/contracts, which is never published. Current-state impact names thespec:AST-082FR5, FR6, FR10, FR15, FR16, FR19 andspec:AST-093amendments (plusspec:AST-082FR9) for the platform contracts; which published package carries the publicios,androidandsharedtype conditions and the other non-contract parts (the native theme definition, the Swift binding) is OQ8.@astryxdesign/native; NavigationStack in the React Native lab;surfaceonButtonandIconButtonas a per-call-site choice). The DEC-2 amendment'srendersentence is this record's proposal, not part of that decision. DEC-5 and DEC-9 no longer carry these answers.The experimental level and the baseline
./navigation-legacyentry and its optional peers are gone, since no app or template uses it. The package's peers outside Astryx are React and React Native.Positive statements
packages/contracts, never published; Core's and React Native's types build them in, the generated Swift and Kotlin are committed with a CI drift check, no published package depends on it, and web pages gain 0 bytes.@astryxdesign/nativeis deprecated; FR2 no longer names it, and OQ3 asks how the package ships the generated Swift and Kotlin. OQ2 asks only the contracts' source-of-truth form: a language-neutral schema or TypeScript../networkentry is gone, and the public entries,./testingincluded, carry the canary caveat.spec:AST-124's.Canary caveats and platform alignment
defineNativeTheme(spec:AST-082/FR10); how the native code registers with React Native's renderer and module system isspec:AST-140's; the Jest setup followsspec:AST-140/FR7. Thefetchinstaller is gone: the package installs no global.renderaxis two ways (navigatorsrender, componentspresentation) and uses a fixeddrawndefault whererender.defaultgoes.Baseline and package rules
./unstable/*namespace whose names carry@experimentalandstability: 'experimental'underspec:AST-017FR21 and FR22, not exported), every public addition reviewed, no numeric budget. No./internal/*entries: the docs site generates its examples and coverage from source.astryx rn shellwrites them into a generated app's native projects, and an app with its own native projects keeps its own; the build generates a size table per capability../testing's Debug-onlyrecordFrames(withisFrameRecorderAvailable) is the one call that throws instead of resolving (spec:AST-140/FR7).Rejected alternatives
Alternatives considered: none recorded. Each decision states the chosen direction and its reason, as the record does throughout: it describes what is built now, in positive terms.
Claim scope and non-goals
spec:AST-114's owner. FR13 lists what any mechanism carries.astryx rn create: OQ6. This pull request edits no other record; Current-state impact names the changes the decision implies forspec:AST-114,spec:AST-042,spec:AST-017andarchitecture:cli-surface; each lands in that record's own pull request.spec:AST-123tospec:AST-132,spec:AST-135).Evidence and implementation relationship
--packagescopes a lookup;--variantis a component or icon variant;--metrotook a URL on two commands and was a boolean on a third).astryxpackage on the registry is not the CLI, so the record hasastryx rn createwrite@astryxdesign/cliinto the app and the package declare it as an optional peer.Writing rubric results
<FR> gap:form (FR1, FR3, FR13, FR21).Scope
Components: none (the CLI commands and the package shape of
@astryxdesign/react-native)Validation
node scripts/check-knowledge.mjs: exit 0, no warning on this record.git diff --check: clean.