Repository navigation
spec(AST-112): runtime boundaries - #12998
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
…ements call through (DEC-22); OQ9 is the URL cache
There was a problem hiding this comment.
On hold for an engineering owner's decision. Both records this pull request edits are draft, and this head writes requirements that no current record states, so approval needs an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner. What must be settled: DEC-10's rule that the package's own code does not depend on Intl, the Platform support warning on an unsupported platform, DEC-21 (the MetricKit subscriber is opt-in), DEC-22 (a method replacement calls through, installs once and keeps other libraries' replacements working), and AST-140 FR9's exception for such a replacement. Two fixes are needed whatever that decision is:
spec:AST-112DEC-22 and its FR4 line bind only "a method of a class it does not own, from UIKit or React Native", whilespec:AST-140FR9's new exception covers the methods of every system class, so a replacement on a system class outside UIKit is admitted by FR9's verification row and defined by neither record — use one class scope in the FR4 line, DEC-22 and FR9.Platform gap:(docs/specs/AST-112-react-native-foundation/spec.md:703) andDEC-10 gap:(:705) are not in the<FR or INV id> gap: <observable mismatch>form thatarchitecture:knowledge-contractsINV32 allows, and the newIntlrule exists only in DEC-10's prose while DEC-10's other rules are FR5 lines — give both rules an FR home (FR5 forIntl, FR11 for the unsupported platform) and write each gap against it.
Two smaller points: the FR4 gap paragraph sits between FR4's bullets, so FR4's last two bullets read as a separate list after it; and the DEC-10 verification row fails "initials that are wrong" for a name with combining marks and an emoji without saying what the right initials are, although a code-point fallback splits such names.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Edits land in
spec:AST-112DEC-10, Platform support, FR3, FR4, the verification table and the open questions, plus onespec:AST-140FR9 clause and its row: verified against the diff. - No requirement or decision is removed and no other record changes: verified; the diff adds lines and rewords one FR9 clause only.
- No other open pull request edits these parts of
spec:AST-112: verified; the other open pull request on this record edits its Intent, Current-state impact, DEC-3 and OQ8, and the two heads merge cleanly. - Writing rubric R5 (no pull request or issue references in the record) and R6 (OQ9 is new, unanswered and keeps its options): verified in the record text.
- Writing rubric R7 (the package's differences are stated as gap lines): partly false — two of the four gap lines are not in the allowed gap form.
node scripts/check-knowledge.mjspasses: verified by running it on this head; it reports records aligned and warns about no line of either record.- Prettier
--checkclean on the records, andgit diff --checkclean: both verified on this head. - The pull request contains specification records only, with no changeset: verified; two files, both records.
- The statements about the package's current behavior (the MetricKit subscriber, the two replacements that do not call through,
Intl.NumberFormatwithout a fallback, the global plural-rules polyfill, the missing platform warning, the shared URL cache): unverified —@astryxdesign/react-nativeis not in this repository, so no code backs or contradicts them here. - Files:
docs/specs/AST-112-react-native-foundation/spec.md(findings above),docs/specs/AST-140-react-native-platform-code/spec.md(first finding above).
…warning in FR11; one class scope for method replacements
…-22); OQ9 answered; AST-140 untouched
There was a problem hiding this comment.
On hold for an engineering owner's decision, with one fix needed.
spec:AST-112 is a draft record, and this head adds requirements that no current record states, so approval needs an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. What must be settled: FR5 and DEC-10's rule that components work without Intl, FR11's warning on an unsupported platform, FR3 and DEC-21's MetricKit opt-in, and FR4 and DEC-22's rule that the core replaces no UIKit or React Native method, including what FR4's sign-in claim and clear on sign-out are.
Blocking, whatever that decision is:
- The DEC-10 verification row (
spec.md:857) requires initials withoutIntlto be the first code point of each word, which splits the accented letters and emoji sequences thatcomponent:AvatarFR3 keeps whole ("grapheme clusters are never split"), so the row should expectcomponent:AvatarFR3's initials instead.
The inline comments carry five smaller notes: name DEC-21's opt-in, cite spec:AST-140 FR9 in DEC-22, define the sign-in call and clear on sign-out, drop "that code leaves the core", and key the warning and cache rows to FR11 and FR4.
Claims and files checked
Review mode: full; reason: spec-record
- Claims:
- The DEC-10 amendment and a new FR5 line make every component work without
Intl, with a simpler-form fallback and no global polyfill: verified (spec.md:307-309,:972-977). - A new FR11 line, pointed to from Platform support, adds one development warning on an unsupported platform: verified (
:429-432,:734-735). - DEC-21 with an FR3 line makes the core's MetricKit subscriber opt-in: verified (
:170-173,:1081-1089). - DEC-22 with FR4 lines says the core replaces no UIKit or React Native method and fixes what it owns in its own hosts: verified (
:232-247,:1091-1100). - Gap lines for FR11, FR5, FR3 and five for FR4: verified (
:178,:261-273,:340-342,:434). - Verification rows for DEC-10, the platform warning, DEC-21, DEC-22 and the cache scope: verified (
:857-861). - DEC-22 agrees with the platform-code record's FR9, which this pull request does not edit: verified; that record is untouched, and its FR9 scope is wider.
- No requirement or decision is removed and no other record changes: verified (one file; the two removed lines are rewritten with their text kept).
- The rubric's project-status result reports none: false in part, because the FR4 gap at
:268ends "that code leaves the core". - Knowledge validation, Prettier and whitespace checks pass: not rerun.
- The DEC-10 amendment and a new FR5 line make every component work without
- Files:
docs/specs/AST-112-react-native-foundation/spec.md: one blocking finding (the DEC-10 row) and five non-blocking notes.
| - The generated app shell and the Expo package's configuration plugin | ||
| write the explicit call that hands an opened URL to the sign-in claim; | ||
| an app with its own native projects makes that call itself. No | ||
| interceptor stands in for it. | ||
| - The HTTP cache guarantees of clear on sign-out, under which nothing in | ||
| flight lands after a clear, cover React Native's networking session, | ||
| through React Native's public session-configuration hook, and Astryx's | ||
| own sessions. The app's shared URL cache stays the app's own. An app | ||
| that sets its own session-configuration provider opts in to these | ||
| guarantees explicitly. |
There was a problem hiding this comment.
Non-blocking: no record, on main or in this pull request, defines "the sign-in claim", "the explicit call that hands an opened URL" to it, or "clear on sign-out" and its "HTTP cache guarantees". So astryx rn shell, the Expo plugin and the FR4 row at :861 have nothing to build or check against. Cite the record that owns them, or state the call (and whether it is part of the core's app-lifecycle entry, :211-223) and what the clear removes.
| - On iOS the core adds no MetricKit subscriber unless the app opts in to it | ||
| through its capability list, as it opts in a capability: an app that did | ||
| not opt in has no Astryx subscriber, and an app that did has exactly one | ||
| (DEC-21). |
There was a problem hiding this comment.
Non-blocking: the capability list holds capabilities (FR5's entries, FR7's table), and the generators write opt-ins from it (FR4), but no entry is named for the MetricKit subscriber. Neither an app nor astryx rn shell can write this opt-in, and the DEC-21 row cannot build its "with the opt-in" app. Name the entry, and say whether it is a capability.
| FR4 gap: the core replaces UIKit's view-controller presentation method for a | ||
| hosted-project container; that code leaves the core. |
There was a problem hiding this comment.
Non-blocking: "that code leaves the core" states work to come, and architecture:knowledge-contracts INV32 allows a gap only as an observable mismatch. Drop the clause, or write it as an FR4 requirement if hosted-project containers belong outside the core.
There was a problem hiding this comment.
On hold for an engineering owner's decision, with one fix needed.
spec:AST-112 is a draft record, and this head adds requirements that no current record states, so approval needs an engineering owner to record the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. What must be settled: FR5 and DEC-10's rule that components work without Intl (including whether FR5's simpler form covers Avatar initials, which the DEC-10 row requires to match component:Avatar FR3), FR11's warning on an unsupported platform, FR3 and DEC-21's MetricKit opt-in, and FR4 and DEC-22's rule that the core replaces no UIKit or React Native method.
Blocking, whatever that decision is:
- The description says "The two gap lines state where the current package differs", but the record adds nine gap lines across FR3, FR4, FR5 and FR11, so that sentence should say nine.
The earlier blocking DEC-10 row is fixed; the open inline notes still ask to define FR4's sign-in call and clear on sign-out, name DEC-21's opt-in and drop "that code leaves the core", and two new ones cover where the Avatar gap belongs and the duplicate FR11 and FR4 verification rows.
Claims and files checked
Review mode: full; reason: spec-record
- Claims:
- Components work without
Intl, with a simpler-form fallback and no global polyfill (FR5 line, DEC-10): verified (spec.md:307-309,:975-980). - One development warning on an unsupported platform (FR11 line, Platform support): verified (
:432-435,:737-738). - The core's MetricKit subscriber only on opt-in (FR3 line, DEC-21): verified (
:170-173,:1084-1092). - No UIKit or React Native method replacement, with each fix inside the core's own hosts (FR4 lines, DEC-22): verified (
:232-247,:1094-1103). - Gap lines for FR11, FR5 (two), FR3 and five for FR4: verified (
:178,:261-273,:340-345,:437). - Verification rows for DEC-10 (initials match the Avatar contract), FR11, DEC-21, DEC-22 and the cache scope: verified (
:860-864). - DEC-22 agrees with the platform-code record's FR9, which this pull request does not edit: verified (one changed file; FR9 cited at
:233and:1100). - No other open pull request edits these parts of the record: verified (the one other open pull request that edits it changes other sections and merges cleanly with this head).
- What today's package does, as the gap lines state it: not verifiable here (the package source is not in this repository).
- No requirement or decision is removed and no other record changes: verified.
- The two gap lines state where the current package differs: false (nine).
- Rubric results R1 to R6: verified; R7 (no project status): false in part (
:267-268). - Knowledge validation, Prettier and whitespace checks pass: verified at this head.
- Public text has no internal context: verified.
- Components work without
- Files:
docs/specs/AST-112-react-native-foundation/spec.md: on hold for the owner decision; five non-blocking notes.
| FR5 gap: without `Intl.Segmenter`, Avatar's initials fall back to code | ||
| points, which splits a grapheme cluster. |
There was a problem hiding this comment.
Non-blocking: this is a shortfall against component:Avatar FR3, and FR16 puts a component's shortfall "in that component's own record" (:623-624). FR5's new line also lets output that needs Intl "fall back to a simpler form" (:307-309), which reads as allowing these code-point initials, while the DEC-10 row at :860 fails them. Have FR5's line say the simpler form still meets each component's own record, and move this gap where FR16 puts it.
| | FR22 | Review of each native module's interface; the conformance tests on the engines React Native supports | each native module; each engine | A contract or test that depends on one engine, or an interface that names one engine's internals | | ||
| | FR23 | Review of where `NavigationStack`, `Screen`, `useScreenScrollProps()`, and the stack navigator are exported; the CI lane of a pull request that changes the lab folder | each of the four names; a pull request that changes only `packages/react-native/lab/`; web's `NavigationStack` leaving Lab | One of the four names in a stable entry while web's `NavigationStack` is in Lab, one outside `./unstable/*` while in the lab, or a lab pull request on the Lab-only lane | | ||
| | DEC-10 | A source check that every `Intl` read has a fallback; Avatar initials rendered under a runtime without `Intl` | each `Intl` read in the package's own code; a name with combining marks and an emoji; a number and a plural formatted without `Intl` | An `Intl` read without a fallback, a component that does not render or work without `Intl`, initials without `Intl` that differ from `component:Avatar` FR3's, or a global `Intl` polyfill | | ||
| | FR11 | A development-warning test under an unsupported `Platform.OS` | `Platform.OS` set to `macos` and to `windows` | No warning, more than one warning, a warning that does not name the platform, or an icon or chart that draws empty without a warning | |
There was a problem hiding this comment.
Non-blocking: FR11 already has a row at :848, and the cache row at :864 repeats FR4's row at :841. Fold this warning check into FR11's row and the cache check into FR4's, so each contract has one row.
|
/approve-spec 370b88b |
1 similar comment
|
/approve-spec 370b88b |
Branch protection rule check failed
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head yet.
An engineering owner approved this exact head with /approve-spec, so the new Intl, unsupported-platform, MetricKit and no-method-replacement requirements in spec:AST-112 are decided, and no blocking issue remains. Five non-blocking notes stay open as inline threads: FR4's undefined sign-in claim and clear on sign-out, DEC-21's unnamed opt-in, where the Avatar gap belongs, the duplicate FR11 and FR4 verification rows, and the status clause in one FR4 gap. Fixing any of them means a new commit and a fresh /approve-spec, so a follow-up pull request works just as well.
Claims and files checked
Review mode: same-head; reason: none
- Claims:
- Components work without
Intl, with a simpler-form fallback and no global polyfill (FR5 line, DEC-10): verified (spec.md:307-309,:975-980). - One development warning at startup on an unsupported platform, pointed to from Platform support (FR11): verified (
:432-435,:737-738). - The core's MetricKit subscriber only on opt-in (FR3 line, DEC-21): verified (
:170-173,:1084-1092). - No UIKit or React Native method replacement, with each fix inside the core's own hosts, the explicit sign-in URL call and the clear-on-sign-out scope (FR4 lines, DEC-22): verified (
:232-247,:1094-1103). - DEC-21 and DEC-22 name the author as decider: verified (
:1087,:1097). - Verification rows for DEC-10 (initials match the Avatar contract), FR11, DEC-21, DEC-22 and the cache scope: verified (
:860-864). - Nine gap lines, for FR3, FR5 (two), FR11 and FR4 (five): verified (
:178,:261-273,:340-345,:437). - DEC-10 already points to the platform-code record's FR1 and FR7: verified (
:981-982). - DEC-22 agrees with the platform-code record's FR9, which this pull request does not edit: verified (one changed file; FR9 cited at
:233and:1100). - The other follow-up pull request on this record edits separate sections: verified (it has since merged, and this head merges cleanly with the updated main branch).
- What today's package does, as the gap lines state it: not verifiable here (the package source is not in this repository).
- No requirement or decision is removed and no other record changes: verified (both deleted lines are extended, not removed).
- No rejected alternatives are recorded: verified.
- Rubric results R1 to R6: verified; R7 (differences stated as gap lines): verified, with one status clause at
:268left as a non-blocking note. - Knowledge validation, Prettier and whitespace checks pass: verified at this head.
- The pull request holds specification records only, and public text has no internal context: verified.
- Components work without
- Files:
docs/specs/AST-112-react-native-foundation/spec.md: no blocking finding; five non-blocking notes.
Runtime-boundary follow-ups to the draft
spec:AST-112record:Intl, unsupported platforms, an opt-in for the core's MetricKit subscriber, and no runtime method replacement in the core.Exact decision needed
Whether these edits to the draft React Native foundation record stand:
Intl; there, output that needs it (locale-aware number and plural formatting, for example) falls back to a simpler form. A component may use the platform's formatter through its native module where one exists, and none needs one to render. NoIntlpolyfill is installed as a global.Modalpath; the generated app shell and the Expo plugin write the explicit sign-in URL claim call, with no interceptor; and clear on sign-out covers React Native's networking session, through React Native's public session-configuration hook, and Astryx's own sessions, while the app's shared URL cache stays the app's own (an app with its own session-configuration provider opts in explicitly).Existing authority searched
spec:AST-112onmain: DEC-10 (importing the package changes no globals), Platform support, Open questions, and the Verification table.spec:AST-140FR1 and FR7 (how native code reaches JavaScript; the testing surface's setup), which DEC-10 already points to.spec:AST-140FR9 onmain(the methods of system and React Native classes stay as they are), which DEC-22 agrees with; this pull request does not editspec:AST-140.Modalhost, on UIKit's view-controller presentation, and, for the opt-in URL interceptor, on the delegate setters and URL-opening methods; number formatting buildsIntl.NumberFormatwithout a fallback, a plural-rules polyfill installs a globalIntl.PluralRuleswhere the runtime has none, Avatar initials fall back to code points withoutIntl.Segmenter, and no unsupported-platform warning exists.Intl,Hermes,react-native-macos,Platform.OS,URLCache,MetricKit,swizzl. spec(AST-112): follow-ups after merge #12974 (spec:AST-112follow-ups, open draft) edits the same record in separate sections (the non-goals, FR2's row, FR20, FR21, DEC-3, OQ8 and two Current-state impact entries); neither pull request edits text the other changes.Decision
docs/specs/AST-112-react-native-foundation/spec.md(spec:AST-112):Intl, with a simpler form for output that needs it; the platform's formatter may be used where one exists; no globalIntlpolyfill.Intl.NumberFormatwithout a fallback, and the package installs a globalIntl.PluralRuleson a runtime without one, and Avatar's initials fall back to code points withoutIntl.Segmenter(FR5); the core subscribes to MetricKit in every app that links it (FR3); and five FR4 gaps: the scroll-view method exchange; theModal-host replacement and the React NativeModalfallback on iOS; the view-controller presentation replacement for a hosted-project container, code that leaves the core; the opt-in URL interceptor; and the shared URL cache replacement.DEC-21verification row: no Astryx subscriber in an app that did not opt in, exactly one in an app that did.DEC-22verification row (a source check that the core carries no method exchange, set-implementation, or replace-method call on a UIKit or React Native class) and anFR4row for the cache scope (the app's shared URL cache stays the app's own; nothing in flight lands after a clear).DEC-10row (a source check that everyIntlread has a fallback; a number and a plural formatted withoutIntl; Avatar initials withoutIntlmatchcomponent:AvatarFR3's) and anFR11row (a development-warning test under an unsupportedPlatform.OS).Rejected alternatives
None recorded in the record.
Claim scope and non-goals
Only the follow-ups above, all in
spec:AST-112. No requirement or decision is removed, and no other record changes.Evidence and implementation relationship
The record is a specification only and has no implementation in this pull request. The nine gap lines (FR3, FR5 twice, FR11, and five under FR4) state where the current package differs.
Writing rubric results
Rejected:lines.Scope
Validation
node scripts/check-knowledge.mjs: knowledge templates and records are aligned (exit 0).--checkclean on the record.git diff --check: clean.