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

ci(vi-mock): delete the stale scope sentence from vi-mock-specifiers.yml's step comment - #8843

Merged
baozhoutao merged 1 commit into
mainfrom
claude/issue-8392-vi-mock-workflow-scope-prose
Sep 9, 2026
Merged

baozhoutao merged 1 commit into
mainfrom
claude/issue-8392-vi-mock-workflow-scope-prose

Conversation

@baozhoutao

Copy link
Copy Markdown
Contributor

Fixes #8392

What changed

One file, four deleted lines, zero added. In .github/workflows/vi-mock-specifiers.yml, the step comment above node scripts/check-vi-mock-inherit.mjs lost its scope paragraph and the # separator that would otherwise dangle against the step:

       # `vi.importActual` of the same specifier -- and SPREADS it.
-      #
-      # Narrow by ruling: only the covered workspace specifiers in
-      # `COVERED_SPECIFIERS` are judged. Whole-module replacement of a local
-      # module is legitimate and out of scope by construction, not by exemption.
       - name: Check every covered vi.mock factory inherits the real export surface
         run: node scripts/check-vi-mock-inherit.mjs

Why the sentence was false

objectui#8141 (PR #8391) widened the resolver from "a COVERED_SPECIFIERS member" to "a member or any subpath of one". The gate's own header and its verdict line moved with it; this workflow comment did not. The gate says so itself at rest on this branch:

✅  check-vi-mock-inherit: OK (… 680 call site(s) on @object-ui/react, …, @object-ui/core
    and their subpaths judged (680 inherit, 0 auto-mocked); …)

scripts/check-vi-mock-inherit.mjs:83 — the current statement:

 *     nor a SUBPATH of one.** See below, and "A member covers its subpaths".

Why deleted rather than reworded (triage option 2)

Triage ruled option 2 on a fact the card supplied: the gate header is where the last three boundary changes were recorded, and the workflow copy was left behind all three times. A second prose site describing the same boundary is a structure that goes stale periodically, not a one-off miss — rewording fixes this instance and not the next one. Removing the duplicate leaves exactly one authoritative description.

Nothing is lost by the deletion:

  • The step's run: line names scripts/check-vi-mock-inherit.mjs, so a reader landing here from a red check-run is one hop from the header.
  • The whole-module-replacement carve-out the paragraph restated is already stated in full in that header, under "Three things are therefore out of scope by construction, not by exemption".

Option 1's binding condition (state in the workflow that the authoritative description lives in the gate header) does not apply, because option 1 was not taken. No pointer sentence was added either: the ruling's criterion is a change that only removes the statement destined to go stale again.

Pins checked before deleting

Both wiring suites that read this workflow (scripts/__tests__/check-vi-mock-inherit.test.ts, scripts/__tests__/check-vi-mock-specifiers.test.ts) assert through a yamlOf() helper that filters /^\s*#/ lines before matching, so whole-line comments are structurally invisible to them. A repo-wide search found no pin on the deleted text and no line-number citation of this file:

$ git grep -n "Narrow by ruling"            -> only the workflow itself
$ git grep -n "covered workspace specifiers"-> only the workflow itself
$ git grep -n "vi-mock-specifiers\.yml[:# ]*[0-9]"  -> no matches

No pin had to change, so none did.

Verification

All run on this branch at ca7e77913.

node scripts/check-vi-mock-inherit.mjs            EXIT=0  ✅ OK
node scripts/check-vi-mock-specifiers.mjs         EXIT=0  ✅ OK
node scripts/check-control-bytes.mjs              EXIT=0  ✅ OK (7041 tracked text files)
node scripts/check-action-ref-convention.mjs      EXIT=0  ✅ 111 refs in 36 workflow files
node scripts/check-pre-install-import-graph.mjs   EXIT=0  ✅ 27 pre-install steps in 21 jobs
node scripts/check-governed-queue-guard.mjs --self-test  EXIT=0  132 cases pass
node scripts/check-changeset-presence.mjs         EXIT=0
pnpm exec vitest run scripts/__tests__/check-vi-mock-inherit.test.ts \
  scripts/__tests__/check-vi-mock-specifiers.test.ts \
  scripts/__tests__/merge-queue-reporting.test.ts

 Test Files  3 passed (3)
      Tests  146 passed (146)

(The red-looking census blocks in that log are fixture output captured inside the gate's own passing ablation cases, not failures.)

Changeset

None, and the gate is the authority per AGENTS.md §9:

Compared the working tree with e9d92120a (merge-base with origin/main): 1 file(s) changed,
0 of them published source of a package the release covers, 0 of them a manifest whose
published contract moved, 0 under a package changesets ignores, 0 changeset(s) added.
✅  No source or published contract of a released package changed in this range, so no
    changeset is owed.

No skip-changeset label was applied — in this repo that label exempts nothing and the gate's verdict line is what decides.

Scope

.github/workflows/vi-mock-specifiers.yml only. The gate, its header, COVERED_SPECIFIERS and the pins under scripts/__tests__/ are objectui#8141 / PR #8391's surface and were not touched. objectui#8117 is a different file and is not addressed here.


Generated by Claude Code

…omment

The step comment above `node scripts/check-vi-mock-inherit.mjs` claimed that
"only the covered workspace specifiers in `COVERED_SPECIFIERS` are judged".
That has been false since objectui#8141 (PR #8391) widened the resolver to
judge a member AND any subpath of one, so `@object-ui/components/ui/sonner`
is judged today although it is not a `COVERED_SPECIFIERS` member. The gate's
own header and its verdict line were updated by that PR; this second prose
site was not.

Removed rather than reworded. The gate header is where the last three
boundary changes were recorded, and the workflow copy was left behind all
three times: this is a duplicate statement that goes stale periodically, not
a one-off miss, so rewording it would fix this instance and not the next.
The step's `run:` already names the script, and its header carries the
boundary in full -- including the whole-module-replacement carve-out this
paragraph restated (scripts/check-vi-mock-inherit.mjs, "Three things are
therefore out of scope by construction, not by exemption").

Comment-only: the four deleted lines are whole-line YAML comments, and both
wiring suites that pin this workflow read it through a `yamlOf()` that strips
whole-line comments before asserting.

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

claude Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

⭐ LANDED — merged 6ea94b80e at 2026-09-09T14:53:05Z

Probe run verbatim from the Armed note (5603562339); full reading on the card: #8392 (comment)

All five legs pass. Both stale strings read 0 with a firing control on the merge commit's parent (1 each); the gate header it now defers to is still there; the merge changed exactly one file.

⭐ Worth carrying forward: :112 run: node scripts/check-vi-mock-inherit.mjs is now the entire mechanism pointing a reader from a red check-run at the authoritative boundary description. Option 2's safety rests on that line — move or reshape this step and the card's defect returns with no prose left in the file to notice.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants