# model-gap live conformance probe

- Status: `experiment`
- Track: [model cutoffs & self-observing browser telemetry](https://aifoc.us/labs/platform-observability/)
- Layer: 7. Self-Observing Web, Evaluation & Economics
- Updated: 1 December 2026
- Live demo: https://model-gap-live-harness.kinlan-test.workers.dev
- Source: https://github.com/PaulKinlan/model-gap-live-harness

## Inspired by

- [please mind the model gap](https://aifoc.us/please-mind-the-model-gap/)

## Hypothesis

- **Claim:** Evaluating generated UI code against live browser runtime checks cleanly exposes how far static training cutoffs (`2024-06`..`2026-06`) lag shipped native primitives like `commandfor`, CSS anchor positioning, and `Connection-Allowlist`.
- **Confirms it:** The live 25-API probe highlights multiple native features active in the visitor's browser that older training cutoffs omit in favor of heavyweight JavaScript workarounds.
- **Falsifies or bounds it:** Newly shipped platform primitives lack sufficient cross-engine Baseline coverage (`Firefox`/`Safari`), forcing polyfills regardless of model training cutoff.

> **Why this exists:** Code generated from older training cutoffs routinely emits verbose JavaScript polyfills where modern browsers already provide native HTML, CSS, and HTTP APIs (`commandfor`, CSS anchor positioning, `:has()`, `Connection-Allowlist`). This lab probes 25 native APIs live inside your browser against selectable training cutoffs from `2024-06` through `2026-06`.


## What this lab tests

Code generation models trained on older snapshots omit recently shipped browser features (`commandfor`, CSS anchor positioning, `:has()`, OPFS, [`Connection-Allowlist`](https://chromestatus.com/feature/5175745573945344)) and emit heavyweight legacy polyfills instead. How large is that gap inside *your current browser* right now?

[Model-Gap Live Harness](https://model-gap-live-harness.kinlan-test.workers.dev) ([GitHub](https://github.com/PaulKinlan/model-gap-live-harness)) probes 25 native platform features in real time—including a live [`Connection-Allowlist`](https://model-gap-live-harness.kinlan-test.workers.dev/probe/allowlist) header test iframe—and scores *your browser's runtime support* against selectable training cutoffs (`2024-06`, `2025-03`, `2025-11`, `2026-06`), showing deprecated model snippets alongside native APIs.


## Open questions to iterate on

- Which newly shipped HTML/CSS APIs produce the biggest token-count reduction per screen when coding models switch away from legacy JS patterns?
- Can live browser probe exports feed directly into automated coding-agent context packs (like `modern-web-guidance`)?

## Iteration log

- **2026-12-01:** Deployed 25-API browser detector + live `/probe/allowlist` header test scored across 4 selectable model cutoffs (`2024-06`..`2026-06`).
- **2026-12-01:** Refined top-to-bottom hypothesis flow with Baseline vs. non-Baseline KPI splits, added CSP-safe DOM syntax highlighting across diffs/wire/JSON views, routed static assets through the Worker for tightened CSP and `no-cache` headers, and hardened 700px iframe layout.

## Primitives tested

- `Feature Detection Matrix`
- `Connection-Allowlist Header Probe`
- `MDN / web-features Data`
- `Structured Output Checks`

## Connected labs in other tracks

- [web + ai spec polyfill testbed](https://aifoc.us/labs/hypermedia-and-islands/spec-polyfill-browser/) — Tests pre-shipped spec explainers alongside already-shipped features probed here.
- [self-observing web fault bundler](https://aifoc.us/labs/platform-observability/self-observing-web/) — Captures live runtime faults caused by stale APIs and layout shifts.

---
Canonical: https://aifoc.us/labs/platform-observability/model-gap-live-harness/
