← v148/prompt-api-sampling-parameters · conformance

critique · rev 1

v148/prompt-api-sampling-parameters

reviewed 2026-11-15 by 2026-11-15 MDN-upgrade leaf writer self-critique; source-correction delta pending independent review

rubric

dimensionscoreseverityevidence
factual-source-fidelity4/5majorUpgrade corrected factual errors against the current spec IDL and the Chromium M148 branch (7778) IDL: LanguageModelCreateOptions.temperature/topK are 'unrestricted double' (page said float/unsigned long); examples passed a non-existent 'systemPrompt' option (replaced with initialPrompts role:system); standards positions were 'No signal' but chromestatus/webstatus now record Mozilla negative / WebKit oppose; errors are RangeError/clamping/params()->null per the explainer (contract previously claimed TypeError). Severity major records the pre-upgrade errors.
milestone-mapping3/5majorFeature 6325545693478912 still appears in the milestone=148 listing under 'Origin trial', but the listing name is now 'Prompt API Sampling Mode' (queried 2026-11-15), whose slug differs from this folder. Route kept per the durable-route contract; the drift is recorded as an open question for the integrator (alias/migration decision is out of a leaf writer's scope).
completeness4/5minorThe inventory covers the Chrome 148 surface (params(), create options temperature/topK, instance attributes). samplingMode is documented as a successor note with verbatim IDL but is intentionally not inventoried: the M148 branch IDL has no samplingMode member.
examples4/5infoCode examples fixed (initialPrompts). sampling-playground showcase concept embedded (HEAD 200, 2026-11-15) after the existing feature-index link so the manifest demo is unchanged; in a browser without the origin trial the demo honestly reports that LanguageModel.params is not a function.
browser-compat-fallbacks4/5infoProse-only table replaced with a per-version table from BCD api/LanguageModel.json raw JSON (Chrome 148, Chrome Android false, Edge 138 behind #edge-llm-prompt-api-for-phi-mini, Firefox/Safari false). BCD has no sampling-parameter sub-entries, so that column is labelled interim from ChromeStatus + the M148 runtime_enabled_features.json5. Baseline banner = Limited availability, matching webstatus.dev languagemodel.
links-validity4/5infoEvery new source label links directly (spec IDL index, explainer sections, M148 Chromium files, BCD, webstatus, standards positions, OT page). The warn-block's earlier unlinked 'Chrome Origin Trials dashboard' mention now sits beside a direct trial link.
accessibility4/5infoBaseline banner role=note with aria-label; new IDL <pre> blocks are role=region with aria-label and tabindex=0 so they are keyboard scrollable; compat table wrapper is a labelled, focusable region with thead header cells; iframe has a title and figcaption.
responsive-ux4/5infoPlaywright headless Chrome at 1280x800 and 360x740 DPR3: zero document horizontal overflow, zero console errors; tables scroll inside .table-wrap (544px content in a 312px wrapper on mobile), IDL pre scrolls internally; banner, compat table and iframe screenshots read.
showcase-demo-relationship4/5minorManifest demo stays the feature-index URL. The showcase demos still exercise the deprecated raw parameters rather than samplingMode; noted in the embed's intro text.

modern-web-guidance consulted

open questions

follow-up goals