Skip to content

spec(AST-112): promote the React Native foundation record to current - #12576

Closed
imdreamrunner wants to merge 1 commit into
mainfrom
spec/ast-112-promote-current
Closed

imdreamrunner wants to merge 1 commit into
mainfrom
spec/ast-112-promote-current

Conversation

@imdreamrunner

Copy link
Copy Markdown
Contributor

Exact decision needed

Promote spec:AST-112 (React Native foundation) from draft / proposed to current / accepted, so it becomes the current record for how Astryx builds iOS and Android apps with React Native.

Records promoted:

  • spec:AST-112 — docs/specs/AST-112-react-native-foundation/spec.md

Existing authority searched

  • spec:AST-112 on main (draft): Intent, Non-goals, FR1–FR15, Platform support, Current-state impact, the verification map, DEC-1–DEC-10, OQ2–OQ5. Records are promoted whole, so the whole record is up for review here, not only the lines this pull request touches.
  • spec:AST-082 (current): AST-112 is the React Native candidate of FR12 for ios and android, and follows FR13 (dependencies), FR15 (canary channel), FR16 (one-way read of core), and FR17 (shared icon names). spec:AST-093 (current) keeps the native component guidelines.
  • architecture:knowledge-contracts DEC-14 and DEC-18: the spec-content fingerprint omits authority, approved_by, and approved_at, so the flip does not change what is reviewed; adding an approver needs no extra gate.
  • Earlier promotions follow the same shape: authority to current, phase to accepted for a system spec, and approved_by / approved_at naming the approving owner and the approval date.
  • Overlapping open pull requests: two drafts amend AST-112 — the React Native commands as Astryx CLI commands (FR13, DEC-6, OQ5), and the package shape (Expo package, Preview host package, default linking, named features). They follow as their own reviews against the current record. This pull request touches only lifecycle lines in the front matter, so it does not conflict with either. The React Native platform group records are separate open drafts and are not promoted here.

Decision

AST-112 becomes the current record for the React Native foundation:

  • One package, two layers. An app installs @astryxdesign/react-native: a JavaScript library layer (components, the app root, theming, hooks, the Astryx router) over a platform layer that holds every line of native code (FR1, FR4, DEC-1). Dependencies point one way: the platform never imports the library, and capabilities never import each other (FR2).
  • Opt-in capabilities. The platform core is always present; camera, media, web, pdf, controls, and navigation are linked only when the app lists them, through the configuration plugin, a Podfile helper, and a Gradle property (FR3, DEC-2). Apps hold no hand-written native code and build in a generated native project (DEC-3).
  • One API shape. Every asynchronous call resolves a result and never rejects (FR6, DEC-4); every capability has the same shape (FR7); native interfaces change only additively (FR8); the public surface is deliberate (FR5).
  • Commands. React Native commands live in the canary-only astryx-rn experiment CLI (create, doctor, generate, and the Astryx Stage commands) and follow architecture:cli-surface; @astryxdesign/cli contains no React Native commands. The released command shape stays open (FR13, DEC-6, OQ5).
  • Navigation. Astryx owns navigation, routing included: the router in the library, native stack and tab hosts in the navigation capability, with no third-party navigation dependency (DEC-9).
  • Release train. The package releases on one version of its own, outside the fixed package group, through release candidates and the canary channel until a platform is supported (FR14, DEC-8).
  • Evidence and targets. Expo builds are supported and Expo Go is not (FR11, DEC-5); Astryx Stage's behavior is the contract developers build against (FR12, DEC-7); native claims are proven on the Simulator, the emulator, devices, and Astryx Stage (FR15).

Front-matter change: authority: current, phase: accepted, approved_by: cixzhang, approved_at: 2026-11-17. owners is unchanged. No other line changes. If the approval lands on a later date, only approved_at moves, which leaves the approved fingerprint unchanged.

Why now. The React Native platform group records and the CLI amendment build on this record's package model, capability shape, and result vocabulary. They need a current foundation to be reviewed against.

What to check.

  • The package model (FR1–FR5) and the one-way dependency rules are the contract you want React Native work held to.
  • The shared API rules (FR6–FR9) and the opt-in capability model (FR3) are right for every platform record that follows.
  • The navigation ownership (DEC-9) and the release train (FR14) match how the package should ship.
  • OQ2–OQ5 are acceptable as open questions in a current record.

Rejected alternatives

None new. Promoting the record together with its open amendments was rejected: each amendment changes requirements and deserves its own review against a current base.

Claim scope and non-goals

Promotes the record's existing claims only. No requirement, decision, or open question changes. It does not edit spec:AST-082 or any other record named under Current-state impact, and it promotes none of the React Native platform group records.

Evidence and implementation relationship

No implementation in this pull request. The record's verification map names the evidence layer for each requirement.

Writing rubric results

  • R1 narration: none found; the record is in the present tense.
  • R2 research in the record: none found.
  • R3 evidence naming a change: none; the verification map names checks and test layers.
  • R4 rejected alternatives over one line or outside a decision: none found; each DEC carries its own one-line rejection.
  • R5 pull request or issue references remaining: none (searched # plus digits, /pull/, /issues/, commit hashes).
  • R6 ruled open questions still listing options: none; OQ2–OQ5 are unruled.
  • R7 project status (build status or work order): none flagged by check:knowledge's scan; phase is a required lifecycle field.

Scope

Components: none (system spec spec:AST-112 only)

  • 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: aligned
  • Prettier on the record: clean
  • git diff --check: clean

Set authority to current, phase to accepted, and record the approving
owner and date. No requirement, decision, or open question changes.
@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 3:11am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 18, 2026, 5:21 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner deciding whether to promote the record, and the description needs one fix.

Owner decision. Making spec:AST-112 current turns FR1–FR15, Platform support, the verification rows and DEC-1 to DEC-10 into the contract that React Native work is held to, and no engineering owner has approved this head yet. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), and the approved_by and approved_at lines should then name that owner and the date.

Needs a fix:

  • The description's Navigation bullet says Astryx owns navigation "with no third-party navigation dependency (DEC-9)", but DEC-9 and FR5 keep the transitional ./navigation-legacy entry, whose peers on React Navigation, react-native-screens, react-native-safe-area-context and @callstack/liquid-glass are optional. The bullet should name that exception, and the overlap note should say that one open draft now carries both amendments.
Claims and files checked

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

  • Only the record's four lifecycle lines change (authority, phase, approver, approval date), and nothing else: verified in the diff.
  • The record follows the native-surfaces record's candidate, dependency, canary-channel, core-read and icon requirements, and that record is current: verified.
  • The native component guidelines record is current: verified.
  • The approval fingerprint leaves out the authority and approver fields, and adding an approver needs no extra gate: verified (the phase line is still fingerprinted).
  • Earlier promotions use the same front-matter shape: verified on current system specs.
  • Two open drafts amend the record: false. One open draft carries both amendments. It touches no front-matter line, so it does not conflict: verified.
  • The decision summary (one package with two layers, one-way dependencies, opt-in capabilities, one API shape, commands, release train, evidence targets): verified against FR1–FR15 and DEC-1 to DEC-10, except the navigation bullet, which is false because it leaves out the transitional entry's optional peers.
  • No requirement, decision or open question changes, and no other record is edited: verified.
  • Writing rubric results R1–R7: verified. The knowledge check flags nothing in this record.
  • Knowledge check aligned, Prettier clean, whitespace check clean: verified by running them on this head.
  • File docs/specs/AST-112-react-native-foundation/spec.md: one non-blocking finding (the approver lines are filled in ahead of the approval). No contradiction with the other current native, release or CLI records.

Automated review (maintainer link)

Comment on lines +9 to +10
approved_by: cixzhang
approved_at: 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.

Non-blocking: these lines record an approval that this pull request does not have yet. Whichever engineering owner approves with /approve-spec, set approved_by and approved_at to that login and date, so the record names who decided. Changing these two lines does not reset the approval.

@imdreamrunner

Copy link
Copy Markdown
Contributor Author

Closing: the switch of this record to current happens in the open amendment once that is approved, so one record carries every change.

@github-actions
github-actions Bot deleted the spec/ast-112-promote-current branch November 18, 2026 06:05

This branch was successfully deployed

1 active deployment
Preview — f9862bca 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. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant