← v148/prompt-api-sampling-parameters · conformance
critique · rev 1
v148/prompt-api-sampling-parameters
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | major | Upgrade 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-mapping | 3/5 | major | Feature 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). |
| completeness | 4/5 | minor | The 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. |
| examples | 4/5 | info | Code 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-fallbacks | 4/5 | info | Prose-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-validity | 4/5 | info | Every 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. |
| accessibility | 4/5 | info | Baseline 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-ux | 4/5 | info | Playwright 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-relationship | 4/5 | minor | Manifest 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
- responsive data table on mobile without horizontal page overflow — Use semantic table headers; put the table in a scroll wrapper with tabindex=0, role=region and an accessible name. (Applied: the new compat table has a thead and sits in .table-wrap with role=region, aria-label and tabindex=0. Exception: the stacked/sticky-header transform was not added, because the house .table-wrap scroll pattern is the corpus-wide convention.)
- lazy load offscreen iframe embed — Apply loading=lazy to off-screen iframes; make scrollable code blocks a named role=region with tabindex=0. (Applied: the below-the-fold showcase iframe uses loading=lazy; both new IDL <pre> blocks carry role=region, aria-label and tabindex=0.)
- status banner note accessible semantics — Use semantic structure and accessible names for landmark-like regions; don't hide focusable embeds from assistive technology. (Applied: the Baseline banner is role=note with aria-label 'Baseline status'; the iframe has a descriptive title and is not aria-hidden.)
open questions
- Listing-name drift: the milestone=148 listing now names feature 6325545693478912 'Prompt API Sampling Mode' (slug prompt-api-sampling-mode), while this published route is /v148/prompt-api-sampling-parameters/. Whether to record an alias/migration is an integrator decision.
- The Chrome 148 behaviour of the raw parameters inside the origin trial (clamping/RangeError) is taken from the explainer and the M148 IDL; it was not executed against a Chrome 148 build with a trial token.
follow-up goals
- [medium · additive-page] Add a reference for Prompt API samplingMode (LanguageModelSamplingMode presets) on the milestone where ChromeStatus lists it as shipping (proposed: Chrome 160).
- [medium · targeted-fix] Resolve the listing-name drift (Prompt API Sampling Parameters -> Prompt API Sampling Mode) with a reviewed alias/move migration if the server's /v148/ listing shows this feature as pending.