Skip to content

chore: land 2 reviewed pull requests together (batch 94) - #13045

Merged
josephfarina merged 6 commits into
mainfrom
josephfarina/land-batch-94
Nov 20, 2026
Merged

josephfarina merged 6 commits into
mainfrom
josephfarina/land-batch-94

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Merges two reviewed pull requests onto current main, each as its own --no-ff merge, in this order. Each member keeps its own description, tests and review history, and each record edit below has an engineering owner's /approve-spec on its member and at this branch's head.

Scope

CLI template: a template path that leaves the project gets the same refusal plus one suggestion, the same write run from the path's nearest folder, keeping the caller's write options such as --overwrite (#12710).

CLI doctor: outside a project, doctor warns about each issue of an integration installed for the computer, and the integration-issue nudge leads to those issues. For such an integration with issues, doctor's fix names who acts: a maintainer gets the advice to fix the package and the package manager's <package>@latest update step; a copy that updates with the tool says so (#13002).

Records

Writing rubric results

DEC-20 (#12710): R1 present tense. R2 none. R3 none. R4 none. R5 none. R6 none. R7 none.
FR12 (#13002): R1 present tense. R2 none. R3 none. R4 none. R5 none. R6 none. R7 none.

When this merges, each pull request above is closed with a note that names this one.

josephfarina and others added 4 commits November 19, 2026 12:10
… folder's CLI invocation; record DEC-20

[skip ci]
… installed for the computer

Outside a project, component, template, search, discover and theme print
one line when an integration installed for the computer has issues in its
contributions, and send the reader to doctor. Doctor's computer-integrations
check passed and named nothing, so the pointer led nowhere. It now warns and
names each issue. Its fix says that a newer release of the package must fix
it, with the command that updates a third-party package beside a CLI
installed for the computer, or that a tool's package set updates it. Doctor
reads no Core outside a project, so it leaves out the issues that compare
components with Core components.

[skip ci]
@vercel

vercel Bot commented Nov 20, 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 20, 2026 3:25am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 20, 2026, 3:28 AM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b9cc641
Covers architecture:cli-surface DEC-20 (#12710, text identical to the decided wording) and spec:AST-081 FR12's doctor sentence and verification row (#13002).

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b9cc641

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 20, 2026

@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's decision, and one fix is needed in #13010.

  • #13002's doctor fix for an integration installed for the computer that has issues adds maintainer advice and a <package manager> … <package>@latest update step that neither the current nor the proposed global-mode FR12 text states, so an engineering owner either says on this pull request that their decision covers that advice as shipped or adds it to FR12 and approves the new head with /approve-spec <full head SHA> (the author may do either as an engineering owner).
  • Outside a project, astryx doctor integration validate reports [ok] with no skip note for a computer copy skipped because its @astryxdesign/core peer range excludes this CLI, while astryx doctor warns that the copy is skipped, because validate-integration.mjs:532 attaches the note only when the CLI range fails; build the note from the skip reason alone and add a row G35 case for a Core-range skip.

Judged alone, #12710 is ready, #13002 waits on the decision above, and #13010 needs the fix. Non-blocking: the template refusal still says the template is written only inside the project, directly above the new suggestion that writes outside it (copy.mjs:147-148).

Claims and files checked

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

Claims:

  • Template changeset: a refused destination of a Core template outside the project, absolute or through .., also names the same write from the destination's nearest existing folder, printed with that folder's CLI invocation: verified (copy.mjs:105-173, cli-error.mjs:329-344, path-safety and text-output tests).
  • Template changeset: --overwrite stays in the commands that write the named path and never in the inside-the-project one: verified (copy.mjs:139-141, overwrite test).
  • Template changeset: a .. path used to get the refusal with no command: verified (base copy.mjs rethrew only the traversal message; base transcript).
  • Template changeset: a .. path into the temp folder is still no scratch copy and the refusal names its absolute path, which takes one: verified (copy.mjs:123-126, test run with a temp folder that takes scratch copies).
  • Doctor changeset: outside a project doctor warns about and names the issues of a used computer integration: verified (doctor.mjs:3051-3130, the global-mode row G35 test).
  • Doctor changeset: before, search and discover pointed at doctor while doctor passed and named nothing: verified (the nudge in integration-warnings.mjs; the base check warned only for skipped or failed packages).
  • Doctor changeset: issues that compare components with Core are still not named: verified (doctor/_adapter.mjs:1549-1554, the row G35 SideNav case).
  • Validate changeset: outside a project validate checks the copy the folder uses, a computer copy included: verified for used and failing copies (rows G35 and G41); a copy skipped for its Core range is checked with no skip note (finding above).
  • Validate changeset: before, it looked only in node_modules and answered package_not_found though doctor names it: verified (base validate-integration.mjs:817; doctor's failed-load fix).
  • Description: three members merged in order as separate merges, the validate change on top of the doctor change: verified (history; all three merges clean).
  • Description: each record edit has an engineering owner's approval on its member and at this head: verified (owner comments on each member and here; the spec-owner status succeeded at this head).
  • Description: the template suggestion keeps the caller's write options such as --overwrite: verified (--overwrite is the template command's only write option).
  • Description: validate checks the folder's own source as the package being made: verified (loadedCopy returns own; row G41).
  • Description: writing rubric results report no issue for either record edit: verified (present tense, no research, no change references, one-line rejected alternative, no project status).
  • Description: each member is closed when this merges: not checkable in code (process).

Files:

  • .changeset/doctor-computer-integration-issues.md: clear
  • .changeset/template-refusal-cd-hint.md: clear
  • .changeset/validate-computer-integration.md: clear for used and failing copies; see the skipped-copy finding
  • docs/architecture/cli-surface.md: clear (new decision, approved at this head)
  • docs/specs/AST-081-global-mode/spec.md: clear (approved at this head); does not state the fix advice
  • packages/cli/api/docs/_adapter.mjs: clear
  • packages/cli/api/doctor/_adapter.mjs: clear; update step awaits the owner decision
  • packages/cli/api/doctor/doctor.doc.mjs: clear
  • packages/cli/api/doctor/doctor.mjs: fix advice awaits the owner decision
  • packages/cli/api/doctor/doctor.test.mjs: clear
  • packages/cli/api/integration/_adapter.mjs: clear
  • packages/cli/api/integration/validate-integration.mjs: blocking finding at line 532
  • packages/cli/api/integration/validateIntegration.doc.mjs: clear
  • packages/cli/api/template/_adapter.mjs: clear
  • packages/cli/api/template/copy/copy.mjs: clear; non-blocking wording note at lines 147-148
  • packages/cli/api/template/template-integration.test.mjs: clear
  • packages/cli/api/template/template.mjs: clear
  • packages/cli/assets/docs/tree/computer-integrations.doc.mjs: clear
  • packages/cli/clients/cli/commands/doctor-integration-validate.doc.mjs: clear
  • packages/cli/clients/cli/commands/doctor.doc.mjs: clear
  • packages/cli/clients/cli/commands/template.path-safety.test.mjs: clear
  • packages/cli/clients/cli/lib/cli-error.folder.test.mjs: clear
  • packages/cli/clients/cli/lib/cli-error.mjs: clear
  • packages/cli/clients/cli/lib/cli-error.test.mjs: clear
  • packages/cli/foundation/discovery/component-replacement.mjs: clear
  • packages/cli/foundation/discovery/doc-types.mjs: clear
  • packages/cli/foundation/discovery/doc-types.test.mjs: clear
  • packages/cli/foundation/discovery/project-typescript.mjs: clear
  • packages/cli/foundation/env/package-manager.mjs: clear
  • packages/cli/foundation/env/package-manager.test.mjs: clear
  • packages/cli/foundation/integrations/integration-warnings.mjs: clear
  • packages/cli/foundation/release/notices.mjs: clear; update step awaits the owner decision
  • packages/cli/foundation/release/notices.test.mjs: clear
  • packages/cli/test/global-local.rows-16-39.test.mjs: clear; needs a Core-range skip case for the fix
  • packages/cli/test/global-local.rows-40-59.test.mjs: clear

Automated review (maintainer link)

? `A scratch copy in the system temp folder takes its absolute path, ${scratchPath}.`
: scratchFolder
? `The template is written only inside the project, or as a scratch copy in the system temp folder (${scratchFolder}). Give a path inside one, or print the source.`
: 'The template is written only inside the project. Give a path inside it, or print the source.'),

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: when the run-from-its-folder suggestion is shown, this sentence still says the template is written only inside the project and offers two ways, directly above a third that writes outside it. Consider naming it here too, for example "…Give a path inside it, run the same write from the path's folder, or print the source."

@josephfarina josephfarina changed the title chore: land 3 reviewed pull requests together (batch 94) chore: land 2 reviewed pull requests together (batch 94) Nov 20, 2026
@josephfarina
josephfarina force-pushed the josephfarina/land-batch-94 branch from b9cc641 to b6daae2 Compare November 20, 2026 03:11
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b6daae2
Covers architecture:cli-surface DEC-20 (#12710) and spec:AST-081 FR12 (#13002). The engineering owner's decision covers #13002's doctor fix advice as shipped: the maintainer advice ("If you maintain …") with the <package manager> … <package>@latest update step, or "It updates with the tool…" for a copy that updates with the tool.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec b6daae2

@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.

Approved pending CI: CI's heavy jobs have not run on this head yet; they run once review passes, and the merge guard needs them green.

The template refusal's run-from-its-folder command follows the new CLI-surface decision, and doctor's warning and fix advice follow the global-mode requirement and the engineering owner's decision recorded on this pull request. Judged alone, #12710 and #13002 are each ready.

  • Non-blocking: when the run-from-its-folder command is shown, the refusal still says the template is written only inside the project and offers two ways, directly above a third that writes outside it (packages/cli/api/template/copy/copy.mjs:147-148); naming that way in the sentence would read consistently.
Claims and files checked

Review mode: full; reason: history

Claims:

  • Doctor release note: outside a project, doctor warns about a used computer-level integration whose own files have issues, and names them: verified (doctor.mjs:3074-3090, :3125-3126; global-mode row G35 test).
  • Doctor release note: before, search and discover pointed at doctor while doctor passed and named nothing: verified (the base nudge in integration-warnings.mjs; base doctor warned only for skipped or failed packages).
  • Doctor release note: issues that compare components with Core are still not named: verified (doctor/_adapter.mjs:1548-1560; row G35's replacing integration passes).
  • Template release note: a refused destination of a Core template outside the project, absolute or through .., also names the same write from its nearest existing folder, printed with that folder's CLI invocation: verified (copy.mjs:132-135, :161-168, cli-error.mjs:337-344; path-safety and text-output tests; a real run of the suggested command).
  • Template release note: --overwrite stays on that command and on the scratch-copy one, never on the inside-the-project one: verified (copy.mjs:139-141; the overwrite test).
  • Template release note: a .. path used to get the refusal with no command and now gets the same commands: verified (base copy.mjs treated only absolute paths this way; base and head runs).
  • Template release note: a .. path into the temp folder is still no scratch copy, and the refusal names its absolute path, which takes one: verified (copy.mjs:123-126, :144-145, :154-160; test run with a temp folder that takes scratch copies).
  • Description: two members merged in order, each as its own merge: verified (history; both merges are clean and add exactly their member's lines).
  • Description: each record edit has an engineering owner's approval on its member and at this head: verified (exact-head approvals on both members and here; the spec-owner status passed at this head).
  • Description: the template suggestion keeps the caller's write options such as --overwrite: verified (--overwrite is the template command's only write option).
  • Description: doctor warns about each issue, the nudge now leads to those issues, and the fix names who acts, with the package manager's @latest step or a note that the tool updates it: verified (doctor.mjs:3107-3118, notices.mjs:277-281).
  • Description: the engineering owner's decision covers the doctor fix advice as shipped: verified (the owner's comment at this head).
  • Description: the writing rubric finds no issue in either record edit: verified (present tense; no research, change references or project status; a one-line rejected alternative).
  • Description: each member is closed when this merges: not checkable in code (process).

Files:

  • .changeset/doctor-computer-integration-issues.md: clear
  • .changeset/template-refusal-cd-hint.md: clear
  • docs/architecture/cli-surface.md: clear (new decision, approved at this head)
  • docs/specs/AST-081-global-mode/spec.md: clear (approved at this head)
  • packages/cli/api/doctor/_adapter.mjs: clear
  • packages/cli/api/doctor/doctor.doc.mjs: clear
  • packages/cli/api/doctor/doctor.mjs: clear
  • packages/cli/api/doctor/doctor.test.mjs: clear
  • packages/cli/api/template/_adapter.mjs: clear
  • packages/cli/api/template/copy/copy.mjs: non-blocking wording note at lines 147-148
  • packages/cli/api/template/template-integration.test.mjs: clear
  • packages/cli/api/template/template.mjs: clear
  • packages/cli/assets/docs/tree/computer-integrations.doc.mjs: clear
  • packages/cli/clients/cli/commands/doctor.doc.mjs: clear
  • packages/cli/clients/cli/commands/template.path-safety.test.mjs: clear
  • packages/cli/clients/cli/lib/cli-error.folder.test.mjs: clear
  • packages/cli/clients/cli/lib/cli-error.mjs: clear
  • packages/cli/clients/cli/lib/cli-error.test.mjs: clear
  • packages/cli/foundation/discovery/component-replacement.mjs: clear
  • packages/cli/foundation/env/package-manager.mjs: clear
  • packages/cli/foundation/env/package-manager.test.mjs: clear
  • packages/cli/foundation/integrations/integration-warnings.mjs: clear
  • packages/cli/foundation/release/notices.mjs: clear
  • packages/cli/foundation/release/notices.test.mjs: clear
  • packages/cli/test/global-local.rows-16-39.test.mjs: clear

Automated review (maintainer link)

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · b6daae2

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.75 MB packed (+4.1 kB); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@josephfarina
josephfarina merged commit c1eeb63 into main Nov 20, 2026
198 of 203 checks passed
@github-actions
github-actions Bot deleted the josephfarina/land-batch-94 branch November 20, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — b6daae2a Deployed Nov 20, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant