Skip to content

spec(AST-112): package shape — Expo package, Preview host package, default linking, named features - #12571

Merged
imdreamrunner merged 2 commits into
spec/ast-112-npx-astryxfrom
spec/ast-112-package-shape
Nov 18, 2026
Merged

imdreamrunner merged 2 commits into
spec/ast-112-npx-astryxfrom
spec/ast-112-package-shape

Conversation

@imdreamrunner

Copy link
Copy Markdown
Contributor

Stacked on #12563. Review that pull request first; this one changes only the package-shape requirements of spec:AST-112 and leaves FR13, DEC-6, OQ5, and OQ6 as #12563 has them.

Exact decision needed

How the React Native packages are shaped: which package holds the Expo support and the Preview host, which native pieces link by default and which an app opts in, how native contracts evolve and pair with Astryx Stage, and which native modules belong in the platform package.

Existing authority searched

Decision

  • FR1, DEC-11: the Expo configuration plugin and the Expo host hooks ship in @astryxdesign/react-native-expo (peers: @astryxdesign/react-native at the same version, and expo). The core package carries no Expo code. Its old ./app.plugin.js fails with an error that names the new package for one minor (DEP-0020, CLN-0020).
  • FR1, DEC-12: the Preview host (its native pieces, inspector channel, and overlay window) ships in its own host package. The library keeps the project side. Preview is not a capability. Whether the host package is published is OQ7.
  • FR1, FR3, FR5, DEC-13: the native half of the library's own components (controls, navigation hosts, gestures and drag, surfaces, menus, icons, layout and keyboard) links by default. The device features camera, media, microphone, pdf, photos, and web stay opt-in. A minimal opt-out of the default set may exist; its shape is not specified.
  • FR1, DEC-16: a native piece belongs in the platform package when the alternative is an open-source library that ships native code, so apps stay JavaScript-only and run in Preview. App-level modules of that kind are part of the package and are specified in their own records.
  • FR7, FR8, FR12, DEC-14: every native contract is at revision 1. Later behavior is a named feature that the binary reports through the platform info module. Astryx Stage pairs by contract spec hash plus a version floor, and an engine below the floor refuses by itself. No revision counter per contract.
  • 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) as the per-group detail.
  • OQ8: whether the system sign-in session is its own opt-in.

Rejected alternatives

  • The Expo plugin in the core package behind an optional peer: every app would carry Expo code.
  • A preview capability: only a host needs it.
  • Opt-in capabilities for the library's own native pieces: an app would need to know which component needs which capability.
  • A revision counter per contract: a number says that a contract changed, not which behavior a binary has.
  • A separate extras package for modules no component uses: apps and Preview hosts would install a second package of native code.

Claim scope and non-goals

Package shape only. The commands (FR13, DEC-6, OQ5, OQ6) belong to #12563. Each group's contracts belong to its own record. The Preview host's own contract is a non-goal of AST-112.

Evidence and implementation relationship

No implementation in this pull request. The FR1, FR3, and FR8 gap lines name where the package differs from this record.

Writing rubric results

  • R1 narration: none found. The new FRs and DECs are in the present tense; DEC-5's rejected line now says what it rejects.
  • R2 research in the record: none.
  • R3 evidence naming a change: none. The new verification cells name checks and states.
  • R4 rejected alternatives over one line or outside a decision: none. Each of DEC-11, DEC-12, DEC-13, DEC-14, and DEC-16 has one Rejected: line; DEC-15 has none.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none. OQ7 and OQ8 are unanswered and list their options with the trade-off.
  • R7 project status (build status or work order): none. Three gap lines in <FR> gap: form (FR1, FR3, FR8). DEP-0020's state names the release it starts in, as DEP-0019 does.

Scope

Components: spec:AST-112 (React Native foundation)

  • 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 new warning
  • prettier --check on the record: clean
  • git diff --check: clean

…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.
@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 18, 2026 2:59am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Nov 18, 2026, 2:59 AM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2026

This branch was successfully deployed

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