← v147/document-policy-in-dedicated-workers · conformance
critique · rev 1
v147/document-policy-in-dedicated-workers
In-place MDN-shape upgrade of the old-shape v147 page: added honest Limited-availability baseline banner (no web-features entry, dated queries), verbatim Document-Policy structured-header syntax plus the worker derivation rules, an error-handling section with a documented unknown for worker reporting, verbatim explainer examples with the live worker-feature-probe embed (all six CPS routes GET-verified 200), an interim compat table that states BCD's absence explicitly, specifications and security/privacy sections, and exact flag enable steps. Identity, route, H1, lede, warn-block and the original what-is section preserved. validate-artifacts green for this page; contract implementation-sufficient pending independent review.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | minor | Upgrade re-verified against live sources 2026-10-04: WICG Document Policy draft (Document-Policy = sf-dictionary ABNF and §7.1 directive examples quoted verbatim), MSEdgeExplainers DocumentPolicyInWorkers.md (dedicated-worker semantics and security bullets quoted verbatim from the raw markdown), ChromeStatus API record (dev-trial desktop_first 147, finch name DocumentPolicyInDedicatedWorker, Firefox/Safari No signal), Chromium runtime_enabled_features.json5 (DocumentPolicyInDedicatedWorker status experimental), whatwg/html PR #12026 patch (commit subjects read from patch-diff). Minor: PR merge state and the blink-dev thread title could not be read from this environment and are labelled accordingly on-page. |
| milestone-mapping | 5/5 | info | Page keeps its v147 identity (feature 6242687411945472); ChromeStatus dev-trial stage records desktop_first: 147, matching the existing filing. No re-filing, route and H1 unchanged. |
| completeness | 4/5 | minor | Surface inventoried as the Document-Policy header plus the worker policy-derivation algorithm; both mapped across all nine dimensions in reference-contract.json (implementation-sufficient). Error handling has its own #error-handling section: unknown directives ignored (spec §7.2.1), absent header falls back to spec defaults (explainer verbatim), and worker-context violation reporting recorded as a DOCUMENTED UNKNOWN (sources checked 2026-10-04) rather than invented. deno task validate-artifacts reports zero problems for this page; independent integrator source review still pending. |
| explanation-quality | 4/5 | info | New syntax section states explicitly that no new header/API is added and the change is where the header is read; the three derivation rules (network response authoritative, local-scheme clone, spec-default fallback) are quoted rather than paraphrased, and the no-merge rule is called out. |
| examples | 4/5 | minor | Explainer's header example (Document-Policy: js-profiling) and Profiler snippet quoted verbatim and labelled as such; live showcase worker-feature-probe demo embedded with four sibling concepts linked. No end-to-end page+worker response-header walkthrough yet (noted as follow-up). Examples source-derived, not executed. |
| browser-compat-fallbacks | 4/5 | info | BCD v8.1.4 (2026-10-01) verified to contain no Document-Policy header entry (http/headers tree + compiled data.json key scan); the page says so explicitly and labels its ChromeStatus-derived table as interim, non-BCD. BCD api/Profiler.json cited for the motivating gated API (Chrome 94, Firefox/Safari never shipped). Baseline banner says Limited availability and documents the absent web-features entry with query dates. |
| links-validity | 4/5 | minor | Every citation label is a direct link (spec section anchors #document-policy-http-header / #policies-as-structured-headers verified against the spec HTML ids; explainer raw fetched; PR patch URL fetched 200; all five showcase concept routes GET-verified 200 on 2026-10-04; intent msgid redirect resolved to the canonical Groups thread URL via curl 302). Minor: the DevTrial announcement Google Doc and the Groups thread were not content-read from this environment (JS-rendered), only linked. |
| accessibility | 4/5 | info | Single h1, sequential h2 outline with anchor ids on every section, baseline banner role=note with aria-label, iframe title + figcaption, tables keep header cells, external links rel=noopener. Colors unchanged from the shared design system (CSS variables only). |
| responsive-ux | 4/5 | info | Applied the template's patterns plus fixes for tokens the template rules missed: overflow-wrap on h1/lede/eyebrow and on .warn-block/.baseline-banner code (the long --enable-blink-features=DocumentPolicyInDedicatedWorker token), .table-wrap{overflow-x:auto} around all three tables, pre overflow-x, iframe max-width:100%. Verified over CDP with real device metrics (Emulation.setDeviceMetricsOverride 360x740 DPR3 and 1280x800 via scripts/lib/cdp.mjs): scrollWidth==innerWidth on both (360/360, 1280/1280), screenshots read. Note for future waves: plain `chrome --headless --window-size=360,...` is NOT a valid mobile check — headless Chrome enforces a ~500px minimum layout width (probe: innerWidth=500 at --window-size=360), which makes any page look clipped. |
| showcase-demo-relationship | 4/5 | info | Five CPS concept routes plus the feature index all GET-verified 200 via curl -s -o /dev/null -w %{http_code} (not the proxy CONNECT line) on 2026-10-04; worker-feature-probe embedded (probes policy-gated feature availability inside the worker), the other four linked in the figcaption. The sandbox browser cannot complete external TLS through the agent proxy, so the iframe's in-browser render could not be confirmed here — the GET checks are the embed evidence. conformance.json originally predated the embed; td9n reconciled its demo/CPS metadata to worker-feature-probe and the verified feature-level conformance route while leaving assertions and suiteHash unchanged. |
modern-web-guidance consulted
- responsive data table horizontal scroll mobile reference documentation — Data tables need proper header semantics and must remain readable/navigable on small screens. (Applied: all four tables wrapped in .table-wrap{overflow-x:auto}, header cells kept, overflow-wrap:anywhere on cells so the page never overflows horizontally.)
- lazy loading third-party iframe embed performance — Deprioritize non-critical below-the-fold resources (Lazy-loading images and iframes) so they don't compete with initial render. (Applied: the showcase iframe uses loading="lazy" and sits below the code examples.)
- status banner aria role note accessibility — Semantic HTML first; use ARIA roles/labels for non-interactive supplemental landmarks. (Applied: baseline banner is a role=note with aria-label="Baseline status"; all new content is static semantic HTML with a sequential heading outline.)
open questions
- whatwg/html PR #12026's merge state could not be verified from this environment (github.com HTML/API gated; the patch endpoint worked) — the specifications table says so. Re-check and update the status cell.
- Chrome 147's developer trial scope: the feature name and runtime flag cover dedicated workers only, while the explainer specifies semantics for shared and service workers too; whether any shared/service-worker behavior is included in the 147 trial is unverified.
- Whether Document-Policy-Report-Only and the report-to parameter operate in worker contexts is not covered by the sources read; recorded on-page as a documented unknown in the #error-handling section.
- The blink-dev thread is linked via the resolved msgid redirect (stage_type 120 = prototype stage); the thread's actual title/content was not readable from this environment (Google Groups requires JS).
- 2026-10-08 source correction: the page's old lede and overview wrongly claimed creating-page policy propagates to all workers, contradicting its own syntax section and the live MSEdgeExplainers network-worker section. Network workers read only the script response; blob:/data: workers clone their creator. The page now says so and labels an illustrative new Worker() call as gendn-derived, not an executed example. The requested page-response step is absent from the explainer and not invented; Chrome-147 flagged behavior has not been browser-proven here.
follow-up goals
- [medium · targeted-fix] Re-check whatwg/html PR #12026 merge state and update the specifications table row (and the derivation-rule citations) once it merges into the HTML Standard's policy container.
- [medium · targeted-fix] Replace the documented unknown in #error-handling with sourced behaviour once worker-context violation reporting (Document-Policy-Report-Only / report-to) is specified.
- [low · targeted-fix] Watch BCD for an http.headers.Document-Policy entry and replace the interim ChromeStatus-derived compat table with real per-version BCD data when it lands.
- [low · targeted-fix] Add an end-to-end example showing the page response, the worker script response carrying Document-Policy: js-profiling, and the new Worker() call, sourced to the explainer's network-worker section.