Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
chore: drop the dead brace-expansion and minimatch override pins (#5666)
Adam Eivy4aab64b16d51
diff --git a/client/package.json b/client/package.jsonindex 0d6f4999f5..21eb30ebfc 100644--- a/client/package.json+++ b/client/package.json@@ -51,13 +51,9 @@"vitest": "4.1.11"},"overrides": {- "brace-expansion": "5.0.9","socket.io-parser": "4.2.7","ws": "8.21.3","nanoid": "3.3.18",- "minimatch@3": {- "brace-expansion": "1.1.18"- },"three": "0.185.1"}}diff --git a/docs/DEPS.md b/docs/DEPS.mdindex d884fb08ec..6ed6366b6d 100644--- a/docs/DEPS.md+++ b/docs/DEPS.md@@ -61,7 +61,7 @@ Before removing a Tier 3 candidate, run a transitive-dep check (`npm ls <pkg>`).| `three-stdlib` | 1 | KEEP | CyberCity 3D | Community-maintained Three.js utilities used by the client renderer || **Client devDeps** | | | | || `@biomejs/biome` | 1 | KEEP | linting | Replaced the whole eslint stack 2026-08-04; native binary, 0 regular deps + 8 platform optionals (1 installed) |-| `eslint` | — | REMOVED | linting | 2026-08-04 → `@biomejs/biome`. 53 packages were reachable only via `eslint` itself (incl. the `file-entry-cache → flat-cache → keyv` chain); 110 net once the plugin subtrees and orphaned `typescript` go too |+| `eslint` | — | REMOVED | linting | 2026-08-04 → `@biomejs/biome`. 53 packages were reachable only via `eslint` itself (incl. the `file-entry-cache → flat-cache → keyv` chain); 110 net once the plugin subtrees and orphaned `typescript` go too. `minimatch` and `brace-expansion` left the tree with it (both now 0 occurrences in every lockfile), so neither needs an override pin — do not re-add one || `@eslint/js` | — | REMOVED | linting | Removed with `eslint` || `@eslint-react/eslint-plugin` | — | REMOVED | linting | Removed with `eslint`; its 8 enabled rules map to Biome rules + one GritQL plugin || `eslint-plugin-react-hooks` | — | REMOVED | linting | Removed with `eslint`; `rules-of-hooks` → Biome `useHookAtTopLevel` |@@ -134,8 +134,6 @@ Defined in `package.json` (root + server + client + autofixer) — kept current- `[email protected]` (server only)- `[email protected]` + `@protobufjs/[email protected]` (server only)- `[email protected]` (server only, collapses the nested copy `@huggingface/transformers` requests)-- `[email protected]` (client only)-- `minimatch@3 → [email protected]` (client only, scoped)- `[email protected]` (client only, keeps drei/fiber on one three copy)These exist purely to force-bump transitive deps; revisit if `npm audit` flags new advisories.diff --git a/server/dependency-overrides.test.js b/server/dependency-overrides.test.jsindex 0554f3473a..dac560f405 100644--- a/server/dependency-overrides.test.js+++ b/server/dependency-overrides.test.js@@ -20,6 +20,26 @@ const readOverrides = (rel) => {return pkg.overrides ?? {};};+const NESTED = 'node_modules/';++const lockfileFor = (manifestRel) => manifestRel.replace(/package\.json$/, 'package-lock.json');++const readLockPackages = (lockRel) =>+ JSON.parse(readFileSync(join(REPO_ROOT, lockRel), 'utf8')).packages ?? {};++// Lockfile paths are install locations, not names: `node_modules/a/node_modules/b`+// is package `b`. Everything after the LAST `node_modules/` is the package name,+// scope included.+const packageNameFromLockPath = (path) => path.slice(path.lastIndexOf(NESTED) + NESTED.length);++// The package an override entry governs. A flat key is the package itself; a+// nested key names its CONSUMER with an optional version selector (`minimatch@3`).+// A scoped name keeps its leading `@` (`@protobufjs/utf8` has no selector).+const overrideTargetName = (key) => {+ const at = key.lastIndexOf('@');+ return at > 0 ? key.slice(0, at) : key;+};+// Tracked, not on-disk. `browser/package-lock.json` is deliberately gitignored// (.gitignore) yet appears the moment anyone runs an install there, so an// existsSync() probe would make these assertions depend on the developer's@@ -54,8 +74,10 @@ describe('dependency override parity across manifests (#2848)', () => {const byPackage = new Map();for (const rel of MANIFESTS) {for (const [name, version] of Object.entries(readOverrides(rel))) {- // Nested overrides (`"minimatch@3": { ... }`) are scoped to one consumer's- // subtree and are intentionally manifest-specific — compare only flat pins.+ // A nested override (`"some-consumer@3": { ... }`) is scoped to one+ // consumer's subtree and is intentionally manifest-specific — compare only+ // flat pins. No manifest declares one today; the guard keeps this honest if+ // one comes back.if (typeof version !== 'string') continue;if (!byPackage.has(name)) byPackage.set(name, new Map());byPackage.get(name).set(rel, version);@@ -79,13 +101,9 @@ describe('dependency override parity across manifests (#2848)', () => {// Add a row here when a new CVE is pinned, so a later careless downgrade of the// override (or a copy-paste of a stale pin into a new manifest) fails loudly.//- // Each entry is scoped to the MAJOR LINE the flat override pins. `brace-expansion`- // is also pinned on the 1.x line, but only inside client/'s nested `minimatch@3`- // override — which this check skips along with every other nested pin, so the 5.x- // minimum below is never compared against a legitimate 1.1.x value. If a 1.x pin- // ever becomes a flat override, this table needs a per-major shape first.+ // Each entry is scoped to the MAJOR LINE the flat override pins, so a package+ // pinned on two majors at once would need a per-major shape here first.const MINIMUM_SAFE = {- 'brace-expansion': '5.0.7', // GHSA-3jxr-9vmj-r5cp (5.x line)'protobufjs': '7.6.5', // GHSA-j3f2-48v5-ccww'body-parser': '2.3.0', // GHSA-v422-hmwv-36x6// GHSA-52cp-r559-cp3m, then GHSA-5p4m-2wfm-xmqj (quadratic CPU in !!omap@@ -154,6 +172,42 @@ describe('dependency override parity across manifests (#2848)', () => {expect(ungoverned).toEqual([]);});+ // A pin outlives its consumer silently: the 2026-08-04 eslint→Biome swap took the+ // only `minimatch`/`brace-expansion` consumer out of the client tree, but the two+ // overrides stayed in `client/package.json` for a month (issue #5666). Nothing was+ // vulnerable — nothing was installed — yet anyone auditing a future+ // `brace-expansion` advisory would read the manifest, see a pin at the patched+ // version, and conclude PortOS was covered. Assert instead that every pin governs a+ // package the workspace actually resolves, so a dead pin fails the build the moment+ // its consumer leaves.+ it('pins nothing that is absent from the workspace lockfile', () => {+ const tracked = trackedLockfiles();+ const missing = [];+ const checkedByManifest = new Map();++ for (const rel of MANIFESTS) {+ const lockRel = lockfileFor(rel);+ if (!tracked.has(lockRel)) continue;+ const installed = new Set(+ Object.keys(readLockPackages(lockRel))+ .filter((path) => path.includes(NESTED))+ .map(packageNameFromLockPath)+ );++ const checked = Object.keys(readOverrides(rel)).map(overrideTargetName);+ checkedByManifest.set(rel, checked);+ for (const name of checked) {+ if (!installed.has(name)) missing.push(`${rel}: pins ${name}, absent from ${lockRel}`);+ }+ }++ expect(missing).toEqual([]);+ // Non-vacuity: a scan that found no manifests, or parsed a lockfile into an empty+ // package map, would otherwise report clean.+ expect([...checkedByManifest.keys()].sort()).toEqual([...MANIFESTS].sort());+ expect(checkedByManifest.get('client/package.json').length).toBeGreaterThanOrEqual(4);+ });+// The source-level assertions above compare manifest against manifest and so// cannot see a pin that was declared but never applied: adding an `overrides`// entry without regenerating that workspace's lockfile leaves the vulnerable@@ -173,15 +227,13 @@ describe('dependency override parity across manifests (#2848)', () => {}}- const NESTED = 'node_modules/';const drift = [];for (const lockRel of [...trackedLockfiles()].sort()) {- const packages = JSON.parse(readFileSync(join(REPO_ROOT, lockRel), 'utf8')).packages ?? {};- for (const [path, meta] of Object.entries(packages)) {+ for (const [path, meta] of Object.entries(readLockPackages(lockRel))) {// '' is the workspace itself, workspace-link entries carry no// `node_modules/` segment, and `link: true` entries carry no version.if (!path?.includes(NESTED) || !meta?.version) continue;- const name = path.slice(path.lastIndexOf(NESTED) + NESTED.length);+ const name = packageNameFromLockPath(path);const pinned = pins.get(name);// A package with disagreeing pins is already reported by the parity// assertion above; don't double-report it as drift here.