Run with Browser AI · Chapter 03

Run Chapter 03: Browser AI Observatory

Run the smallest useful Browser AI debugger and inspect the evidence produced by every phase.

← Read Build the Smallest Browser AI Observatory
Execution Not inspected
Secure contextUnknown
Top-level pageUnknown
Prompt APIUnknown
AvailabilityNot inspected

Chapter experiment

Build the Smallest Browser AI Observatory

Metrics-only trace

Loading the chapter experiment…

No model output yet.
Inspect the context supplied by this chapter

What this experience knows

This experience is grounded in Chapter 03 and the smallest useful Browser AI Observatory.

Instrument boundary

The page owns the Prompt API session it creates and can truthfully observe that work. It cannot automatically see calls made privately inside another page or application. DevTools placement does not grant magical instrumentation.

Event model

The primary output is a versioned, metrics-only event stream:

  • capability.inspect.started and capability.inspect.finished;
  • session.create.started, download progress and session.create.finished;
  • prompt.started, zero or more prompt.chunk events and prompt.finished;
  • correlation identifiers connecting session and prompt events.

Measurements

The Observatory derives event count, session-creation duration, time to first chunk, total prompt duration and terminal outcome from events. Missing evidence is shown as unavailable rather than estimated.

Privacy and provenance

Prompt and output bodies are redacted from the trace; sizes and timings remain. A recorded replay preserves its original run metadata and must remain visibly distinct from a live run in the current browser.

This chapter experience is the web-page counterpart of the DevTools extension built in Chapter 03. It runs the same inspect → create → prompt → trace workflow and summarizes the measurements produced by the event stream.

The page observes only work that it initiates. It does not claim access to private Prompt API calls made by other applications. The complete extension source is in the Browser AI Observatory directory.