Packet: Measuring… Rubric: Edge Isolated

Automated UI Quality Evals · Bounded Evidence Packets & Isolated Rubrics

Evidence Distiller & Eval Harness

Grade web UI quality by how it behaves under real faults—offline feeds, blocked scripts, QuotaExceededError, pagehide draft loss, and WCAG 2.1 contrast—by distilling live browser state into a <= 4,096 B packet scored by an isolated edge rubric.

Why this matters

Dumping 50–120 KB of raw DOM into an evaluator wastes context budget, while brittle CSS-selector checks are easily gamed by hollow cheats—empty catch {} blocks, overflow-x: hidden clipping, or empty aria-label="" attributes.

What this opens up

Grading UI quality by actual resilience rather than brittle CSS selectors. Compressing real geometry clipping, contrast ratios, Accessibility Tree names, and fault survival under 4 KB separates genuine fixes (strong) from cosmetic cheats (hollow) and broken regressions (unmet).

How the tests work

Toggle any of the 6 defects inside the 360px playground between baseline, real (genuine fix), hollow (silent cheat), and regressive (hides controls), then click Distill & Evaluate—or switch to <= 512 B over-compression to test signal loss.

3 Things To Try

Initializing playground…

1. Audit Unpatched Baseline (6 Defects)

Injects real faults across all 6 unpatched bugs in /playground/app, compresses ~65 KB of DOM/style state to < 4 KB, and scores it at POST /api/evaluate.

2. Compare Hollow Cheats vs. Strong Fixes

Hollow patches fake success (empty catch {}, overflow-x: hidden clipping, empty aria-label=""); Strong patches preserve data, contrast, and accessible names under fault.

3. Test Regressive Patches & Over-Compression

Regressive patches hide broken inputs/controls to dodge errors (graded unmet); Over-Compress (< 512 B) strips geometry and read-back proof, exposing distiller blind spots.

6-Defect Patch Matrix

Select per-defect implementation state inside /playground/app without exposing patch names to the scorer.

Mounted 360px Seeded Playground Iframe

Live same-origin target (/playground/app) probed via getComputedStyle, getBoundingClientRect, and fault RPCs.

Viewport: 360px

Raw vs. Distilled Byte Budget

Real UTF-8 byte counts comparing XMLSerializer DOM + computed-style dump against the bounded wire packet.

—
Raw Snapshot —
Distilled Packet —
Hard Cap 4,096 B
Reduction —
0 / 4,096 bytes 0%
0%
Packet Field Raw Estimate Distilled Share

Isolated Edge Rubric Scorecard

Returned by POST /api/evaluate evaluating behavior-under-fault (never CSS class names).

Score: —
strong: 0 survives: 0 hollow: 0 baseline: 0 unmet: 0

Tiers: strong = genuine fix verified under fault · survives = graceful fallback · hollow = cosmetic/silent-swallow cheat · baseline = original bug unpatched · unmet = regressive patch hiding UI or missing proof.

Precision: — Signal Recall: — Edge Colo: —

Waiting for first evaluation run…

Defect / Principle Tier Measured Evidence & Verdict

Packet & Rubric Wire Inspector

Ready
1. Distilled Evidence Packet JSON (< 4 KB Wire Payload)
0 bytes
Running initial distillation…
2. Edge Rubric Response (POST /api/evaluate)
Waiting for /api/evaluate response…
3. Declarative Outcome Principles (GET /api/principles)
Loading declarative outcome principles…
Architecture Competitive isolation between live browser distillation and edge rubric scoring
Browser Origin · Real DOM, Geometry & Fault Probing
Target Fixture

Seeded Playground /playground/app

360px iframe · 6 defects · 4 patch modes
  • Runs baseline pass and fault pass (503 /api/feed, FOIT, missing telemetry global, QuotaExceededError, pagehide, 360px overflow)
  • Supports real fixes, hollow cheats, and regressive patches
<= 4,096 B Budget

Evidence Distiller public/lib/distiller.js

  1. Reads real getComputedStyle(), WCAG luminance, and getBoundingClientRect() clipping
  2. Serializes raw snapshot via XMLSerializer to measure exact raw bytes
  3. Compresses into compact JSON (> 95% reduction) with per-field byte budgets
  4. Over-compression toggle (< 512 B) tests signal-loss failure modes
strong / survives

Verified Behavior Under Fault

0 throws · content preserved · AA contrast
X-Evidence-Bytes X-Rubric-Isolation
hollow / baseline / unmet

Cheats, Defects & Regressions

catch {} swallow · clipped px · hidden UI

Rejects > 4,096 B raw uploads with 413 PACKET_BUDGET_EXCEEDED.

Cloudflare Edge Worker src/worker.ts

Isolated Evaluator

Serves /, /playground/app, /api/feed (200 live / 503 offline fault), /api/principles, and isolated POST /api/evaluate with strict CSP (frame-ancestors for aifoc.us), Cache-Control: no-cache, and zero X-Frame-Options.

Separation between browser evidence collection and server-isolated outcome scoring prevents fixtures or patch labels from gaming the evaluation rubric.
Key terms & further reading
WCAG 2.1 contrast (AA 4.5:1)
The minimum foreground-to-background luminance ratio required for normal body text and interactive controls to remain readable.
HTML Accessibility Tree & accessible name
The browser representation exposed to screen readers; icon-only buttons need a non-empty accessible name rather than a blank aria-label="".
FOIT (Flash of Invisible Text)
When a custom web font blocks text paint until download finishes instead of showing a fallback font via font-display: swap.
QuotaExceededError
The browser exception thrown when localStorage is full or restricted; genuine fixes fall back cleanly and verify persisted values rather than swallowing errors.
pagehide & visibilitychange events
Reliable browser lifecycle hooks for saving unsaved user drafts when a tab closes, backgrounds, or enters back-forward cache.
Strong vs. hollow vs. regressive patches
Rubric verdicts distinguishing real fault resilience (strong) from cosmetic cheats that hide errors (hollow) or patches that remove/hide UI controls (regressive / unmet).