Repository navigation
spec: AST-060 integration package init - #6963
josephfarina wants to merge 2 commits into
Conversation
|
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.
Thanks for capturing this — the first-run problem is real: the quick-start's five manual steps, especially the empty exports map, are easy to miss, and integration add can't help until they are done. Placing init inside the integration group and leaving manifest creation to add both fit the current design well.
Approval needs a maintainer decision first. No current spec yet authorizes integration init, its Core-only peer and install-by-default behavior, or creating exports (current CLI architecture says writers never create exports). A maintainer needs to either promote a corrected version of this spec as the governing authority — including how the exports rule is resolved — or confirm the subcommand should be admitted under the existing subcommand process without a new system spec. I've recorded that question for the maintainers; this isn't a request to remove or split the work for missing spec alone.
Before the spec can become that authority, please also address the contract gaps detailed in the review: state the defaults and overwrite rules for name/version/exports, define the peer value for --no-install and what happens if narrowing fails, define install failure and invalid-input behavior including what remains on disk, fully define the integration.init receipt fields, name the programmatic function and batching consideration, and bring the record into template form (platform support, decision log, present-tense wording). Happy to re-review once the direction is settled and those are tightened.
[Automated review]
6fd3c0b to
e1e29cf
Compare
e1e29cf to
6c99fd2
Compare
6c99fd2 to
7652c80
Compare
7652c80 to
0736e0d
Compare
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression44 of 448 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 24 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Thanks for capturing this — the first-run problem is real: the quick-start's five manual steps, especially the empty exports map, are easy to miss, and integration add can't help until they are done. Placing init inside the integration group and leaving manifest creation to add both fit the current design well.
Approval needs a maintainer decision first. No current spec yet authorizes integration init, its Core-only peer and install-by-default behavior, or creating exports (current CLI architecture says writers never create exports, because adding a map makes existing deep imports private). A maintainer needs to either promote a corrected version of this spec as the governing authority — including how the exports rule is resolved — or confirm the subcommand should be admitted under the existing subcommand process without a new system spec. I've recorded that question for the maintainers; this isn't a request to remove or split the work for missing spec alone.
Before the spec can become that authority, please also address the contract gaps detailed in the review: state the defaults and overwrite rules for name, version, and exports (including existing packages that already publish without a map), define the peer value for --no-install and what happens when narrowing or install fails, define install-failure and invalid-input behavior including what remains on disk, fully define the integration.init receipt fields, name the programmatic function and record the batching classification, and bring the record into template form (platform support, decision log, present-tense wording). Happy to re-review once the direction is settled and those are tightened.
[Automated review]
4db85c1 to
7fe551d
Compare
4fd7599 to
bfa824c
Compare
There was a problem hiding this comment.
Thanks for the update — the detection contract, narrowed peer guard, grounded Core-peer decision, and completed receipt/mode cases close the substantive items from earlier rounds, and the first-run problem remains well captured.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer and guard rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining wording items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), state the Core-peer result when a first relevant add ran without Core installed, replace the two private mechanism phrases with observable guarantees, and finish the decision-log and platform form. Happy to re-review once the direction is settled and those are tightened.
[Automated review]
bfa824c to
1d21fb3
Compare
1d21fb3 to
6480b1c
Compare
There was a problem hiding this comment.
Thanks for the update — the clarified satisfied-dependency rule (declared and resolvable, with no moving a declared entry), the two-tier package-name rule with Node core module names, and the completed peer-dependencies-meta refusal scope all tighten the contract, and the first-run problem remains well captured.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, its package-name rules, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer, guard, and name rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining wording items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), state the Core-peer result when a first relevant add ran without Core installed, add a verification state that distinguishes the two package-name tiers, replace the two private mechanism phrases with observable guarantees, and finish the decision-log and platform form. Happy to re-review once the direction is settled and those are tightened.
[Automated review]
6480b1c to
70ab215
Compare
There was a problem hiding this comment.
Thanks for the update — stating that any relevant add writes the Core peer while none is present (including a later add once Core is installed), adding verification states that distinguish a new name from a legacy existing name, and removing the internal flag and spawn-level wording all tighten the contract, and the first-run problem remains well captured.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, its package-name rules, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer, guard, and name rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining wording items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), restate the Windows shim sentence as the observable guarantee, and finish the decision-log and platform form (canonical references, approval-head deciders, and the browser-evidence line). Happy to re-review once the direction is settled and those are tightened.
[Automated review]
70ab215 to
54647b5
Compare
There was a problem hiding this comment.
Thanks for capturing this — the first-run problem is well framed: the five manual steps, especially the empty exports map, are easy to miss, and integration add cannot help until they are done.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, its package-name rules, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer, guard, and name rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), and finish the template form (a canonical reference per decision, the decider form the approval head will carry, the browser-evidence line under Platform support, and a typed open question). Happy to re-review once the direction is settled and those are tightened.
[Automated review]
7c66142 to
daa0b3d
Compare
There was a problem hiding this comment.
Thanks for the update — moving the browser-evidence line under Platform support, tightening the existing-package name tier with explicit states, and bringing a blank existing name under the strict rules when init fills it all improve the contract, and the first-run problem remains well captured: the five manual steps, especially the empty exports map, are easy to miss, and integration add cannot help until they are done.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, its package-name rules, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer, guard, and name rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), finish the decision-log form (a canonical reference per decision and the decider form the approval head will carry) and add the open question's type, and add a verification state for the blank-name fill. Happy to re-review once the direction is settled and those are tightened.
[Automated review]
There was a problem hiding this comment.
Thanks for the update — adding the verification state for a valid blank-name fill (from the argument or the directory, with fieldsAdded naming name) and typing the open question both tighten the record, and the first-run problem remains well captured: the five manual steps, especially the empty exports map, are easy to miss, and integration add cannot help until they are done.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, its package-name rules, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer, guard, and name rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), finish the decision-log form (a canonical reference per decision and the decider form the approval head will carry), and add a verification state showing a strict-invalid name filled into a blank existing name is refused with the file untouched. Happy to re-review once the direction is settled and those are tightened.
[Automated review]
There was a problem hiding this comment.
Thanks for the update — adding the verification state for a strict-invalid name filled into a blank existing name (refused, with the file untouched) closes that contract gap, and the first-run problem remains well captured: the five manual steps, especially the empty exports map, are easy to miss, and integration add cannot help until they are done.
Approval still needs a maintainer decision first. No current spec yet authorizes integration init, its install-by-default behavior, its receipt and install error, its package-name rules, or the add-time Core-peer rule, and creating exports still contradicts current CLI architecture until the proposed amendment is promoted. A maintainer needs to either promote a corrected version of this spec — including updating the existing architecture rule for the new-package exports allowance and explicitly deciding the pre-existing theme exports exception now written into the same rule — as the governing authority, or confirm the subcommand should be admitted under the existing subcommand process without a new system spec (and say where the peer, guard, and name rules would then live). That question is recorded for the maintainers; this is not a request to remove or split the work for missing spec alone.
Before the record can become that authority, please also settle the remaining items in the review: state whether the theme exports exception is a durable rule or a temporary follow-up (creating a map on an existing package makes unlisted deep imports private), and finish the decision-log form on the approval head (a canonical reference per decision and the decider form that head will carry). Happy to re-review once the direction is settled and those are tightened.
[Automated review]
There was a problem hiding this comment.
Approval needs a maintainer decision first: no current spec authorizes astryx integration init (its install default, receipt and install error, name rules, or the add-time Core peer), and creating exports in a new package.json contradicts the current CLI architecture rule (INV16) until a maintainer updates it. A maintainer needs to either promote a corrected AST-060 together with that INV16 update — including a ruling on whether the add theme exports exception is durable or temporary — or admit the subcommand through the existing subcommand process and say where the add-time peer, guard, and name rules live. Independently of that decision, these need fixing before the record can become current:
- Package-manager detection installs with npm when lockfiles tie, the fallback the current build-recommendation spec rejects because it writes a second lockfile (AST-048 DEC-7); reuse AST-048 FR17/FR19 and decide what
initdoes when the package manager is ambiguous. - With
--no-install, the receipt reads the same as an already-satisfied package, so a skipped install looks “unchanged”; AST-017 FR17 asks the result to say the install was skipped. - Each decision still marks its decider “(proposed)” with no
Referenceline, and the INV16 text says “tracked as a follow-up”; state the settled form and the rule itself on the approval head.
[Automated review]
| 4. When nothing breaks the tie, the result is ambiguous and init installs | ||
| with npm. |
There was a problem hiding this comment.
This installs with npm when lockfiles tie. The current build-recommendation spec already decides the CLI's “project's package manager” (spec:AST-048 FR17, FR19), and its DEC-7 rejects exactly this fallback because installing with the wrong manager writes a second lockfile and dependency tree. Please delegate detection to AST-048 FR17/FR19 and give init an ambiguous-case rule consistent with DEC-7 (for example: write the fields, skip the install, and name the disagreeing lockfiles in notes), or record why init must differ so an owner can reconcile both records. The unbounded walk (line 65) and the runner fallback (line 78) also differ from FR17's workspace-root bound and npm default.
| "Unchanged" means `fieldsAdded` is empty, `installed` is false, and | ||
| `packageCreated` is false. |
There was a problem hiding this comment.
With --no-install on a package whose fields are already complete but whose CLI and Core are not installed, the receipt is fieldsAdded: [], installed: false, packageCreated: false — this “unchanged” tuple, which FR3 uses for a package with satisfied dependencies. spec:AST-017 FR17 asks a result produced under a reduced-capability control to identify the mode and what it omitted. Consider a field such as installSkipped, or a required notes entry, when --no-install skips a needed install; keep that case out of “unchanged” and add it to the FR4/FR5 verification rows.
| on an existing package, with one exception: `add theme` may create an exports | ||
| map on an existing package containing only theme subpaths (AST-050 FR7; | ||
| tracked as a follow-up for INV16 alignment). A writer that creates a new |
There was a problem hiding this comment.
“Tracked as a follow-up for INV16 alignment” describes project tracking, so it would go stale inside a current invariant, and AST-060's OQ1 still leaves the exception's durability open. Once an owner rules, state the ruling here instead: a durable exception owned by spec:AST-050 FR7 (with its deep-import consequence), or a temporary one with its end condition — or split it out of this change.
|
|
||
| ### DEC-1 — Subcommand of integration, not a top-level command | ||
|
|
||
| **Decider:** josephfarina (proposed) · **Date:** 2026-10-05 |
There was a problem hiding this comment.
All five decisions read “josephfarina (proposed)” with a separate date and no **Reference:** line. Current system specs give each decision a **Reference:** line (here spec:AST-060/DEC-n) and a **Decider:** line with the name and date, and none keeps a “(proposed)” marker, which would read as unapproved once this record is current. Please settle every decision's form on the approval head.
|
Parking this for now; it's tracked separately and can be reopened when picked up. |
Writing rubric results
findPackageDirerror, and thenpm pkg set exportsgap; no PR references ✅add themeexports exception (AST-050 FR7) a durable rule or a temporary exception?Review state
This is a spec-only PR, up for an approval owner's review. The record is
authority: currentwithapproved_byandapproved_atleft empty, so it cannot merge before an owner approves:check:knowledgereports the empty fields, and the owner gate waits for an approval on the exact head. On approval,approved_byandapproved_atare filled in on a new head and the approving owner posts/approve-spec <sha>for that head.The code PR is #6961.