Agent-Native Browser QA Platform

Status

Drafted from plan interview on April 7, 2026.

Summary

Build a new browser engine and runtime from scratch for LLM agents, not humans. The product is a cloud-scale QA platform that executes realistic website journeys using a hybrid semantic-state and targeted-vision interface, with a pluggable planner layer for GPT, Claude, and Gemini.

The system is optimized for:

The first benchmark is automated website QA on authorized properties at very large scale, with human-like interaction patterns but without stealth/evasion as a product goal.

Product Thesis

Human browsers optimize for pixels, tabs, and manual interaction. Agent browsers should optimize for:

The browser should therefore be treated as an agent execution substrate with:

Evidence and Rationale

The product direction is informed by current frontier patterns:

These patterns suggest the main leverage is not a human browser shell. The leverage is the execution model, structured state surface, safety controls, and orchestration. This spec accepts a new engine/runtime as a strategic bet but keeps semantic observability and agent efficiency as the actual differentiator.

Reference links:

Goals

Primary Goal

Provide the highest-performance agent-operable browser runtime for QA workflows while minimizing token spend.

Success Criteria

Primary KPI:

Secondary KPIs:

User Outcomes

Non-Goals

Target Users

Primary User

Developers and QA/platform teams testing their own or consented web properties.

Initial Site Profile

Authenticated React/Vue SaaS applications with:

v1 Scope

Compatibility Target

QA-optimized web subset, specifically:

Explicitly Deferred

Core Principles

  1. Semantic state is a first-class runtime artifact.
  2. Vision is selective, local, and justified.
  3. Planner and executor are separate.
  4. Runs must be replayable and causally inspectable.
  5. Isolation is the default unit of correctness.
  6. Token budgets are enforced at the runtime layer, not left to prompt luck.
  7. The system must benchmark models, not couple itself to one model vendor.

Product Surface

v1 includes:

Current Repository Implementation Status

As of April 13, 2026, the repository implements the v1 platform as TypeScript contract, domain, route-manifest, fixture, and benchmark-runner surfaces. The current code is sufficient for contract-level benchmark validation against owned fixtures, but it is not yet a deployed production browser service.

Implemented surfaces:

Production hardening still tracked outside this spec includes executable HTML/CSS/JS parsing, real browser sandboxing, deployed worker pools, provider-backed planner calls, credential vault integration, and production persistence.

System Architecture

High-Level Components

1. Browser Engine

A new browser engine optimized for agent observability.

Responsibilities:

2. Semantic Runtime Layer

Agent-facing abstraction over the engine.

Responsibilities:

3. Vision Service

Fallback visual understanding for ambiguous or non-semantic regions.

Responsibilities:

4. Planner Layer

Model-agnostic planning interface for GPT, Claude, and Gemini.

Responsibilities:

5. Deterministic Executor

Runtime that converts planner intents into engine actions.

Responsibilities:

6. Orchestrator / Control Plane

Cloud service managing jobs and workers.

Responsibilities:

7. Replay and Debug Console

Primary debugging UI for operators.

Responsibilities:

Engine Design

The engine is intentionally new, but v1 should still bound scope.

Required Subsystems

Agent-First Engine Features

Strategic Constraint

This is a large systems bet. The engine should target narrow compatibility depth before broad compatibility width. “Works reliably on target SaaS apps” is more important than “loads arbitrary websites poorly.”

Agent Interface Contract

The default model interface is hybrid semantic state plus targeted vision.

Semantic Snapshot Contents

Each planner step receives a bounded semantic payload containing:

Targeted Vision Trigger Conditions

Vision capture is allowed when:

Default Action Schema

Supported planner intents:

The planner should not emit raw pointer paths as a default primitive.

Authoring Model

Primary Authoring Interface

Natural-language spec compiled into a journey graph.

Example authoring shape:

  1. describe actor, entrypoint, fixtures, and environment
  2. describe goals and checkpoints
  3. define expected assertions
  4. allow optional setup/teardown and policy hints

Journey Graph

Each journey is compiled into:

Why Journey Graphs

They handle:

Benchmark Corpus Current Scope

The v1 checked-in corpus targets only owned or controlled surfaces:

Execution Model

Isolation Unit

One isolated browser VM/container per journey.

Reasons:

Scale Model

Hybrid worker strategy:

Oversight Model

Fully unattended execution with post-run review.

Live takeover is supported in replay/debug mode later, but not as the primary v1 flow.

Context Compaction and Token Budgeting

Strategy

Hierarchical summaries with pinned invariants and recent raw steps.

Context Layers

Budget Controls

Debugging and Replay

Replay is a causal debugger, not just a session video.

Persisted Artifacts

Debug Console Features

Debug Questions It Must Answer

APIs

Public APIs

Journey Authoring API

Create, update, validate, and compile natural-language journey specs.

Job Submission API

Start runs with:

Job Status API

Retrieve:

Artifact API

Access:

Benchmark API

Run the same journey across multiple planner backends and compare:

Internal APIs

Data Model

Core Entities

Journey

Run

Step

Assertion

Recovery Rule

UX Flows

1. Author Journey

Operator writes a natural-language QA scenario, reviews the compiled graph, adds assertions/fixtures if needed, and saves.

2. Execute at Scale

Operator selects environment, planner backend, and concurrency, then launches runs across the worker fleet.

3. Inspect Failure

Operator opens replay/debug console, scrubs to the failure, inspects planner thought/action/state/mutations, and identifies root cause.

4. Benchmark Models

Operator runs the same journey on GPT, Claude, and Gemini under the same fixtures and compares repeatability, latency, and spend.

Security and Abuse Constraints

The system is for authorized QA and testing on owned or consented properties.

Hard Constraints

Required Controls

Reliability and Recovery

Failure Types

Recovery Policies

Performance Strategy

Speed

Accuracy

Consistency

Cost

Phased Build Plan

Phase 0: Architecture and Benchmarks

Exit criteria:

Phase 1: Minimal Engine for Target SaaS Apps

Exit criteria:

Phase 2: Deterministic Executor and Journey Runtime

Exit criteria:

Phase 3: Vision Fallback and Context Compaction

Exit criteria:

Phase 4: Control Plane and Worker Fleet

Exit criteria:

Phase 5: Replay and Causal Debugger

Exit criteria:

Open Questions and Follow-Up

These are tracked for the next production-hardening planning pass:

Acceptance Criteria for the Spec

This spec is ready to guide initial architecture and phased implementation if:

Coverage Checkpoint

Covered areas:

Areas to revisit next: