7.6 KiB
Scoped Jest glob 14 candidate
Baseline: efa438201c66d74149d76646ea9243efa145c10f; isolated branch codex/jest-glob14-candidate. This candidate has the local Windows qualification below and remains pending parent review. Original validated branch and shared node_modules remain untouched. No integrated acceptance, push, main merge, deployment, or orchestrator action is implied.
Before the scheduled full run, three parent-reviewed source commits were incorporated without overlap/conflicts: 336bc09987e5f3eb7b21c3a312284d9e45b3b9fc→54550c1c (interview parent read/draft isolation), 5262bee15a8d861b7cc3cf74e4737fc0c430681e→21606ddb (compact CV heading hierarchy), and f2e6a517ebe79bba293bcf0551ef38a438062fe8→5c00ec87 (answer draft preservation). Full-run source HEAD is 5c00ec87516364abd01791fd744bcf3ce649b7c5 plus the isolated candidate diff; SOURCE_INPUTS.json binds415 actual frontend files and the exact tracked diff. Original discovery snapshots predate these source inputs, so subsequent execution ordering/timing changes must not be attributed automatically to glob.
Candidate scope and lock resolution
The three existing glob ^10.5.0 consumers are @jest/reporters 30.4.1 (coverage thresholds), jest-config 30.4.2 (project expansion), and jest-runtime 30.4.2 (missing-extension diagnostics). Each uses require('glob').glob.sync(pattern,{windowsPathsNoEscape:true}). They pass no cancellation signal; the cancellation defect is not reached by these observed calls. Glob 10 internally requests minimatch optimizationLevel2, so attacker-controlled patterns remain relevant to its minimatch amplification advisory.
Package.json adds exact glob14.0.6 overrides under those three owners. Each also explicitly preserves test-exclude: {glob: '7.2.3'} within that scope. Existing brace-expansion/postcss/sharp/zod overrides and all direct dependency versions remain unchanged. The initial three simple owner overrides unexpectedly propagated through each owner's subtree and upgraded test-exclude's glob7 to14. A guard rejected that lock before install. Explicit nested exceptions plus regenerating from the original baseline lock preserve the complete old glob7 entry byte-for-byte in parsed JSON. An intermediate regeneration against the already-derived lock retained the wrong version; its outputs are preserved separately and are not accepted evidence.
The accepted candidate lock hoists glob14.0.6 and minimatch11.0.9, upgrades path-scurry1.11.1→3.0.0 and its lru-cache10.4.3→11.5.3, and removes obsolete glob10 dependencies. The now-shared minimatch11.0.9 replaces the identical nested TypeScript ESLint copy. Direct Jest/Next versions and the test-exclude glob7 tree remain unchanged. lock-delta.json records exact changes. Each of the four changed package version/resolved URL/integrity identities matches official npm registry metadata. This is a genuine cross-major dependency change, not a compatible-range leaf update.
Glob14 metadata supports Node18/20/>=22; its minimatch11 requires Node20 or >=22. Declared frontend CI/Docker use Node20, and Next16 requires >=20.9.0. Actual checks below use Windows Node24.19.0/npm11.17.0 only. Node20/Linux, hosted CI, and deployed identity remain unqualified.
Evidence accounting
- Before patching: actual baseline project
jest --listTests --runInBand --jsonreturned129 suites twice with exact identical ordering/content; native outputs and normalized repo-relative paths retained. - Fresh own
npm ci --ignore-scripts --no-audit: PASS,806 installed packages. Installed affected treenpm ls: PASS; no shared install reuse or writes. - Candidate actual project discovery: PASS, same129 suites in exactly the recorded baseline order. This is discovery evidence, not a suite execution result.
- Three permanent Node fixture regressions: PASS on both original baseline Jest/glob10 and installed candidate Jest/glob14. They exercise actual Jest project-glob expansion plus execution of two configured suites, actual coverage-threshold selection (100% passes;101% intentionally fails), and actual missing-import sibling-extension suggestions (intentional failed import). These nested fixture runs are not added to the main frontend suite total.
- Fixture setup failures on both baseline and candidate are retained: JSON CLI configuration inherited rootDir into each project, producing duplicate execution; changing to a config file and explicit child roots fixed that harness issue. Aligning subprocess CWD to the temporary fixture root enabled V8 coverage collection across the C:/E: drive boundary;
.jscoverage source uses the default supported extension. The negative coverage diagnostic assertion was corrected to the actual Jest wording. No application tests/configuration or rule severity was weakened. - New regression-file ESLint: PASS, zero warnings.
- Existing explicit glob-security and redirect-security commands: PASS, two cases each on the new installed tree. These remain separate from main-suite counts.
- Fresh candidate full lock-only audit: FAIL exit1,48 high package/metavulnerability records,zero moderate/critical. Exactly one concrete advisory remains, picomatch GHSA-fc5q-39xc-vjpf. Glob/minimatch are absent from the returned concrete advisories. This is not48 independent vulnerabilities or full supply-chain clearance.
- Fresh production-tree lock-only audit (
--omit=dev): PASS exit0 with zero returned findings; this narrower scope does not clear the full toolchain. - Scheduled full frontend Jest: PASS native exit 0, 129/129 suites and 1665/1665 tests, zero failed/pending/todo, 646.02 seconds. All 129 executed suite paths match the original discovery inventory. Serial
--runInBand --no-cache, own E: temp/cache, no test skips or weakening. These totals include the three parent-reviewed source inputs above; focused fixture/security runs are not added. The summary helper subsequently failed to decode UTF8 JSON using Windows cp1252; explicit UTF8 parsing recovered the saved native result without rerunning the suite. - Sequential Next 16.4.6 build: PASS, compile, TypeScript and 3/3 static pages/export. All 415 bound frontend source files remain unchanged after execution/build. Browser: NOT RUN; parent owns that lane. Node 20/Linux, backend, native/device/AT, provider/model, formal integrated security, hosted CI and production: NOT RUN.
- Own AST-only
graphify update .: PASS, 19,876 nodes/48,092 edges. Optional PDF/SQL extractors were absent; warnings and hashes are retained. Newly generated untracked graph artifacts were moved to siblingjest-glob14-candidate-evidence/graphify-out; shared A3 graph was untouched.
Receipts bind native subprocess bytes, exact commands/exits, normalized discovery, official metadata, rejected locks, source hashes and accepted lock delta. Remaining picomatch has no published patched version in the previously verified maintainer/registry evidence; this candidate does not fix or suppress it. Candidate audits are reported separately when complete, without inferring independent advisory elimination from npm metavulnerability count shifts.
Remaining gates
- Parent review of scoped overrides, registry identities, lock delta, fixture behavior, and residual dependency findings.
- Parent-scheduled browser checks as appropriate; declared Node20/Linux execution before claiming that environment qualified. A fresh full standalone ESLint run was not repeated; the new regression file passed scoped lint and inherited source commits have parent-owned validation.
- Publish/integrate only if explicitly authorised after qualification. Rollback means reverting this candidate and reinstalling the original lock, which restores affected glob10/minimatch9 and is not a security clearance.