LearnNewsExamplesServices
Frontmatter
id19320
titleThe monaco-editor > dompurify override no longer holds a floor, so the npm-overrides job reds every engine PR (#19316)
stateClosed
labels
bugaibuild
assigneesneo-preview
createdAtSep 29, 2026, 11:30 AM
updatedAtSep 29, 2026, 12:46 PM
githubUrlhttps://github.com/neomjs/neo/issues/19320
authorneo-preview
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 29, 2026, 12:46 PM

The monaco-editor > dompurify override no longer holds a floor, so the npm-overrides job reds every engine PR (#19316)

neo-preview
neo-preview commented on Sep 29, 2026, 11:30 AM

Terminal predicate: package.json's overrides block carries no rule that no dependent in scope can resolve below — the shared PR baseline's npm overrides job is green on neomjs/neo and every future one, because monaco-editor 0.57.0 declares dompurify 3.4.15 itself and the monaco-editor > dompurify ^3.4.13 rule no longer holds a floor.

Problem scope

neomjs/neo#19316 bumped monaco-editor 0.56.0 → 0.57.0 (merged). In 0.56.0 the editor exact-pinned dompurify 3.4.8, which is why this repo carries an override forcing it up. In 0.57.0 the pin is dompurify 3.4.15 — two patch releases above the floor the override sets.

The rule is now dead weight, and the shared baseline notices:

❌ monaco-editor > dompurify ^3.4.13 · REDUNDANT — all 1 dependent range(s) in scope
   start at or above its floor. Delete the rule.
check-npm-overrides: 1 of 3 override(s) no longer hold a floor.

baseline / npm overrides exits 1, so every new PR on the engine reds on a rule that is enforcing nothing. Reproduced on neomjs/neo#19318 (Dependabot's lint-staged bump), job 109341762807; @neo-opus-vega filed the same defect-note at 2026-09-28T18:17Z. The Institution already removed its copy (PR #318, 386f8c4) — the engine is the last holder.

Measured, on dev@ package.json + package-lock.json (lockfileVersion 3):

dev without the rule
monaco-editor@0.57.0 declares dompurify 3.4.15 dompurify 3.4.15
hoisted node_modules/dompurify 3.4.13 3.4.15
nested under monaco-editor none none
mermaid declares ^3.4.12 ^3.4.12
packages in the lock 1610 1610

The removal is not a downgrade of protection: it raises the sanitizer the engine actually resolves, 3.4.13 → 3.4.15, because the hoisted copy was being held down to the override's floor while monaco asked for 3.4.15. mermaid's own ^3.4.12 is satisfied by 3.4.15, so nothing else moves. Six lines change, all in one lock entry.

Intended solution

Delete the monaco-editor > dompurify rule from overrides in package.json and let the lockfile re-resolve. The other two rules stay: gray-matter > js-yaml ^3.15.2 (gray-matter@4.0.3 declares ^3.13.1) and lodash-es ^4.18.0 (chevrotain 11.1.2 pins 4.17.23 ×3, dagre-d3-es declares ^4.17.21) — the checker measures both as still needed in the same run.

Acceptance Criteria

  • AC-1 package.json declares no monaco-editor key under overrides, and the two remaining rules are untouched.
  • AC-2 node_modules/dompurify resolves to 3.4.15 with no nested copy under monaco-editor, and mermaid's ^3.4.12 is still satisfied (npm ls dompurify).
  • AC-3 node ./node_modules/neo-agent-skills/scripts/check-npm-overrides.mjs exits 0 — the job that reds every PR today.
  • AC-4 npm audit reports no new advisory from the bump, and npm ci resolves one DOMPurify.

Prior art

  • neomjs/neo-agent-skills#88 (Ada) — the static classifier and the "Dependabot never removes one; this check is what notices" contract this PR discharges.
  • neomjs/neo#18354 / PR #18717 (Grace) — the original reason the override exists, and why the floor was 3.4.13 at all.
  • neomjs/neo-agent-institution PR #318 (386f8c4) — the same removal, already landed there.

Sweeps

Live latest-open sweep: the latest 20 open neomjs/neo issues at 2026-09-29T09:4xZ, none on overrides. Title/exact sweeps (monaco dompurify override, npm overrides redundant, overrides redundant npm, dompurify, monaco) across all states: #18354, #18812, #18858, #19102, #5822, #18823 — none names a redundant monaco rule; #18858 is the baseline-pin ticket that added the job. A2A in-flight sweep (status: all, latest 30, 2026-09-28T15:0xZ → 09-29T09:2xZ): @neo-opus-vega's 18:17Z defect-note is the only hit and claims nothing; her 09:29Z [lane-claim] is neomjs/neo#19159 (resources/content), a disjoint scope. MC sweep (query_raw_memories, 8 results): Grace's #18354 and Ada's #88/#89 record the override's origin and the classifier's design; nothing claims the removal. Own-assignment sweep: no open neomjs/neo issue assigned to me. Epic-layer sweep: 23 open epics' terminal predicates read, none names a dependency-override leaf.

tobiu referenced in commit 25035db - "build(deps): drop the monaco-editor > dompurify override monaco 0.57 made redundant (#19320) (#19321)" on Sep 29, 2026, 12:46 PM
tobiu closed this issue on Sep 29, 2026, 12:46 PM