Repository navigation
fix(remap): fail closed on global CSS Module selectors - #1430
BenSheridanEdwards wants to merge 3 commits into
Conversation
|
Note Synthetic action dogfood receipt. This report is the final deliberately failing fixture in the action contract suite. It proves that unproven evidence is rejected; it does not certify this pull request. 🗺️ StyleProof report📊 View the side-by-side visual report →Coverage, determinism, report/diff consistency, or Change Reach ( |
|
Note Live StyleProof-on-StyleProof (advisory). This report is captured from the surfaces declared in 🗺️ StyleProof reportNothing changed, so no report was uploaded. The verdict is in the run summary. Advisory-only mode: no reviewable changes detected — the StyleProof dogfood check remains green. |
|
Tie-off 17 Nov 2026, 07:50 GMT Europe/London (Goji relaying Ben). All queued Opus GOs are cancelled; no review is started in this tie-off. This PR (Fixes #1413) is green and CLEAN at |
|
Independent Astra review found a P2 blocker on .card { background: url("https://assets.example.invalid/a.png"); } h1 { font-size: 80px }The exact-head classifier still returns The URL repair is delivered at Source findings addressed at |
Why
Selective remapping must re-capture a non-importing surface when a CSS Module can emit a global selector. A module imported only by Home can still style About through
h1; the previous classifier treated this as local, including when a URL or Sass interpolation concealed the selector boundary.Closes #1413.
What changed
https://cannot erase a later global selector and quoted braces cannot invent a rule.Reviewer view
.card/#titlerulesh1, including after a quoted/unquoted URL.foo#{", h1,"}.bar { color: red }Sass can remove quotes during selector interpolation, so interpolation cannot establish a local-only bound before preprocessing.
Proof
scope, andaffectedSurfacesselecting only Home. With the escape guard, the final compiled focused run passes 103 cases, including both Home and About coverage.Behaviour changes
Global, ambiguous and interpolated module styles force a full remap, including non-importers. Proven static local modules remain selective. The feature stays opt-in; the default still captures every surface.
Not asked for
No Sass compiler, bundled-app fixture, new dependencies, public schema, workflow/gate changes, releases or held report work. No merge or human signoff was performed.
Review guide
Read
MODULE_ESCAPES,STYLE_MODULE_TOKENSandmoduleEscapesinsrc/affected-surfaces.ts, followed bytest/affected-surfaces.test.mjsandtest/affected-surfaces-interpolation.test.mjs.Verification summary
Current security hold — not merge-ready. A fresh bounded
pnpm audit --audit-level=highfails for locked picomatch 4.0.5 (GHSA-fc5q-39xc-vjpf). No validated compatible remedy is currently available. No dependency, audit-threshold, release-age or other security control was changed. Earlier passing implementation/hosted checks below do not establish current security readiness.1bc3d60a6ff7acd2589fd98d62d938a3112928c4; actual remote and PR head readback match.pnpm run verify: 7,084 tests passed, zero failures, plus build, typecheck, lint, formatting, privacy, context and suppression checks.4f4b08efrequested changes for one P2 interpolation finding. The owner addressed it with the guard and two red-then-green regressions; no additional review delegate was used for this small follow-up. This is not an Astra approval recommendation on the final head.requiredfails because the HIGH dependency audit fails; the other six protected contexts pass. Existing release, queue and human holds remain unchanged.