Repository navigation
docs(spec): contracts leave @astryxdesign/native, which is deprecated; a new prop has a high bar - #12707
docs(spec): contracts leave @astryxdesign/native, which is deprecated; a new prop has a high bar#12707cixzhang wants to merge 6 commits into
Conversation
…acts package; props live there and a new prop is a high bar
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision, and three record fixes are needed.
This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment and DEC-17), and this head has no spec-owner approval yet. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.
- The FR3 bullet and the DEC-7 amendment make a private, never-published package, its
packages/contractspath and a CI drift check product requirements (spec.md:110-112,:595-596), whicharchitecture:knowledge-contractsINV18 keeps out of product specs, so state the observable outcome in FR3 and move the mechanism to an architecture record. - Canary users of
@astryxdesign/native(defineNativeTheme, the platform contract types, the wire) are told the package is deprecated (spec.md:598), which needs an explicit owner decision for@astryxdesign/nativecited in the description, not only a Decider line. Found by: deprecation rule - The deprecation contradicts FR5, FR6, FR9, FR10, FR15, FR16 and FR19, which still place the native contracts, bindings,
defineNativeThemeand the wire in@astryxdesign/native, so limit it to the contracts role or amend those clauses and name each surface's new home.
Also worth a look: DEC-17 should carry the default-first sentence that the FR3 bullet credits to it.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: records only, no code moves. Verified: one Markdown record changes.
- Claim: no workspace package uses the contracts package name. Verified: neither the name nor
packages/contractsexists onmain. - Claim: the package name is free on npm. Not verified: the registry could not be reached.
- Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only AST-082 FR4 there. Verified.
- Claim: the React Native record pull request is a community pull request. Unclear: its author is listed as an engineering owner.
- Claim: the amendment follows the dated "Amended" form another current record uses. Verified.
- Claim: FR5 has Core still expose the core contracts. Verified.
- Claim: the record states observable behavior and keeps equivalent implementations free. False: FR3 names a private package and its path.
- Claim: any named internal mechanism is intentionally public. False: the contracts package is never published.
- Claim: each new rejected alternative is one sentence inside its decision, and the record adds no pull request references or status words. Verified.
- Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
- Claims that no published package depends on the contracts package and web pages gain 0 bytes: recorded intent, with no code to check.
- File
docs/specs/AST-082-native-first-surfaces/spec.md: the three blocking findings above and the DEC-17 note.
…eps its other roles; DEC-17 carries the default-first rule
…e for the roles still assigned to it
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision, and three fixes are needed.
This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment with its @astryxdesign/native deprecation, and DEC-17), and this head has no spec-owner approval. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.
- The DEC-7 amendment names a private, never-published package, its
packages/contractspath, committed Swift and Kotlin and a CI drift check (spec.md:594-598), whicharchitecture:knowledge-contractsDEC-7 and INV18 keep out of product specs, so keep the observable outcomes in DEC-7 and DEC-17 and move the mechanism to an architecture record. - Canary users of
@astryxdesign/native(defineNativeTheme, the platform contract types, the wire) are told the package is deprecated with no successor (spec.md:600), which needs an explicit owner decision for@astryxdesign/nativecited in the description, not only a Decider line. Found by: deprecation rule - The description's R7 result quotes DEC-7 as saying the package "is deprecated when the contracts leave it" and reports no project status, but this head says "
@astryxdesign/nativeis deprecated." and adds a DEC-7 gap line that carries work order, so update that result.
Also worth a look: the DEC-7 gap line (spec.md:439-441) reads as work order rather than an <FR or INV id> gap: <observable mismatch> line, and "at run time" at spec.md:603 is narrower than FR14.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
- Claim: Core's and React Native's published types build the contracts in, web pages gain 0 bytes, and no published package depends on the contracts package. Recorded intent, with no code to check.
- Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
- Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's FR4, and the prop-admission decision) says what the description says. Verified.
- Claim: no workspace package uses the contracts package name. Verified.
- Claim: the name is free on npm. Not verified: the registry could not be reached.
- Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified.
- Claim: the React Native record pull request is a community pull request. Unclear: its author is listed as an engineering owner.
- Claim: the FR3 bullet states the outcome, so the package and its path may sit in DEC-7. False: the knowledge-contracts rule keeps internal mechanisms out of the whole product spec, not only its requirements.
- Claim: the FR3 and DEC-7 gap lines state where the contracts live and which clauses still name the native package. Verified against the main branch.
- Claim: each new rejected alternative is one sentence inside its decision, and R1 to R6 find nothing. Verified.
- Claim: R7 finds no project status, quoting DEC-7's deprecation sentence. False: the quoted text is gone and the DEC-7 gap line carries work order.
- Claim: the record states observable behavior, and any named internal mechanism is intentionally public. False: DEC-7 names a private package, its path and a CI drift check.
- Claim: public text contains no internal context. Verified.
- Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
- File
docs/specs/AST-082-native-first-surfaces/spec.md: the three blocking findings above and three non-blocking notes.
…states the mismatch; FR14 bounds Core
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision, and two fixes are needed.
This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment with its @astryxdesign/native deprecation, and DEC-17), and this head has no spec-owner approval. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.
- DEC-17's title still says props "live in the contracts package" (
spec.md:732), but the record no longer defines such a package and the only one it names is@astryxdesign/native, which the DEC-7 amendment says no longer holds the contracts, so retitle it, for example "Every public prop has one definition, and a new prop is a high bar". - The pull request title and description still say the contracts live in a private, unpublished package and that "the package and its path are in DEC-7", but DEC-7 at this head names no package or path and only rejects publishing the contracts as their own package, so update both to match the record.
The DEC-7 and DEC-17 bodies now state outcomes only, the deprecation cites the owner's dated decision, and the R7 result matches the record. Also worth a look: the DEC-7 gap line (spec.md:439-441) does not take the <FR or INV id> gap: <observable mismatch> form, and the Intent and DEC-8 still build on the deprecated package.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
- Claim: Core's and React Native's published types build the contracts in, web pages gain 0 bytes, and no published package depends on where they live. Recorded intent in the amended decision, with no code to check.
- Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
- Claim: the owner's dated decision deprecates the native canary package. Verified: the description quotes it with its time, and the amendment's decider and time match.
- Claim: the package and its build mechanism are recorded by an architecture record that another change adds. Not checkable: no such record exists on the main branch.
- Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's FR4, OQ2 and current-state line, and the prop-admission decision) says what the description says. Verified.
- Claim: no workspace package uses the new package name. Verified. Claim: the name is free on npm. Not verified: the registry could not be reached.
- Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified; the ref-props pull request also edits the public component API record.
- Claim: the React Native record pull request is a community pull request. Unclear: its author is an engineering owner and that record's owner.
- Claim: the amended DEC-7 takes the contracts out of the native package, deprecates it, sends its remaining roles to successors that later changes name, and restates that Core never depends on it. Verified.
- Claim: the FR3 bullet states the outcome, and the package and its path are in DEC-7. False: DEC-7 names no package or path at this head.
- Claim: the title says the contracts live in a private, unpublished package. False at this head: the record names no package; it only rejects publishing the contracts as their own package.
- Claim: the FR3 and DEC-7 gap lines say where the contracts live and which clauses still assign roles to the native package. Verified against the main branch.
- Claim: each new rejected alternative is one sentence inside its decision, and R1 to R6 find nothing. Verified.
- Claim: R7 finds no project status. Verified: the gap lines carry no status words, and the knowledge check raises no warning for this record.
- Claim: the record states observable behavior, and any named internal mechanism is intentionally public. Partly false: DEC-17's title still names a contracts package.
- Claim: public text contains no internal context. Verified.
- Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
- File
docs/specs/AST-082-native-first-surfaces/spec.md: the two blocking findings above and two non-blocking notes.
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision, and two fixes are needed.
This pull request changes current direction in spec:AST-082 (the new FR3 bullet, the DEC-7 amendment with its @astryxdesign/native deprecation, and DEC-17), and this head has no spec-owner approval. An engineering owner records that decision by commenting /approve-spec with the full head SHA; the author may do so as an engineering owner.
- The pull request title and description still say the contracts live in a private, unpublished package and that "the package and its path are in DEC-7", but DEC-7 at this head names no package or path and only rejects publishing the contracts as their own package, so update both to match the record.
- Miss: the DEC-7 amendment lists the deprecated package's remaining roles as the bindings,
defineNativeThemeand the wire (spec.md:598-600), but DEC-7's own body also gives it the native implementations, which currentspec:AST-093FR1 and FR6 place inpackages/native/apple/andpackages/native/, so add that role to the amendment and the DEC-7 gap line, or limit the deprecation to the contracts role.
Also worth a look: the DEC-7 gap line (spec.md:439-441) does not take the <FR or INV id> gap: <observable mismatch> form, the Intent and DEC-8 still build on the deprecated package, and the FR3 gap line names React Native's published types although no React Native package exists yet.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
- Claim: Core's and React Native's published types build the contracts in, web pages gain 0 bytes, and no published package depends on where they live. Recorded intent in the amended decision and the new requirement, with no code to check.
- Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
- Claim: the owner's dated decision deprecates the native canary package. Verified: the description quotes it with its time, and the amendment's decider and time match.
- Claim: the package and its build mechanism are recorded by an architecture record that another change adds. Not checkable: no such record exists on the main branch.
- Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's FR4, OQ2 and current-state line, and the prop-admission decision) says what the description says. Verified.
- Claim: no workspace package uses the new package name. Verified. Claim: the name is free on npm. Not verified: the registry could not be reached.
- Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified; the ref-props pull request also edits the public component API record.
- Claim: the React Native record pull request is a community pull request. Unclear: its author is an engineering owner.
- Claim: the amended DEC-7 takes the contracts out of the native package, deprecates it, sends its remaining roles to successors that later changes name, and restates that Core never depends on it. Verified, but the remaining roles leave out the native implementations (second fix above).
- Claim: the FR3 bullet states the outcome, and the package and its path are in DEC-7. False: DEC-7 names no package or path at this head.
- Claim: the title says the contracts live in a private, unpublished package. Not in the record at this head: it names no package and only rejects publishing the contracts as their own package.
- Claim: the FR3 and DEC-7 gap lines say where the contracts live and which clauses still assign roles to the native package. Verified against the main branch.
- Claim: each new rejected alternative is one sentence inside its decision, and the narration, research, evidence, length, reference and open-question rubric items find nothing. Verified.
- Claim: the project-status rubric item finds nothing. Verified: the gap lines carry no status words, and the knowledge check raises no warning for this record.
- Claim: the record states observable behavior, and any named internal mechanism is intentionally public. Verified at this head: DEC-17's title no longer names a package.
- Claim: public text contains no internal context. Verified.
- Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
- File
docs/specs/AST-082-native-first-surfaces/spec.md: the two fixes above and three non-blocking notes.
…ST-093 places there; the FR3 gap names only Core
There was a problem hiding this comment.
Approval waits on an engineering owner's spec decision; nothing else needs fixing, and the title and description now match the record.
This pull request changes current direction in spec:AST-082: the new FR3 bullet (one definition per public prop, and a high bar for a new prop that a better default meets first), the DEC-7 amendment that takes the contracts out of @astryxdesign/native and deprecates that whole package, and DEC-17. An engineering owner records that decision by commenting /approve-spec with the full head SHA, and the author may do so as an engineering owner.
Also worth a look, none blocking: "which every surface's contract builds in" (lines 110-111 and 596-597) can read as if every contract carries every prop, where DEC-17's "every contract that carries it" is exact; the DEC-7 gap line is keyed to a decision rather than an FR; and the Intent and DEC-8 still describe @astryxdesign/native as the native home.
Claims and files checked
Review mode: same-head; reason: none
- Changed rules (0): none; the review rules are unchanged since the last review.
- Claim: records only; no code moves, and people building with Astryx install nothing new. Verified: one Markdown record changes.
- Claim: the contracts leave the native package, which is deprecated. Verified in the DEC-7 amendment.
- Claim: each public prop has one definition built into every surface's contract, nothing extra is installed, web pages gain 0 bytes, and no published package depends on where the definitions live. Verified as recorded intent in the FR3 bullet and the DEC-7 amendment; no code to check.
- Claim: a new prop has a high bar, and a better default comes first. Verified in the FR3 bullet and DEC-17.
- Claim: no decision is needed because the owner decided both points. Not established: this head has no spec-owner approval.
- Claim: the existing authority listed (this record's FR3, FR5, FR6, FR16 and DEC-7, the React Native record's package bullet, open question and current-state line, and the prop-admission decision) says what the description says. Verified on the main branch.
- Claim: the proposed package name is free on npm, and no workspace package uses it. Verified: the registry answers not found, and no package manifest names it.
- Claim: this record names no package or path for the definitions. Verified.
- Claim: the React Native record pull request edits only that record, and the ref-props pull request edits only FR4 of this record. Verified; the ref-props pull request also edits the public component API record.
- Claim: the React Native record pull request is a community pull request. Unclear: its author is an engineering owner.
- Claim: the amended DEC-7 takes the contracts out of the native package, deprecates it, moves its remaining roles and native implementations to successors that later changes name, and restates that Core never depends on it. Verified.
- Claim: the owner's dated decision deprecates the native canary package. Verified: the description quotes it with its time, and the amendment's decider and time match.
- Claim: an architecture record from a later change records the package and its build mechanism. Not checkable: no such record exists on the main branch.
- Claim: the FR3 and DEC-7 gap lines say where the contracts live and which clauses still assign roles to the native package. Verified against the main branch.
- Claim: the successors are not decided here, and the records that still name the native package are left for their own changes. Verified.
- Claim: each new rejected alternative is one sentence inside its decision, the amendment uses the dated form of other amended decisions, and the writing-rubric items find nothing. Verified; the knowledge check raises no status warning for this record.
- Claim: the record states observable behavior, names no internal mechanism, and public text contains no internal context. Verified.
- Claim: knowledge validation, Prettier and the whitespace check pass. Verified.
- File
docs/specs/AST-082-native-first-surfaces/spec.md: three non-blocking notes and no blocking finding.
| - Every public prop has one definition, which every surface's contract builds | ||
| in; a consumer installs nothing extra for it, and `@astryxdesign/core` still |
There was a problem hiding this comment.
Non-blocking (missed in earlier reviews): "which every surface's contract builds in" can read as every surface's contract carrying every public prop, against FR3's platform-only props above (lines 90-96 and 103-105). DEC-17 says "every contract that carries it". Could this read "which every contract that carries the prop builds in"? The DEC-7 amendment (lines 596-597) uses the same phrase.
|
/approve-spec c79b7fe |
Records only. People building with Astryx install nothing new: the component contracts leave
@astryxdesign/native, which is deprecated. Each public prop has one definition that every surface's contract builds in, a consumer installs nothing extra, web pages gain 0 bytes, and no published package depends on where the definitions live. Adding a new prop has a high bar: when a better default behavior meets the need, the component changes its default instead.Exact decision needed
None: the owner decided both points (
spec:AST-082DEC-7's amendment, DEC-17). This pull request records them.Existing authority searched
spec:AST-082: FR3 (core and platform contracts), FR5 and FR6 (@astryxdesign/nativeexposes the native platform contracts and thesharedcore contracts), FR16 (Core never imports native), DEC-7 (native lives in its own package;@astryxdesign/nativeis the single cross-platform contracts package).spec:AST-112: FR4's package bullet ("@astryxdesign/nativeis the single cross-platform contracts package ofspec:AST-082(DEC-7)"), OQ2, and its Current-state line on DEC-7.spec:AST-002/DEC-1(a new prop's bar).@astryxdesign/contractsis not taken on npm (registry 404), and no workspace package underpackages/uses it. This record does not name the package (see Decision).contracts package,cross-platform contracts,@astryxdesign/native,packages/native.Overlap checked: #12563, #12699 (#12563 edits
spec:AST-112, whose FR4 bullet names@astryxdesign/nativeas the contracts package, and does not touchspec:AST-082; #12699 editsspec:AST-082FR4 only, for ref props)Decision
@astryxdesign/native. Every public prop has one definition, which every surface's contract builds in; a consumer installs nothing extra, web pages gain 0 bytes, and no published package depends on where it lives.@astryxdesign/nativeis deprecated; its remaining roles in FR5, FR6, FR9, FR10, FR15, FR16 and FR19, and the native implementations thatspec:AST-093FR1 and FR6 place in it, move to successors that their own changes name. Core never imports or depends on@astryxdesign/native(FR14).@astryxdesign/nativecanary is deprecated."architecture:contracts-package, which the rename change adds.@astryxdesign/corestill exposes the core contracts (FR5, DEC-7). The requirement states the outcome; the record names no package or path (architecture:knowledge-contractsINV18). A new prop is permanent in every contract that carries it, so it has a high bar: when a better default behavior meets the need, the component changes its default and adds no prop.packages/native, and Core's published types do not build them in.spec:AST-093FR1 and FR6, assign their roles and native implementations to@astryxdesign/native, which DEC-7 deprecates, and the canary still publishes.Rejected alternatives
Claim scope and non-goals
@astryxdesign/nativeis deprecated; the DEC-7 gap line names the seven clauses that still assign roles to it.@astryxdesign/nativeas the contracts package, left for their own changes:spec:AST-082FR5 and FR6 (which entries expose the native andsharedcontracts),spec:AST-112's FR4 bullet, OQ2 and Current-state DEC-7 line, andspec:AST-093FR1 and FR6 (Swift views underpackages/native/apple/). spec(AST-112): React Native commands are one astryx rn group; package shape (Expo wrapper, default linking, named features) #12563 is open onspec:AST-112and is a community pull request, so it isn't edited here.spec:AST-082FR4) is in docs(api): ref inputs end in Ref and match an existing role's name; API review raises every mismatch #12699, not here.Evidence and implementation relationship
None needed: this records the owner's decisions. The package does not exist yet; the FR3 gap line states that.
Writing rubric results
spec:AST-030uses for amended decisions.Rejected:and DEC-17's are one sentence each, inside their decisions.Scope
Components: none (record:
spec:AST-082)Validation
pnpm check:knowledge: templates and records aligned.git diff --check: clean.