Skip to content

build(deps): route api-extractor's minimatch to 11 and delete the GHSA-g3hv-75wg-m249 exemption - #38057

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-kc69mi
Nov 28, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-kc69mi

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #36160

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改依赖覆盖规则、锁文件和安全扫描豁免清单,任何包的发布内容都不变。
  • 为什么做:去掉依赖安全扫描里那条 12 月 21 日到期的匹配库漏洞豁免,让豁免清单回到零条。
  • 出错会怎样:最可能是安全扫描或某个类型打包步骤在持续集成里变红,合并前就能看到;合并后出问题直接撤回这个改动即可。
  • 要你做什么:无。

What changes

The follow-up to #38049 (merged as 39d611d), which moved the five parents that accept minimatch 11 and kept exceljs's glob chain on its own minimatch majors. The seat chose option A for the last holder. Every reading below was taken on this PR's head, 84e6e1c, rebased onto 39d611d.

  1. pnpm-workspace.yaml: a parent-scoped override, @microsoft/api-extractor>minimatch to ^11.0.9. @microsoft/api-extractor declares minimatch 10.2.3 exact (7.58.2 here; the newest release, 7.60.2, still pins it). It was the last minimatch 10.x copy in the lockfile. The comment beside the line gives the reason, and says to delete the line once an api-extractor release drops its exact 10.x pin.
    • It is in the graph only as an auto-installed optional peer of tsup, unplugin-dts and vite-plugin-dts. Those load it lazily, and only for bundleTypes, rollupTypes or experimentalDts, which no build here enables (evidence 1 below).
    • Its one call into minimatch is the named minimatch() export, in Collector.js, which minimatch 11 keeps. The smoke below runs that exact call.
    • The pnpm-workspace.yaml selector-shape rule governs pkg@range floors. This key names a parent and has no version range, so there is no bound to place. The exact-target rule covers packages whose export surface we compile against, and minimatch is not one of them, so the target is ^.
    • The comment over the per-major minimatch floors now says the 6.0.0 to 11.0.0 floor holds no copy today.
  2. osv-scanner.toml: the GHSA-g3hv-75wg-m249 exemption is deleted. It was the only entry, so the ledger is at its intended steady state of zero exemptions. Per convention 3, removing an exemption may ride with the fix. The header and template are untouched.
  3. pnpm-lock.yaml, regenerated with pnpm 10.31.0. The only change is that api-extractor's minimatch moves from 10.2.6 to 11.0.9, minimatch@10.2.6 drops out of the lockfile, and the overrides header gains the new line.

No published package changes, so this PR carries no changeset. Every manifest that moved for #36160 moved in #38049.

When @microsoft/api-extractor ships a release without the exact 10.x pin, delete the override line. That needs no card.

Tests

Evidence 1: no build here enables an api-extractor path
  • git grep -n -E 'rollupTypes|bundleTypes|experimentalDts|api-extractor|apiExtractor|ExtractorConfig|api-extractor\.json' outside the lockfile and changelogs: 6 hits. Five are the new comment and override in pnpm-workspace.yaml. One is a doc comment in packages/spec/scripts/lib/file-description.ts that says no typedoc or api-extractor reads the field it describes.
  • git grep for experimental-dts, experimentalDts or rollup-types in any package.json, .ts, .mts, .js, .mjs or .cjs: 0 hits. No tracked api-extractor.json exists.
  • The 41 files that reference vite-plugin-dts or unplugin-dts pass dts() options from this set only: aliasesExclude, compilerOptions, exclude, include, insertTypesEntry, outDir, tsconfigPath. The one helper that spreads into dts() (ui/scripts/vite-dts-explicit-extensions.ts) adds only beforeWriteFile and afterBuild.
  • unplugin-dts imports api-extractor with a dynamic import() inside its rollup step only; tsup loads it only for experimentalDts.
Evidence 2: OSV-Scanner v2.5.0 (the workflow's scanner), offline npm database freshly downloaded
  • This head, --offline-vulnerabilities --download-offline-databases --config pointing at this head's osv-scanner.toml (zero [[IgnoredVulns]] entries; the only match for that string is the commented template, and g3hv occurs 0 times): No issues found, 1698 packages scanned.
  • This head with no ledger at all: No issues found.
  • node scripts/check-osv-exemptions.mjs: exit 0, "osv-scanner.toml holds zero OSV exemptions (the intended steady state)". --self-test: exit 0.
Evidence 3: no minimatch 10.x copy in pnpm-lock.yaml
  • grep -c -E 'minimatch@10\.|minimatch: 10\.' pnpm-lock.yaml gives 0.
  • Holders by resolved version: 3.1.5 for glob 7.2.3; 5.1.9 for readdir-glob 1.1.3; 11.0.3 for @oclif/core 5.1.12, @typescript-eslint/typescript-estree 8.74.0 and glob 14.0.3; 11.0.9 for eslint 10.15.0, @eslint/config-array 0.23.6, @ts-morph/common 0.29.1 and @microsoft/api-extractor 7.58.2.
api-extractor on minimatch 11, and the dts builds
  • A direct api-extractor 7.58.2 run on a fixture package resolved minimatch@11.0.9. The fixture's bundledPackages: ["foo-*"] against three declared dependencies drives the Collector.js glob branch, the one minimatch() call. With a d.ts rollup enabled: succeeded: true, 0 errors, 2 warnings (ae-missing-release-tag on the fixture's untagged exports), and the rolled file carries the fixture's API.
  • On 84e6e1c, turbo run build over the @objectstack/cli... and @objectstack/rest... closures, @objectstack/metadata-core, @object-ui/plugin-markdown... and the i18n extract packages, under the verify lock: VERDICT command-exit 0, Tasks 78 successful of 78, 3 cached. Its tsup builds emitted their declarations, with check-dts-emitted passing for metadata-core. The vite builds ran unplugin-dts: plugin-markdown printed "Declaration files built", as did the @object-ui packages in its closure.
  • pnpm check:override-consistency: exit 0. Its consumer census reports the new key as having 0 consumers, which is a report, not a failure; see Acceptance notes.
Derived gate families (dispatch-gates.mjs --commands), on head 84e6e1c

The change set is 3 paths against merge base 39d611d (osv-scanner.toml, pnpm-lock.yaml, pnpm-workspace.yaml), giving 25 derived families. All 25 were run on head 84e6e1c, with exit codes captured before any pipe, and all 25 exited 0. Among them: check-osv-exemptions.mjs and its --self-test, check:override-consistency, check:vendor-export-contract-resolve, check:dual-build-cjs-loads, check:changeset-fixed, check:nul-bytes and osv-base-relative.mjs --self-test. The --ran reconciliation reports 25 accounted for, 25 run, 0 NOT-MEASURED and 0 UNRUN. Before the push, overlap-check.mjs returned VERDICT clean exit 0 against origin/main 39d611d and #38043.

Acceptance notes

  • check:override-consistency reads an override key as name@selector, split at its last @. It does not parse a parent>child key, so its report-only consumer census lists @microsoft/api-extractor>minimatch as having 0 consumers, although api-extractor consumes it. That is a report, never a failure, and the line must not be read as "safe to tidy".
  • Once an api-extractor release accepts minimatch 11, the override line comes out in an ordinary dependency PR, with no card.

Verification

Read first:

  1. pnpm-workspace.yaml: the new @microsoft/api-extractor>minimatch line and its comment.
  2. osv-scanner.toml: the deleted entry, and that the header and template are unchanged.
  3. pnpm-lock.yaml: the @microsoft/api-extractor@7.58.2 snapshot's minimatch: 11.0.9.

Two-minute check: grep -c -E 'minimatch@10\.|minimatch: 10\.' pnpm-lock.yaml prints 0, and node scripts/check-osv-exemptions.mjs prints that the ledger holds zero exemptions.


Generated by Claude Code

…A-g3hv-75wg-m249 exemption

@microsoft/api-extractor pins minimatch 10.2.3 exact and was the last
10.x copy in the lockfile. It is only an auto-installed optional peer of
tsup, unplugin-dts and vite-plugin-dts, loaded for bundleTypes,
rollupTypes or experimentalDts, none of which any build here enables, and
its one call is the `minimatch()` named export that v11 keeps. A
parent-scoped override routes it to ^11.0.9, which leaves no minimatch
10.x copy, so the osv-scanner.toml exemption goes and the ledger is back
to zero entries.

Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s dependencies Pull requests that update a dependency file labels Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg

skip-changeset applied · zone o3-build · #36160 · Head-sha: 84e6e1c

  • This PR releases nothing. Its three files are pnpm-workspace.yaml (one workspace override), osv-scanner.toml (the root OSV ledger) and pnpm-lock.yaml. No .changeset row is added or changed, and no published package's manifest, range or files[] content moves. The only resolved-version change is @microsoft/api-extractor's transitive minimatch 10.2.6 → 11.0.9, and that is an install-time resolution in this workspace, not a published range.

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 27, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg

Final green head for L1 · zone o3-build · Fixes #36160
Head-sha: 84e6e1c

  • CI on this head: 58 success, 14 skipped, 0 running (read 2026-11-28T00:56Z). GitHub reads the PR as mergeable_state: clean.
  • The one red cell is the opened run's Check Changeset (check run 140772892657, finished 22:51:20Z). It predates the skip-changeset label (comment 7229684364). The labeled run's Check Changeset (140774028517, 22:52:25Z) is the newer run of that check, and it skipped on the label. rerun-failed.mjs --run 46078861857 --dry-run refuses that run because pr-automation.yml is outside the relay's re-run list (ci.yml, check-links.yml). So nothing is re-run and no commit is pushed.
  • check-governed-merges.mjs --pr 38057: NOT governed. +15 / -19, 3 files.
  • landing-k.mjs --pr 38057: K = 5 < 15. No shared book moved.
  • Scope: this follows the seat's option-A ruling. pnpm-workspace.yaml adds a scoped @microsoft/api-extractor>minimatch → ^11.0.9 override, with a comment to delete it once api-extractor drops its exact 10.x pin. osv-scanner.toml loses the GHSA-g3hv-75wg-m249 exemption, leaving zero. In pnpm-lock.yaml, minimatch 10.2.6 is gone.
  • Evidence (PR body, three folds): (1) no build here enables an api-extractor path; (2) OSV-Scanner v2.5.0 offline finds no issues with this head's ledger; (3) the lockfile holds 0 minimatch 10.x copies.
  • os-dev report: 7229654323. No L2 owed (Clause-②: no, Metadata-protocol: none).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T00:56Z

L1 ACCEPT at 84e6e1cfe913a4ea728c524c5174c1ff2dd20e1b (L1-a for the seat). Not governed (Clause-② no, Metadata-protocol none), so no L2 is owed. Face: l1-face flags one red, Check Changeset = failure, and that red is stale:

  • run 140772892657 failed at 22:51:20Z, before the label;
  • the skip-changeset label was hung by objectstack-fleet[bot] at 22:52:15Z;
  • the newer run of the same check on this head, 140774028517, started at 22:52:25Z and is skipped.

Every other check is 58 success, 12 expected skip, 0 failed, 0 pending, and mergeable_state is clean. skip-changeset is right: the diff touches only pnpm-workspace.yaml, pnpm-lock.yaml and osv-scanner.toml, and no published package.

Against the seat's option-A ruling and the card.

  • The override. '@microsoft/api-extractor>minimatch': '^11.0.9' is parent-scoped, so it moves only the one holder that is left. Its comment gives the reason, says the named minimatch() export the holder calls survives in v11, and carries a DELETE condition (an api-extractor release that drops the exact 10.x pin). The rewritten comment above it now describes the 6.0.0 to 11.0.0 floor truthfully as holding no copy today.
  • The lockfile. minimatch@10.2.6 is gone from both packages: and snapshots:, and the api-extractor snapshot now resolves minimatch: 11.0.9. So no 10.x copy is left for GHSA-g3hv-75wg-m249 to reach.
  • The exemption. The GHSA-g3hv-75wg-m249 entry is removed from osv-scanner.toml well before its ignoreUntil = 2026-12-21. That is the card's last done-when, so Fixes #36160 is right this time (part 1, build(deps): move the minimatch ^10 parents that accept 11, and keep exceljs's glob chain on its own minimatch majors #38049, was Part of).

Nit (not blocking). N1: the "no build here enables bundleTypes / rollupTypes / experimentalDts" premise is a fact about today. If a later build turns one of them on, api-extractor runs on minimatch 11. The comment already says the call it makes survives v11, so the risk is stated. A smoke test would only be owed then.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg

Landing · zone o3-build · Fixes #36160 · Head-sha: 84e6e1c

  • L1 ACCEPT at this head: L1-a comment 7231302123. No L2 owed (Clause-②: no, Metadata-protocol: none).
  • check-governed-merges.mjs --pr 38057: NOT governed, 34 changed lines ⇒ the zone lands it (area-lease.md 落地).
  • CI at this head: 58 success, 14 expected skip, 0 pending; mergeable clean. The one stale red, the opened run's Check Changeset 140772892657, is superseded by the labeled run 140774028517, which skipped on skip-changeset.
  • K: landing-k.mjs --pr 38057 → K = 5 < 15, OK.
  • L1 nit N1 (the "no api-extractor build path" premise is a fact about today) does not block. The override comment already states the v11 call survives, and it carries the delete condition.
  • Action: pr_ready + automerge_enable through the relay.

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46090625573 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (4/10) — 失败步骤: Run this shard's tests

    @objectstack/service-knowledge:test:  FAIL  src/__tests__/knowledge-settings-contribution.test.ts > embedderSettings: false keeps the embedder section off the ai page > the knowledge page, its test bu
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 24 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46090937233 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (4/10) — 失败步骤: Run this shard's tests

    @objectstack/service-knowledge:test:  FAIL  src/__tests__/knowledge-settings-contribution.test.ts > embedderSettings: false keeps the embedder section off the ai page > the knowledge page, its test bu
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • ⚠️ 本 PR 过去 24h 已在队列失败 1 次(不含本次)。 内容未变而反复失败 ⇒ 高度怀疑 flaky 测试或与同组 PR 的语义冲突,重排不解决。
  • 过去 24h 队列共有 29 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

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

Labels

dependencies Pull requests that update a dependency file size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants