self-observing web fault bundler
Browser regressions—layout shifts, main-thread stalls, failed fetches, and CSP blocks—happen inside users’ live tabs where automated test suites and coding models never see them unless someone manually copies console logs. Packaging live PerformanceObserver and ReportingObserver telemetry into a compact, reproducible fault bundle gives developers or debugging pipelines concrete runtime evidence in one JSON export.
Hypothesis
Capturing
PerformanceObserver(LoAF/CLS),ReportingObserver, and failedfetch()telemetry in a bounded browser ring buffer emits compact JSON fault packets that make transient client regressions reproducible.
What confirms it: Intentional layout shifts, main-thread stalls, HTTP 500s, and CSP blocks appear in strict causal order inside an exportable ring buffer JSON packet without bloating memory.
What falsifies or bounds it: Third-party cross-origin frames suppress timing/error detail below actionable thresholds, or noise floods the ring buffer before the real fault triggers.
What this lab tests
Self-Observing Web (GitHub) instruments PerformanceObserver (Long Animation Frames, CLS, resource timing), ReportingObserver, and fetch() telemetry inside a bounded ring buffer to emit exportable reproduction JSON packets on intentional fault triggers.
Open questions
- What sampling and deduplication window captures causal fault chains cleanly within ~2–4 KB JSON so it drops directly into a coding-agent context window?
- Can browser
ReportingObserverintegrity prevent untrusted content from spoofing synthetic violation reports?
Iteration log
- — Built bounded LoAF/CLS/ReportingObserver/fetch ring buffer with deterministic JSON packet exporter and intentional fault triggers.
- — Reordered workbench around the hypothesis with live JSON byte-size and selectable ring-buffer capacity controls, unified CSP-safe DOM syntax highlighting across JSON/wire/policy/setup panels, routed static assets through the Worker for
no-cacheand strict CSP headers, and tightened 700px iframe responsiveness.
Primitives tested: PerformanceObserver (LoAF/CLS), ReportingObserver, Fetch Instrumentation, Trace Export.
This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.