# labs and areas that I am exploring

> I have a lot of experiements and I thought it would be good to share them more broadly

_By Paul Kinlan — 1 December 2026_


Most of the prototypes listed on my earlier [projects overview](/projects/) were created as I was thinking about how the web is changing with AI, or how my workflows are changing with AI. Over time I accumulated lots of little demos and other tidbits that I think it would be nice to have a place to show what is on my mind and strands and tracks that I am exploring (even if there is no end in sight), many of these demos come *a long time before* the essay or post that I create. They are small, runnable tests of browser engines, origin boundaries, HTTP protocols, cryptographic capabilities, local compute, and reactive prompt pipelines and any other thing that I have a weird thing that I want to test (normally while I walk the dog.)

I went through a lot of my work and I've had an LLM go over them to try and shape them into something that can be worked with and understood in isolation. **They are very early drafts and clearly LLM driven, so reader be warned**. Each experiment is in a folder inside [`/labs/`](/labs/), which itself is roughly organized into eight interrelated tracks where each lab records **what essay inspired it**, the **falsifiable hypothesis being tested**, **open questions for future iterations**, **cross-links to connected labs**, and its **iteration log**. Every lab runs immediately at its permanent `/labs/<track>/<slug>/` URL, while staying off the homepage and main RSS feed (`/index.xml`) until it matures enough to graduate into a full post and something I really want to share, or at least I have a hunch that it will be interesting. 

If you want to follow raw experiments as they land without waiting for finished essays, there is a dedicated [labs feed](/labs/index.xml).

What follows below is the LLM generated overview of the experiments.

### Track 1: [Browser Containment & Sandbox Boundaries](/labs/browser-containment/)

Same-Origin Policy separates different websites, not untrusted text pulled into your own page or execution loop. These labs test concrete browser boundaries—sandboxed iframes, `Connection-Allowlist` headers, encrypted OPFS slices, permissions, and fuel-metered WebAssembly VMs—to see what actually stops unintended network egress or sibling storage reads.

- [**Agent Containment Lab**](/labs/browser-containment/agent-containment-lab/) — Seven-tier browser containment suite (plus a WICG [`Connection-Allowlist`](https://chromestatus.com/feature/5175745573945344) firewall builder and `WeakSet`/`Proxy` taint engine) probing what actually blocks data exfiltration against a Cloudflare SQLite Durable Object canary collector. Inspired by [the browser is the sandbox](/the-browser-is-the-sandbox/), [shipping a prompt](/shipping-a-prompt/), and [on-device ai needs a trust model](/on-device/).
- [**Slice Capability Mesh**](/labs/browser-containment/slice-capability-mesh/) — Least-privilege `/cap/<token>/<path>` Service Worker broker backed by per-slice AES-256-GCM encrypted OPFS vaults, salted SHA-256 blob names, and opaque-origin `<iframe sandbox="allow-scripts">` isolation. Inspired by [my chrome extensions are just prompts](/my-chrome-extensions-are-just-prompts/) and [on-device ai needs a trust model](/on-device/).
- [**Browser Ephemeral VM**](/labs/browser-containment/browser-ephemeral-vm/) — Dedicated Worker executing fuel-metered `.wasm` linear memory with `WebAssembly.RuntimeError` termination guards, OPFS binary checkpoints, byte-level hex diffs, and instant rollback. Inspired by [wat the heck](/wat-the-heck/) and [the browser is the sandbox](/the-browser-is-the-sandbox/).
- [**Permission Replay Debugger**](/labs/browser-containment/permission-replay-debugger/) — Audits live `navigator.permissions.query()` states against a strict `Permissions-Policy` iframe and correlates `ReportingObserver` violations into exportable OPFS JSONL traces. Inspired by [my chrome extensions are just prompts](/my-chrome-extensions-are-just-prompts/) and [agent-do: my agent loop](/agent-do-my-agent-loop/).

### Track 2: [Reactive Prompt Architectures](/labs/reactive-prompts/)

Synchronous UI signal graphs assume cheap, deterministic, acyclic updates. Extending my earlier [`@paulkinlan/reactive-prompt`](https://github.com/PaulKinlan/reactive-prompt) ([npm](https://www.npmjs.com/package/@paulkinlan/reactive-prompt)) and [`reactive-agent`](https://github.com/PaulKinlan/reactive-agent) packages, these five interconnected labs pit alternative abstractions head to head from isolated failure torture tests up to multi-pane apps.

- [**Reactive DOM Signals for Prompts**](/labs/reactive-prompts/reactive-dom-signals-for-prompts/) — Links `MutationObserver` DOM edits to a 5-node dependency DAG that aborts superseded `ReadableStream` fetches via `AbortController` while reusing cached sibling branches. Inspired by [projects](/projects/) and [what falling ai model latency means for the web](/latency/).
- [**Reactive Prompt Models Rosetta Stone**](/labs/reactive-prompts/reactive-prompt-rosetta/) — Pits six reactive architectures (`effect()`, Async Resource epoch barriers, WICG [`Observable`](https://wicg.github.io/observable/), Salsa JSON early-cutoff diffing, keyed Collection IVM, and event-sourced human pinning) against six isolated failure-mode torture tests and a 5-node Spec-to-PRD app. Inspired by [projects](/projects/) and [what falling ai model latency means for the web](/latency/).
- [**Declarative `<ai-prompt>` Cells & Pinning Studio**](/labs/reactive-prompts/reactive-prompt-cells/) — DevTools-inspectable `<ai-prompt>` Custom Elements exposing `watch`, `policy`, and cost gates (`auto`, `debounce`, `manual`, `frozen`), content-addressed caching, human pin conflict states, and keyed Collection IVM rows. Inspired by [projects](/projects/) and [web components are packaging for ai-generated ui](/elements/).
- [**Reactive Agent Statecharts, Blackboards & Worker Actors**](/labs/reactive-prompts/reactive-agent-machines/) — Contrasts cyclic `effect()` ping-pong loops against pure finite statechart reducers (`transition(state, event, ctx)`) and Rete/Linda tuple-space blackboards dispatched through supervised Dedicated Worker actors. Inspired by [projects](/projects/) and [agent-do: my agent loop](/agent-do-my-agent-loop/).
- [**Backward-Chaining Goal-Driven Reactive UI**](/labs/reactive-prompts/reactive-goal-ui/) — Constraint solver that diffs a goal schema against already-extracted facts, renders HTML inputs strictly for the minimal missing frontier, evaluates conditional sub-goals, and invalidates only affected downstream steps. Inspired by [what falling ai model latency means for the web](/latency/) and [projects](/projects/).

### Track 3: [Post-`<a>` Hypermedia & Composable Islands](/labs/hypermedia-and-islands/)

HTML standardized one-way `A -> B` links while leaving transclusion, shareable trails, multi-origin component composition, spatial canvases, and unified human/tool interfaces unfinished. These labs test what web UI and navigation look like beyond plain chat threads.

- [**Hypermedia Islands Lab**](/labs/hypermedia-and-islands/hypermedia-islands-lab/) — Four-direction hypermedia over live HTTPS documents (StretchText, [View Transitions](https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API), [Text Fragments](https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments), `#trail=` serialization) paired with a four-mode `<web-island>` comparison bench and PageRank graph simulator. Inspired by [hypermedia was always the point](/hypermedia/), [A link is all you need](/a-link-is-all-you-need/), and [embedding is the web's composability superpower](/embedding/).
- [**`<web-island>` Multi-Origin Host Shell**](/labs/hypermedia-and-islands/web-island-host-shell/) — Composes three independent widget origins via `/.well-known/web-island.json`, `<iframe sandbox="allow-scripts">`, `MessageChannel`, `ResizeObserver`, batched `<dialog>` tool approval, and ECDSA P-256 receipts. Inspired by [embedding is the web's composability superpower](/embedding/), [extensible web apps](/extensible-web-apps/), and [webmcp is the new web intents](/webmcp-is-the-new-web-intents/).
- [**Spatial Canvas OS**](/labs/hypermedia-and-islands/spatial-canvas-os/) — Infinite 2D [`OffscreenCanvas`](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas) research workspace encoding camera position and branching document graphs directly into bookmarkable `#cam=` URL hashes. Inspired by [hypermedia was always the point](/hypermedia/) and [llms are becoming the new super-apps](/super-apps/).
- [**Canonical Multimodal UI**](/labs/hypermedia-and-islands/canonical-multimodal-ui/) — Single declarative `ACTION_DEFINITIONS` specification emitting both accessible semantic HTML (`FormData`, ARIA, `commandfor` invokers) and [WebMCP](https://webmachinelearning.github.io/webmcp/) JSON tool schemas over one shared hashed reducer to prevent UI/API drift. Inspired by [web components are packaging for ai-generated ui](/elements/) and [webmcp is the new web intents](/webmcp-is-the-new-web-intents/).
- [**Web + AI Spec Polyfill Testbed**](/labs/hypermedia-and-islands/spec-polyfill-browser/) — 15-assertion conformance harness with `PerformanceObserver` timing across polyfilled `navigator.modelContext`, `<web-island>` with `ElementInternals`, and declarative `Connection-Allowlist` rules. Inspired by [webmcp is the new web intents](/webmcp-is-the-new-web-intents/), [embedding is the web's composability superpower](/embedding/), and [the browser is the sandbox](/the-browser-is-the-sandbox/).

### Track 4: [Delegated Authority & Keyless Execution](/labs/delegated-authority/)

Static API tokens and ambient cookies hand automated tools far broader authority than any single step requires. These labs focus on short-lived, scope-attenuated, spend-bounded delegation and keyless origin-bound execution.

- [**Passkey Attenuated Capabilities**](/labs/delegated-authority/passkey-agent-caps/) — Mints scope-restricted, dollar-capped, short-TTL ECDSA P-256 tokens (paired with optional WebAuthn Level 3 `prf` hardware confirmation) enforced inside a Cloudflare Durable Object SQLite spend ledger. Inspired by [calling apis from the browser shouldn't mean exposing keys](/dangerous/), [on-device ai needs a trust model](/on-device/), and [building a claw in the browser](/building-a-claw-in-the-browser/).
- [**Keyless Browser Proxy**](/labs/delegated-authority/keyless-browser-proxy/) — Origin-bound ephemeral HMAC-SHA256 session broker enforcing SQLite Durable Object quotas (`401`/`403`/`429`) so frontend prototypes can call downstream capabilities without embedding static API keys. Inspired by [calling apis from the browser shouldn't mean exposing keys](/dangerous/).


### Track 5: [Content Negotiation, Signed Citations & Attribution](/labs/web-protocols/)

HTTP headers, cryptographic signatures, and content negotiation already solve several problems teams currently patch around with brittle scraping and ad-hoc proxies.

- [**Hyper Content Negotiation Lab**](/labs/web-protocols/hyper-content-negotiation-lab/) — Real [RFC 9110 `Accept`](https://www.rfc-editor.org/rfc/rfc9110#section-12.5.1) negotiation (`Vary: Accept`) returning `text/html`, compact `text/markdown`, `application/ld+json`, or `application/json` from one canonical URL, plus an SSRF-hardened `/negotiate` inspector. Inspired by [hyper content negotiation](/hyper-content-negotiation/).
- [**Signed Web Citations**](/labs/web-protocols/signed-web-citations/) — Issues [RFC 9530 `Content-Digest`](https://www.rfc-editor.org/rfc/rfc9530) (`SHA-256`) and [RFC 9421 HTTP Message Signatures](https://www.rfc-editor.org/rfc/rfc9421) over quoted snippets so browsers can verify cited spans directly with `crypto.subtle.verify()`. Inspired by [hypermedia was always the point](/hypermedia/) and [A link is all you need](/a-link-is-all-you-need/).
- [**Attribution & Metering Protocol Lab**](/labs/web-protocols/attribution-metering-lab/) — Emits cryptographically signed `X-Attribution-Receipt` headers paired with `#:~:text=` fragment links verified inside a Durable Object click ledger, alongside a three-model publisher economics simulator. Inspired by [A link is all you need](/a-link-is-all-you-need/) and [hypermedia was always the point](/hypermedia/).

### Track 6: [Local Compute, `.wat` Compilation & On-Device Inference](/labs/local-compute/)

Testing raw WebAssembly synthesis without compiler toolchains alongside empirical on-device vs. edge latency benchmarks.

- [**Live `.wat`-to-`.wasm` Compiler & Equivalence Gate**](/labs/local-compute/zero-js-wat-web/) — Compiles WebAssembly Text directly to `.wasm` in the browser and Cloudflare Worker, gates unreviewed stack instructions behind automated `Wasm(x) === JS(x)` oracle checks, benchmarks Cold vs. Warm execution, and inspects explicit DOM host imports. Inspired by [wat the heck](/wat-the-heck/) and [what falling ai model latency means for the web](/latency/).
- [**Local-First Model Latency & Capability Bench**](/labs/local-compute/local-first-model-bench/) — Probes `WebGPU`, `WebNN`, built-in `LanguageModel`/`Summarizer`, and WebAssembly in the visitor's own browser and races standardized workloads against a Cloudflare Worker baseline. Inspired by [what falling ai model latency means for the web](/latency/) and [on-device ai needs a trust model](/on-device/).

### Track 7: [Peer-to-Peer Coordination, PiP Surfaces & Malleable Plugins](/labs/agent-meshes/)

Multi-tab collaboration, persistent side panels, and extensible user plugins built on open browser primitives without central relays or privileged extensions.

- [**WebRTC P2P Agent Swarm**](/labs/agent-meshes/webrtc-agent-swarm/) — Connects browser peers directly over [`RTCDataChannel`](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel) with CRDT task state stored locally in IndexedDB + `navigator.locks`, using a Durable Object strictly for ephemeral SDP/ICE handshakes. Inspired by [agent-do: my agent loop](/agent-do-my-agent-loop/).
- [**Document PiP Web Coprocessor**](/labs/agent-meshes/pip-web-coprocessor/) — Persistent floating companion window using the [Document Picture-in-Picture API](https://developer.mozilla.org/en-US/docs/Web/API/Document_Picture-in-Picture_API), `BroadcastChannel`, Navigation API, and CSS Container Queries to survive across site navigation without building an extension. Inspired by [my chrome extensions are just prompts](/my-chrome-extensions-are-just-prompts/).
- [**Malleable Worker Plugin Shell**](/labs/agent-meshes/malleable-worker-shell/) — Mounts built-in and live Blob URL Dedicated Workers (`worker-src 'self' blob:`) into typed JSON host UI slots while rejecting raw HTML patches and ungranted `host:*` capability calls. Inspired by [extensible web apps](/extensible-web-apps/).

### Track 8: [Model Cutoffs & Self-Observing Browser Telemetry](/labs/platform-observability/)

Closing the loop between runtime browser regressions and stale model training cutoffs.

- [**Model-Gap Live Conformance Probe**](/labs/platform-observability/model-gap-live-harness/) — Benchmarks 25 modern platform APIs live in your browser (including a `Connection-Allowlist` header probe iframe) against selectable training cutoffs (`2024-06` to `2026-06`). Inspired by [please mind the model gap](/please-mind-the-model-gap/).
- [**Self-Observing Web Fault Bundler**](/labs/platform-observability/self-observing-web/) — Captures `PerformanceObserver` (Long Animation Frames, CLS), `ReportingObserver` violations, and failed fetches inside a bounded ring buffer to export compact regression packets. Inspired by [please mind the model gap](/please-mind-the-model-gap/).

---

Canonical: https://aifoc.us/labs-and-areas-that-i-am-exploring/
