Skip to content

spec(AST-112): React Native commands are one astryx rn group; package shape (Expo wrapper, default linking, named features) - #12563

Merged
imdreamrunner merged 43 commits into
mainfrom
spec/ast-112-npx-astryx
Nov 19, 2026
Merged

imdreamrunner merged 43 commits into
mainfrom
spec/ast-112-npx-astryx

Conversation

@imdreamrunner

@imdreamrunner imdreamrunner commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This amendment removes the Stage and Preview requirements from AST-112 (FR12, DEC-7, OQ4 and the stage / preview commands): 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, with spec: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-112 FR1, FR2, FR5, FR13, FR14, DEC-6, OQ5 (this record).
  • spec:AST-114 FR2 to FR9 and its non-goals, which send the commands contribution back to spec:AST-112 OQ5.
  • spec:AST-042 FR1, FR2, FR4 (admission of top-level commands), FR5 (flag names).
  • spec:AST-081 FR2, FR4, FR7, FR12; spec:AST-017 FR14, FR15; architecture:cli-surface INV1 to INV10, INV23, DEC-15, DEC-16.
  • packages/cli/clients/cli/commands/*.doc.mjs for every existing flag name (--package, --variant, --png, --template, --from, --out, --check, --dry-run) and for init, build, doctor, template, experimental theme preview app, experimental render.
  • For the package shape: spec:AST-112 FR1 to FR5, FR7, FR8, FR11, FR14, DEC-2, DEC-5; spec:AST-082 FR13 (required dependencies) and DEC-7 (one contracts package); the open group records spec:AST-123 to spec:AST-132 and spec: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 rn group

  • The React Native extension of astryx contributes one command group, rn: astryx rn create, astryx rn shell, astryx rn apply, astryx rn run. astryx rn doctor is an alias that runs the shared astryx doctor scoped to the React Native base; the React Native checks stay one base step (setup.checks) inside astryx doctor. astryx docs react-native stays shared.
  • @astryxdesign/cli holds 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.
  • In an app: npx astryx rn <command> (or pnpm exec astryx rn <command>). astryx rn create writes @astryxdesign/cli into the app's devDependencies, and the package declares the CLI as an optional peer with a floor. The unscoped astryx package on npm is not the CLI, so this install matters.
  • A new app, outside any project: npm install -g @astryxdesign/cli @astryxdesign/react-native, then astryx rn create my-app. Inside a project (a web repository adding a mobile app), the project installs @astryxdesign/react-native first. A one-off package runner is OQ6.
  • rn is the one reserved name. Where the package is not installed, astryx rn is hidden from help, still recognized, and refuses with ERR_BASE_COMMAND and the install command as its suggestion; it never fails as an unknown command.

Command mapping

Today (astryx-react-native …) In the Astryx CLI Change and reason
create <name> [--dir <parent>] astryx rn create <path> The path argument names the folder, inside the working folder (INV10)
create --template <t> (15 app templates) astryx rn create <path> --template <t>, astryx rn create --list --list is the CLI's listing convention
create --package <spec> --package-spec <version|tarball> The CLI's --package scopes a lookup to a package
create installs by default; --no-install, --no-shell prints the install command; --install-deps runs it; astryx rn run generates missing native projects The web CLI never installs unasked (upgrade --install-deps); no --no-* flags
shell [--check | --ensure | --entry-only] [--profile] astryx rn shell … Unchanged; --check with --ensure fails with ERR_INVALID_OPTION
shell --save-lock astryx rn shell save-lock It runs nothing else, so it is a subcommand
apply [--check] astryx rn apply [--check] Unchanged
run ios|android --configuration Debug|Release / --variant debug|release astryx rn run ios|android [--release] One flag on both platforms; the CLI's --variant is a component or icon variant
run --metro / --no-metro --with-dev-server / --skip-dev-server One meaning per name
run --no-launch --skip-launch No --no-* flags
run --simulator, --device, --emulator --target <name|id> One option for the place to run
run --port, doctor --port --dev-server-port <n> One name for the dev server's port
run -- <react-native flags> none No control outside help and the manifest
every --app <dir> none: the app is the project around the working folder The release and base resolve from the folder before options parse
ASTRYX_MAX_WORKERS, ASTRYX_SHELL_PROFILE automatic sizing, shell --profile The CLI reads no Astryx-owned environment variable (AST-017 FR14)
doctor [--platform] [--scope preview] [--port] [--json] astryx doctor [--platform] [--dev-server-port], or astryx rn doctor One doctor; the items come from one appended step, setup.checks, in doctor's issue format
(the package's docs topic) astryx docs react-native Shared, works today
exit 2 (usage), 3 (missing tool) exit 1 with a code: ERR_INVALID_*/ERR_MISSING_ARGUMENT, ERR_DEP_MISSING INV3, INV8; the full code table is in FR13

How a run knows it is a React Native project

No new detection: the package's integration manifest declares base (spec:AST-114 FR3), and spec:AST-114 FR2 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-114 DEC-5), astryx rn reads 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 matching spec:AST-114 change: FR2's resolution order gains a rule for the reserved rn group (inside a project it reads only the project's install, as spec:AST-081 FR12 allows; outside one, the package set serving the run or the computer's install; otherwise ERR_BASE_COMMAND), and DEC-5 its exception.

Help and the missing-package error

In a React Native app, astryx help lists the rn group beside the CLI's own commands and hides what the base does not serve, with spec:AST-114 FR7'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:

$ astryx rn run ios
Error: astryx rn is the React Native command group from @astryxdesign/react-native, which this project does not install.

Exit 1, ERR_BASE_COMMAND, no write. The suggestion is the install command. astryx rn --help prints the same line; astryx manifest lists rn with available: false. Only the reserved name rn is recognized this way.

Long-running commands

run (while it holds the dev server) writes one result when ready (one envelope under --json, with running, 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-114 owns, and what this record points to

  • Base resolution: spec:AST-114 FR2 (DEC-5 for a project with Core and the package).
  • The base declaration: FR3.
  • The step list: FR4. The record needs one appended step, setup.checks, for doctor, and lists it in Current-state impact; doctor's two options, --platform and --dev-server-port, declare requires under FR5.
  • The check and the refusal pattern: FR6, FR7, FR8. The astryx rn refusal follows FR8's shape with its own code, ERR_BASE_COMMAND, because FR5's requirements name steps, never packages.
  • Integrations that build on the package: FR9.
  • spec:AST-114's non-goals send the commands contribution back to spec:AST-112 OQ5, which now asks only that. FR13 lists what any mechanism carries: long-running streamed processes, many and binary files, create before any install, CommandDocs, codes, response types, output blocks, write confinement and outsideProject.

Admission (spec:AST-042 FR4)

rn is the one new top-level command; FR13 states its question, why no existing command answers it (init, build and experimental theme preview app work on web projects and pages), its one job, and that its results are data. A table gives each subcommand (create, shell, apply, run, and the doctor alias) its question, why another subcommand's option cannot answer it, its function in the package's ./commands entry, and its result.

Package shape

  • FR1, DEC-11: @astryxdesign/react-native-expo is a lightweight wrapper: a configuration plugin plus the declaration JSON it applies at prebuild, with no native code (peers: @astryxdesign/react-native and expo). 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.
  • Stage and Preview: Astryx Stage and Preview in the Astryx app are separate tools outside Astryx; Astryx specs, releases and docs don't require them (Non-goals, DEC-18). This record names none of their commands, types or limits.
  • FR3, FR5, DEC-13: the native half of the library's own components links with the library. The device features camera, media, photos, and web stay opt-in. A minimal mode is an explicit opt-out of the default set; its shape is not specified.
  • FR7, FR8, DEC-14: contracts grow by named features. A contract's baseline is its shape in the first release that carries it after the package leaves the canary channel, release candidates included; later behavior is a named feature that JavaScript checks before it uses it (the rules live in spec:AST-140/FR5).
  • FR4, DEC-15: native code uses public platform API only. A record that needs an exception names it and why.
  • FR7: a table that links each group record (spec:AST-123 to spec:AST-132, and spec:AST-135 for the photos capability) as the per-group detail.
  • FR4, DEC-3: all of the set's native code lives in the platform layer, the app's lifecycle hookup included: the core exposes one neutral app-lifecycle entry (app-delegate and application lifecycle calls, launch hooks) that any native project calls, with no Expo types or Expo modules API. The Expo plugin writes the calls into the generated AppDelegate and MainApplication at prebuild, astryx rn shell writes 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.
  • FR4: the core is Expo-neutral: no Expo types, no Expo modules API, no Expo-named API and no Expo-specific code path (React Native-specific code is the core's job); the generated shell, an Expo app through the configuration plugin, and a hand-made native project all reach the same lifecycle entry. FR4's verification fails on an Expo-named symbol or an Expo-specific branch in the core.
  • FR2, FR5, FR23, DEC-20: DEC-9 and FR5 place the navigation hosts and ./controls in the default-linked core. The React Native NavigationStack, with Screen, useScreenScrollProps() and the stack navigator, starts in the React Native lab under ./unstable/* and moves to ./navigation when web's NavigationStack leaves Lab (DEC-20, Decider: cixzhang, 2026-11-18).

Parity, structure, gestures, accessibility, and platform asks

  • FR16, OQ7: web parity is the goal: a React Native component implements a Core component and its core contract (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).
  • FR17: JavaScript in the library layer, native code in the platform layer (in the core, with the native half of every library component, or in an opt-in capability when it carries a permission, a usage string or a heavy dependency); each piece enters with a ledger entry (source requirement, target, why it belongs, done criteria; the group records are these entries) and is done when it derives from the shared contracts, passes the conformance tests every platform runs, and meets FR15's real-device bar.
  • FR18: the gesture module registers Astryx's recognizers with each platform's arbitration (iOS recognizer relationships, Android touch interception), exposes a handle per recognizer for other recognizers (gesture-handler's included), runs natively, and follows spec:AST-094, spec:AST-107 and spec:AST-108. Astryx owns its recognizers, not every gesture in an app.
  • FR19: VoiceOver and TalkBack expose each native host's and control's core semantics; touch targets and text size follow spec:AST-082/FR11; native transitions and gestures follow reduced motion; FR15 needs a real device for a screen-reader claim.
  • Platform asks: a table of what Astryx asks React Native for (gesture arbitration, haptics, one safe-area source, keyboard tracking), with owner, status, what each unblocks, Astryx's interim and the exit plan. No requirement depends on an ask whose owner has not agreed.
  • FR1, FR4, FR11, DEC-5: the build system is the app's. Host declarations are build-system-neutral data that astryx rn shell, astryx rn apply or the Expo wrapper's configuration plugin applies. Expo Go is not a target. @astryxdesign/react-native is the React Native platform package that spec:AST-082 DEC-7 names.
  • FR2: components animate with React Native's core Animated; no Reanimated dependency (apps may use it alongside).
  • FR14, DEC-8: the package versions on its own while canary-only and joins the release group once a platform is supported (spec:AST-082/FR15).
  • Non-goals: push notifications and background work are out of scope for v0; apps get them from their host platform or a third-party SDK (DEC-17); Astryx Stage and Preview in the Astryx app are separate tools outside Astryx (DEC-18); brownfield is not a v0 target; plus the system-spec template's two standing bullets.

Native code, coexistence, and routers

  • FR2, FR18, DEC-9: @astryxdesign/react-native brings all the native code Astryx needs and takes no third-party native dependency (the Expo wrapper's expo peer 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.
  • FR2: apps may use react-native-gesture-handler, Reanimated, react-native-screens, react-native-safe-area-context and haptics libraries in their own product code beside Astryx components without conflict; a compatibility test runs Astryx components beside them on iOS and Android and a failure blocks a release; Astryx measures its own safe-area insets from the platform, and the compatibility test checks that they agree with any other inset provider the app uses.
  • FR2, DEC-9: Astryx's router supports Astryx's screen header (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

  • FR20, DEC-16: each native piece has one home. In @astryxdesign/react-native when an Astryx component or create template uses it (core, or an opt-in capability when it carries a permission, a usage string or a heavy dependency, as camera and photos do); 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.
  • FR21: render names 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), or auto (the component's own default, per platform where they differ); the value is system, never native. Glass and materials are not render values: surface (glass, material, plain) says which kind of surface an element is, and the native theme's material member decides how it looks; no public JavaScript glass or material component. On Button and IconButton, surface is a situational, per-call-site choice whatever the button's render value: a drawn button draws it, and a system-drawn button shows it as the platform's matching button style. Current-state impact adds one defineNativeTheme member, render.default: 'auto' | 'system' | 'drawn' (spec:AST-082 FR10), and two spec:AST-082 DEC-2 sentences: surface on Button and IconButton as a per-call-site choice (Decider: cixzhang, 2026-11-18), and, as this record's proposal, render as a presentation choice.
  • FR8: FR6 to FR8 (result vocabulary, capability shape, additive evolution with a baseline and named features) are internal conventions that may change in any canary; the public promise is decided when the package leaves canary. The API shape follows the web's current conventions (architecture:public-component-api).
  • FR2: library motion runs on the UI thread (core Animated on the native driver, or native hosts), with no JavaScript per frame; its feel follows spec:AST-107 and spec:AST-108.
  • FR22: contracts and conformance tests run the same on any engine, native modules are specified at an interface another engine could host, and the New Architecture stays today's floor.
  • FR23: the React Native NavigationStack (with Screen, useScreenScrollProps() and the stack navigator) starts in the package's lab folder, packages/react-native/lab/, exported only under ./unstable/*, and moves to ./navigation when web's NavigationStack leaves Lab; Current-state impact names the narrowed spec:AST-017 FR27 amendment. A lab pull request runs CI as any mixed pull request does (spec:AST-030 FR13).

Platform code rules

  • FR4, FR5, FR6, FR8, FR15, DEC-10, FR22: each keeps its one-line intent and points to 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

  • DEC-6, DEC-7, DEC-11: DEC-6's and DEC-11's Decider lines change and DEC-7 is removed, so their original decider approves this exact head.
  • @astryxdesign/native deprecation (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/native is deprecated for its canary users and its contracts move into packages/contracts, which is never published. Current-state impact names the spec:AST-082 FR5, FR6, FR10, FR15, FR16, FR19 and spec:AST-093 amendments (plus spec:AST-082 FR9) for the platform contracts; which published package carries the public ios, android and shared type conditions and the other non-contract parts (the native theme definition, the Swift binding) is OQ8.
  • DEC-11, DEC-17, DEC-18, DEC-19, DEC-20, AST-082 DEC-2 amendment: decided by cixzhang on 2026-11-18 (the Expo wrapper; push and background work out of scope for v0; Stage and Preview as separate tools; the internal contracts package, which deprecates @astryxdesign/native; NavigationStack in the React Native lab; surface on Button and IconButton as a per-call-site choice). The DEC-2 amendment's render sentence 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

  • FR2, FR4, FR5, DEC-9: the ./navigation-legacy entry and its optional peers are gone, since no app or template uses it. The package's peers outside Astryx are React and React Native.
  • FR17: native code sits in the core, with the native half of every library component, or in an opt-in capability when it carries a permission, a usage string or a heavy dependency.

Positive statements

  • The record describes what is built now. Each kept constraint is a decision stated with its reason: Astryx takes no third-party native dependency, Astryx components work beside third-party libraries (a compatibility test checks it), and the CLI holds no React Native command code. Options that were simply not chosen are no longer written as bans.
  • FR1: a separate package exists when it brings a third-party dependency; the Expo wrapper is that case.
  • FR4, FR5, DEC-19, OQ2, OQ3: the shared contracts are a private workspace package in this repository, 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/native is 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.
  • FR5: the ./network entry is gone, and the public entries, ./testing included, carry the canary caveat.
  • FR16: a React Native component implements a Core component; where a React Native–only component starts is OQ7.
  • FR18: the gesture handle API is spec:AST-124's.

Canary caveats and platform alignment

  • DEC-4, DEC-14, Platform asks: while the package is canary-only the result shape and each contract are not frozen public shapes and may change in any canary; a contract's baseline is its shape in the first release that carries it after the package leaves the canary channel, release candidates included. The Platform asks exits no longer promise an unchanged public API: no shape is frozen at 0.x.
  • FR9, Platform support, DEC-10: the theme reaches native appearance through defineNativeTheme (spec:AST-082/FR10); how the native code registers with React Native's renderer and module system is spec:AST-140's; the Jest setup follows spec:AST-140/FR7. The fetch installer is gone: the package installs no global.
  • FR21: a gap line states that the code spells the render axis two ways (navigators render, components presentation) and uses a fixed drawn default where render.default goes.

Baseline and package rules

  • FR5: each release's changelog lists every renamed or removed name or entry.
  • FR3: the native half of the library's own components links with the library; capabilities are device features only (a permission, a usage string or a heavy dependency); a minimal mode is an explicit opt-out. Linking is not build policy: the capability list never changes the JavaScript engine or how React Native's core is built.
  • FR5: three API tiers (public, one ./unstable/* namespace whose names carry @experimental and stability: 'experimental' under spec:AST-017 FR21 and FR22, not exported), every public addition reviewed, no numeric budget. No ./internal/* entries: the docs site generates its examples and coverage from source.
  • FR4, FR11, DEC-11: the Expo package is a lightweight wrapper (a configuration plugin that applies the declaration JSON and writes the lifecycle-entry calls at prebuild), so the main package owns lifecycle hookup (Decider: cixzhang, 2026-11-18). FR11's verification launches those calls on both platforms and checks the core for Expo types and Expo modules API.
  • FR20: the core carries what drawing components need; app-shell pieces are not capabilities: astryx rn shell writes 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.
  • FR15: documentation is generated from the same data as the code, split by capability, with per-platform wording for props shared with the web library.
  • FR5, FR6, DEC-4: ./testing's Debug-only recordFrames (with isFrameRecorderAvailable) 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

  • How the CLI loads and calls the package's commands: OQ5, owned with spec:AST-114's owner. FR13 lists what any mechanism carries.
  • Whether a one-off package runner runs astryx rn create: OQ6. This pull request edits no other record; Current-state impact names the changes the decision implies for spec:AST-114, spec:AST-042, spec:AST-017 and architecture:cli-surface; each lands in that record's own pull request.
  • The commands' internals, and anything about the web commands beyond the names they share.
  • Each group's contracts belong to its own record (spec:AST-123 to spec:AST-132, spec:AST-135).

Evidence and implementation relationship

  • A device coexistence check on iOS and Android found no conflict between Astryx components and third-party libraries in the same app (FR2).
  • Each renamed flag clashes with an existing web flag of another meaning (--package scopes a lookup; --variant is a component or icon variant; --metro took a URL on two commands and was a boolean on a third).
  • The unscoped astryx package on the registry is not the CLI, so the record has astryx rn create write @astryxdesign/cli into the app and the package declare it as an optional peer.
  • No implementation pull request yet; the FR1, FR3, FR13 and FR21 gap lines state the mismatches.

Writing rubric results

  • R1 narration: none; FR13, DEC-6, OQ5 and OQ6 state what the commands do and what stays open, and the package-shape FRs and DEC-11 to DEC-16 state the shape, in the present tense.
  • R2 research in the record: none; the needs survey and the per-command comparison live outside the record.
  • R3 evidence naming a change: none; the FR13 verification row and the new FR1, FR3, FR4, FR8, FR11, FR14 and FR16 to FR23 cells name checks and states, not changes.
  • R4 rejected alternatives over one line or outside a decision: none; the decisions carry no rejected lines.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none; OQ5 and OQ6 are unanswered and keep their two options each, with the trade-off.
  • R7 project status (build status or work order): the Platform asks table's Status column states each ask's standing, not build progress, and no requirement depends on it; four requirement gaps in <FR> gap: form (FR1, FR3, FR13, FR21).

Scope

Components: none (the CLI commands and the package shape of @astryxdesign/react-native)

  • 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

  • node scripts/check-knowledge.mjs: exit 0, no warning on this record.
  • Prettier: clean.
  • git diff --check: clean.

@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 3:20am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2026
@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 19, 2026, 3:24 AM UTC

…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.
…tion

DEP-0020 is taken by an open pull request and CLN-0020 by a current record.
@imdreamrunner imdreamrunner changed the title spec(AST-112): React Native commands are Astryx CLI commands (FR13, DEC-6, OQ5, OQ6) spec(AST-112): React Native commands are Astryx CLI commands; package shape (Expo and Preview host packages, default linking, named features) 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.

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-082 DEC-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.js fail on load, which spec:AST-017 FR28 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 except create, which needs an explicit owner decision that names those commands — Found by: deprecation rule
  • Expo apps that name @astryxdesign/react-native in 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 apply writes 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, pdf and photos capabilities or for the app-level modules that FR1 sends to FR7.
  • The description says no open pull request changes spec:AST-114 or the CLI commands this record names, but #12302 renames experimental render (named in FR13 and Current-state impact) and edits spec:AST-114, #11596 also edits spec: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, --check and --out; --metro belongs to the React Native tool and was not checked.
  • Claim: the unscoped astryx npm 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-native works 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.

Automated review (maintainer link)


**Reference:** `spec:AST-112/DEC-6`
**Decider:** imdreamrunner, 2026-11-09
**Decider:** imdreamrunner, 2026-11-17

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 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

@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 two owner steps, and six fixes are needed.

  • An engineering owner decides the directions in the draft spec:AST-112 record 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 rn command 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 NavigationStack in the package's lab, and surface on Button and IconButton as a per-call-site choice;
    • push and background work out of scope, and Stage and Preview outside Astryx.
  • 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-contracts INV31); one /approve-spec <full head SHA> comment from imdreamrunner settles both steps.

Fixes needed:

  • Canary users of @astryxdesign/native would 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-082 FR5, FR6, FR10, FR15, FR16 and FR19 (and spec:AST-093) naming @astryxdesign/native as the home of the platform contracts, the Swift and Kotlin bindings, the shared condition and defineNativeTheme, so please name those amendments in Current-state impact and say which published package exports defineNativeTheme and the platform-prop conditions.
  • DEC-20 moves NavigationStack "to the main entry", but FR5 and FR23 move it to ./navigation and FR5 says . holds no router, so please say ./navigation in DEC-20.
  • FR21 now lets Button and IconButton take surface whatever their render value, but FR21's verification row still fails a surface look 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 surface applies only when the element is drawn and that one native-surfaces decision sentence calls surface and render presentation 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 rn group, 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 doctor alias 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 create writes 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: rn is the one reserved name, hidden from help and refused with ERR_BASE_COMMAND and 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 run writes 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, run and doctor.
  • 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 ./controls are in the default-linked core, and NavigationStack starts under ./unstable/* and moves to ./navigation when 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 expo peer, 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: render values, surface applying only when the element is drawn, and one native-surfaces decision sentence calling both presentation choices: false; the record no longer limits surface to drawn elements and adds two such sentences, calling only render a presentation choice.
  • Claim: surface on Button and IconButton is 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 surface amendment 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-legacy entry 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/native is 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: ./network is 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.

Automated review (maintainer link)

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

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: 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

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: "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.

@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 two owner steps, and three fixes are needed.

  • An engineering owner decides the directions in the draft spec:AST-112 record 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 rn command 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 NavigationStack in the package's lab, and surface on Button and IconButton as a per-call-site choice;
    • push and background work out of scope, and Stage and Preview outside Astryx.
  • 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-contracts INV31); one /approve-spec <full head SHA> comment from imdreamrunner settles both steps.

Fixes needed:

  • Canary users of @astryxdesign/native would 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, android and shared type conditions into packages/contracts, which is never published, while current spec:AST-082 FR5 makes those conditions public consumer configuration, so please name the published package whose exports carry them (or add them to OQ8) and add spec:AST-082 FR9 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 rn group, 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 and --variant; the --metro meanings 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 doctor alias 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 create writes 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: rn is the one reserved name, hidden from help and refused with ERR_BASE_COMMAND and 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 run writes 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, run and doctor.
  • 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 ./controls are in the default-linked core, and NavigationStack starts under ./unstable/* and moves to ./navigation when 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 expo peer, 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: render names who draws; surface names the kind of surface and the theme's material member its look; on buttons surface is 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 surface decisions 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-legacy entry 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; ./network gone; 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 shell or 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.

Automated review (maintainer link)

- 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

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: 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.

@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 two owner steps, and one fix is needed.

  • An engineering owner decides the directions in the draft spec:AST-112 record 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 rn command 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 of defineNativeTheme, the Swift binding and the public type conditions left to OQ8;
    • the React Native NavigationStack in the package's lab, and surface on Button and IconButton as a per-call-site choice;
    • push and background work out of scope, and Stage and Preview outside Astryx.
  • 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-contracts INV31); one /approve-spec <full head SHA> comment from imdreamrunner settles both steps.

Fix needed:

  • Canary users of @astryxdesign/native would 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 rn group, 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, --check and --dry-run; the --metro meanings belong to the exploration program and are not checkable.
  • Claim: the subcommands, the doctor alias 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 create writes 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: rn is the one reserved name, hidden from help and refused with ERR_BASE_COMMAND and 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 run writes 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, run and doctor.
  • 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 ./controls are in the default-linked core, and NavigationStack starts under ./unstable/* and moves to ./navigation when 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 expo peer, 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: render names who draws; surface names the kind of surface and the theme's material member its look; on buttons surface is 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 macos and windows conditions (non-blocking).
  • Claim: the Expo wrapper, scope, Stage and Preview, lab and button surface decisions 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-legacy entry 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; ./network gone; 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 shell or 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.

Automated review (maintainer link)

- **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

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 (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.

@imdreamrunner

Copy link
Copy Markdown
Contributor Author

/approve-spec 610c0c9

@imdreamrunner
imdreamrunner marked this pull request as ready for review November 19, 2026 18:26
@imdreamrunner
imdreamrunner merged commit 9e35347 into main Nov 19, 2026
72 checks passed
@github-actions
github-actions Bot deleted the spec/ast-112-npx-astryx branch November 20, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — 610c0c9b 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.

1 participant