Repository navigation
feat(report): explain missing script source maps - #1434
BenSheridanEdwards wants to merge 2 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. |
Why
Reviewers need an actionable explanation when missing JavaScript source maps limit the evidence accompanying a computed-CSS comparison. Naming the capture setting and the affected script count makes that limitation visible without overstating what J2 proves.
Part of #1002. Framework configuration writers and check policy remain separate staged work behind #1429 landing; this delivers the independently actionable report wording.
What changed
productionBrowserSourceMaps, or Vite hidden maps and webpack hidden-source-map, based on captured script paths.STYLEPROOF_CAPTURE_SOURCE_MAPS=1; no unavailable initializer auto-fix is advertised.Reviewer view
classifyScriptReach→evidenceSide→ missing-map remedy →scriptStripLines/ gap details → Markdown, HTML and published JSON.In
src/script-join.ts, Next.js paths select its framework setting; other paths select Vite/webpack guidance. Only fully measured mapped head evidence permits the qualified baseline-refresh message.src/report/reach.tsadds the missing-map notice while retaining existing confidence warnings.Proof
Behaviour changes
Not asked for
No framework configuration editing, initializer/check policy, workflow, dependency, audit, release-age, schema, or J2 gate changes. #1002 stays open. No release, merge, or human signoff is performed.
Review guide
Start with
sourceMapGapinsrc/script-join.ts, thentest/source-map-guidance.test.mjsfor the negative head-evidence cases. Compare all four PNGs with the generated Markdown/JSON underdocs/proof/source-map-guidance/; these are advisory diagnostics, not a certified app comparison.Verification summary
Current security hold — not merge-ready. The bounded current
pnpm audit --audit-level=high --jsonexits 1 for picomatch 4.0.5 / GHSA-fc5q-39xc-vjpf. The shared lock is unchanged. No compatible validated remedy is available; audit, release-age, hooks and security controls are preserved. Historical passing checks do not establish current security readiness.pnpm run build; focused compiled guidance and budget compatibility tests: PASS (18 guidance cases).pnpm run verify: PASS, 7090 tests. First attempt stopped on an advisory URL outside the privacy allowlist in the new task note; the note now retains the advisory ID without that URL, and the unchanged privacy validator passes.pnpm run demo:check: PASS. All four final PNGs were visually inspected before commit, with warnings and the no-certification statement visible..husky/_, with noconfig.worktreeoverride. No hooks were bypassed.Final delivery head:
994ac12eac85658ef3e4f7bf44e781a247625cff. The initial and bookkeeping commits both ran normal hooks: 2,329 affected unit tests and 1,267 Chromium tests passed on each push, with the same existing project-selection skip. The worktree is clean; all seven proof files, including four PNGs, match the committed GitHub blobs. Hosted CI on this head completed: coverage and all shards, browser tests/evidence, corpus, Windows smoke and macOS smoke passed.build (node 22)failed solely at the HIGH picomatch audit, so aggregaterequiredfailed; the six other protected contexts passed. See audit job and aggregate receipt. The bounded current audit was refreshed at 20:36 UTC and still exits 1; no merge-ready claim is made.