Repository navigation
chore(knowledge): accept react-native platform component records - #12592
Draft
imdreamrunner wants to merge 1 commit into
Draft
imdreamrunner wants to merge 1 commit into
imdreamrunner wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
Contributor
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision; no defects found.
- The Owning code sentence in
docs/architecture/knowledge-contracts.mdnow limits<language>toswiftorreact-native, where the current record leaves it open, so an engineering owner (the author qualifies) approves that spec change by commenting/approve-spec <full head SHA>on this pull request.
Each new test case fails on the base and passes on this head, and check:knowledge passes; CI has not run on this draft head.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim, the tooling accepted only
swiftas a platform record qualifier: verified (.github/scripts/knowledge-paths.cjs:32on the base). - Claim, a React Native record was reported as a stray file, was not gated as a record, and was not indexed: verified by the new tests run against the base code (the base already gated the path as Markdown under
docs/specs/). - Claim, the platform list gains
react-nativewith no source root, and code lookup iterates only languages that have one: verified (knowledge-paths.cjs:32,:39-41,:207). - Claim, the repository has no React Native component code: verified (no such package at this head).
- Claim, a React Native record is validated, gated and indexed by its path, with no code path under it: verified (the four new test cases).
- Claim, the record change is one sentence and nothing else in the record changes: verified (record diff).
- Claim, one test case per consumer of the list: verified.
- Claim, no package source changes and no product behavior is added: verified.
- Claim, with the list reverted the four new cases fail: verified (each fails on the base code, and every other case passes).
- Claim, 364 cases in the four test files pass and
check:knowledgepasses: verified. - Claim, the Swift platform record tests pass unchanged: verified.
- Claim, 125 spec-owner cases pass: verified.
- Claim, the changed files pass Prettier: verified.
- Claim, no workflow or job changes: verified.
- Claim, placement,
platform_of,verified_by, schema checks, the owner gate and Swift routing stay as they were: verified (no other tooling change; existing suites pass). - Claim, no public API, behavior or visual change: verified; the record sentence is a spec change, covered by the decision above.
- File
.github/scripts/knowledge-paths.cjs: clear. - File
.github/scripts/knowledge-paths.test.mjs: clear. - File
.github/scripts/change-scope.test.mjs: clear. - File
scripts/check-knowledge.test.mjs: clear. - File
scripts/specs-for-file.test.mjs: clear. - File
docs/architecture/knowledge-contracts.md: waits on the spec decision above.
This was referenced Nov 18, 2026
Contributor
Author
|
/approve-spec 9dd9add |
This was referenced Nov 18, 2026
8 tasks done
This was referenced Nov 19, 2026
This was referenced Nov 19, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintainer impact
A React Native implementation of a component needs its own record beside the core record, the way a Swift implementation has one (
docs/specs/components/Button/Button.swift.spec.md). Today the knowledge tooling accepts onlyswiftas a platform record language. A file such asdocs/specs/components/NavigationStack/NavigationStack.react-native.spec.mdis reported bypnpm check:knowledgeas a stray file underdocs/specs/components/, it is not owner-gated as a record, andpnpm specs:fordoes not index it. An author of the React Native component records cannot open one.Intended invariant
architecture:knowledge-contractsDEC-13 and DEC-15: a platform implementation's record sits beside the core record as<PublicName>.<language>.spec.md, has the idcomponent:<language>/<PublicName>, names its core component inplatform_of, and states only what that platform adds or does differently. Every existing rule for platform records stays the same: placement,platform_of,verified_bypaths, the shared schema checks, the spec-owner gate, and Swift code routing.Change
.github/scripts/knowledge-paths.cjs:PLATFORM_SPEC_LANGUAGESgainsreact-native.react-nativegets no entry inPLATFORM_SOURCE_ROOTS, because this repository has no React Native component code. Code lookup iterates only the languages that have a source root, so a React Native record is validated, owner-gated and indexed by its path, and no code path is placed under it.docs/architecture/knowledge-contracts.md: the "Owning code" sentence on platform records names the two languages,swiftandreact-native. No other text in that record changes.check:knowledgeid andplatform_ofvalidation,specs:forlookup).This is maintenance: it widens one list the tools share and adds no product behavior.
Evidence
PLATFORM_SPEC_LANGUAGESset back to['swift'], the four new cases fail (classification returns null, change scope does not see a record,check:knowledgereports the file as a stray,specs:fordoes not index it).pnpm check:knowledgepasses on the branch.knowledge-paths.cjsis read by existing jobs only.Scope
Components: none
Writing rubric results
The record change is one sentence in
docs/architecture/knowledge-contracts.md.R1 narration: none; the sentence states where a platform record sits and which languages it takes.
R2 research: none.
R3 evidence: none changed.
R4 rejected alternatives: none.
R5 change references: none.
R6 open questions: none.
R7 project status: none in the record.
Testing
The same four test files with
react-nativeremoved fromPLATFORM_SPEC_LANGUAGES: 4 failed, the new cases.