fix(deps): zod 4.6.7 in graph-intelligence and browser, time-boxed accepted entries for nested zod 3 (#4442) (#4444)

* fix(deps): zod 4.6.7 in graph-intelligence and browser; time-boxed accepted entries for nested zod 3 (#4442)

GHSA-mrhx-c7xc-m3w5 (zod <4.6.6) turned the supply-chain audit red for every PR.
Both projects' own zod dependency moves ^3.22.4 -> ^4.6.7; the only code change zod 4
needs is a key schema on z.record (7 calls). The regenerated locks are now consistent
with package.json (npm ci works). The audit still names zod because other packages
(@claude-flow/cli|hooks|security|plugin-gastown-bridge, agentic-flow) keep nested zod
3.25.76 copies; two time-boxed accepted entries (expire 2026-11-23, tracked in #4442)
cover those. Needs CODEOWNER review (policy file).

Co-Authored-By: RuFlo <ruv@ruv.net>

* fix(deps): pnpm lock follows the browser package's zod 4.6.7

The first commit changed v3/@claude-flow/browser/package.json but not v3/pnpm-lock.yaml,
so every 'pnpm install --frozen-lockfile' job failed with ERR_PNPM_OUTDATED_LOCKFILE.
Minimal edit: the browser importer's zod specifier/version and the /zod@4.6.7 package
block (registry integrity). Proved with a clean 'pnpm install --frozen-lockfile', then
pnpm -r build, browser tsc --noEmit and its tests (231 passed).

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
This commit is contained in:
rUvandr authored and GitHub committed 2026-10-23 22:28:25 -04:00
1 parent 7564f7cefa
commit 2bc73c0994
11 files changed
+150 -207

No files matched your search

@@ -49,6 +49,26 @@
"trackingIssue": "https://github.com/ruvnet/ruflo/issues/2412",
"expiresAt": "2026-11-25",
"rationale": "Peer-dependency-only — the plugin does not redistribute cli's transitives. cli@3.14.2 ships its own audit on each publish. Re-audit and drop this entry once either (a) the peer is removed in favor of a slim interface package or (b) cli's tree no longer reports HIGH transitives."
},
{
"package": "plugins/ruflo-graph-intelligence",
"depName": "zod",
"severity": "high",
"via": ["GHSA-mrhx-c7xc-m3w5"],
"tracking": "ruflo#4442 — Zod <4.6.6 can exhaust memory validating oversized constrained collections (GHSA-mrhx-c7xc-m3w5). This project's OWN zod dependency is upgraded to ^4.6.7 (locked 4.6.7), so the schemas this project defines are patched. The audit still reports the package name `zod` because the lockfile also holds zod 3.25.76 copies NESTED inside other packages (@claude-flow/cli, hooks, security, plugin-gastown-bridge, and agentic-flow), none of which is this project's code; zod 3.x has no patched release.",
"trackingIssue": "https://github.com/ruvnet/ruflo/issues/4442",
"expiresAt": "2026-11-23",
"rationale": "The remaining 3.x copies belong to sibling @claude-flow/* packages and agentic-flow, which still depend on zod 3; moving them is a repo-wide zod 4 migration (each package's schemas and tests), tracked in #4442, not something to force through npm overrides here (zod 4 changes z.record and error APIs that code written for zod 3 relies on, and that cannot be tested from this project). Expires 2026-11-23 so the audit fails again and forces the decision."
},
{
"package": "v3/@claude-flow/browser",
"depName": "zod",
"severity": "high",
"via": ["GHSA-mrhx-c7xc-m3w5"],
"tracking": "ruflo#4442 — Zod <4.6.6 can exhaust memory validating oversized constrained collections (GHSA-mrhx-c7xc-m3w5). This project's OWN zod dependency is upgraded to ^4.6.7 (locked 4.6.7), so the schemas this project defines are patched. The audit still reports the package name `zod` because the lockfile also holds zod 3.25.76 copies NESTED inside other packages (@claude-flow/cli, hooks, security, plugin-gastown-bridge, and agentic-flow), none of which is this project's code; zod 3.x has no patched release.",
"trackingIssue": "https://github.com/ruvnet/ruflo/issues/4442",
"expiresAt": "2026-11-23",
"rationale": "The remaining 3.x copies belong to sibling @claude-flow/* packages and agentic-flow, which still depend on zod 3; moving them is a repo-wide zod 4 migration (each package's schemas and tests), tracked in #4442, not something to force through npm overrides here (zod 4 changes z.record and error APIs that code written for zod 3 relies on, and that cannot be tested from this project). Expires 2026-11-23 so the audit fails again and forces the decision."
}
],
"lockfile": [