critique · rev 2
v152/sub-apps
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | IDL copied verbatim from the WICG draft (wicg.github.io/sub-apps): partial Window.subApps, typedef ManifestId, SubAppsAddResponse/SubAppsRemoveResponse/SubAppsListResult dictionaries, and the SubApps interface with add/remove/list signatures. Exception sets per method trace to the explainer's 'Detailed API Behavior' sections. Quotas (50 total / 20 per prompt), scope-prefix rule, ManifestId fallback, and static-vs-dynamic provisioning all trace to the explainer. No invented members. Rev 2 corrections after independent review: (a) every availability claim is provenanced to the direct chromestatus API with its update timestamp — api/v0/features/6260680824061952, updated 2026-07-24 12:57 UTC by siobhankeating@: browsers.chrome.desktop=152, status text 'Proposed'; the active stage (active_stage_id) is the stage object with intent_stage=5 — INTENT_SHIP, 'Prepare to ship' per core_enums.py — with desktop_first=152, so the direct API and the v152 milestone listing AGREE on desktop 152 as the default-on target while the status text remains 'Proposed' (an earlier revision of this critique misread stage_type 150, which is intent_stage=3 / origin-trial and carries no milestone, as the prepare-to-ship stage — corrected after independent review); v150 milestone listing 'In developer trial (Behind a flag)' (route basis, re-verified today); v152 milestone listing 'Enabled by default' (re-verified today). A rendered chromestatus feature page is NOT treated as authoritative — see the stale-render limitation in openQuestions; (b) dev-trial setup follows the official sample README (#enable-isolated-web-apps, #enable-isolated-web-app-dev-mode, #enable-sub-apps, install via chrome://web-app-internals), with --enable-blink-features=SubApps retained only as labelled implementation/debug evidence (runtime_enabled_features.json5 line 6183, status stable). |
| milestone-mapping | 5/5 | info | Feature id 6260680824061952 appears in features_by_type for milestone=150 ('In developer trial (Behind a flag)') — listing position authoritative per invariant #2, re-verified 2026-07-24. Slug 'sub-apps' derived from the LISTING name 'Sub apps' via the server slugify. The same id in the v152 listing (Enabled by default, re-verified today) does not move this page: historical listing position is the route invariant; v152/sub-apps remains pending future additive work. |
| completeness | 5/5 | info | 8 h2 sections: at a glance, Syntax (verbatim IDL + per-method parameter/return/exception tables), Sub app identity/resources/limits, Enterprise policies, Examples, Browser compatibility, Specifications, See also. Covers the full contractual surface including the three enterprise policies recorded on the ChromeStatus entry and (rev 2) the complete documented dev-trial setup from the official sample. |
| explanation-quality | 4/5 | minor | Lede states what sub apps are and what they share with the parent IWA; warn-block gives the complete documented setup (ChromeOS device, three chrome://flags entries, chrome://web-app-internals install, Permissions-Policy); identity section leads with the security-principal point before the distinguishing presentation details. |
| examples | 5/5 | info | Live showcase concept embedded (capability-gate, HEAD-checked 200 along with identity-roundtrip and install-response-map; the two spare concepts are linked in See also). Embed exercised in chrome-devtools-mcp: iframe loaded (network req 200), 'Probe this context' clicked, live region reported '1 of 4 gates passed' with honest per-gate PASS/FAIL. Companion <pre> snippet adapts the explainer's add/list/remove example, correctly escaped. |
| browser-compat-fallbacks | 5/5 | info | No webstatus.dev entry (queried) and no BCD api/SubApps.json (404) — page says so explicitly and labels the compat table 'interim — from ChromeStatus, not BCD'. Baseline banner honestly reads 'Limited availability'. Rev 2: Edge is 'Not separately reported' (the detail's browsers object has no edge key at all — verified 2026-07-24) with an explicit note that Chromium engine equivalence is not a support commitment; Firefox/Safari 'No signal' is what ChromeStatus records (ff_views/safari_views=5). End-user platform availability (desktop implementation, but currently ChromeOS-only via IWA support; other desktops unofficial per the sample README) is stated in the banner, at-a-glance, and compat table. |
| links-validity | 5/5 | info | All outbound links fetched during research (spec 200, explainer 200, sample repo + README, WICG proposal #282, TAG comment anchor, chromeos.dev IWA, 3 enterprise policy anchors, 3 showcase routes all 200). All target=_blank links carry rel=noopener (suite assertion external-links-rel-safe: pass). Zero empty anchors (suite: pass). Canonical chromestatus.com/feature/6260680824061952 identity link present (suite: pass). |
| accessibility | 5/5 | info | Single <main>, single <h1>, heading order h1→h2→h3 intact. All 8 data tables now carry <caption> plus th scope=col/row (rev 2 added the missing at-a-glance caption identified in rev 1 instead of rolling the defect). Iframe has a descriptive title and scrolling is NOT disabled. Baseline banner marked role=note with aria-label. |
| responsive-ux | 5/5 | info | Matrix pass: responsive scan desktop:ok mobile:ok (shots read). chrome-devtools-mcp at 1280×800 and 390×844: documentElement.scrollWidth equals innerWidth on both, zero elements overflowing, pre blocks scroll independently, baseline chips wrap, iframe fits. No 100vh/dvh traps. Re-smoked after rev 2 edits (see reviewedAt). |
| showcase-demo-relationship | 5/5 | info | Embed src contains chrome-platform-showcase.paulkinlan-ea.deno.net/v150/sub-apps (suite demo-embed-own-feature: pass). Suite cpsFeature references the CPS conformance contract at /v150/sub-apps/capability-gate/conformance rather than forking platform assertions. Note: the embedded demo's own copy says 'Chrome 153 enables it by default' — that figure traces to a stale rendered chromestatus page; the gendn page instead provenances availability to the timestamped API (desktop 152, 'Proposed', 2026-07-24). |
modern-web-guidance consulted
- responsive reference documentation page with data tables that do not overflow on narrow mobile screens — Lean on intrinsic sizing; give scrollable treatment (overflow:auto) to long unbreakable content (URLs, code) so a scrollbar appears only when content truly overflows; flex-wrap whenever overflow is possible. (Applied: wide doc-tables wrapped in .table-wrap{overflow-x:auto} preserving table semantics; baseline browser chips use flex-wrap; pre blocks keep the design-system overflow-x:auto. Verified at 390px: no document overflow.)
- embed third-party iframe demo lazily without hurting page performance, with accessible title and fallback link — Always provide a descriptive iframe title; do not disable iframe scrolling; use <caption> and th scope for data tables; use figcaption for figure content. (Applied: iframe title 'Live example — Capability & context gate (Sub apps)'; scrolling not disabled; 8/8 tables captioned with th scope (rev 2 completed the set); figure/figcaption for the embed.)
- embed third-party iframe demo lazily without hurting page performance, with accessible title and fallback link — Use native loading="lazy" for below-the-fold iframes and keep explicit width/height to avoid layout shift. (Applied: loading="lazy" with width=100% height=520 on the below-the-fold embed; network log confirms the iframe document only fetched after scroll-into-view, with zero failed requests.)
- long code blocks and IDL syntax blocks readable and scrollable on mobile without breaking layout — text-wrap: balance/pretty improves ragged wrapping on short standalone text such as headings. (Exception, justified: h1/h2 styling is owned by the shared design system (public/styles.css) which is off-limits to per-page changes (routine safety rules); diverging on one page would break house consistency. Recorded here as a candidate design-system-level improvement.)
- reference documentation page with wide policy tables and long unbreakable JSON/URL values on narrow mobile screens — Contain wide content within its track and let it scroll when it truly overflows rather than sizing to the viewport; adapt components to their container. (Applied using the page's existing pattern, with no new CSS: the three new enterprise-policy tables sit in the same .table-wrap (overflow-x: auto) as the page's other tables, and the new managed-policy <pre><code> examples inherit the site's pre { overflow-x: auto }, so the long unbreakable tokens (policy names, isolated-app:// origins, enum members) scroll inside their own box instead of widening the document. Exception: the guide's container-query recommendation was deliberately NOT adopted - these tables are not components placed in differently-sized containers, and the established wrapper already contains the overflow, so adding container-type would change nothing observable. Guide retrieved via npx modern-web-guidance@latest retrieve size-aware-styling (2026-10-06).)
open questions
- LIMITATION — source volatility: a rendered chromestatus feature page can serve stale content (a 2026-07-20 render claimed shipping 153 while the direct API, updated 2026-07-24 12:57 UTC, says desktop 152 / 'Proposed'). This page's availability claims are provenanced to api/v0 responses timestamped 2026-07-24; any future run touching this page or the pending v152/sub-apps page must re-fetch the API directly — not the rendered page — and re-derive claims from whatever is current.
- When the feature's status text moves off 'Proposed' (or the desktop ship estimate moves), update the banner, at-a-glance, and compat table with the new timestamped API values.
- End-user platform availability is ChromeOS-only (IWA support); if IWA support expands to other desktops, update the banner, at-a-glance, and compat table.
- If an Edge (or other Chromium-vendor) position is ever recorded on ChromeStatus, replace 'Not separately reported' with the recorded signal.
follow-up goals
- [medium · additive-page] Build the v152/sub-apps page when the routine reaches the v152 milestone, re-deriving every availability claim from the then-current direct chromestatus API (updated 2026-07-24 it said desktop 152 / 'Proposed') and from webstatus.dev/BCD if entries exist by then.