Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

docs(ci): pin the vi.mock and shadcn sections of ci-cd-pipeline.md to what their jobs run - #8878

Merged
baozhoutao merged 2 commits into
mainfrom
claude/8420-ci-cd-pipeline-command-parity
Sep 9, 2026
Merged

baozhoutao merged 2 commits into
mainfrom
claude/8420-ci-cd-pipeline-command-parity

Conversation

@baozhoutao

@baozhoutao baozhoutao commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Refs #8420 (instances 1 and 2)

⛔ Deliberately not Fixes. #8420 is a CLASS card — its title is every ci-cd-pipeline.md
workflow section except ci.yml and lint.yml, and its body names two instances as the first two
of roughly thirty-two. This pull request pins those two. Closing the card here would retire the
remaining sections from every open-issue sweep in one move, which is the failure the card itself
warns about. On merge the card returns to pm:queue with a Release: line naming what landed and
what is left.

What changed

Two sections of content/docs/guide/ci-cd-pipeline.md now name every first-party command the job
they document actually runs — and no command it does not run — and each is held there by one
commandParity unit in scripts/__tests__/ci-cd-pipeline-doc.test.ts.

  1. ## Inert vi.mock Specifiers — the workflow runs two gates in one job
    (check-vi-mock-specifiers.mjs at vi-mock-specifiers.yml:96, check-vi-mock-inherit.mjs at
    :112); the section named only the first. The omitted one is a blocking step of a required
    context, so a contributor reading this section to learn what CI does to their pull request did
    not know a gate that can stop it exists. The section now names both, says both block, and
    describes what the inherit gate catches and how its recogniser works.
  2. ### Shadcn Component Check — three prose bullets naming none of the job's three commands.
    It now names pnpm shadcn:analyze (shadcn-check.yml:94), pnpm shadcn:check (:119) and
    node scripts/shadcn-check-report.mjs (:141), each with what its exit code means, plus the
    fact that nothing here blocks a merge.

The alias question, settled — and deliberately not generalised

shadcn-check.yml literally runs the alias pnpm shadcn:analyze, while the vi.mock section names
pnpm check:vi-mock-specifiers as the way to run a gate the workflow invokes as
node scripts/check-vi-mock-specifiers.mjs. The decision, written into the test's own prose so the
next reader inherits it:

An alias whose root package.json definition is exactly node plus one scripts/ path names the
same gate as invoking that file directly.

Without it the two spellings read as two commands and the rule reports the page's own "run it
locally" line as a phantom gate — cry wolf, on the first section it was pointed at. Three limits are
pinned with it:

  • It does not merge an alias that carries arguments. pnpm shadcn:check and pnpm shadcn:update
    are the same script with different flags; an alias with arguments selects a mode.
  • It does not reach the ci.yml table, the lint.yml section, or the other 32 sections. Those
    are pinned by the unmodified module-scope rule; re-pointing them is a separate card.
  • It does not erase the pre-install distinction (a step that runs before pnpm install must
    invoke node directly). That is a fact about step placement; this rule measures which gates a job
    runs.

A control test asserts the resolver is unambiguous (no two root scripts are a pure wrapper around
the same file — measured: 51 pure wrappers, 0 collisions) and that it still resolves the one alias
these pins depend on. Ambiguity would make the pins compare a spelling nobody chose.

Not a sweep

Scope is the two named sections. The card measured the naive extension: it flags 24 of the 34
sections and most are not defects. Where this PR needed to cite a neighbouring gate, it followed the
convention the ## Lint section already established — name the script without its scripts/ path
and say why, so the page does not credit the job with a gate it does not run.

Evidence

Ablation, per pin, on the committed tree (mutate, prove the mutation reached disk, run, restore, and
prove the restore by blob hash):

leg mutation result
A delete check-vi-mock-inherit from the vi.mock prose (page hits 2 and 1 to 0 and 0; control check-vi-mock-specifiers stays 3) red — vi-mock-specifiers.yml: pnpm check:vi-mock-inherit
B delete pnpm shadcn:analyze from the shadcn prose (1 to 0; control shadcn:check stays 1) red — shadcn-check.yml: pnpm shadcn:analyze
C credit the shadcn job with scripts/check-doc-links.mjs, which it does not run red — phantom direction: pnpm docs:check-links

Each leg restored to the exact HEAD blob 385055f51… and left git diff HEAD empty.

Checks run locally, all green:

  • pnpm exec vitest run scripts/__tests__/ci-cd-pipeline-doc.test.ts — 62 passed (58 before).
  • pnpm exec vitest run scripts/__tests__/ — 132 files, 3837 tests passed, 2 skipped. Seventeen
    test files in that directory read this page.
  • pnpm lint:root exit 0 (whole root scan, 9.7s; the 32 warnings are pre-existing and none is in a
    file this PR touches — targeted eslint on the changed test file reports 0 errors, 0 warnings).
  • pnpm type-check:scripts exit 0, pnpm docs:check-links exit 0, pnpm check:doc-fences exit 0,
    pnpm check:shell-escape-residue exit 0, node scripts/check-control-bytes.mjs exit 0.
  • node scripts/check-changeset-presence.mjs exit 0. Documentation and test only, so the changeset
    is an empty-frontmatter declaration.

One card claim that did not reproduce

The card says check-vi-mock-inherit.mjs "was widened three commits ago by #8414 (4b5e07a53)".
Re-derived here: git log origin/main -- .github/workflows/vi-mock-specifiers.yml returns three
commits in that file's whole history (6ea94b80e, 05b832407, e9e55524e), and 4b5e07a53 is not
among them. The drift-rate sentence built on it is not repeated anywhere in this PR, and neither
instance needs it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr


Generated by Claude Code


Generated by Claude Code

`vi-mock-specifiers.yml` runs two gates; the page named one, and the one it
omitted (`check-vi-mock-inherit.mjs`) is a blocking step of a required context.
`shadcn-check.yml`'s section named none of the three commands its job runs.

Both sections now name every first-party command their job runs, and each is
pinned by one `commandParity` unit in the doc test. The alias question is
settled for these two units only: an alias whose root `package.json` definition
is exactly `node scripts/<file>` names the same gate as invoking that file
directly, so the page's local-run line is not read as a phantom gate. Aliases
that carry arguments select a mode and are not merged.

Refs: objectui#8420

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
…graph

Empty-frontmatter changeset: documentation and test only, no package released.

Refs: objectui#8420

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants