Repository navigation
feat(capture): set STYLEPROOF_CAPTURE_SOURCE_MAPS for capture builds - #1429
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 (Part of #1002, not Fixes) is green and CLEAN at |
|
Independent Astra review found a P2 blocker on I am repairing that boundary and adding real webServer-process regression evidence. This head is not merge-ready despite its green checks. No merge or release is authorized in this sweep. Resolved at |
Why
Capture builds must respect a caller's source-map opt-out through the actual build/server process. Previously the capture helper preserved an exported
0or empty value, then the generated PlaywrightwebServer.envreplaced it with1.Part of #1002, stage 2. This supplies the environment for capture-only framework settings; automatic framework configuration and check-policy stages remain separate.
What changed
captureSourceMapsEnv()defaults a missing variable to1and preserves explicit values.styleproof-mapuses it for capture children.webServer.envreadsprocess.env.STYLEPROOF_CAPTURE_SOURCE_MAPS ?? '1'at runtime, preserving opt-outs at the final server boundary. External-server configs omit that field and the webServer block.0, empty and1. Existing helper/child-env and single/split workflow byte-identity tests remain.Reviewer view
11000111The generated config uses the caller's runtime environment, rather than freezing the initializer's environment.
Proof
The four new tests launch the actual Playwright webServer plugin, with a minimal HTTP server recording the environment it received. They request no browser fixture. Before the repair, unset and
1passed;0and empty failed with actual value1. Final green receipts are recorded below.Screenshots: Not applicable. This changes process environment and generated configuration; report rendering and J2 wording are unchanged. The server's recorded value is the behavioural proof.
Behaviour changes
New capture children and generated build/servers default the variable to
1only when unset. Existing explicit caller values survive both boundaries. Existing generated configs are left untouched by the initializer's normal idempotency rules. No framework automatically gains source maps from this slice alone.Not asked for
Framework configuration edits,
--check/--require-source-maps, J2 remedies, sibling-map discovery and release work. CI workflow template bytes and protected gates are unchanged. No merge is authorized here.Review guide
Read
bin/capture-env.mjs, its use inbin/styleproof-map.mjs, andplaywrightConfigTemplateinbin/init/templates.mjs. Then inspect the actual-server cases intest/init.test.mjs, alongsidetest/map-workers.test.mjsand the preserved workflow baseline tests.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.13c93b51b4221a6390815fe96fc87d9791be55b9; git remote SHA and PR readback match. All eight frozen implementation blobs match the independent review manifest.pnpm run verify: passed, 7,082 tests, zero failures. Repaired focus: six passing tests, including all four actual server-boundary cases; CLI scaffold assertion separately failed then passed.