Skip to content

chore: land 1 reviewed pull request (batch 100) - #13063

Merged
josephfarina merged 2 commits into
mainfrom
josephfarina/land-batch-100
Nov 20, 2026
Merged

josephfarina merged 2 commits into
mainfrom
josephfarina/land-batch-100

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Merges this reviewed pull request onto current main as a merge commit. This branch checks that it builds and tests on today's main.

Scope

CLI doctor: outside a project, doctor integration validate finds an integration installed for the computer, checks the folder's own source as the package being made, and checks the copy a folder declares even when its manifest throws. A computer copy that the other commands skip for its peer ranges gets a note built from the skip reason: core_peer_version when the Core range alone excludes the release, cli_peer_version when the CLI range does; the advice is doctor's install step, not the in-project upgrade steps. The CLI README's note-code table is regenerated.

Records

The owner's decision on three outside-a-project behaviors (validate checks a skipped computer copy; the two note codes; the install advice), recorded by /approve-spec on the member and at this head.

Writing rubric results

The member's record lines are scored in its own description: present tense, no change references, research or project status.

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

josephfarina and others added 2 commits November 19, 2026 20:51
…for the computer

Outside a project, doctor's computer-integrations check names
`doctor integration validate <package>` for an integration installed for
the computer that it cannot load. That command looked only in the
node_modules at or above the folder, so it reported package_not_found.
Outside a project it now checks the copy the folder uses, as Project.load
decides it: the folder's own source or a package it declares, else the
copy installed for the computer. Outside any package, its docs line about
TypeScript names no install step.

[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 6:09am UTC

Request Review

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

Copy link
Copy Markdown
Contributor Author

/approve-spec 90ebdce
Covers three outside-a-project behaviors the owner decided for this fix: (a) doctor integration validate checks a computer copy that the other commands skip for its peer ranges; (b) the note code core_peer_version appears when the Core range alone excludes the release, and cli_peer_version when both ranges do; (c) the note's advice for a skipped copy is doctor's "Install a release of that supports this CLI.", not the in-project upgrade steps, since output outside a project gives no project-only advice.

@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, 6:33 AM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 90ebdce

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 90ebdce

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.76 MB packed (+1.9 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

@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. Outside a project, doctor integration validate <package> now checks the copy the folder actually loads, so the command doctor prints for a computer-installed integration it cannot load finally runs as printed. The behaviours no current record states — validating a copy the other commands skip for its peer ranges, the cli_peer_version and core_peer_version note codes, and the install advice that replaces the in-project upgrade steps — are covered by the engineering owner's exact-head /approve-spec, and the new assertions fail on this pull request's base and pass on its head. CI is green at this head.

No blocking findings. Two optional follow-ups:

  • Validating the authored package by name outside a project skips the unreachable-contribution scan that validating it with no package name runs (packages/cli/api/integration/validate-integration.mjs); passing scanUnreachable beside own would make the two routes agree.
  • The new comment above the skipped-copy note is one 37-word sentence covering two topics, where the comment style allows 25 words and one topic; two sentences keep the same reason.
  • architecture:cli-surface INV35 still describes the old cli_peer_version text for a skipped copy, so the record is now narrower than the shipped behaviour and deserves an amendment.
Claims and files checked

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

Claims:

  • The branch merges the reviewed pull request onto main as a merge commit — verified: the head has exactly two parents, the base-branch commit and that pull request's head, and the merge adds nothing of its own.
  • Outside a project, validate finds an integration installed for the computer — verified by the global-mode table row that runs the command from an empty folder.
  • It checks the folder's own source as the package being made — verified by the row that validates the source copy from its folder and from a folder inside it.
  • It checks the copy a folder declares even when that copy's manifest throws — verified: the run prints the declared copy's own error, not the healthy computer copy.
  • A skipped copy gets a note built from the skip reason, core_peer_version when the Core range alone excludes the release and cli_peer_version when the CLI range does — verified by the two JSON assertions and by running the command on both trees.
  • The advice is doctor's install step, not the in-project upgrade steps — verified: the output carries the install sentence and no upgrade --from step.
  • The CLI README table is regenerated — verified: the changed block sits inside the generated markers and the generator's check reports the tables in sync (the regenerated block is the response-type table, whose row lists the note codes).
  • Before this change the command reported package_not_found outside a project — verified on the base tree, where the same runs exit 1.
  • The owner's decision is recorded by /approve-spec on the member pull request and at this head — verified: both comments exist, from an engineering owner, at the exact heads.
  • The member's record lines are scored in its own description — not applicable: this change touches no knowledge record.

Files:

  • .changeset/validate-computer-integration.md — clear: [fix] at a patch bump matches a victim-free correction, and the changeset check passes.
  • packages/cli/README.md — clear: generated block, in sync with its generator.
  • packages/cli/api/docs/_adapter.mjs — clear: passes the outside-any-package flag through.
  • packages/cli/api/integration/_adapter.mjs — clear: the new lookup follows the project's own candidate order, so a declared copy beats a computer copy.
  • packages/cli/api/integration/validate-integration.mjs — the two follow-ups above; the new path is gated so no other caller changes.
  • packages/cli/api/integration/validate-integration.type.mjs — clear: the new note code is documented with its exact condition.
  • packages/cli/api/integration/validateIntegration.doc.mjs — clear: one clause added to the response description.
  • packages/cli/clients/cli/commands/doctor-integration-validate.doc.mjs — clear: the description matches the implemented lookup order.
  • packages/cli/foundation/config/project.mjs — clear: documentation only.
  • packages/cli/foundation/discovery/doc-types.mjs — clear: the in-project text is unchanged; all three skip paths take the new flag.
  • packages/cli/foundation/discovery/doc-types.test.mjs — clear: three new cases, each failing on the base.
  • packages/cli/foundation/discovery/project-typescript.mjs — clear: the new option defaults off, so existing callers keep their text.
  • packages/cli/foundation/integrations/computer-integrations.mjs — clear: the skip reason now names every excluding range.
  • packages/cli/foundation/integrations/computer-integrations.test.mjs — clear.
  • packages/cli/foundation/response/response-types.doc.mjs — clear: the same clause as the API doc.
  • packages/cli/test/global-local.rows-16-39.test.mjs — clear: exact-string assertions for each new behaviour.
  • packages/cli/test/global-local.rows-40-59.test.mjs — clear: the own-source case from the folder and from a folder inside it.

Automated review (maintainer link)

});
if (peerProblem) {
(result.notes ??= []).push({code: CLI_PEER_VERSION, message: peerProblem});
// A copy installed for the computer that this CLI skips outside a project

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 (comment style): this is one 37-word sentence carrying two topics, where architecture:knowledge-contracts INV29 allows at most 25 words in a description and one topic per sentence. Two sentences keep the whole reason:

// Outside a project, a computer copy this CLI skips gets doctor's reason and
// fix, whichever peer range keeps it out. The project steps would set up a
// project the folder does not have.

@josephfarina
josephfarina merged commit bda1fbd into main Nov 20, 2026
133 of 136 checks passed
@github-actions
github-actions Bot deleted the josephfarina/land-batch-100 branch November 21, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 90ebdcea 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