> built 2026-11-23 07:50 UTC from 23e31c8 (main) · ov 0.1.5. Details: build_info.json

# index.html.md

<!-- generated by epythet -->

# ov

**OverView** — point it at a URL and it drives the web app like a user, records what the app *does* (pages, DOM, screenshots, network, console, journey) and what it’s *made of* (HTML, JS, frameworks, API surface), then analyzes both for **UX** and **software architecture** and writes Markdown reports plus a single synopsis.

```python
import ov

run = ov.observe("https://example.com")  # capture (zero config)
print(run.fingerprint)  # detected technologies
print(len(run.artifacts), "artifacts captured")
```

```bash
ov observe https://example.com                  # same, from the shell
ov check                                         # what system deps are present
```

`ov` is a **tool + skill library with a deterministic, model-free core**. The near-term “agent” that orchestrates it is a *host agent* (Claude Code) following the skills in `.claude/skills/` — `ov` supplies the hands (drive the target) and eyes (observe + analyze); the host supplies the control loop. Everything in the core runs with **no model and no host**, so it’s testable, cheap, and repeatable.

## Install

```bash
pip install -e .            # the package
playwright install chromium # the browser it drives (required for capture)
```

The arch/API reconstruction and evidence layers have optional extras (`pip install -e ".[arch,evidence]"`) and an optional Node sidecar; run `ov check` (or `ov.check_requirements()`) to see what’s present and how to install what’s missing.

## What it captures

Capture is organized into **probes** — independent, registerable units that each write typed artifacts into a content-addressed store:

- **Behavioral**: `navigation`, `network` (request/response + size-capped bodies), `dom` (serialized DOM + ARIA snapshot + full AX tree), `screenshot`, `console`, `perf`, `storage`, `websocket`, `sse`.
- **Static**: `fingerprint` (framework/library detection), `assets` (inventory).

The five **operate** primitives — `observe` / `act` / `journal` / `progress` / `snapshot_state` — are the deterministic, LLM-free “hands” the host (or a scripted driver) uses to drive a journey; the journey trace *is* the UX evidence.

## The facade

| Function           | What it does                                                                       |
|--------------------|------------------------------------------------------------------------------------|
| `ov.observe(url)`  | Drive + capture → `CaptureRun` (persisted to a store)                              |
| `ov.analyze(run)`  | Deterministic UX + architecture analyzers → findings  *(Phase 2)*                  |
| `ov.diff(run)`     | Own-target regression: diff a run vs a prior baseline → `RunDiff`  *(review mode)* |
| `ov.report(run)`   | Render Markdown report sections  *(Phase 2)*                                       |
| `ov.synopsis(dir)` | Aggregate reports into one synopsis  *(Phase 2)*                                   |
| `ov.overview(url)` | The one-liner: observe → analyze → report → synopsis  *(Phase 2)*                  |

The CLI mirrors these: `ov observe|analyze|diff|report|synopsis|overview|check|runs|mcp`.

In `mode="review"` (your own target), `ov.overview(url, mode="review")` inserts a diff step: it compares the run against the latest prior run of the same target and reports what is **new**, **changed**, or **resolved** — drift detection for a downstream creation/modification agent. Artifacts are content-addressed, so this own-target diffing is cheap by design. The first review run has no baseline and is a no-op; pass `baseline=<run_id>` to pin a specific prior run.

## In-package agents (optional — `ov[agents]`)

The host-agent path above is the default and the pit of success. When you need a *self-contained* runtime — a non-Claude-Code host, programmatic use, or process isolation — `ov.agents` re-hosts the **same** skills + deterministic core as runnable agents. It is the spec’s “mechanical lift” (Phase 4): nothing is rewritten, the lift is done by [`coact`](https://github.com/thorwhalen/coact) (`COMPLETE` a skill into an agent definition, `REALIZE` it onto a backend), and `ov.agents` adds only the bits coact deliberately leaves out — the operator’s live-browser loop, the analyst’s multimodal evidence-bundle call, and the orchestration topology (via [`aw`](https://github.com/thorwhalen/aw)).

```bash
pip install -e ".[agents]"          # coact[sdk,mcp] + aw + py2mcp + fastmcp
```

```python
from ov import agents

# 1. Cheapest: materialize ov's agents as .claude/agents/ so Claude Code runs them
#    (host backend — zero LLM, no fan-out). The host stays the manager.
agents.materialize()

# 2. The cost gate before standing up an in-process fleet (~15× the tokens):
print(agents.estimate(["ux-analyst", "arch-analyst"]).render())

# 3. In-package study (LLM dependency-injected; omit it for a deterministic run):
result = agents.study("https://example.com", llm=my_model)  # -> synopsis + run
```

Each agent reuses Phase 1–3 machinery unchanged and routes by the §10 cost gate (operator → Haiku, UX-analyst → Sonnet, Arch-analyst / orchestrator → Opus). The analyst applies the **cite-or-abstain** contract — every LLM claim cites a mark/fact id or is downgraded to `undetermined`. For a foreign MCP host, `ov mcp` (or `agents.mcp_server()`) exposes `study_url` / `capture_url` via [`py2mcp`](https://github.com/i2mint/py2mcp).

## Authorization & privacy

`ov` analyzes *publicly served* frontend material and observable network behavior of targets you are **authorized** to inspect. Foreign-target runs require an explicit `authorized=True` acknowledgement; secret/PII capture is off by default and storage values are redacted. It does not defeat access controls.

## Status

Built in phases (see the GitHub issues). **Phases 1–3** are shipped: the capture spine + operate primitives, the deterministic UX + architecture analysis + reports + synopsis, and the host-agent skill layer with the grounded evidence bundle. **Phase 4** adds the optional in-package agent layer (`ov[agents]`, above) and **review mode** — own-target diff / regression detection (`ov.diff`, `ov.overview(url, mode="review")`). Its remaining depth items (source-map / GraphQL / Lighthouse probes) are deferred to follow-up issues.

---

*Author: Thor Whalen.*

<p class="epythet-aggregates">This documentation as a single file: <a href="ov.md">ov.md</a> (Markdown, for agents).</p>


# _autosummary/ov.agents.analyst.html.md

# ov.agents.analyst

The Analyst agents (UX + Arch) — grounded judgment over an evidence bundle.

The hard architectural seam (§8.1, D4): **analysts never touch the live browser.**
They consume a *deterministic, model-free* evidence bundle — marked screenshots +
derived facts + a cite-or-abstain contract — and add narrative judgment on top. The
package supplies three reused-unchanged pieces and the agent wires them:

1. [`build_evidence_bundle()`](_autosummary/ov.analysis.evidence.html.md#ov.analysis.evidence.build_evidence_bundle) assembles the bundle (Set-of-
   Mark regions, computed token budget);
2. the injected `judge` (an LLM under the cite-or-abstain contract) returns
   candidate `Finding`s (``source_layer="llm"``);
3. [`verify_findings()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.verify_findings) gates them — any claim without a
   *resolvable* evidence ref (or referencing an unknown mark) is \*\*downgraded to

   ```
   ``
   ```

   undetermined\`\`\*\*, never silently dropped.

So the model interprets; it never authors facts. The judge is injected (DI), so the
agent is unit-testable with a stub that returns canned findings — no API call, no
vision model. UX routes to Sonnet, Arch to Opus (§10). Satisfies `aw.AgenticStep`.

### Module Attributes

| [`Judge`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.Judge)   | A judge maps an evidence bundle to candidate findings (dicts or Findings).   |
|----------------------------------------------------------|------------------------------------------------------------------------------|

### Functions

| [`arch_analyst`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.arch_analyst)([llm])   | A software-architecture analyst (Opus-routed).   |
|------------------------------------------------------------------------|--------------------------------------------------|
| [`ux_analyst`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.ux_analyst)([llm])     | A UX/accessibility analyst (Sonnet-routed).      |

### Classes

| [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)(lens[, llm, judge, model, ...])   | Interpret a captured run's evidence bundle into grounded findings (UX or Arch).   |
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|

### *class* ov.agents.analyst.AnalystAgent(lens, llm=None, judge=None, model=None, max_marks=20, task=None, name='')

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Interpret a captured run’s evidence bundle into grounded findings (UX or Arch).

* **Parameters:**
  * **lens** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – `"ux"` or `"arch"` — selects default model + finding defaults.
  * **llm** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – the injected LLM (a callable, an object exposing `structured` for the
    multimodal path, an `aw` `StepConfig`, or `None`). Ignored if a
    `judge` is given.
  * **judge** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[`...`](https://docs.python.org/3/builtins/constants.html#Ellipsis), [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)]]) – `(bundle, *, run, store) -> list[Finding | dict]`. Override the whole
    LLM step (tests, alternative providers). Defaults to `_default_judge()`.
  * **model** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]) – model selector for the image-budget + info (defaults from the lens).
  * **max_marks** ([`int`](https://docs.python.org/3/builtins/functions.html#int)) – cap on Set-of-Mark regions in the bundle.

#### execute(input_data, context=None)

Analyze a run (or a prebuilt bundle) → `(verified_findings, info)` (aw protocol).

`input_data` may be a [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun), an
[`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle), or a mapping carrying `run` / `store` /
`bundle`. The verified LLM findings are appended to `run.findings` (additive
— `source_layer` keeps them distinct from deterministic facts) and returned.

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Finding`](_autosummary/ov.base.html.md#ov.base.Finding)], [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

### ov.agents.analyst.Judge

A judge maps an evidence bundle to candidate findings (dicts or Findings).

alias of `Callable`[[…], [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)]

### ov.agents.analyst.arch_analyst(llm=None, \*\*kwargs)

A software-architecture analyst (Opus-routed). `llm` is the injected model.

```pycon
>>> arch_analyst().model
'opus'
```

* **Return type:**
  [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)

### ov.agents.analyst.ux_analyst(llm=None, \*\*kwargs)

A UX/accessibility analyst (Sonnet-routed). `llm` is the injected model.

```pycon
>>> a = ux_analyst()
>>> a.lens, a.model, a.name
('ux', 'sonnet', 'ux-analyst')
```

* **Return type:**
  [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)


# _autosummary/ov.agents.definitions.html.md

# ov.agents.definitions

SSOT: which `ov` skills become which agents (role, lens, model routing).

The *extras* a skill needs to become an agent — model, tool allowlist, return
contract, MCP exposure — live in each skill’s additive `coact:` frontmatter block
(coact reads them during `COMPLETE`). This module records only the ov-side mapping
coact cannot infer: which skill plays which **role** in the study pipeline and, for
analysts, which analysis **lens** it carries.

Everything here is *data*. Add an agent by adding a row — no dispatcher to edit
(open-closed). This mirrors `ov`’s other registries (probes / analyzers / report
sections): a capability is a registered piece of data, never a branch in a switch.

### Module Attributes

| [`OV_AGENTS`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.OV_AGENTS)   | The `ov` agent registry (role key -> spec) — the headline of Phase 4.   |
|--------------------------------------------------------------|-------------------------------------------------------------------------|

### Functions

| [`agents_for_role`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.agents_for_role)(role)   | All specs with `role` (e.g. both analysts).                    |
|--------------------------------------------------------------------------|----------------------------------------------------------------|
| [`analyst_specs`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.analyst_specs)()         | The UX + Arch analyst specs, in pipeline order (UX then Arch). |

### Classes

| [`AgentSpec`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.AgentSpec)(name, role, skill[, lens, ...])   | One `ov` agent: its name, role, source skill, optional lens, default model.   |
|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|

### *class* ov.agents.definitions.AgentSpec(name, role, skill, lens=None, default_model='sonnet')

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

One `ov` agent: its name, role, source skill, optional lens, default model.

```pycon
>>> AgentSpec("ov-analyze-ux", "analyst", "ov-analyze-ux", "ux").lens
'ux'
```

### ov.agents.definitions.OV_AGENTS *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [AgentSpec](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.AgentSpec)]* *= {'arch-analyst': AgentSpec(name='ov-analyze-arch', role='analyst', skill='ov-analyze-arch', lens='arch', default_model='opus'), 'operator': AgentSpec(name='ov-operate', role='operator', skill='ov-operate', lens=None, default_model='haiku'), 'orchestrator': AgentSpec(name='study-web-app', role='orchestrator', skill='study-web-app', lens=None, default_model='opus'), 'ux-analyst': AgentSpec(name='ov-analyze-ux', role='analyst', skill='ov-analyze-ux', lens='ux', default_model='sonnet')}*

The `ov` agent registry (role key -> spec) — the headline of Phase 4.
Model defaults follow the spec’s §10 cost gate (Opus for design/planning
judgment, Sonnet for grounded UX narrative, Haiku for the throughput-bound driver).

### ov.agents.definitions.agents_for_role(role)

All specs with `role` (e.g. both analysts).

```pycon
>>> [s.lens for s in agents_for_role("analyst")]
['ux', 'arch']
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`AgentSpec`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.AgentSpec)]

### ov.agents.definitions.analyst_specs()

The UX + Arch analyst specs, in pipeline order (UX then Arch).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`AgentSpec`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.AgentSpec)]


# _autosummary/ov.agents.html.md

# ov.agents

`ov.agents` — the optional in-package agent layer (Phase 4 productization).

This is the *mechanical lift* the spec promised (§7, D4): the Phase-1–3 deterministic
core + the `.claude/skills/` policy are re-hosted as **runnable agents**, with no
rewrite. The lift is done by [coact](https://github.com/thorwhalen/coact)
(`COMPLETE` a skill into an agent definition, `REALIZE` it onto a backend); this
package is the thin ov-specific glue that coact intentionally leaves out — the
operator’s live-browser **loop**, the analyst’s **multimodal** evidence-bundle call,
and the orchestration **topology**.

Three things to know:

* **Host stays the manager (the cheap default).** [`materialize()`](_autosummary/ov.agents.html.md#ov.agents.materialize) writes
  `.claude/agents/` so Claude Code runs ov’s agents as subagents — zero LLM, no
  fan-out. In-package SDK agents ([`OperatorAgent`](_autosummary/ov.agents.html.md#ov.agents.OperatorAgent), [`AnalystAgent`](_autosummary/ov.agents.html.md#ov.agents.AnalystAgent),
  [`study()`](_autosummary/ov.agents.html.md#ov.agents.study)) are opt-in; [`estimate()`](_autosummary/ov.agents.html.md#ov.agents.estimate) surfaces the ~15× fan-out cost gate.
* **Reuse, don’t rewrite.** Capture, the analyzers, the evidence-bundle assembler,
  the reliability passes and the synopsis map-reduce are used unchanged.
* **Injected, optional, model-free-by-default.** Every LLM is dependency-injected;
  `coact`/`aw`/`py2mcp` are the `ov[agents]` extra, gated with a friendly
  error — importing this package needs none of them.
  ```pycon
  >>> from ov.agents import OV_AGENTS, default_model
  >>> sorted(OV_AGENTS)
  ['arch-analyst', 'operator', 'orchestrator', 'ux-analyst']
  >>> default_model("operator")
  'haiku'
  ```

### *class* ov.agents.AgentSpec(name, role, skill, lens=None, default_model='sonnet')

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

One `ov` agent: its name, role, source skill, optional lens, default model.

```pycon
>>> AgentSpec("ov-analyze-ux", "analyst", "ov-analyze-ux", "ux").lens
'ux'
```

### *class* ov.agents.AnalystAgent(lens, llm=None, judge=None, model=None, max_marks=20, task=None, name='')

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Interpret a captured run’s evidence bundle into grounded findings (UX or Arch).

* **Parameters:**
  * **lens** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – `"ux"` or `"arch"` — selects default model + finding defaults.
  * **llm** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – the injected LLM (a callable, an object exposing `structured` for the
    multimodal path, an `aw` `StepConfig`, or `None`). Ignored if a
    `judge` is given.
  * **judge** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[`...`](https://docs.python.org/3/builtins/constants.html#Ellipsis), [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)]]) – `(bundle, *, run, store) -> list[Finding | dict]`. Override the whole
    LLM step (tests, alternative providers). Defaults to `_default_judge()`.
  * **model** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]) – model selector for the image-budget + info (defaults from the lens).
  * **max_marks** ([`int`](https://docs.python.org/3/builtins/functions.html#int)) – cap on Set-of-Mark regions in the bundle.

#### execute(input_data, context=None)

Analyze a run (or a prebuilt bundle) → `(verified_findings, info)` (aw protocol).

`input_data` may be a [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun), an
[`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle), or a mapping carrying `run` / `store` /
`bundle`. The verified LLM findings are appended to `run.findings` (additive
— `source_layer` keeps them distinct from deterministic facts) and returned.

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Finding`](_autosummary/ov.base.html.md#ov.base.Finding)], [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

### *class* ov.agents.OperatorAgent(decider, session=None, max_steps=12, strategy='ax_snapshot', polite_rate_s=0.0, no_progress_steps=3, observe_fn=None, act_fn=None, model='haiku', name='operator')

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Drive a target toward a goal, recording every step (an `aw.AgenticStep`).

* **Parameters:**
  * **decider** ([`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[`...`](https://docs.python.org/3/builtins/constants.html#Ellipsis), [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Action`](_autosummary/ov.base.html.md#ov.base.Action)]]) – `(observation, *, goal, history) -> Action | None`. Returns the
    next action, or `None` to stop. Use `make_llm_decider()` for a
    model-backed one, or any callable (host / script / test stub).
  * **session** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – a [`CaptureSession`](_autosummary/ov.capture.session.html.md#ov.capture.session.CaptureSession) (supplies `.page` +
    `.run`). Optional — `page` and `run` may instead arrive via the
    `context` passed to [`execute()`](_autosummary/ov.agents.html.md#ov.agents.OperatorAgent.execute) (keys `"page"` / `"run"`).
  * **max_steps** ([`int`](https://docs.python.org/3/builtins/functions.html#int)) – hard cap on actions (a budget; the deterministic loop signal is
    advisory, the cap is the backstop).
  * **strategy** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – perception strategy for the default `observe` (`"ax_snapshot"`
    | `"screenshot"` | `"hybrid"`).
  * **act_fn** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[[`Any`](https://docs.python.org/3/library/typing.html#typing.Any), [`Action`](_autosummary/ov.base.html.md#ov.base.Action)], [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]) – injection seams for the hands (default to the real
    [`observe()`](_autosummary/ov.operate.html.md#ov.operate.observe) / [`act()`](_autosummary/ov.operate.html.md#ov.operate.act)); tests pass fakes.

#### execute(input_data, context=None)

Pursue `input_data` (the goal) and return `(CaptureRun, info)` (aw protocol).

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun), [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

### *class* ov.agents.Orchestrator(llm=None, lenses=('ux', 'arch'), out_dir=None, store=None, capture_fn=<function \_default_capture>, analyze_fn=<function \_default_analyze>, report_fn=<function \_default_report>, synopsis_fn=<function \_default_synopsis>, capture_kwargs=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Coordinate a full study, delegating each stage (never analyzing itself).

* **Parameters:**
  * **llm** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – the injected model for the analyst agents. `None` → deterministic-only
    study (the host-is-manager default; analysts are skipped).
  * **lenses** ([`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)) – which analysis lenses to run (`"ux"` and/or `"arch"`).
  * **out_dir** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – where reports + synopsis are written (`None` → the run’s store).
  * **synopsis_fn** ([`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)) – stage seams (default to the
    real `ov` facade). Inject fakes to unit-test the coordination.
  * **capture_kwargs** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – extra kwargs forwarded to `capture_fn` (e.g. `mode`,
    `authorized`, `crawl_pages`, `journey`).

#### run(url)

Run the full study for `url` and return an `OrchestratorResult`.

* **Return type:**
  [`OrchestratorResult`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.OrchestratorResult)

### ov.agents.agents_for_role(role)

All specs with `role` (e.g. both analysts).

```pycon
>>> [s.lens for s in agents_for_role("analyst")]
['ux', 'arch']
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`AgentSpec`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.AgentSpec)]

### ov.agents.analyst_specs()

The UX + Arch analyst specs, in pipeline order (UX then Arch).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`AgentSpec`](_autosummary/ov.agents.definitions.html.md#ov.agents.definitions.AgentSpec)]

### ov.agents.arch_analyst(llm=None, \*\*kwargs)

A software-architecture analyst (Opus-routed). `llm` is the injected model.

```pycon
>>> arch_analyst().model
'opus'
```

* **Return type:**
  [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)

### ov.agents.complete_agent(role_or_name, , skills_dir=None, policy=None, llm=None)

`COMPLETE` one ov skill into a `coact.AgentDefinition` (the lift).

Mechanical by default (no LLM): model, tools, return contract and MCP wiring come
from the skill’s `coact:` block. Pass `llm=` only to let coact *draft* a
persona — the deterministic template path is used otherwise.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.complete_all(, roles=None, skills_dir=None, policy=None)

`COMPLETE` every ov agent (or `roles`) → `{role: AgentDefinition}`.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.agents.default_model(role)

The default model selector for a role (falls back to `"sonnet"`).

```pycon
>>> default_model("operator"), default_model("arch"), default_model("???")
('haiku', 'opus', 'sonnet')
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.agents.default_skills_dir()

Resolve the directory holding `ov`’s skills (env, then packaged, then repo).

Returns the first layout that actually contains skills; if none is found, the
packaged path is returned so callers get a clear, consistent miss to report.

Deliberately *not* cached: it reads `OV_SKILLS_DIR` at call time (a few cheap
`Path` checks), so an env change is always honoured. Resolution is invoked
once per agent lift, not in a hot loop, so the cost is immaterial.

* **Return type:**
  [`Path`](https://docs.python.org/3/library/pathlib.html#pathlib.Path)

### ov.agents.estimate(roles=None, , skills_dir=None)

The cost gate — coact’s fan-out estimate over the selected ov agents.

Realizing an in-package fleet costs roughly an order of magnitude more tokens
than the host path, and the premium is worst on *interdependent* work (ov’s
analysts share the evidence bundle). Render this before spawning:

```default
from ov.agents import estimate
print(estimate(["ux-analyst", "arch-analyst"]).render())
```

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.materialize(, roles=None, dest=None, scope='project', project_dir=None, link=True, skills_dir=None, force=False, policy=None)

Realize ov’s agents on the **host** backend: write `.claude/agents/` + link skills.

This is the cheap pit-of-success — it stands up *no* runtime. It emits one
`<name>.md` per agent into `dest` (default: the project’s `.claude/agents/`)
and symlinks each referenced skill into the sibling `.claude/skills/` so Claude
Code discovers both, then verifies discovery. Returns coact’s `RealizedHost`
(`.agents`, `.skills`, `.warnings`).

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.mcp_server(, name='ov', tools=None, input_trans=None)

Build a FastMCP server exposing `ov` to foreign hosts (via `py2mcp`).

```pycon
>>> srv = mcp_server()
>>> srv.run()                               # serve over stdio
```

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.ov_tools()

The `ov` callables exposed as MCP tools (coarse, stateless, JSON-shaped).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)]

### ov.agents.realize_agent(role_or_name, , backend='host', skills_dir=None, policy=None, \*\*kwargs)

Realize a single ov agent on `backend` (`"host"` | `"sdk"` | `"mcp"`).

`sdk` returns a `coact.RunnableAgent` (an `aw.AgenticStep`) for text-shaped
agents; `mcp` exposes the skill’s declared `coact: mcp:` tools as a FastMCP
server (foreign hosts). For ov’s live-browser / multimodal runtimes use
[`OperatorAgent`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.OperatorAgent) / [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)
instead — coact’s text-prompt `sdk` agent can’t drive a page or send images.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.resolve_llm(llm=None)

Resolve `llm` to a `callable(str) -> str`, or `None`.

One injection convention: a callable (used as-is), an `aw` `StepConfig`, a
model-name string, or `None` to discover an ambient provider. A plain callable
short-circuits (no optional dependency needed); the other forms defer to
`coact.llm.resolve_llm()`.

```pycon
>>> resolve_llm(lambda p: "hi")("x")
'hi'
```

### ov.agents.skill_path(name, , skills_dir=None)

Absolute path to skill `name`’s directory (the one holding `SKILL.md`).

Raises [`FileNotFoundError`](https://docs.python.org/3/builtins/exceptions.html#FileNotFoundError) with an actionable hint when the skill is not
discoverable, rather than letting coact fail later on a missing path.

* **Return type:**
  [`Path`](https://docs.python.org/3/library/pathlib.html#pathlib.Path)

### ov.agents.structured(prompt, schema, , llm=None, images=None, retries=1)

Best-effort schema-conforming dict from an LLM, or `None` if unavailable.

Resolution order honours dependency injection:

1. if `llm` exposes a `structured` method, it is used as-is — this is the
   multimodal path (the method may accept `images=`); a real vision client
   plugs in here;
2. otherwise fall through to coact’s portable text-only `structured` (any
   `images` are dropped — the bundle’s textual facts still ground the claims);
3. if no LLM is resolvable at all, return `None` so callers fall back to a
   deterministic-only path (no crash, no provider lock-in).

* **Return type:**
  [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)]

### ov.agents.study(url, , llm=None, lenses=('ux', 'arch'), \*\*kwargs)

Run an end-to-end study of `url` (the in-package twin of the `study-web-app` skill).

The pit-of-success one-liner: capture → analyze → (optional analyst judgment) →
report → synopsis. With `llm=None` it is fully deterministic; pass an injected
model to add grounded UX/Arch narrative. Forwards `mode` / `authorized` /
`crawl_pages` / `out_dir` / stage seams via `**kwargs`.

* **Return type:**
  [`OrchestratorResult`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.OrchestratorResult)

### ov.agents.ux_analyst(llm=None, \*\*kwargs)

A UX/accessibility analyst (Sonnet-routed). `llm` is the injected model.

```pycon
>>> a = ux_analyst()
>>> a.lens, a.model, a.name
('ux', 'sonnet', 'ux-analyst')
```

* **Return type:**
  [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)

### Modules

| [`analyst`](_autosummary/ov.agents.analyst.html.md#module-ov.agents.analyst)           | The Analyst agents (UX + Arch) — grounded judgment over an evidence bundle.       |
|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| [`definitions`](_autosummary/ov.agents.definitions.html.md#module-ov.agents.definitions)   | SSOT: which `ov` skills become which agents (role, lens, model routing).          |
| [`llm`](_autosummary/ov.agents.llm.html.md#module-ov.agents.llm)                   | Provider-agnostic LLM facade for the `ov` agent layer (thin, injected, optional). |
| [`mcp`](_autosummary/ov.agents.mcp.html.md#module-ov.agents.mcp)                   | Expose `ov` to non-Claude-Code hosts as an MCP server (via `py2mcp`).             |
| [`operator`](_autosummary/ov.agents.operator.html.md#module-ov.agents.operator)         | The Operator agent — the model-bound perceive→decide→act→record loop.             |
| [`orchestrator`](_autosummary/ov.agents.orchestrator.html.md#module-ov.agents.orchestrator) | The Orchestrator — a *pure coordinator* over the study pipeline (`aw` workflow).  |
| [`realize`](_autosummary/ov.agents.realize.html.md#module-ov.agents.realize)           | The mechanical lift — turn `ov`'s skills into agent definitions and realize them. |


# _autosummary/ov.agents.llm.html.md

# ov.agents.llm

Provider-agnostic LLM facade for the `ov` agent layer (thin, injected, optional).

`ov`’s deterministic core needs no model. The agent layer adds *bounded* model use
— always **dependency-injected**, so there is no provider lock-in and the package
imports fine with no LLM SDK present. This facade is a thin layer over
`coact.llm` (itself glue over `skill.ai`), adding the two ov-specific things
coact’s generic facade does not carry:

* **model routing** — the per-role default models from the spec’s §10 cost gate:
  operator → Haiku (throughput, many steps), UX-analyst → Sonnet (grounded
  narrative judgment), Arch-analyst / orchestrator → Opus (design reasoning /
  planning);
* a **multimodal** [`structured()`](_autosummary/ov.agents.llm.html.md#ov.agents.llm.structured) path — the UX analyst grounds judgment in
  *marked screenshots*, which coact’s text-only `structured` cannot carry. Inject
  any object exposing `structured(prompt, schema, *, images=...)` for full control
  (real vision client); otherwise this degrades to coact’s portable text-only path,
  which is still grounded because the evidence bundle’s *facts* are textual
  summaries of each marked region (§8.1).

### Module Attributes

| [`DEFAULT_MODELS`](_autosummary/ov.agents.llm.html.md#ov.agents.llm.DEFAULT_MODELS)   | Per-role default model selectors (host SDK literals), from the §10 cost gate.   |
|-------------------------------------------------------------------|---------------------------------------------------------------------------------|

### Functions

| [`default_model`](_autosummary/ov.agents.llm.html.md#ov.agents.llm.default_model)(role)                                | The default model selector for a role (falls back to `"sonnet"`).         |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------|
| [`resolve_llm`](_autosummary/ov.agents.llm.html.md#ov.agents.llm.resolve_llm)([llm])                                 | Resolve `llm` to a `callable(str) -> str`, or `None`.                     |
| [`structured`](_autosummary/ov.agents.llm.html.md#ov.agents.llm.structured)(prompt, schema, \*[, llm, images, ...]) | Best-effort schema-conforming dict from an LLM, or `None` if unavailable. |

### ov.agents.llm.DEFAULT_MODELS *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [str](https://docs.python.org/3/builtins/stdtypes.html#str)]* *= {'arch': 'opus', 'operator': 'haiku', 'orchestrator': 'opus', 'ux': 'sonnet'}*

Per-role default model selectors (host SDK literals), from the §10 cost gate.

### ov.agents.llm.default_model(role)

The default model selector for a role (falls back to `"sonnet"`).

```pycon
>>> default_model("operator"), default_model("arch"), default_model("???")
('haiku', 'opus', 'sonnet')
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.agents.llm.resolve_llm(llm=None)

Resolve `llm` to a `callable(str) -> str`, or `None`.

One injection convention: a callable (used as-is), an `aw` `StepConfig`, a
model-name string, or `None` to discover an ambient provider. A plain callable
short-circuits (no optional dependency needed); the other forms defer to
`coact.llm.resolve_llm()`.

```pycon
>>> resolve_llm(lambda p: "hi")("x")
'hi'
```

### ov.agents.llm.structured(prompt, schema, , llm=None, images=None, retries=1)

Best-effort schema-conforming dict from an LLM, or `None` if unavailable.

Resolution order honours dependency injection:

1. if `llm` exposes a `structured` method, it is used as-is — this is the
   multimodal path (the method may accept `images=`); a real vision client
   plugs in here;
2. otherwise fall through to coact’s portable text-only `structured` (any
   `images` are dropped — the bundle’s textual facts still ground the claims);
3. if no LLM is resolvable at all, return `None` so callers fall back to a
   deterministic-only path (no crash, no provider lock-in).

* **Return type:**
  [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)]


# _autosummary/ov.agents.mcp.html.md

# ov.agents.mcp

Expose `ov` to non-Claude-Code hosts as an MCP server (via `py2mcp`).

The host-agent path assumes Claude Code. For *any other* MCP client (a different
agent runtime, an IDE, a foreign orchestrator) this module turns `ov`’s coarse,
JSON-shaped facade into MCP tools — the spec’s “optional `py2mcp` MCP server for
non-Claude-Code hosts” (§9.6 / Phase 4). It deliberately exposes the *coarse* entry
points (`study_url` / `capture_url`), not the page-stateful operate primitives:
MCP tools are stateless calls, and `ov.observe` already owns its own browser
session internally, so each tool is a clean one-shot.

`py2mcp` builds the tool schemas by introspecting these functions’ type hints and
docstrings, so they are kept small and well-typed on purpose. The same skill-declared
path also works the coact-native way:

```default
coact realize study-web-app --backend mcp   # reads the skill's `coact: mcp:` block
```

Run the server directly with `python -m ov.agents.mcp` (or the `ov mcp` CLI).

### Functions

| [`capture_url`](_autosummary/ov.agents.mcp.html.md#ov.agents.mcp.capture_url)(url, \*[, mode, authorized, ...])   | Capture a web app (behavioral + static streams) and return a compact summary.   |
|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [`main`](_autosummary/ov.agents.mcp.html.md#ov.agents.mcp.main)()                                          | Run the `ov` MCP server over stdio (`python -m ov.agents.mcp` / `ov mcp`).      |
| [`mcp_server`](_autosummary/ov.agents.mcp.html.md#ov.agents.mcp.mcp_server)(\*[, name, tools, input_trans])      | Build a FastMCP server exposing `ov` to foreign hosts (via `py2mcp`).           |
| [`ov_tools`](_autosummary/ov.agents.mcp.html.md#ov.agents.mcp.ov_tools)()                                      | The `ov` callables exposed as MCP tools (coarse, stateless, JSON-shaped).       |
| [`study_url`](_autosummary/ov.agents.mcp.html.md#ov.agents.mcp.study_url)(url, \*[, mode, authorized, ...])     | Study a web app end-to-end (deterministic) and return its synopsis.             |

### ov.agents.mcp.capture_url(url, , mode='reconstruct', authorized=False, crawl_pages=0)

Capture a web app (behavioral + static streams) and return a compact summary.

Runs only the deterministic capture (no analysis). Use when you want the raw
captured facts (technologies, rendering model, step/artifact counts) without the
analyzers.

* **Parameters:**
  * **url** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – the target to capture.
  * **mode** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – `"reconstruct"` or `"review"`.
  * **authorized** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – acknowledge authorization to capture a foreign target.
  * **crawl_pages** ([`int`](https://docs.python.org/3/builtins/functions.html#int)) – if > 1, politely crawl that many same-origin pages.
* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)
* **Returns:**
  A summary dict (run id, target, counts, detected technologies, rendering model).

### ov.agents.mcp.main()

Run the `ov` MCP server over stdio (`python -m ov.agents.mcp` / `ov mcp`).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.agents.mcp.mcp_server(, name='ov', tools=None, input_trans=None)

Build a FastMCP server exposing `ov` to foreign hosts (via `py2mcp`).

```pycon
>>> srv = mcp_server()
>>> srv.run()                               # serve over stdio
```

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.mcp.ov_tools()

The `ov` callables exposed as MCP tools (coarse, stateless, JSON-shaped).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)]

### ov.agents.mcp.study_url(url, , mode='reconstruct', authorized=False, crawl_pages=0, lenses='ux,arch')

Study a web app end-to-end (deterministic) and return its synopsis.

Drives the target, runs the UX + architecture analyzers, and returns the
deduplicated `synopsis.json` document — the compact, evidence-referenced SSOT a
downstream agent acts on. Model-free (no LLM judgment); the host adds narrative.

* **Parameters:**
  * **url** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – the target to study.
  * **mode** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – `"reconstruct"` (foreign target) or `"review"` (own target).
  * **authorized** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – acknowledge authorization to study a foreign target.
  * **crawl_pages** ([`int`](https://docs.python.org/3/builtins/functions.html#int)) – if > 1, politely crawl that many same-origin pages.
  * **lenses** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – comma-separated analysis lenses (`"ux"`, `"arch"`).
* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)
* **Returns:**
  The synopsis document (run id, deduplicated findings, severity histogram).


# _autosummary/ov.agents.operator.html.md

# ov.agents.operator

The Operator agent — the model-bound perceive→decide→act→record loop.

In Phases 1–3 the *host* plays the operator, following the `ov-operate` skill: it
reads affordances, decides the next action, and records intent. Phase 4 packages that
loop as a runnable agent. The deterministic “hands” (`observe` / `act` /
`make_step` / `journal` / `progress`) are reused unchanged; the only thing the
agent adds is the **decide** step — and that is *injected* (`decider`), so:

* the package never hard-depends on an LLM (the host, a script, or a model can all
  supply `decide`); and
* the loop is unit-testable with a trivial decider and fake `observe`/`act`
  callables — no browser, no API call.

The agent satisfies the `aw.AgenticStep` protocol structurally
(`execute(input_data, context) -> (artifact, info)`), so it drops into an `aw`
workflow (see [`ov.agents.orchestrator`](_autosummary/ov.agents.orchestrator.html.md#module-ov.agents.orchestrator)). Its artifact is the populated
[`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun); the model-free [`progress()`](_autosummary/ov.operate.html.md#ov.operate.progress) facts are
the deterministic stop signal a budget-bound manager interprets.

### Module Attributes

| [`Decider`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.Decider)   | A decider maps the current observation (+ goal + history) to the next action, or `None` to stop.   |
|------------------------------------------------------------|----------------------------------------------------------------------------------------------------|

### Functions

| [`make_llm_decider`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.make_llm_decider)([llm, instruction])   | A model-backed [`Decider`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.Decider) that picks the next [`Action`](_autosummary/ov.base.html.md#ov.base.Action).   |
|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|

### Classes

| [`OperatorAgent`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.OperatorAgent)(decider[, session, max_steps, ...])   | Drive a target toward a goal, recording every step (an `aw.AgenticStep`).   |
|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|

### ov.agents.operator.Decider

A decider maps the current observation (+ goal + history) to the next action,
or `None` to stop. The model’s only job in the loop.

alias of `Callable`[[…], [`Action`](_autosummary/ov.base.html.md#ov.base.Action) | [`None`](https://docs.python.org/3/builtins/constants.html#None)]

### *class* ov.agents.operator.OperatorAgent(decider, session=None, max_steps=12, strategy='ax_snapshot', polite_rate_s=0.0, no_progress_steps=3, observe_fn=None, act_fn=None, model='haiku', name='operator')

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Drive a target toward a goal, recording every step (an `aw.AgenticStep`).

* **Parameters:**
  * **decider** ([`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[`...`](https://docs.python.org/3/builtins/constants.html#Ellipsis), [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Action`](_autosummary/ov.base.html.md#ov.base.Action)]]) – `(observation, *, goal, history) -> Action | None`. Returns the
    next action, or `None` to stop. Use [`make_llm_decider()`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.make_llm_decider) for a
    model-backed one, or any callable (host / script / test stub).
  * **session** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – a [`CaptureSession`](_autosummary/ov.capture.session.html.md#ov.capture.session.CaptureSession) (supplies `.page` +
    `.run`). Optional — `page` and `run` may instead arrive via the
    `context` passed to [`execute()`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.OperatorAgent.execute) (keys `"page"` / `"run"`).
  * **max_steps** ([`int`](https://docs.python.org/3/builtins/functions.html#int)) – hard cap on actions (a budget; the deterministic loop signal is
    advisory, the cap is the backstop).
  * **strategy** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – perception strategy for the default `observe` (`"ax_snapshot"`
    | `"screenshot"` | `"hybrid"`).
  * **act_fn** ([`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[[`Any`](https://docs.python.org/3/library/typing.html#typing.Any), [`Action`](_autosummary/ov.base.html.md#ov.base.Action)], [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]) – injection seams for the hands (default to the real
    [`observe()`](_autosummary/ov.operate.html.md#ov.operate.observe) / [`act()`](_autosummary/ov.operate.html.md#ov.operate.act)); tests pass fakes.

#### execute(input_data, context=None)

Pursue `input_data` (the goal) and return `(CaptureRun, info)` (aw protocol).

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun), [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

### ov.agents.operator.make_llm_decider(llm=None, , instruction=None)

A model-backed [`Decider`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.Decider) that picks the next [`Action`](_autosummary/ov.base.html.md#ov.base.Action).

Uses the injected `llm` through [`ov.agents.llm.structured()`](_autosummary/ov.agents.llm.html.md#ov.agents.llm.structured) to choose an
action conforming to `Action`’s schema. Returns `None` (stop) when no LLM is
resolvable, on a parse miss, or when the model signals a stop — so an operator
built with this decider degrades safely to a no-op rather than crashing.

* **Return type:**
  [`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[`...`](https://docs.python.org/3/builtins/constants.html#Ellipsis), [`Optional`](https://docs.python.org/3/library/typing.html#typing.Optional)[[`Action`](_autosummary/ov.base.html.md#ov.base.Action)]]


# _autosummary/ov.agents.orchestrator.html.md

# ov.agents.orchestrator

The Orchestrator — a *pure coordinator* over the study pipeline (`aw` workflow).

The orchestrator plans and delegates; it does **not** analyze (plan quality degrades
when the planner also does the work — §7). It sequences the study the `study-web-app`
skill describes — capture → deterministic analysis → (optional) analyst judgment →
report → synopsis — by chaining 

```
``
```

aw.AgenticStep\`\`s through an `aw.AgenticWorkflow`
with the [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) as the shared SSOT in the workflow context.

Two design properties carry the spec’s intent:

* **Host-is-the-manager stays the default.** With no `llm` injected the pipeline is
  fully deterministic (capture + analyzers + report + synopsis) — the analyst agents
  are *additive* and only run when a model is supplied. The cheap path is the default.
* **Everything is injected.** Each stage (capture / analyze / report / synopsis) is a
  swappable callable defaulting to the real `ov` facade, so the coordination logic
  is unit-testable with fakes — no browser, no model — while the defaults wire the
  genuine end-to-end study.

### Functions

| [`study`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.study)(url, \*[, llm, lenses])   | Run an end-to-end study of `url` (the in-package twin of the `study-web-app` skill).   |
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|

### Classes

| [`Orchestrator`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.Orchestrator)([llm, lenses, out_dir, store, ...])   | Coordinate a full study, delegating each stage (never analyzing itself).       |
|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
| [`OrchestratorResult`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.OrchestratorResult)(run[, synopsis, reports, ...])  | What a study produced: the run, the synopsis, report paths, and step metadata. |

### *class* ov.agents.orchestrator.Orchestrator(llm=None, lenses=('ux', 'arch'), out_dir=None, store=None, capture_fn=<function \_default_capture>, analyze_fn=<function \_default_analyze>, report_fn=<function \_default_report>, synopsis_fn=<function \_default_synopsis>, capture_kwargs=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Coordinate a full study, delegating each stage (never analyzing itself).

* **Parameters:**
  * **llm** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – the injected model for the analyst agents. `None` → deterministic-only
    study (the host-is-manager default; analysts are skipped).
  * **lenses** ([`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)) – which analysis lenses to run (`"ux"` and/or `"arch"`).
  * **out_dir** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – where reports + synopsis are written (`None` → the run’s store).
  * **synopsis_fn** ([`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)) – stage seams (default to the
    real `ov` facade). Inject fakes to unit-test the coordination.
  * **capture_kwargs** ([`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)) – extra kwargs forwarded to `capture_fn` (e.g. `mode`,
    `authorized`, `crawl_pages`, `journey`).

#### run(url)

Run the full study for `url` and return an [`OrchestratorResult`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.OrchestratorResult).

* **Return type:**
  [`OrchestratorResult`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.OrchestratorResult)

### *class* ov.agents.orchestrator.OrchestratorResult(run, synopsis=None, reports=list(), workflow=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

What a study produced: the run, the synopsis, report paths, and step metadata.

### ov.agents.orchestrator.study(url, , llm=None, lenses=('ux', 'arch'), \*\*kwargs)

Run an end-to-end study of `url` (the in-package twin of the `study-web-app` skill).

The pit-of-success one-liner: capture → analyze → (optional analyst judgment) →
report → synopsis. With `llm=None` it is fully deterministic; pass an injected
model to add grounded UX/Arch narrative. Forwards `mode` / `authorized` /
`crawl_pages` / `out_dir` / stage seams via `**kwargs`.

* **Return type:**
  [`OrchestratorResult`](_autosummary/ov.agents.orchestrator.html.md#ov.agents.orchestrator.OrchestratorResult)


# _autosummary/ov.agents.realize.html.md

# ov.agents.realize

The mechanical lift — turn `ov`’s skills into agent definitions and realize them.

This is the thin ov-specific facade over coact’s two transforms (D4): `COMPLETE`
(a `.claude/skills/` skill → an `coact.AgentDefinition`, reading the extras
from the skill’s `coact:` block) and `REALIZE` (a definition → a running agent on
a chosen backend). Nothing here re-implements an agent loop or a persona; coact does
the lift, `ov` just points it at the right skills and surfaces the cost gate.

The cheapest backend is the default (`host`): [`materialize()`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.materialize) writes
`.claude/agents/*.md` and links the skills so **Claude Code** runs ov’s agents as
subagents — no new runtime, no fan-out. Standing up an in-process fleet (`sdk`) or
a foreign-host tool server (`mcp`) is opt-in; call [`estimate()`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.estimate) first to see the
~15× fan-out premium before you spawn one (the §3.5 cost gate).

### Functions

| [`complete_agent`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.complete_agent)(role_or_name, \*[, ...])         | `COMPLETE` one ov skill into a `coact.AgentDefinition` (the lift).                  |
|--------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| [`complete_all`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.complete_all)(\*[, roles, skills_dir, policy])   | `COMPLETE` every ov agent (or `roles`) → `{role: AgentDefinition}`.                 |
| [`estimate`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.estimate)([roles, skills_dir])                   | The cost gate — coact's fan-out estimate over the selected ov agents.               |
| [`materialize`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.materialize)(\*[, roles, dest, scope, ...])      | Realize ov's agents on the **host** backend: write `.claude/agents/` + link skills. |
| [`realize_agent`](_autosummary/ov.agents.realize.html.md#ov.agents.realize.realize_agent)(role_or_name, \*[, backend, ...]) | Realize a single ov agent on `backend` (`"host"` | `"sdk"` | `"mcp"`).              |

### ov.agents.realize.complete_agent(role_or_name, , skills_dir=None, policy=None, llm=None)

`COMPLETE` one ov skill into a `coact.AgentDefinition` (the lift).

Mechanical by default (no LLM): model, tools, return contract and MCP wiring come
from the skill’s `coact:` block. Pass `llm=` only to let coact *draft* a
persona — the deterministic template path is used otherwise.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.realize.complete_all(, roles=None, skills_dir=None, policy=None)

`COMPLETE` every ov agent (or `roles`) → `{role: AgentDefinition}`.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.agents.realize.estimate(roles=None, , skills_dir=None)

The cost gate — coact’s fan-out estimate over the selected ov agents.

Realizing an in-package fleet costs roughly an order of magnitude more tokens
than the host path, and the premium is worst on *interdependent* work (ov’s
analysts share the evidence bundle). Render this before spawning:

```default
from ov.agents import estimate
print(estimate(["ux-analyst", "arch-analyst"]).render())
```

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.realize.materialize(, roles=None, dest=None, scope='project', project_dir=None, link=True, skills_dir=None, force=False, policy=None)

Realize ov’s agents on the **host** backend: write `.claude/agents/` + link skills.

This is the cheap pit-of-success — it stands up *no* runtime. It emits one
`<name>.md` per agent into `dest` (default: the project’s `.claude/agents/`)
and symlinks each referenced skill into the sibling `.claude/skills/` so Claude
Code discovers both, then verifies discovery. Returns coact’s `RealizedHost`
(`.agents`, `.skills`, `.warnings`).

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.agents.realize.realize_agent(role_or_name, , backend='host', skills_dir=None, policy=None, \*\*kwargs)

Realize a single ov agent on `backend` (`"host"` | `"sdk"` | `"mcp"`).

`sdk` returns a `coact.RunnableAgent` (an `aw.AgenticStep`) for text-shaped
agents; `mcp` exposes the skill’s declared `coact: mcp:` tools as a FastMCP
server (foreign hosts). For ov’s live-browser / multimodal runtimes use
[`OperatorAgent`](_autosummary/ov.agents.operator.html.md#ov.agents.operator.OperatorAgent) / [`AnalystAgent`](_autosummary/ov.agents.analyst.html.md#ov.agents.analyst.AnalystAgent)
instead — coact’s text-prompt `sdk` agent can’t drive a page or send images.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)


# _autosummary/ov.analysis.arch.api.html.md

# ov.analysis.arch.api

API-surface synthesis: merge schemas across journeys, classify, detect auth (D2 §4).

Groups captured XHR/fetch traffic by `(method, path_template)`, merges the JSON
request/response samples into one schema each with **GenSON** (a monoidal merge
over samples), classifies each endpoint REST/RPC/GraphQL, infers the auth scheme
from request headers, and scores per-endpoint coverage. Produces
`api_surface``. All pure over artifacts.

### Functions

| [`analyze_api`](_autosummary/ov.analysis.arch.api.html.md#ov.analysis.arch.api.analyze_api)(ctx)                              | Synthesize the API surface from captured XHR/fetch traffic.            |
|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [`classify_endpoint`](_autosummary/ov.analysis.arch.api.html.md#ov.analysis.arch.api.classify_endpoint)(method, path, request_body) | Classify an endpoint as `rest` | `rpc` | `graphql` (pure).             |
| [`infer_auth`](_autosummary/ov.analysis.arch.api.html.md#ov.analysis.arch.api.infer_auth)(request_headers)                   | Infer the auth scheme from (possibly redacted) request headers (pure). |
| [`normalize_path`](_autosummary/ov.analysis.arch.api.html.md#ov.analysis.arch.api.normalize_path)(path)                          | Templatize a URL path, replacing id-like segments with `{id}` (pure).  |

### ov.analysis.arch.api.analyze_api(ctx)

Synthesize the API surface from captured XHR/fetch traffic.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.arch.api.classify_endpoint(method, path, request_body)

Classify an endpoint as `rest` | `rpc` | `graphql` (pure).

```pycon
>>> classify_endpoint("POST", "/graphql", {"query": "{ me { id } }"})
'graphql'
>>> classify_endpoint("POST", "/api/createUser", None)
'rpc'
>>> classify_endpoint("GET", "/api/users/{id}", None)
'rest'
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.analysis.arch.api.infer_auth(request_headers)

Infer the auth scheme from (possibly redacted) request headers (pure).

```pycon
>>> infer_auth({"authorization": "<redacted:40>"})
'bearer'
>>> infer_auth({"cookie": "<redacted:20>"})
'cookie'
>>> infer_auth({}) is None
True
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.analysis.arch.api.normalize_path(path)

Templatize a URL path, replacing id-like segments with `{id}` (pure).

```pycon
>>> normalize_path("/api/users/42/posts/9c8")  # short slugs are left alone
'/api/users/{id}/posts/9c8'
>>> normalize_path("/v1/orders/550e8400-e29b-41d4-a716-446655440000")
'/v1/orders/{id}'
>>> normalize_path("/files/deadbeefcafe0001")  # 12+ hex looks like an id
'/files/{id}'
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)


# _autosummary/ov.analysis.arch.bundles.html.md

# ov.analysis.arch.bundles

Source-map detection + recovery – the decisive bimodal lever (D2).

Reconstruction quality is bimodal: WITH source maps you recover the original file
tree, source text, and `node_modules` version paths; WITHOUT them you get a
beautified-but-renamed approximation. So this analyzer detects map presence from
the captured JS bodies and asset URLs and sets `source_maps_present` (which
gates downstream reconstruction confidence everywhere).

Recovery is **pure-Python and Node-free** (see [`ov.analysis.arch.sourcemaps`](_autosummary/ov.analysis.arch.sourcemaps.html.md#module-ov.analysis.arch.sourcemaps)):
it parses any captured `.map` body (explicit `source_map` artifacts, incidental
`.map` responses, or inline `data:` maps), persists each recovered file
content-addressed (`recovered_source` artifacts indexed by a manifest blob), and
surfaces recovered `node_modules` packages as top-provenance
`artifacts``, so re-analysis stays idempotent.

### Functions

| [`analyze_bundles`](_autosummary/ov.analysis.arch.bundles.html.md#ov.analysis.arch.bundles.analyze_bundles)(ctx)                      | Set `run.source_maps_present` and emit an arch_fact (+ optional recovery).   |
|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| [`detect_source_maps`](_autosummary/ov.analysis.arch.bundles.html.md#ov.analysis.arch.bundles.detect_source_maps)(js_bodies, asset_urls) | Detect source-map presence from JS bodies + asset urls (pure, testable).     |
| [`js_response_bodies`](_autosummary/ov.analysis.arch.bundles.html.md#ov.analysis.arch.bundles.js_response_bodies)(ctx)                   | Return `(url, text)` for captured JS response bodies (reused across arch).   |

### ov.analysis.arch.bundles.analyze_bundles(ctx)

Set `run.source_maps_present` and emit an arch_fact (+ optional recovery).

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.arch.bundles.detect_source_maps(js_bodies, asset_urls)

Detect source-map presence from JS bodies + asset urls (pure, testable).

```pycon
>>> detect_source_maps([("a.js", "x=1\n//# sourceMappingURL=a.js.map")], [])[0]
True
>>> detect_source_maps([("a.js", "x=1")], ["https://x/b.js.map"])[0]
True
>>> detect_source_maps([("a.js", "x=1")], [])[0]
False
```

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`bool`](https://docs.python.org/3/builtins/functions.html#bool), [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]]

### ov.analysis.arch.bundles.js_response_bodies(ctx)

Return `(url, text)` for captured JS response bodies (reused across arch).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]]


# _autosummary/ov.analysis.arch.dependencies.html.md

# ov.analysis.arch.dependencies

Dependency inventory + known-vulnerability flags (D2).

Builds a dependency inventory from the detected technologies (provenance ranks
sourcemap path > bundle comment > global signature) and, when the **Retire.js**
CLI is available, scans the captured JS bodies for CVE-backed vulnerable library
versions. Retire.js is shelled out to (it must not run untrusted JS in-process);
when it is absent the analyzer emits an honest `undetermined` finding routing
CVE coverage to a human rather than asserting “no known vulnerabilities”.

### Functions

| [`analyze_dependencies`](_autosummary/ov.analysis.arch.dependencies.html.md#ov.analysis.arch.dependencies.analyze_dependencies)(ctx)   | Inventory dependencies and flag known-vulnerable versions (Retire.js, optional).   |
|------------------------------------------------------------------------------|------------------------------------------------------------------------------------|

### ov.analysis.arch.dependencies.analyze_dependencies(ctx)

Inventory dependencies and flag known-vulnerable versions (Retire.js, optional).

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)


# _autosummary/ov.analysis.arch.framework.html.md

# ov.analysis.arch.framework

Framework / bundler / state-management / routing enrichment (D2 §5).

The `fingerprint` probe already detected frameworks from runtime globals; this
analyzer enriches the picture from the *bundle text* (bundler + state-management
signatures) and reconstructs a client routing map from `<a href>` links. New
`fingerprint`` (dedup by name,
max confidence); the routing map is surfaced for the architecture report.

### Functions

| [`analyze_framework`](_autosummary/ov.analysis.arch.framework.html.md#ov.analysis.arch.framework.analyze_framework)(ctx)   | Detect bundler + state-management from bundles; reconstruct the route map.   |
|---------------------------------------------------------------------------|------------------------------------------------------------------------------|

### ov.analysis.arch.framework.analyze_framework(ctx)

Detect bundler + state-management from bundles; reconstruct the route map.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)


# _autosummary/ov.analysis.arch.html.md

# ov.analysis.arch

Architecture-reconstruction analyzers (§6, D2).

A deterministic `fingerprint -> bundle-recovery -> api-synthesis` pipeline,
each analyzer reading captured artifacts and emitting scored facts
([`TechFinding`](_autosummary/ov.base.html.md#ov.base.TechFinding)/[`Endpoint`](_autosummary/ov.base.html.md#ov.base.Endpoint)) with provenance. The
single biggest lever is source-map presence (reconstruction quality is bimodal),
so `source_maps_present` gates downstream confidence. Heavy JS-only tooling runs
in the optional Node sidecar; everything degrades gracefully without it.

### Modules

| [`api`](_autosummary/ov.analysis.arch.api.html.md#module-ov.analysis.arch.api)                   | API-surface synthesis: merge schemas across journeys, classify, detect auth (D2 §4).   |
|----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| [`bundles`](_autosummary/ov.analysis.arch.bundles.html.md#module-ov.analysis.arch.bundles)           | Source-map detection + recovery -- the decisive bimodal lever (D2).                    |
| [`dependencies`](_autosummary/ov.analysis.arch.dependencies.html.md#module-ov.analysis.arch.dependencies) | Dependency inventory + known-vulnerability flags (D2).                                 |
| [`framework`](_autosummary/ov.analysis.arch.framework.html.md#module-ov.analysis.arch.framework)       | Framework / bundler / state-management / routing enrichment (D2 §5).                   |
| [`pipeline`](_autosummary/ov.analysis.arch.pipeline.html.md#module-ov.analysis.arch.pipeline)         | The arch pipeline as a composable transform (§6: fingerprint -> bundles -> api).       |
| [`rendering`](_autosummary/ov.analysis.arch.rendering.html.md#module-ov.analysis.arch.rendering)       | Rendering-model classifier: CSR vs SSR/SSG via raw-HTML-vs-rendered-DOM diff (D2).     |
| [`sidecar`](_autosummary/ov.analysis.arch.sidecar.html.md#module-ov.analysis.arch.sidecar)           | Python facade over the Node reverse-engineering sidecar (§6.1, D2).                    |
| [`sourcemaps`](_autosummary/ov.analysis.arch.sourcemaps.html.md#module-ov.analysis.arch.sourcemaps)     | Pure source-map recovery: original file tree + `node_modules` versions (D2).           |


# _autosummary/ov.analysis.arch.pipeline.html.md

# ov.analysis.arch.pipeline

The arch pipeline as a composable transform (§6: fingerprint -> bundles -> api).

The architecture lens is conceptually a three-stage deterministic pipeline. The
registry already orders the arch analyzers by their declared dependencies; this
module exposes that ordering and a convenience that runs *only* the arch lens
over a context and returns the merged output – useful for callers (or tests)
that want architecture facts without the full UX pass.

### Module Attributes

| [`ARCH_STAGES`](_autosummary/ov.analysis.arch.pipeline.html.md#ov.analysis.arch.pipeline.ARCH_STAGES)   | Canonical arch stage order (fingerprint detection -> bundle recovery -> API synthesis).   |
|----------------------------------------------------------------|-------------------------------------------------------------------------------------------|

### Functions

| [`run_arch_pipeline`](_autosummary/ov.analysis.arch.pipeline.html.md#ov.analysis.arch.pipeline.run_arch_pipeline)(ctx)   | Run the arch-lens analyzers in dependency order; return one merged output.   |
|---------------------------------------------------------------------------|------------------------------------------------------------------------------|

### ov.analysis.arch.pipeline.ARCH_STAGES *= ('rendering', 'framework', 'bundles', 'api_surface', 'dependencies')*

Canonical arch stage order (fingerprint detection -> bundle recovery -> API synthesis).

### ov.analysis.arch.pipeline.run_arch_pipeline(ctx)

Run the arch-lens analyzers in dependency order; return one merged output.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)


# _autosummary/ov.analysis.arch.rendering.html.md

# ov.analysis.arch.rendering

Rendering-model classifier: CSR vs SSR/SSG via raw-HTML-vs-rendered-DOM diff (D2).

The deterministic test compares the *server-sent* HTML (the captured document
response body, pre-JS) against the *rendered* DOM (post-JS). A large divergence
=> CSR (server sends a shell, JS builds the page); near-identity => SSR/SSG. This
is computed entirely from captured artifacts – no re-fetch – so it stays
hermetic. State-injection globals (`__NEXT_DATA__`/`__NUXT__`/`__remixContext`)
corroborate SSR/SSG. SSG vs SSR needs multiple requests and is left as a refinement.

### Functions

| [`analyze_rendering`](_autosummary/ov.analysis.arch.rendering.html.md#ov.analysis.arch.rendering.analyze_rendering)(ctx)                          | Set `run.rendering_model` and emit an arch_fact Finding.                 |
|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| [`classify_rendering`](_autosummary/ov.analysis.arch.rendering.html.md#ov.analysis.arch.rendering.classify_rendering)(raw_html, rendered_html)     | Classify the rendering model from raw vs rendered HTML (pure, testable). |
| [`rendering_scored`](_autosummary/ov.analysis.arch.rendering.html.md#ov.analysis.arch.rendering.rendering_scored)(model, confidence, provenance) | Wrap a rendering classification as a `Scored` fact (helper).             |

### ov.analysis.arch.rendering.analyze_rendering(ctx)

Set `run.rendering_model` and emit an arch_fact Finding.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.arch.rendering.classify_rendering(raw_html, rendered_html, globals_present=None)

Classify the rendering model from raw vs rendered HTML (pure, testable).

Returns `(model, confidence_0_100, rationale)` where model is one of
`csr` | `ssr-or-ssg` | `hybrid` | `unknown`.

```pycon
>>> classify_rendering("<html><body><div id=root></div></body></html>",
...                    "<html><body><div id=root><h1>Hi</h1><p>lots of text here</p></div></body></html>")[0]
'csr'
```

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`int`](https://docs.python.org/3/builtins/functions.html#int), [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]

### ov.analysis.arch.rendering.rendering_scored(model, confidence, provenance)

Wrap a rendering classification as a `Scored` fact (helper).

* **Return type:**
  [`Scored`](_autosummary/ov.base.html.md#ov.base.Scored)


# _autosummary/ov.analysis.arch.sidecar.html.md

# ov.analysis.arch.sidecar

Python facade over the Node reverse-engineering sidecar (§6.1, D2).

The mature JS-only tooling (`source-map`, bundle unpacking, AST literal
extraction) lives in a long-lived Node process spoken to over \*\*newline-delimited
JSON-RPC 2.0 on stdio\*\* – the same transport MCP uses, sub-process-bound with no
network exposure of a process that ingests untrusted JS. The wire contract is
defined once here as typed methods; the sidecar functions are pure and stateless.

Everything degrades gracefully: if Node or the sidecar deps are absent,
[`Sidecar.available()`](_autosummary/ov.analysis.arch.sidecar.html.md#ov.analysis.arch.sidecar.Sidecar.available) is `False` and callers skip recovery rather than fail.

### Classes

| [`Sidecar`](_autosummary/ov.analysis.arch.sidecar.html.md#ov.analysis.arch.sidecar.Sidecar)(\*[, node, script, timeout])   | A lazily-started Node sidecar process exposing pure JSON-RPC functions.   |
|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------|

### Exceptions

| [`SidecarUnavailable`](_autosummary/ov.analysis.arch.sidecar.html.md#ov.analysis.arch.sidecar.SidecarUnavailable)   | Raised when the Node sidecar cannot be used (Node/deps missing).   |
|-----------------------------------------------------------------------|--------------------------------------------------------------------|

### *class* ov.analysis.arch.sidecar.Sidecar(, node='node', script=None, timeout=30.0)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

A lazily-started Node sidecar process exposing pure JSON-RPC functions.

#### available()

True when the script exists and its `node_modules` are installed.

* **Return type:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool)

#### call(method, params)

Invoke a sidecar method; raise [`SidecarUnavailable`](_autosummary/ov.analysis.arch.sidecar.html.md#ov.analysis.arch.sidecar.SidecarUnavailable) on transport error.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

#### close()

Terminate the sidecar process (idempotent).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### consume_source_map(map_json)

Recover `{files: [{path, content}], sources}` from a source map.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

#### extract_literals(js_text)

Static AST extraction of `{strings, urls, routes}` (never evals JS).

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

#### unpack_bundle(js_text)

Unpack a bundle into `{modules: [...]}` (names lost without a map).

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### *exception* ov.analysis.arch.sidecar.SidecarUnavailable

Bases: [`RuntimeError`](https://docs.python.org/3/builtins/exceptions.html#RuntimeError)

Raised when the Node sidecar cannot be used (Node/deps missing).


# _autosummary/ov.analysis.arch.sourcemaps.html.md

# ov.analysis.arch.sourcemaps

Pure source-map recovery: original file tree + `node_modules` versions (D2).

Source maps are the decisive, *bimodal* reconstruction lever. When a deployed
bundle ships a Source Map v3 document (`//# sourceMappingURL=...` or a sibling
`.js.map`), the original file tree and source text are recoverable by a plain
JSON parse: the `sourcesContent` array holds the verbatim sources, indexed in
parallel with `sources`. No VLQ `mappings` decoding and **no Node** are needed
for source recovery – that machinery only matters for stack-trace *position*
mapping. Keeping recovery pure-Python keeps the deterministic core testable,
cheap, and ungated by an optional sidecar (the spec’s “source-map sidecar depth”
is satisfied here in-process; the sidecar remains for the no-maps webcrack path).

This module is model-free and side-effect-free: it parses bytes already captured
into the store and returns plain, transient data. Persisting recovered files as
artifacts and emitting findings/tech is the analyzer’s job
([`ov.analysis.arch.bundles`](_autosummary/ov.analysis.arch.bundles.html.md#module-ov.analysis.arch.bundles)).

Security: `sources` paths come from an untrusted producer, so every path is
sanitized (scheme prefixes stripped, traversal contained) before it is used as a
relative path – escaping entries are skipped and counted, never resolved above a
root. The path-sanitization approach is adapted from rarecoil’s MIT-licensed
`unwebpack-sourcemap` `PathSanitiser`.

### Functions

| [`extract_inline_map`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.extract_inline_map)(js_text)                  | Return the decoded JSON of an inline `sourceMappingURL=data:...` map, else `None`.   |
|-----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|
| [`is_recovered_dependency`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.is_recovered_dependency)(tech)                | True for a `node_modules` package recovered from a source map (SBOM, not stack).     |
| [`node_modules_packages`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.node_modules_packages)(files)                 | Infer sorted `(package, version|None)` pairs from recovered `node_modules` paths.    |
| [`parse_source_map`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.parse_source_map)(map_text)                   | Parse a `.map` body into a Source Map v3 dict, or `None` if it is not one.           |
| [`recover_from_map`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.recover_from_map)(map_text)                   | Recover original files from one source-map body (pure; no I/O, no Node).             |
| [`sanitize_source_path`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.sanitize_source_path)(raw, \*[, source_root]) | Turn an untrusted `sources` entry into a safe root-relative path (or `None`).        |

### Classes

| [`MapRecovery`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.MapRecovery)([files, sources_total, ...])   | Result of recovering one source map (transient internal data, not SSOT).     |
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| [`RecoveredFile`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.RecoveredFile)(path, content, raw_source)   | One original file recovered from a source map (transient; never serialized). |

### *class* ov.analysis.arch.sourcemaps.MapRecovery(files=list(), sources_total=0, had_sources_content=False, skipped_unsafe=0)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Result of recovering one source map (transient internal data, not SSOT).

#### *property* recovered_count *: [int](https://docs.python.org/3/builtins/functions.html#int)*

Number of files with content actually recovered.

### *class* ov.analysis.arch.sourcemaps.RecoveredFile(path, content, raw_source)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

One original file recovered from a source map (transient; never serialized).

### ov.analysis.arch.sourcemaps.extract_inline_map(js_text)

Return the decoded JSON of an inline `sourceMappingURL=data:...` map, else `None`.

Handles `;base64,` and URL-encoded data URIs. External (`.map` URL) markers
return `None` – those are fetched by the capture probe, not decoded here.

```pycon
>>> import base64, json
>>> payload = base64.b64encode(json.dumps({"version": 3, "sources": []}).encode()).decode()
>>> js = "a=1\n//# sourceMappingURL=data:application/json;base64," + payload
>>> json.loads(extract_inline_map(js))["version"]
3
>>> extract_inline_map("a=1\n//# sourceMappingURL=app.js.map") is None
True
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.analysis.arch.sourcemaps.is_recovered_dependency(tech)

True for a `node_modules` package recovered from a source map (SBOM, not stack).

Single source of truth for separating the recovered-dependency SBOM from
framework-level technologies wherever `run.fingerprint` is summarized (the
overview header, the architecture stack table, the synopsis, review-mode
tech-diff). A tech that is ALSO a framework/bundler – e.g. `webpack`
detected both as a recovered dependency and by signature – carries an extra
category (so the set is not exactly `{"dependency"}`) and is NOT treated as a
pure recovered dependency, keeping it in the headline stack.

* **Return type:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool)

### ov.analysis.arch.sourcemaps.node_modules_packages(files)

Infer sorted `(package, version|None)` pairs from recovered `node_modules` paths.

Version sources, in precedence order: a pnpm `.pnpm/<pkg>@<ver>/` path
segment, then a recovered `package.json` `version` field. Otherwise the
version is unknown (`None`). Scoped packages (`@scope/name`) are handled.

```pycon
>>> fs = [
...   RecoveredFile("node_modules/lodash/lodash.js", "x", "x"),
...   RecoveredFile("node_modules/@scope/ui/index.js", "y", "y"),
...   RecoveredFile("node_modules/.pnpm/axios@1.6.2/node_modules/axios/i.js", "z", "z"),
... ]
>>> d = dict(node_modules_packages(fs))
>>> d["lodash"] is None, d["axios"], "@scope/ui" in d
(True, '1.6.2', True)
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`str`](https://docs.python.org/3/builtins/stdtypes.html#str) | [`None`](https://docs.python.org/3/builtins/constants.html#None)]]

### ov.analysis.arch.sourcemaps.parse_source_map(map_text)

Parse a `.map` body into a Source Map v3 dict, or `None` if it is not one.

```pycon
>>> parse_source_map('{"version":3,"sources":["a.js"]}')["version"]
3
>>> parse_source_map("not json") is None
True
>>> parse_source_map('{"version":3}') is None
True
```

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.analysis.arch.sourcemaps.recover_from_map(map_text)

Recover original files from one source-map body (pure; no I/O, no Node).

Only `sources` with non-empty `sourcesContent` are recoverable; entries
whose path escapes the root are skipped and counted in `skipped_unsafe`.

```pycon
>>> m = ('{"version":3,"sources":["webpack:///src/a.js","webpack:///../evil"],'
...      '"sourcesContent":["console.log(1)","x"]}')
>>> r = recover_from_map(m)
>>> [f.path for f in r.files], r.skipped_unsafe, r.had_sources_content
(['src/a.js'], 1, True)
```

* **Return type:**
  [`MapRecovery`](_autosummary/ov.analysis.arch.sourcemaps.html.md#ov.analysis.arch.sourcemaps.MapRecovery)

### ov.analysis.arch.sourcemaps.sanitize_source_path(raw, , source_root='')

Turn an untrusted `sources` entry into a safe root-relative path (or `None`).

Applies `sourceRoot`, drops query/fragment and any `scheme://` prefix, then
*contains* traversal: a path that would escape the virtual root (a leading
`..` after normalization) or is absolute is rejected.

```pycon
>>> sanitize_source_path("webpack:///src/App.tsx")
'src/App.tsx'
>>> sanitize_source_path("../../etc/passwd") is None
True
>>> sanitize_source_path("webpack:///./a/../b.js")
'b.js'
>>> sanitize_source_path("a.js", source_root="webpack:///src/")
'src/a.js'
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str) | [`None`](https://docs.python.org/3/builtins/constants.html#None)


# _autosummary/ov.analysis.context.html.md

# ov.analysis.context

The analysis context + analyzer output – the currency of the pure analyzers.

Analyzers are pure functions over captured *artifacts*: they never touch a
browser or a model. [`AnalysisContext`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalysisContext) injects the run + store + config and
gives small helpers for reading artifacts by kind; [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput) is
what every analyzer returns, which the orchestrator merges back into the run.

This is the testability seam: feed an analyzer synthetic artifacts and assert on
the :class:

```
`
```

~ov.base.Finding\`s it returns – no network, no browser, no LLM.

### Classes

| [`AnalysisContext`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalysisContext)(run, store[, config, extras])    | Everything an analyzer needs, plus artifact-reading helpers.        |
|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------|
| [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)([findings, endpoints, tech, ...]) | What an analyzer produces; merged into the run by the orchestrator. |

### *class* ov.analysis.context.AnalysisContext(run, store, config=OvConfig(), extras=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Everything an analyzer needs, plus artifact-reading helpers.

#### artifacts(kind)

All artifacts of `kind` in run order.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]

#### by_step(kind)

Group artifacts of `kind` by their `step_id`.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str) | [`None`](https://docs.python.org/3/builtins/constants.html#None), [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]]

#### json(artifact)

Parse an artifact’s bytes as JSON (`None` on failure).

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

#### jsons(kind)

Parse every artifact of `kind` as JSON, dropping unparseable ones.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

#### latest(kind)

The last artifact of `kind` (or `None`).

* **Return type:**
  [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### raw(artifact)

Raw bytes for an artifact.

* **Return type:**
  [`bytes`](https://docs.python.org/3/builtins/stdtypes.html#bytes)

#### text(artifact)

Decode an artifact’s bytes as UTF-8 text.

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### *class* ov.analysis.context.AnalyzerOutput(findings=list(), endpoints=list(), tech=list(), run_fields=dict(), summary=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

What an analyzer produces; merged into the run by the orchestrator.


# _autosummary/ov.analysis.diff.html.md

# ov.analysis.diff

Own-target diffing: a run vs a stored prior baseline run (review mode, §10).

Review mode’s distinguishing capability is *regression/drift detection*: compare
an analyzed [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) against a stored prior run of the same
target and report what is **new**, **changed**, or **resolved**. Because
artifacts are content-addressed (identical bytes dedupe across runs), this
comparison is cheap by design (spec §3.4).

The matching unit is the [`Finding`](_autosummary/ov.base.html.md#ov.base.Finding). Finding ids are regenerated
every run, so cross-run identity is derived from *stable semantic fields*
([`finding_key()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.finding_key)) – category, signal, engine/heuristic/WCAG identifiers, and
a stable locator – explicitly excluding per-run ids (`finding_id`, `step_id`,
`state_id`) that would make every finding look brand new.

Two entry points:

* [`diff_runs()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.diff_runs) – **pure**: compare two in-memory runs, annotate the current
  run’s `Finding.diff_status` in place, and return a [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff).
* [`build_diff()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.build_diff) – **store-aware**: resolve a baseline (explicit id/run or
  the latest prior run of the same target via [`find_baseline_run()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.find_baseline_run)), run
  [`diff_runs()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.diff_runs), and persist both the annotated run and a `diff_<run_id>`
  > analysis blob so the review report section + the synopsis can read it.

### Functions

| [`build_diff`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.build_diff)(run_or_id, \*[, baseline, store, ...])   | Diff a run against a baseline (explicit or auto-discovered) and persist it.                                                 |
|------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|
| [`diff_analysis_id`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.diff_analysis_id)(run_id)                            | The store key under which a run's [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) blob is saved.   |
| [`diff_runs`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.diff_runs)(current, baseline)                        | Compare two analyzed runs; annotate `current` in place; return the diff.                                                    |
| [`find_baseline_run`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.find_baseline_run)(store, current)                   | Return the latest stored run of the same target captured before `current`.                                                  |
| [`finding_key`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.finding_key)(finding)                                | Return a stable cross-run identity for a finding (pure, model-free).                                                        |
| [`load_diff`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.load_diff)(store, run_id)                            | Load a run's serialized [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) blob, or `None` if absent. |

### ov.analysis.diff.build_diff(run_or_id, , baseline=None, store=None, persist=True)

Diff a run against a baseline (explicit or auto-discovered) and persist it.

`baseline` may be a [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun), a run id, or `None` (in
which case the latest prior run of the same target is used). Returns `None`
when no baseline exists – e.g. the first review run – after appending a
legible note to the run. Otherwise it annotates `Finding.diff_status` in
place, persists the run + a `diff_<run_id>` analysis blob (which the review
report section and synopsis read), and returns the [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff).

The run is assumed already analyzed (call [`ov.analyze()`](_autosummary/ov.html.md#ov.analyze) first).

* **Return type:**
  [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.analysis.diff.diff_analysis_id(run_id)

The store key under which a run’s [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) blob is saved.

Single source of truth for the convention (`"diff_<run_id>"`) shared by the
writer ([`build_diff()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.build_diff)) and the readers (report render + synopsis), so the
key lives in exactly one place.

```pycon
>>> diff_analysis_id("run_abc")
'diff_run_abc'
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.analysis.diff.diff_runs(current, baseline)

Compare two analyzed runs; annotate `current` in place; return the diff.

Side effect (by design, per issue #14): each `current` finding’s
`diff_status` is set to `"new"`/`"changed"` or cleared to `None` for
unchanged ones. Resolved findings live only in the returned
[`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) (they are absent from `current`). The function is
otherwise pure – no store, no browser, no model.

```pycon
>>> from ov.base import CaptureRun, Finding, Severity
>>> mk = lambda sig, sc: Finding(type="ux_issue", signal=sig, category="ux",
...     title=sig, location={"selector": "#" + sig},
...     severity=Severity(impact_tier="serious", score=sc))
>>> base = CaptureRun(target_url="u", findings=[mk("a", 2.0), mk("b", 3.0)])
>>> cur = CaptureRun(target_url="u", findings=[mk("a", 5.0), mk("c", 1.0)])
>>> d = diff_runs(cur, base)
>>> d.counts
{'new': 1, 'changed': 1, 'resolved': 1, 'unchanged': 0}
>>> cur.findings[0].diff_status, cur.findings[1].diff_status
('changed', 'new')
>>> sorted(r.key.split("::")[1] for r in d.regressions)
['a', 'c']
```

* **Return type:**
  [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff)

### ov.analysis.diff.find_baseline_run(store, current)

Return the latest stored run of the same target captured before `current`.

Linear scan over stored runs – fine for the handful-of-runs case; a future
run index could make this O(1) (see issue #13). Skips the current run, runs
for a different `target_url`, and runs not strictly older than `current`.

* **Return type:**
  [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.analysis.diff.finding_key(finding)

Return a stable cross-run identity for a finding (pure, model-free).

Built from semantic fields that survive re-capture – category, signal, any
engine/heuristic/WCAG rule id, a structural locator, and (only when no
structural locator pins identity) a stable content discriminator. Never from
per-run ids. Two findings describing the same issue in two runs share a key;
two *distinct* findings of the same locator-less signal do not collapse.

```pycon
>>> from ov.base import Finding
>>> a = Finding(type="ux_issue", signal="contrast.text", category="a11y",
...             location={"selector": ".btn", "step_id": "step_aaa"})
>>> b = Finding(type="ux_issue", signal="contrast.text", category="a11y",
...             location={"selector": ".btn", "step_id": "step_zzz"})
>>> finding_key(a) == finding_key(b)   # step_id differs but identity holds
True
>>> v1 = Finding(type="risk", signal="deps.known-vulnerability",
...              category="robustness", metric_detail={"component": "lodash"})
>>> v2 = Finding(type="risk", signal="deps.known-vulnerability",
...              category="robustness", metric_detail={"component": "jquery"})
>>> finding_key(v1) == finding_key(v2)   # distinct libraries -> distinct keys
False
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.analysis.diff.load_diff(store, run_id)

Load a run’s serialized [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) blob, or `None` if absent.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)] | [`None`](https://docs.python.org/3/builtins/constants.html#None)


# _autosummary/ov.analysis.evidence.html.md

# ov.analysis.evidence

The evidence-bundle assembler (§8.1, D4) – deterministic, model-free.

Builds the grounded bundle a vision LLM (the host) reasons over, so token cost and
grounding are *computed*, not hoped for:

* **Set-of-Mark** – each discussable region (a step’s affordances) gets a stable
  mark id (`R1` …) that is overlaid on the screenshot, appears in the facts,
  and is *required* in the model’s output. This turns “describe what you see” into
  “interpret marked region R3”.
* **Order** – the bundle is `[role/system + cite-or-abstain] -> [marked image(s)]
  -> [facts keyed to ids] -> [task last]`.
* **Token budget** – projected as `Σ(w×h/750)` per image against the model cap
  (≈1568 px / 1568 tok standard; ≈2576 px / 4784 tok on Opus 4.7/4.8) *before* the
  call; images are downsampled to fit.
* **Omit raw bytes** – facts are *derived summaries*, never raw HAR/DOM/bundle
  text; those stay reachable by `evidence_id` for just-in-time retrieval.

The actual image overlay needs Pillow (the `evidence` extra); everything else
(dimensions, budget, mark assignment, the bundle structure) is pure stdlib so the
budget math and grounding are testable without it.

### Module Attributes

| [`MODEL_CAPS`](_autosummary/ov.analysis.evidence.html.md#ov.analysis.evidence.MODEL_CAPS)   | (long-edge pixels, token cap).   |
|---------------------------------------------------------------|----------------------------------|

### Functions

| [`build_evidence_bundle`](_autosummary/ov.analysis.evidence.html.md#ov.analysis.evidence.build_evidence_bundle)(run, store, \*[, ...])   | Assemble a grounded [`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle) for a step (model-free).   |
|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| [`fit_to_cap`](_autosummary/ov.analysis.evidence.html.md#ov.analysis.evidence.fit_to_cap)(width, height[, model])             | Project tokens and a downsample factor to fit a model's image cap (pure).                                                             |
| [`image_token_cost`](_autosummary/ov.analysis.evidence.html.md#ov.analysis.evidence.image_token_cost)(width, height)                | Anthropic image token estimate `ceil(w*h/750)`.                                                                                       |
| [`png_dimensions`](_autosummary/ov.analysis.evidence.html.md#ov.analysis.evidence.png_dimensions)(data)                           | Return `(width, height)` of a PNG from its IHDR header (stdlib only).                                                                 |

### ov.analysis.evidence.MODEL_CAPS *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [tuple](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[int](https://docs.python.org/3/builtins/functions.html#int), [int](https://docs.python.org/3/builtins/functions.html#int)]]* *= {'opus': (2576, 4784), 'standard': (1568, 1568)}*

(long-edge pixels, token cap). Opus 4.7/4.8 are larger.

* **Type:**
  Per-model image caps

### ov.analysis.evidence.build_evidence_bundle(run, store, , step_id=None, model='opus', task='Assess UX and architecture; cite marks/facts for every claim.', max_marks=20, overlay=True, out_dir=None)

Assemble a grounded [`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle) for a step (model-free).

Marks are drawn from the step’s affordances (which carry bounding boxes);
facts include those marked regions plus the deterministic findings touching the
step. The token budget is computed against `model`’s cap. When Pillow is
available and `overlay` is set, a numbered overlay screenshot (and crops for
small regions) are rendered and stored; otherwise the original screenshot is
referenced and a note is recorded.

* **Return type:**
  [`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle)

### ov.analysis.evidence.fit_to_cap(width, height, model='opus')

Project tokens and a downsample factor to fit a model’s image cap (pure).

Honors BOTH constraints – the long-edge pixel cap *and* the token (area) cap
– taking whichever is more restrictive, because a long-edge-only clamp can
still blow the token budget (a 2576x2576 image is ~8853 tokens).

```pycon
>>> r = fit_to_cap(5000, 4000, "opus")
>>> r["downsampled"] and r["fitted"]["tokens"] <= 4784
True
>>> fit_to_cap(800, 600, "opus")["downsampled"]
False
```

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.analysis.evidence.image_token_cost(width, height)

Anthropic image token estimate `ceil(w*h/750)`.

```pycon
>>> image_token_cost(1000, 1000)
1334
```

* **Return type:**
  [`int`](https://docs.python.org/3/builtins/functions.html#int)

### ov.analysis.evidence.png_dimensions(data)

Return `(width, height)` of a PNG from its IHDR header (stdlib only).

```pycon
>>> import base64
>>> px = base64.b64decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==')
>>> png_dimensions(px)
(1, 1)
```

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`int`](https://docs.python.org/3/builtins/functions.html#int), [`int`](https://docs.python.org/3/builtins/functions.html#int)] | [`None`](https://docs.python.org/3/builtins/constants.html#None)


# _autosummary/ov.analysis.html.md

# ov.analysis

Analysis layer: deterministic analyzers over captured artifacts (Phases 2-3).

Analyzers are registered plugins (`ANALYZER_REGISTRY`) that read a
[`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) plus its store and emit :class:

```
`
```

~ov.base.Finding\`s /
:class:

```
`
```

~ov.base.Endpoint\`s / facts – all model-free and fully testable on
synthetic artifacts. The host (or, later, an in-package agent) adds narrative
judgment *on top* of these via the evidence bundle.

Each analyzer is registered with a `lens` (`"ux"` or `"arch"`) so
`ov.analyze(run, lenses=...)` can select which to run; `requires`/`produces`
order them. The builtins are eagerly imported on first import of this package so
the registry is never half-populated (same robustness rule as the probes).

(The package is named `analysis` rather than `analyze` so it cannot shadow
the `ov.analyze` facade *function*; see `ov/__init__.py`.)

### Functions

| [`load_builtin_analyzers`](_autosummary/ov.analysis.html.md#ov.analysis.load_builtin_analyzers)()   | Import builtin analyzer modules so their `@register_analyzer` runs.   |
|-----------------------------------------------------------------------------|-----------------------------------------------------------------------|

### ov.analysis.load_builtin_analyzers()

Import builtin analyzer modules so their `@register_analyzer` runs.

Safe to call repeatedly. Invoked once at the bottom of this module so the
registry is fully populated on import (no order-dependent gaps).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

### Modules

| [`arch`](_autosummary/ov.analysis.arch.html.md#module-ov.analysis.arch)               | Architecture-reconstruction analyzers (§6, D2).                                 |
|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [`context`](_autosummary/ov.analysis.context.html.md#module-ov.analysis.context)         | The analysis context + analyzer output -- the currency of the pure analyzers.   |
| [`diff`](_autosummary/ov.analysis.diff.html.md#module-ov.analysis.diff)               | Own-target diffing: a run vs a stored prior baseline run (review mode, §10).    |
| [`evidence`](_autosummary/ov.analysis.evidence.html.md#module-ov.analysis.evidence)       | The evidence-bundle assembler (§8.1, D4) -- deterministic, model-free.          |
| [`reliability`](_autosummary/ov.analysis.reliability.html.md#module-ov.analysis.reliability) | Reliability passes over findings (§5.2, D4) -- deterministic gates, model-free. |
| [`run`](_autosummary/ov.analysis.run.html.md#module-ov.analysis.run)                 | The analysis orchestrator -- resolve, order, run analyzers, merge into the run. |
| [`ux`](_autosummary/ov.analysis.ux.html.md#module-ov.analysis.ux)                   | UX + accessibility deterministic analyzers (§5.1, D3).                          |


# _autosummary/ov.analysis.reliability.html.md

# ov.analysis.reliability

Reliability passes over findings (§5.2, D4) – deterministic gates, model-free.

These enforce the grounding discipline on findings (whether deterministic, or
authored by the host LLM over an evidence bundle):

* **cite-or-abstain** – every non-`undetermined` claim must cite at least one
  *resolvable* evidence ref; otherwise it is downgraded to `undetermined` (a
  first-class outcome, not an error).
* **set-of-mark membership** – any mark id a finding references must exist in the
  bundle.
* **just-in-time retrieval** – [`lookup_evidence()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.lookup_evidence) resolves an evidence id
  back to its artifact/finding/step so provenance is verifiable.
* **factored Chain-of-Verification scaffolding** – [`verification_questions()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.verification_questions)
  generates the questions the *host* answers (independently, via evidence lookup)
  for high-severity findings; [`apply_verification()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.apply_verification) downgrades a finding whose
  verification fails. The judgment is the host’s; the gating here is deterministic.

### Functions

| [`apply_verification`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.apply_verification)(finding, verdicts)        | Downgrade a finding to `undetermined` if a majority of verifications fail.             |
|-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| [`lookup_evidence`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.lookup_evidence)(evidence_id, run, store)     | Resolve an evidence id back to its underlying data (just-in-time retrieval).           |
| [`resolvable`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.resolvable)(ref, run[, bundle])               | True if an evidence ref resolves to something concrete (artifact/finding/step/bundle). |
| [`verification_questions`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.verification_questions)(finding)              | Generate factored Chain-of-Verification questions for a high-severity finding.         |
| [`verify_findings`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.verify_findings)(findings, run, \*[, bundle]) | Apply cite-or-abstain + mark-membership; downgrade unsupported findings.               |

### Classes

| [`ReliabilityReport`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.ReliabilityReport)([kept, downgraded, notes])   | Outcome of [`verify_findings()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.verify_findings).   |
|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|

### *class* ov.analysis.reliability.ReliabilityReport(kept=list(), downgraded=list(), notes=list())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Outcome of [`verify_findings()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.verify_findings).

#### *property* all_findings *: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[Finding](_autosummary/ov.base.html.md#ov.base.Finding)]*

Kept + downgraded, in that order (nothing is silently dropped).

### ov.analysis.reliability.apply_verification(finding, verdicts)

Downgrade a finding to `undetermined` if a majority of verifications fail.

`verdicts` are the host’s independent answers (True = supported). This is the
deterministic application of the host’s factored CoVe / NLI judgments.

* **Return type:**
  [`Finding`](_autosummary/ov.base.html.md#ov.base.Finding)

### ov.analysis.reliability.lookup_evidence(evidence_id, run, store)

Resolve an evidence id back to its underlying data (just-in-time retrieval).

Returns a dict describing what the id points at, so a verification pass (or a
downstream agent) can confirm a finding against the original artifact/record.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.analysis.reliability.resolvable(ref, run, bundle=None)

True if an evidence ref resolves to something concrete (artifact/finding/step/bundle).

* **Return type:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool)

### ov.analysis.reliability.verification_questions(finding)

Generate factored Chain-of-Verification questions for a high-severity finding.

The host answers each *independently* (via [`lookup_evidence()`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.lookup_evidence)), not
conditioned on the original claim – that’s what makes CoVe factored.

```pycon
>>> from ov.base import Finding
>>> qs = verification_questions(Finding(type="ux_issue", signal="contrast.text",
...     category="a11y", observed="contrast 2.1:1", evidence_refs=["art_1"]))
>>> len(qs) >= 2
True
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]

### ov.analysis.reliability.verify_findings(findings, run, , bundle=None)

Apply cite-or-abstain + mark-membership; downgrade unsupported findings.

Deterministic findings (`source_layer == "deterministic"`) are facts and are
kept; LLM findings must cite resolvable evidence and reference only existing
marks. A finding that fails is downgraded to `undetermined` (kept, flagged),
never silently dropped.

#### NOTE
downgrading mutates the offending `Finding` in place (the caller
hands its findings in to be gated), so the objects in `report.downgraded` are
the same instances, now marked `undetermined` + `needs_human_review`.

* **Return type:**
  [`ReliabilityReport`](_autosummary/ov.analysis.reliability.html.md#ov.analysis.reliability.ReliabilityReport)


# _autosummary/ov.analysis.run.html.md

# ov.analysis.run

The analysis orchestrator – resolve, order, run analyzers, merge into the run.

`run_analysis` is what [`ov.analyze()`](_autosummary/ov.html.md#ov.analyze) calls. It selects analyzers by lens,
orders them by their `requires`/`produces` dependencies, runs each over an
[`AnalysisContext`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalysisContext), and merges every
[`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput) back into the `CaptureRun`
(findings, endpoints, tech, run fields). It is model-free and idempotent: it
clears prior analysis output before re-running so a run can be re-analyzed.

### Functions

| [`merge_output`](_autosummary/ov.analysis.run.html.md#ov.analysis.run.merge_output)(run, out)                         | Merge one analyzer's output into the run (findings, endpoints, tech, fields).           |
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| [`run_analysis`](_autosummary/ov.analysis.run.html.md#ov.analysis.run.run_analysis)(run, \*[, lenses, store, config]) | Run the deterministic analyzers for `lenses` over a run; return per-analyzer summaries. |

### ov.analysis.run.merge_output(run, out)

Merge one analyzer’s output into the run (findings, endpoints, tech, fields).

Tech dedupes by name: confidence takes the max, provenance and categories
union (so a package seen both as a recovered dependency and by framework/bundler
signature keeps *both* category identities), and a missing version is filled
from any analyzer that supplies one (source-map versions are the top provenance
rank, so they must not be lost to an earlier versionless detection).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.analysis.run.run_analysis(run, , lenses=('ux', 'arch'), store=None, config=None)

Run the deterministic analyzers for `lenses` over a run; return per-analyzer summaries.

`run` may be a `CaptureRun` or a run id (loaded from `store`). The
run is mutated in place (findings/api_surface/fingerprint/rendering_model/…)
and persisted; an analysis blob is also stored.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]


# _autosummary/ov.analysis.ux.a11y.html.md

# ov.analysis.ux.a11y

Accessibility analyzer: WebAIM perennials from the DOM + optional axe mapping.

The deterministic baseline parses each captured DOM state (`selectolax`) and
detects the WebAIM-Million perennials that are computable without a browser or a
GPL engine: missing image `alt`, empty links, empty buttons, unlabeled form
controls, and missing document language. These are ~96% of *detected* errors
(D3), so nailing them deterministically is high-value and fully testable.

If an `axe` artifact exists (an optional in-browser axe-core run at capture
time), its violations are additively mapped to Findings with `engine_rule_id`
`axe:<id>`. Contrast is handled by [`ov.analysis.ux.contrast_focus`](_autosummary/ov.analysis.ux.contrast_focus.html.md#module-ov.analysis.ux.contrast_focus) (it
needs computed colors, not static DOM).

**Honesty constraint (D3):** automated tooling catches only ~30-40% of WCAG
issues, so this analyzer always emits one `undetermined` finding routing the
non-automatable ~60-70% (meaningful alt text, reading/focus-order logicality,
in-context link text, screen-reader announcement quality, ARIA intent) to
`needs_human_review` – never asserting “no automated violations” == accessible.

### Functions

| [`analyze_a11y`](_autosummary/ov.analysis.ux.a11y.html.md#ov.analysis.ux.a11y.analyze_a11y)(ctx)   | Emit a11y Findings from DOM perennials (+ axe results if captured).   |
|----------------------------------------------------------------------|-----------------------------------------------------------------------|

### ov.analysis.ux.a11y.analyze_a11y(ctx)

Emit a11y Findings from DOM perennials (+ axe results if captured).

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)


# _autosummary/ov.analysis.ux.contrast_focus.html.md

# ov.analysis.ux.contrast_focus

Contrast + focus analyzer (deterministic, no engine).

Contrast ratios are computed from the captured `a11y_styles` artifact (effective
fg/bg colors) with the exact WCAG relative-luminance formula and the 4.5:1 normal
/ 3:1 large+UI thresholds (D3 §3). Focus issues that are statically detectable
(positive `tabindex`) are flagged from the DOM; the genuinely behavioral focus
properties (keyboard traps, focus-order *logicality*, visible-focus indicator)
need active key-driving and are routed to `needs_human_review` rather than
asserted – the honesty constraint again.

### Functions

| [`analyze_contrast_focus`](_autosummary/ov.analysis.ux.contrast_focus.html.md#ov.analysis.ux.contrast_focus.analyze_contrast_focus)(ctx)   | Emit contrast Findings + statically-detectable focus Findings.   |
|--------------------------------------------------------------------------------|------------------------------------------------------------------|
| [`contrast_ratio`](_autosummary/ov.analysis.ux.contrast_focus.html.md#ov.analysis.ux.contrast_focus.contrast_ratio)(fg, bg)        | WCAG contrast ratio between two sRGB colors (>=1.0).             |
| [`relative_luminance`](_autosummary/ov.analysis.ux.contrast_focus.html.md#ov.analysis.ux.contrast_focus.relative_luminance)(rgb)       | WCAG relative luminance of an sRGB `(r, g, b)` in 0-255.         |

### ov.analysis.ux.contrast_focus.analyze_contrast_focus(ctx)

Emit contrast Findings + statically-detectable focus Findings.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.ux.contrast_focus.contrast_ratio(fg, bg)

WCAG contrast ratio between two sRGB colors (>=1.0).

```pycon
>>> contrast_ratio([0, 0, 0], [255, 255, 255])
21.0
>>> round(contrast_ratio([255, 255, 255], [255, 255, 255]), 1)
1.0
```

* **Return type:**
  [`float`](https://docs.python.org/3/builtins/functions.html#float)

### ov.analysis.ux.contrast_focus.relative_luminance(rgb)

WCAG relative luminance of an sRGB `(r, g, b)` in 0-255.

```pycon
>>> relative_luminance([255, 255, 255])
1.0
>>> relative_luminance([0, 0, 0])
0.0
```

* **Return type:**
  [`float`](https://docs.python.org/3/builtins/functions.html#float)


# _autosummary/ov.analysis.ux.cwv.html.md

# ov.analysis.ux.cwv

Core Web Vitals analyzer: performance-as-UX from the captured `perf` artifacts.

Computes INP (group `event` entries by `interactionId`, max duration; 200ms),
CLS (sum `layout-shift` values excluding `hadRecentInput`, already filtered at
capture; 0.1), and LCP/TTFB from the most complete perf snapshot. Per D3, LCP/FCP/
TTFB are **initial-load-only** until the Soft Navigations API lands, so those
findings are labelled provisional. True per-step bucketing by wall-clock window is
a depth item; here metrics are attributed at the page level.

### Functions

| [`analyze_cwv`](_autosummary/ov.analysis.ux.cwv.html.md#ov.analysis.ux.cwv.analyze_cwv)(ctx)       | Emit performance Findings from the most complete perf snapshot.      |
|-------------------------------------------------------------------------|----------------------------------------------------------------------|
| [`cwv_from_perf`](_autosummary/ov.analysis.ux.cwv.html.md#ov.analysis.ux.cwv.cwv_from_perf)(payload) | Reduce one perf payload to `{inp, cls, lcp, ttfb}` (pure, testable). |

### ov.analysis.ux.cwv.analyze_cwv(ctx)

Emit performance Findings from the most complete perf snapshot.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.ux.cwv.cwv_from_perf(payload)

Reduce one perf payload to `{inp, cls, lcp, ttfb}` (pure, testable).

```pycon
>>> cwv_from_perf({"vitals": {"inp": [{"duration": 50, "interactionId": 1},
...                                    {"duration": 90, "interactionId": 1}],
...                            "cls": [{"value": 0.05}, {"value": 0.03}],
...                            "lcp": [{"value": 1200}]},
...                 "navigation": {"ttfb": 300}})
{'inp': 90, 'cls': 0.08, 'lcp': 1200, 'ttfb': 300}
```

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`float`](https://docs.python.org/3/builtins/functions.html#float) | [`None`](https://docs.python.org/3/builtins/constants.html#None)]


# _autosummary/ov.analysis.ux.forms.html.md

# ov.analysis.ux.forms

Form-records analyzer: the state-changing actions a page offers, and what guards them (#21).

One record per `<form>` (and per AJAX submission found in inline scripts) in the captured DOM:
page URL, resolved action, method, encoding, fields, and the protections around it (CSRF token,
honeypot-like fields, captcha, file upload, navigation-only forms). From the main document’s
response headers it adds the session cookie’s `SameSite` and the framing policy. Read-only: it
only reads captured artifacts and never submits anything. Writes one `forms` artifact (a JSON
list) and a summary; it emits no findings.

Caveat: `Set-Cookie` values are redacted at capture by default (`redact_values`), so
`session_cookie_samesite` is `None` unless the run was captured with redaction off.

### Functions

| [`analyze_forms`](_autosummary/ov.analysis.ux.forms.html.md#ov.analysis.ux.forms.analyze_forms)(ctx)              | Write a `forms` artifact (JSON list of form records) for the run's captured pages.   |
|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|
| [`extract_forms`](_autosummary/ov.analysis.ux.forms.html.md#ov.analysis.ux.forms.extract_forms)(html[, page_url]) | Form records for every `<form>` and inline-script AJAX POST in `html` (pure).        |
| [`header_facts`](_autosummary/ov.analysis.ux.forms.html.md#ov.analysis.ux.forms.header_facts)(headers)           | Response-header facts that decide how a site can be posted to or framed (pure).      |

### ov.analysis.ux.forms.analyze_forms(ctx)

Write a `forms` artifact (JSON list of form records) for the run’s captured pages.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.ux.forms.extract_forms(html, page_url='')

Form records for every `<form>` and inline-script AJAX POST in `html` (pure).

```pycon
>>> recs = extract_forms('<form action="/go" method="post"><input name="_token" type="hidden"></form>', "https://x.org/a")
>>> recs[0]["action"], recs[0]["method"], recs[0]["protections"]["csrf"]
('https://x.org/go', 'POST', True)
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

### ov.analysis.ux.forms.header_facts(headers)

Response-header facts that decide how a site can be posted to or framed (pure).

```pycon
>>> header_facts({"X-Frame-Options": "DENY"})["framing_blocked"]
True
```

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]


# _autosummary/ov.analysis.ux.heuristics.html.md

# ov.analysis.ux.heuristics

Heuristic analyzer: the automatable subset of Nielsen / cognitive-walkthrough (D3 §6).

Each heuristic maps to a machine-observable signal computed from the journey
trace + console + DOM:

* **console-error-on-step** – a console error emitted during a step (robustness).
* **missing feedback (Nielsen H1 / CW Q4)** – a `click` whose post-observation
  hash is unchanged with no console/network delta (no visible response).
* **live-region presence (WCAG 4.1.3)** – dynamic states but no `aria-live` /
  `role=status` region to announce them.

The Operator’s per-step *intent* is the cognitive-walkthrough ground truth for
“expected action”, so a noop on an intentful click is a meaningful signal.

### Functions

| [`analyze_heuristics`](_autosummary/ov.analysis.ux.heuristics.html.md#ov.analysis.ux.heuristics.analyze_heuristics)(ctx)   | Emit Findings for console-on-step, missing feedback, and live-region absence.   |
|----------------------------------------------------------------------------|---------------------------------------------------------------------------------|

### ov.analysis.ux.heuristics.analyze_heuristics(ctx)

Emit Findings for console-on-step, missing feedback, and live-region absence.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)


# _autosummary/ov.analysis.ux.html.md

# ov.analysis.ux

UX + accessibility deterministic analyzers (§5.1, D3).

Each module registers an analyzer that reads captured artifacts and emits
normalized `Finding`s with ``severity = impact_tier x reach``.
The hard honesty constraint (D3) lives here: automated tooling catches only
~30-40% of WCAG issues, so the non-automatable tail is routed to
`needs_human_review` and never asserted as resolved.

### Modules

| [`a11y`](_autosummary/ov.analysis.ux.a11y.html.md#module-ov.analysis.ux.a11y)                     | Accessibility analyzer: WebAIM perennials from the DOM + optional axe mapping.               |
|------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|
| [`contrast_focus`](_autosummary/ov.analysis.ux.contrast_focus.html.md#module-ov.analysis.ux.contrast_focus) | Contrast + focus analyzer (deterministic, no engine).                                        |
| [`cwv`](_autosummary/ov.analysis.ux.cwv.html.md#module-ov.analysis.ux.cwv)                       | Core Web Vitals analyzer: performance-as-UX from the captured `perf` artifacts.              |
| [`forms`](_autosummary/ov.analysis.ux.forms.html.md#module-ov.analysis.ux.forms)                   | Form-records analyzer: the state-changing actions a page offers, and what guards them (#21). |
| [`heuristics`](_autosummary/ov.analysis.ux.heuristics.html.md#module-ov.analysis.ux.heuristics)         | Heuristic analyzer: the automatable subset of Nielsen / cognitive-walkthrough (D3 §6).       |
| [`metrics`](_autosummary/ov.analysis.ux.metrics.html.md#module-ov.analysis.ux.metrics)               | Journey-metrics analyzer: form friction, backtracking, and journey summary (D3 §5).          |
| [`severity`](_autosummary/ov.analysis.ux.severity.html.md#module-ov.analysis.ux.severity)             | Severity scoring: `score = impact_tier x reach` (D3 §1).                                     |


# _autosummary/ov.analysis.ux.metrics.html.md

# ov.analysis.ux.metrics

Journey-metrics analyzer: form friction, backtracking, and journey summary (D3 §5).

Form friction is the headline finding – conversion drops sharply across the 5-7
field cliff, so forms are scored by field/required count. Backtracking and
dead-ends are read from the journey trace (revisited observation hashes, noop/
error steps). Descriptive journey metrics (steps, distinct states, success) are
surfaced in the analyzer summary for the report’s overview section.

### Functions

| [`analyze_metrics`](_autosummary/ov.analysis.ux.metrics.html.md#ov.analysis.ux.metrics.analyze_metrics)(ctx)                       | Emit form-friction + backtracking Findings and a journey summary.        |
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| [`form_friction`](_autosummary/ov.analysis.ux.metrics.html.md#ov.analysis.ux.metrics.form_friction)(field_count, required_count) | Map a form's field counts to (impact_tier, note) past the 5-field cliff. |

### ov.analysis.ux.metrics.analyze_metrics(ctx)

Emit form-friction + backtracking Findings and a journey summary.

* **Return type:**
  [`AnalyzerOutput`](_autosummary/ov.analysis.context.html.md#ov.analysis.context.AnalyzerOutput)

### ov.analysis.ux.metrics.form_friction(field_count, required_count)

Map a form’s field counts to (impact_tier, note) past the 5-field cliff.

```pycon
>>> form_friction(3, 2) is None
True
>>> form_friction(6, 4)[0]
'moderate'
>>> form_friction(10, 8)[0]
'critical'
```

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)] | [`None`](https://docs.python.org/3/builtins/constants.html#None)


# _autosummary/ov.analysis.ux.severity.html.md

# ov.analysis.ux.severity

Severity scoring: `score = impact_tier x reach` (D3 §1).

The design goal is that a high-reach moderate issue outranks a rare critical one.
`reach` combines how many nodes/states an issue touches with the fraction of
the journey it affects:

```default
reach_magnitude = max(nodes, states_affected, 1)
reach_value     = reach_magnitude * journey_fraction
score           = impact_weight * reach_value
```

So a *serious* (3) issue on 12 nodes across 80% of journeys scores
`3 * (12 * 0.8) = 28.8`, while a *critical* (4) issue on 1 node in 5% of
journeys scores `4 * (1 * 0.05) = 0.2` – exactly the prioritization D3 wants.

### Module Attributes

| [`A11Y_TIER_WEIGHT`](_autosummary/ov.analysis.ux.severity.html.md#ov.analysis.ux.severity.A11Y_TIER_WEIGHT)   | axe-style accessibility impact tiers -> numeric weight.   |
|---------------------------------------------------------------------|-----------------------------------------------------------|
| [`UX_TIER_WEIGHT`](_autosummary/ov.analysis.ux.severity.html.md#ov.analysis.ux.severity.UX_TIER_WEIGHT)     | Nielsen UX severity tiers (0 cosmetic .                   |

### Functions

| [`make_severity`](_autosummary/ov.analysis.ux.severity.html.md#ov.analysis.ux.severity.make_severity)(impact_tier, \*[, nodes, ...])   | Build a [`Severity`](_autosummary/ov.base.html.md#ov.base.Severity) with the `impact x reach` score.   |
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| [`tier_weight`](_autosummary/ov.analysis.ux.severity.html.md#ov.analysis.ux.severity.tier_weight)(impact_tier)                       | Map an a11y label or a UX `"0".."4"` tier to its numeric weight (default 2).                                          |

### ov.analysis.ux.severity.A11Y_TIER_WEIGHT *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [int](https://docs.python.org/3/builtins/functions.html#int)]* *= {'critical': 4, 'minor': 1, 'moderate': 2, 'serious': 3}*

axe-style accessibility impact tiers -> numeric weight.

### ov.analysis.ux.severity.UX_TIER_WEIGHT *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [int](https://docs.python.org/3/builtins/functions.html#int)]* *= {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4}*

Nielsen UX severity tiers (0 cosmetic .. 4 catastrophe) -> numeric weight.

### ov.analysis.ux.severity.make_severity(impact_tier, , nodes=1, states_affected=1, journey_fraction=1.0)

Build a [`Severity`](_autosummary/ov.base.html.md#ov.base.Severity) with the `impact x reach` score.

```pycon
>>> make_severity("serious", nodes=12, journey_fraction=0.8).score
28.8
>>> round(make_severity("critical", nodes=1, journey_fraction=0.05).score, 2)
0.2
```

* **Return type:**
  [`Severity`](_autosummary/ov.base.html.md#ov.base.Severity)

### ov.analysis.ux.severity.tier_weight(impact_tier)

Map an a11y label or a UX `"0".."4"` tier to its numeric weight (default 2).

* **Return type:**
  [`int`](https://docs.python.org/3/builtins/functions.html#int)


# _autosummary/ov.base.html.md

# ov.base

Single source of truth (SSOT) for the `ov` artifact schema.

One Pydantic v2 model tree defines *what a capture is* and \*what an analysis
produces\*. Every other module reads from these models rather than inventing its
own shapes – this is the SSOT discipline from the build specification (§3.3).

The tree has four families:

* **Operate value types** – [`Action`](_autosummary/ov.base.html.md#ov.base.Action), [`Affordance`](_autosummary/ov.base.html.md#ov.base.Affordance),
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation), [`ActionResult`](_autosummary/ov.base.html.md#ov.base.ActionResult), [`ProgressSignal`](_autosummary/ov.base.html.md#ov.base.ProgressSignal). These
  > are the deterministic, model-free currency of the `operate/` “hands”.
* **Capture artifacts** – [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact), [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep),
  [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun). What a browser session records.
* **Inferred facts** – [`Scored`](_autosummary/ov.base.html.md#ov.base.Scored), [`TechFinding`](_autosummary/ov.base.html.md#ov.base.TechFinding),
  [`Endpoint`](_autosummary/ov.base.html.md#ov.base.Endpoint). Probabilistic conclusions that always carry confidence and
  > provenance (D2: outputs are never ground truth).
* **Analysis outputs** – [`Evidence`](_autosummary/ov.base.html.md#ov.base.Evidence), [`Severity`](_autosummary/ov.base.html.md#ov.base.Severity),
  [`Finding`](_autosummary/ov.base.html.md#ov.base.Finding), [`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle). The normalized currency of the
  > analysis lenses and the grounded LLM layer (D3 + D4).
* **Review/regression outputs** – [`FindingDelta`](_autosummary/ov.base.html.md#ov.base.FindingDelta), [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff). The
  own-target *drift* between a run and a stored prior baseline (review mode,
  §10); cheap by design because artifacts are content-addressed.

## Design notes

* IDs are generated by [`new_id()`](_autosummary/ov.base.html.md#ov.base.new_id) (prefix + short uuid) so artifacts and
  findings are addressable and joinable across the store.
* `confidence` appears twice on purpose, matching the spec: [`Scored`](_autosummary/ov.base.html.md#ov.base.Scored)
  uses an integer 0-100 (Wappalyzer-style) for *detected technologies*;
  [`Finding`](_autosummary/ov.base.html.md#ov.base.Finding) carries a float 0-1 for *analysis judgments*.

### Functions

| [`new_id`](_autosummary/ov.base.html.md#ov.base.new_id)([prefix])   | Return a short, unique, prefixed id, e.g. `"step_3f9a1c2b"`.         |
|---------------------------------------------------------------------|----------------------------------------------------------------------|
| [`utcnow`](_autosummary/ov.base.html.md#ov.base.utcnow)()           | Timezone-aware current UTC time (the project's canonical timestamp). |

### Classes

| [`Action`](_autosummary/ov.base.html.md#ov.base.Action)(\*, type[, ref, description, text, ...])    | A single deterministic operation against the target.                              |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| [`ActionResult`](_autosummary/ov.base.html.md#ov.base.ActionResult)(\*, action, ok[, error, ...])         | Outcome of `ov.operate.act.act()` -- success/error *plus* a fresh read.           |
| [`Affordance`](_autosummary/ov.base.html.md#ov.base.Affordance)(\*, ref, role[, name, bbox, ...])       | One actionable element as perceived by a perception strategy.                     |
| [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)(\*[, artifact_id, step_id, uri, ...])     | A content-addressed blob in the store, referenced by id everywhere else.          |
| [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun)(\*[, run_id, target_url, mode, ...])    | Everything one `observe` produced; artifacts live in the store by id.             |
| [`Endpoint`](_autosummary/ov.base.html.md#ov.base.Endpoint)(\*[, confidence, provenance, kind, ...])  | One synthesized API endpoint, with GenSON-merged request/response schemas.        |
| [`Evidence`](_autosummary/ov.base.html.md#ov.base.Evidence)(\*[, evidence_id, artifact_id, ...])      | The addressable unit an LLM claim must cite (D4).                                 |
| [`EvidenceBundle`](_autosummary/ov.base.html.md#ov.base.EvidenceBundle)(\*[, step_id, contract, ...])       | The grounded bundle a vision LLM reasons over (assembled model-free; §8.1).       |
| [`Finding`](_autosummary/ov.base.html.md#ov.base.Finding)(\*[, finding_id, title, ...])              | SSOT for every UX / a11y / perf / arch / robustness finding (D3 + D4).            |
| [`FindingDelta`](_autosummary/ov.base.html.md#ov.base.FindingDelta)(\*, key, status[, direction, ...])    | One finding's status between a run and its baseline (review-mode currency).       |
| [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)(\*[, id, intent, action, ...])         | One recorded step of the user journey -- doubles as UX evidence (§2.3).           |
| [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)(\*, strategy[, url, affordances, ...]) | The uniform result of any perception strategy (a pure read).                      |
| [`ProgressSignal`](_autosummary/ov.base.html.md#ov.base.ProgressSignal)(\*[, repeated_action, ...])         | Deterministic loop / no-progress *facts* (the package never decides to stop).     |
| [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff)(\*, run_id, baseline_run_id[, ...])        | Own-target regression: a run vs a stored prior baseline run (review mode, §10).   |
| [`Scored`](_autosummary/ov.base.html.md#ov.base.Scored)(\*[, confidence, provenance])               | Mixin for every inferred (non-observed) fact.                                     |
| [`Severity`](_autosummary/ov.base.html.md#ov.base.Severity)(\*, impact_tier[, reach, score])          | D3: `severity = impact_tier x reach` (prioritizes high-reach over rare-critical). |
| [`TechFinding`](_autosummary/ov.base.html.md#ov.base.TechFinding)(\*[, confidence, provenance, ...])     | One detected technology (framework, library, CDN, analytics, hosting).            |

### *class* ov.base.Action(\*, type, ref=None, description=None, text=None, url=None, key=None, value=None, args=<factory>)

Bases: `BaseModel`

A single deterministic operation against the target.

Mirrors Playwright-MCP’s require-description-and-ref safety: actions that
touch an element carry a `ref` (a stable affordance handle) *and* a human
`description` so the journal records intent legibly.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.ActionResult(, action, ok, error=None, observation=None, t_ms=0.0)

Bases: `BaseModel`

Outcome of `ov.operate.act.act()` – success/error *plus* a fresh read.

The fresh [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation) is the contract that lets the host (policy
layer) decide the next step without a second explicit observe call.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Affordance(, ref, role, name='', bbox=None, enabled=True, editable=False)

Bases: `BaseModel`

One actionable element as perceived by a perception strategy.

`bbox` is `(x, y, w, h)` in CSS pixels when a strategy can compute it
(always for Screenshot/Hybrid, optional for pure AX snapshots).

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Artifact(\*, artifact_id=<factory>, kind, step_id=None, uri='', content_hash=None, content_type=None, size=None, meta=<factory>)

Bases: `BaseModel`

A content-addressed blob in the store, referenced by id everywhere else.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.CaptureRun(\*, run_id=<factory>, target_url='', mode='reconstruct', started_at=<factory>, finished_at=None, steps=<factory>, artifacts=<factory>, fingerprint=<factory>, rendering_model=None, source_maps_present=None, api_surface=<factory>, findings=<factory>, settings_snapshot=<factory>, notes=<factory>)

Bases: `BaseModel`

Everything one `observe` produced; artifacts live in the store by id.

#### artifact_by_id(artifact_id)

Return the [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact) with `artifact_id` or `None`.

* **Return type:**
  [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {'validate_assignment': False}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Endpoint(\*, confidence=50, provenance=<factory>, method, path_template, kind='rest', request_schema=None, response_schema=None, auth=None, coverage=<factory>)

Bases: [`Scored`](_autosummary/ov.base.html.md#ov.base.Scored)

One synthesized API endpoint, with GenSON-merged request/response schemas.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Evidence(\*, evidence_id=<factory>, kind, artifact_id=None, summary='', meta=<factory>)

Bases: `BaseModel`

The addressable unit an LLM claim must cite (D4).

The model is shown the derived `summary` (a fact, not raw bytes); the
`artifact_id` resolves – via a lookup tool – to the screenshot crop,
network record or metric, for just-in-time retrieval during verification.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.EvidenceBundle(\*, step_id=None, contract='', marked_image_artifact_ids=<factory>, crop_artifact_ids=<factory>, facts=<factory>, marks=<factory>, token_budget=<factory>, task='')

Bases: `BaseModel`

The grounded bundle a vision LLM reasons over (assembled model-free; §8.1).

Layout contract: `[role/system + cite-or-abstain] -> [marked image(s)] ->
[facts keyed to mark/fact ids] -> [task last]`. Token cost is *computed*
(`token_budget`), not hoped for.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Finding(\*, finding_id=<factory>, type, signal, category, title='', wcag_criterion=None, heuristic=None, engine_rule_id=None, severity=None, evidence_refs=<factory>, judgment=None, location=None, observed='', metric_detail=None, suggested_fix=None, source_layer='deterministic', confidence=1.0, needs_human_review=False, diff_status=None)

Bases: `BaseModel`

SSOT for every UX / a11y / perf / arch / robustness finding (D3 + D4).

The hard fact/judgment split lives here: `evidence_refs` are *cited*
(never authored by a model), `judgment` is model interpretation only. A
finding with no resolvable evidence is rejected (cite-or-abstain); the
honest “can’t tell from the evidence” outcome is `type="undetermined"`.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.FindingDelta(, key, status, direction='neutral', signal='', category='', title='', finding_id=None, baseline_finding_id=None, severity_score=None, baseline_severity_score=None, severity_tier=None, detail=None)

Bases: `BaseModel`

One finding’s status between a run and its baseline (review-mode currency).

`status` is the per-finding cross-run verdict; `direction` rolls it into
the regression/improvement framing a downstream modification agent acts on.
A finding is matched across runs by a stable semantic `key` (see
[`ov.analysis.diff.finding_key()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.finding_key)) – never by its per-run `finding_id`.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.JourneyStep(\*, id=<factory>, intent='', action=None, affordances_seen=<factory>, outcome='ok', artifact_ids=<factory>, pre_obs_hash=None, post_obs_hash=None, network_delta=0, console_delta=0, note=None, t_ms=0.0)

Bases: `BaseModel`

One recorded step of the user journey – doubles as UX evidence (§2.3).

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Observation(\*, strategy, url=None, affordances=<factory>, aria_snapshot=None, screenshot_artifact_id=None, obs_hash='', title=None, t_ms=0.0)

Bases: `BaseModel`

The uniform result of any perception strategy (a pure read).

`obs_hash` is a content hash of the salient observable state; it is what
[`ProgressSignal`](_autosummary/ov.base.html.md#ov.base.ProgressSignal) uses to detect no-progress without an LLM.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.ProgressSignal(\*, repeated_action=False, no_new_signal_steps=0, url_stasis=False, ax_stasis=False, repeated_error=False, loop_suspected=False, detail=<factory>)

Bases: `BaseModel`

Deterministic loop / no-progress *facts* (the package never decides to stop).

The host (policy layer) interprets these against its budgets. See §2.3: “the
package detects and reports no-progress; the host decides to abort.”

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.RunDiff(\*, run_id, baseline_run_id, target_url='', created_at=<factory>, finding_deltas=<factory>, tech_added=<factory>, tech_removed=<factory>, endpoints_added=<factory>, endpoints_removed=<factory>, rendering_model_change=None, source_maps_change=None, notes=<factory>)

Bases: `BaseModel`

Own-target regression: a run vs a stored prior baseline run (review mode, §10).

Produced by [`ov.analysis.diff.diff_runs()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.diff_runs) from two analyzed
`CaptureRun`s of the same target. The :attr:`finding_deltas` list is
the SSOT; [`counts`](_autosummary/ov.base.html.md#ov.base.RunDiff.counts)/[`has_drift`](_autosummary/ov.base.html.md#ov.base.RunDiff.has_drift) are *derived* (`@computed_field`,
so they serialize) and [`regressions`](_autosummary/ov.base.html.md#ov.base.RunDiff.regressions)/[`improvements`](_autosummary/ov.base.html.md#ov.base.RunDiff.improvements) are views over
the deltas – nothing is stored twice.

```pycon
>>> d = RunDiff(run_id="run_b", baseline_run_id="run_a", finding_deltas=[
...     FindingDelta(key="k1", status="new", direction="regression"),
...     FindingDelta(key="k2", status="resolved", direction="improvement"),
... ])
>>> d.counts["new"], d.counts["resolved"], d.has_drift
(1, 1, True)
>>> [r.key for r in d.regressions], [i.key for i in d.improvements]
(['k1'], ['k2'])
```

#### *property* counts *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [int](https://docs.python.org/3/builtins/functions.html#int)]*

Per-status tallies derived from the deltas (the headline of a diff).

#### *property* has_drift *: [bool](https://docs.python.org/3/builtins/functions.html#bool)*

`True` if anything changed across runs (findings, stack, API, or model).

#### *property* improvements *: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[FindingDelta](_autosummary/ov.base.html.md#ov.base.FindingDelta)]*

Deltas that were resolved or got better since the baseline.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

#### *property* regressions *: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[FindingDelta](_autosummary/ov.base.html.md#ov.base.FindingDelta)]*

Deltas that got worse or are newly present (a downstream fix list).

### *class* ov.base.Scored(\*, confidence=50, provenance=<factory>)

Bases: `BaseModel`

Mixin for every inferred (non-observed) fact.

Map-backed reconstructions must rank above name-lost (un-mapped) ones; that
ordering is expressed through `confidence` + `provenance`.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.Severity(\*, impact_tier, reach=<factory>, score=0.0)

Bases: `BaseModel`

D3: `severity = impact_tier x reach` (prioritizes high-reach over rare-critical).

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.base.TechFinding(\*, confidence=50, provenance=<factory>, name, categories=<factory>, version=None)

Bases: [`Scored`](_autosummary/ov.base.html.md#ov.base.Scored)

One detected technology (framework, library, CDN, analytics, hosting).

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### ov.base.new_id(prefix='id')

Return a short, unique, prefixed id, e.g. `"step_3f9a1c2b"`.

```pycon
>>> i = new_id("run")
>>> i.startswith("run_")
True
>>> len(new_id("x").split("_")[1])
8
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.base.utcnow()

Timezone-aware current UTC time (the project’s canonical timestamp).

* **Return type:**
  [`datetime`](https://docs.python.org/3/library/datetime.html#datetime.datetime)


# _autosummary/ov.capture.browser.html.md

# ov.capture.browser

Playwright facade – the baseline driver (§9, D1).

This hides Playwright behind a clean lifecycle so no caller (or skill, or future
agent) ever touches a raw Playwright object. It is treated as a \*facade over a
CDP escape hatch, not a wall\*: [`BrowserSession.cdp()`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserSession.cdp) lazily attaches a
[`CdpSession`](_autosummary/ov.capture.cdp.html.md#ov.capture.cdp.CdpSession) for the ~20% the high-level API can’t reach.

The sync Playwright API is used deliberately – capture is a synchronous,
step-by-step orchestration and the sync API keeps the code legible. HAR is
recorded to a temp `.har.zip` with embedded bodies and read back after the
context closes (HAR only flushes on `context.close()`); structured network
records come from event accumulation in the network probe, not from the HAR.

### Classes

| [`BrowserSession`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserSession)(config, \*[, record_har])   | Owns a Playwright browser/context/page for one capture run.   |
|---------------------------------------------------------------------------------------------|---------------------------------------------------------------|

### Exceptions

| [`BrowserNotAvailable`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserNotAvailable)   | Raised when Playwright or its browsers are not usable.   |
|------------------------------------------------------------------------|----------------------------------------------------------|

### *exception* ov.capture.browser.BrowserNotAvailable

Bases: [`RuntimeError`](https://docs.python.org/3/builtins/exceptions.html#RuntimeError)

Raised when Playwright or its browsers are not usable.

Carries the install hint so the message is actionable, per the project’s
informative-errors principle.

### *class* ov.capture.browser.BrowserSession(config, , record_har=True)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Owns a Playwright browser/context/page for one capture run.

Lifecycle is explicit ([`start()`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserSession.start) / [`close()`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserSession.close)) so the orchestrator can
flush in-memory probe state *before* closing the context (which flushes HAR),
then ingest the HAR. It is also a context manager for simple call sites.

#### cdp()

Lazily attach and return a [`CdpSession`](_autosummary/ov.capture.cdp.html.md#ov.capture.cdp.CdpSession) (Chromium).

Returns `None` on non-Chromium browsers, where CDP is unavailable.

#### close()

Close the context (flushing HAR), read the HAR, then tear down.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### *property* context

The active Playwright `BrowserContext`.

#### *property* har_bytes *: [bytes](https://docs.python.org/3/builtins/stdtypes.html#bytes) | [None](https://docs.python.org/3/builtins/constants.html#None)*

The recorded HAR archive bytes (available only after [`close()`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserSession.close)).

#### *property* page

The active Playwright `Page` (raises if not started).

#### start()

Launch the browser and open a context + page. Returns self.

* **Return type:**
  [`BrowserSession`](_autosummary/ov.capture.browser.html.md#ov.capture.browser.BrowserSession)

#### stop()

Hard teardown of browser + playwright (idempotent).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)


# _autosummary/ov.capture.cdp.html.md

# ov.capture.cdp

The CDP escape-hatch plugin (Chromium-only) – the ~20% Playwright can’t reach.

Per D1, attach a CDP session to the same page and use it for: the full
accessibility tree (`Accessibility.getFullAXTree`), Server-Sent-Event frames
(`Network.eventSourceMessageReceived`, which `page.route` cannot reliably
intercept), runtime counters (`Performance.getMetrics`), and the TLS
certificate. `response.body()` eviction recovery via `Network.getResponseBody`
is also exposed but not relied on by the default network probe.

Critical gotcha encoded here: in an AX node, `role`/`name`/`value` are
`AXValue` *objects*, so the accessible name lives at `node["name"]["value"]`;
and `getFullAXTree` does **not** cross-origin-recurse, so frames are handled
one at a time. CDP is Chromium-only – an accepted constraint for the capture tail.

### Functions

| [`flatten_ax_node`](_autosummary/ov.capture.cdp.html.md#ov.capture.cdp.flatten_ax_node)(node)   | Flatten a raw CDP AX node into `{role, name, value, ...}` plain values.   |
|--------------------------------------------------------------------------|---------------------------------------------------------------------------|

### Classes

| [`CdpSession`](_autosummary/ov.capture.cdp.html.md#ov.capture.cdp.CdpSession)(client)   | A thin, friendly wrapper over a Playwright `CDPSession` (Chromium).   |
|-----------------------------------------------------------------------|-----------------------------------------------------------------------|

### *class* ov.capture.cdp.CdpSession(client)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

A thin, friendly wrapper over a Playwright `CDPSession` (Chromium).

#### capture_sse(sink)

Append every SSE frame to `sink` (`Network.eventSourceMessageReceived`).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### enable_network()

Enable the `Network` domain once (required for SSE + body recovery).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### get_certificate(origin)

Return the TLS certificate info for `origin` (`Network.getCertificate`).

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

#### get_full_ax_tree(, frame_id=None)

Return the full AX tree as flattened nodes (recorded as evidence).

`getFullAXTree` does not recurse cross-origin frames; pass `frame_id`
to fetch a specific frame’s tree.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

#### get_performance_metrics()

Return `Performance.getMetrics` as a `name -> value` mapping.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`float`](https://docs.python.org/3/builtins/functions.html#float)]

#### get_response_body(request_id)

Recover a response body by CDP `requestId` -> `(body, base64Encoded)`.

* **Return type:**
  [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`bool`](https://docs.python.org/3/builtins/functions.html#bool)]

#### on(event, handler)

Subscribe to a raw CDP event.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### send(method, params=None)

Send a raw CDP command (the underlying escape hatch).

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.capture.cdp.flatten_ax_node(node)

Flatten a raw CDP AX node into `{role, name, value, ...}` plain values.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]


# _autosummary/ov.capture.html.md

# ov.capture

Capture layer: drive a browser and record behavioral + static streams.

The public entry point is [`CaptureSession`](_autosummary/ov.capture.session.html.md#ov.capture.session.CaptureSession); persisted
state lives in [`CaptureStore`](_autosummary/ov.capture.stores.html.md#ov.capture.stores.CaptureStore). Probes are registered
plugins (see [`ov.capture.probes`](_autosummary/ov.capture.probes.html.md#module-ov.capture.probes)).

### Modules

| [`browser`](_autosummary/ov.capture.browser.html.md#module-ov.capture.browser)   | Playwright facade -- the baseline driver (§9, D1).                              |
|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [`cdp`](_autosummary/ov.capture.cdp.html.md#module-ov.capture.cdp)           | The CDP escape-hatch plugin (Chromium-only) -- the ~20% Playwright can't reach. |
| [`probes`](_autosummary/ov.capture.probes.html.md#module-ov.capture.probes)     | Probes -- the registerable units of *what intelligence to gather* (§2).         |
| [`session`](_autosummary/ov.capture.session.html.md#module-ov.capture.session)   | `CaptureSession` -- owns the browser and orchestrates the probes (§3.1).        |
| [`stores`](_autosummary/ov.capture.stores.html.md#module-ov.capture.stores)     | The capture store -- a `MutableMapping` Mall over a run directory (§3.4).       |


# _autosummary/ov.capture.probes.a11y.html.md

# ov.capture.probes.a11y

Accessibility-signals probe: computed text styles (for contrast) + optional axe.

Contrast cannot be judged from static DOM – it needs *computed* colors. This
probe snapshots, per visible text element, the effective foreground/background
colors, font size/weight, and bbox, so the deterministic
[`ov.analysis.ux.contrast_focus`](_autosummary/ov.analysis.ux.contrast_focus.html.md#module-ov.analysis.ux.contrast_focus) analyzer can compute WCAG ratios offline.

If an axe-core bundle is resolvable (`OV_AXE_PATH` or the sidecar’s
`node_modules/axe-core/axe.min.js`), it is injected and `axe.run()` results
are stored as an `axe` artifact – additive, never required. axe-core is used
as an external tool here (no vendoring), keeping the package license-clean.

### Classes

| [`A11yProbe`](_autosummary/ov.capture.probes.a11y.html.md#ov.capture.probes.a11y.A11yProbe)()   | Capture computed text styles (always) + axe-core results (when available).   |
|----------------------------------------------------------------|------------------------------------------------------------------------------|

### *class* ov.capture.probes.a11y.A11yProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Capture computed text styles (always) + axe-core results (when available).

#### capture(ctx)

Snapshot current state into artifacts. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.assets.html.md

# ov.capture.probes.assets

Assets probe: a content-addressed inventory of loaded resources.

Bodies are already stored by the `network` probe (content-addressed, so they
dedupe). This probe builds the *inventory*: one manifest row per resource with
url, MIME, size, hash, and the body artifact id when captured. It `requires`
the network stream and therefore runs after it (registry ordering).

### Classes

| [`AssetsProbe`](_autosummary/ov.capture.probes.assets.html.md#ov.capture.probes.assets.AssetsProbe)()   | Build an asset inventory from the accumulated network records.   |
|------------------------------------------------------------------|------------------------------------------------------------------|

### *class* ov.capture.probes.assets.AssetsProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Build an asset inventory from the accumulated network records.

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.console.html.md

# ov.capture.probes.console

Console probe: console messages, page errors, and unhandled rejections.

Captured from Playwright `console`/`pageerror` events. Each entry carries the
step it occurred in so the UX engine can attribute console-error-on-step (§5.1
heuristic) and the robustness analysis can corroborate broken states.

### Classes

| [`ConsoleProbe`](_autosummary/ov.capture.probes.console.html.md#ov.capture.probes.console.ConsoleProbe)()   | Accumulate console + pageerror entries via events.   |
|-------------------------------------------------------------------|------------------------------------------------------|

### *class* ov.capture.probes.console.ConsoleProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Accumulate console + pageerror entries via events.

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.dom.html.md

# ov.capture.probes.dom

DOM probe: serialized DOM + ARIA snapshot (agent view) + full AX tree (evidence).

Two accessibility views, per the progressive-disclosure rule (§9): the concise
**ARIA snapshot** (`locator.aria_snapshot` – ~200-400 tokens, the agent’s
view) and the full CDP **AX tree** (recorded as evidence). The serialized DOM
(`page.content()`) is stored for the rendering-model diff and selector lookups.
Runs per captured state so SPA/modal/revealed-menu states are each recorded.

### Classes

| [`DomProbe`](_autosummary/ov.capture.probes.dom.html.md#ov.capture.probes.dom.DomProbe)()   | Snapshot DOM + ARIA snapshot + full AX tree for the current state.   |
|---------------------------------------------------------------|----------------------------------------------------------------------|

### *class* ov.capture.probes.dom.DomProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Snapshot DOM + ARIA snapshot + full AX tree for the current state.

#### capture(ctx)

Snapshot current state into artifacts. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.fingerprint.html.md

# ov.capture.probes.fingerprint

Fingerprint probe: a built-in, license-clean technology detector.

The spec flags `wappalyzer-next` and the `enthec/webappanalyzer` ruleset as
GPL-3.0, incompatible with `ov`’s MIT license (§6.2). So rather than depend on
them, this probe ships a small deterministic detector over the highest-signal,
lowest-false-positive sources: framework state-injection globals
(`__NEXT_DATA__`/`__NUXT__`/`__remixContext` …), devtools hooks, bundler
signatures, the `<meta name=generator>` tag, `ng-version`, and response
headers. `wappalyzer`/Retire.js remain available as *optional* external CLIs.

Each detection is a [`TechFinding`](_autosummary/ov.base.html.md#ov.base.TechFinding) carrying confidence + provenance
and is appended to `ctx.run.fingerprint` so `ov observe` populates the run
immediately; the raw signals are also stored as an artifact for re-analysis.

### Functions

| [`detect_technologies`](_autosummary/ov.capture.probes.fingerprint.html.md#ov.capture.probes.fingerprint.detect_technologies)(signals[, headers])   | Map captured fingerprint signals (+ headers) into scored :class:<br/><br/>```<br/>`<br/>```<br/><br/>TechFinding\`s.   |
|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|

### Classes

| [`FingerprintProbe`](_autosummary/ov.capture.probes.fingerprint.html.md#ov.capture.probes.fingerprint.FingerprintProbe)()   | Gather in-page signals + headers and populate `run.fingerprint`.   |
|-----------------------------------------------------------------------|--------------------------------------------------------------------|

### *class* ov.capture.probes.fingerprint.FingerprintProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Gather in-page signals + headers and populate `run.fingerprint`.

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]

### ov.capture.probes.fingerprint.detect_technologies(signals, headers=None)

Map captured fingerprint signals (+ headers) into scored :class:

```
`
```

TechFinding\`s.

Reusable across modules (the arch analyzer enriches these with bundle/source
-map evidence). Prefers `js`/`dom` signals over loose header regex.

```pycon
>>> findings = detect_technologies({"globals": {"__NEXT_DATA__": True}})
>>> sorted(f.name for f in findings)
['Next.js', 'React']
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`TechFinding`](_autosummary/ov.base.html.md#ov.base.TechFinding)]


# _autosummary/ov.capture.probes.html.md

# ov.capture.probes

Probes – the registerable units of *what intelligence to gather* (§2).

Each probe is an independent plugin that writes typed artifacts into the capture
store. A probe is a small class implementing the [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe) lifecycle:

* [`Probe.attach()`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe.attach) – subscribe event listeners *before* navigation (used by
  the streaming probes: network, console, navigation, websocket, sse).
* [`Probe.capture()`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe.capture) – snapshot the current state into artifacts (used by the
  per-state probes: dom, screenshot, perf, storage, fingerprint).
* [`Probe.finalize()`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe.finalize) – flush accumulated state into artifacts at run end.

Probes are registered with `register_probe()` and ordered by the registry’s
`requires`/`produces` dependency declarations, so e.g. `assets` (which
needs the network stream) runs after `network`.

### Functions

| [`load_builtin_probes`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.load_builtin_probes)()   | Import the builtin probe modules so their `@register_probe` runs.   |
|--------------------------------------------------------------------------|---------------------------------------------------------------------|

### Classes

| [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)()                                       | Base class for probes; override only the lifecycle hooks you need.   |
|------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|
| [`ProbeContext`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.ProbeContext)(store, run, config[, page, ...]) | Everything a probe needs, injected by the `CaptureSession`.          |

### *class* ov.capture.probes.Probe

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Base class for probes; override only the lifecycle hooks you need.

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### capture(ctx)

Snapshot current state into artifacts. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]

### *class* ov.capture.probes.ProbeContext(store, run, config, page=None, cdp=None, step=None, extras=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Everything a probe needs, injected by the `CaptureSession`.

`extras` is shared scratch (e.g. the accumulating network record list) so
streaming probes can hand data to per-state probes without globals.

### ov.capture.probes.load_builtin_probes()

Import the builtin probe modules so their `@register_probe` runs.

Safe to call repeatedly (imports are cached). It is also invoked once at the
bottom of this module so that simply importing [`ov.capture.probes`](_autosummary/ov.capture.probes.html.md#module-ov.capture.probes)
yields a fully-populated `PROBE_REGISTRY` – no caller (the session, a
test, a skill) ever observes a half-registered registry depending on import
order. The probe modules pull in no heavy/browser dependencies at import.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

### Modules

| [`a11y`](_autosummary/ov.capture.probes.a11y.html.md#module-ov.capture.probes.a11y)               | Accessibility-signals probe: computed text styles (for contrast) + optional axe.   |
|---------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [`assets`](_autosummary/ov.capture.probes.assets.html.md#module-ov.capture.probes.assets)           | Assets probe: a content-addressed inventory of loaded resources.                   |
| [`console`](_autosummary/ov.capture.probes.console.html.md#module-ov.capture.probes.console)         | Console probe: console messages, page errors, and unhandled rejections.            |
| [`dom`](_autosummary/ov.capture.probes.dom.html.md#module-ov.capture.probes.dom)                 | DOM probe: serialized DOM + ARIA snapshot (agent view) + full AX tree (evidence).  |
| [`fingerprint`](_autosummary/ov.capture.probes.fingerprint.html.md#module-ov.capture.probes.fingerprint) | Fingerprint probe: a built-in, license-clean technology detector.                  |
| [`navigation`](_autosummary/ov.capture.probes.navigation.html.md#module-ov.capture.probes.navigation)   | Navigation probe: URL changes, redirects, frame tree, and SPA history.             |
| [`network`](_autosummary/ov.capture.probes.network.html.md#module-ov.capture.probes.network)         | Network probe: request/response metadata + bodies, accumulated from events.        |
| [`perf`](_autosummary/ov.capture.probes.perf.html.md#module-ov.capture.probes.perf)               | Performance probe: Navigation Timing, paint, web-vitals entries, CDP counters.     |
| [`screenshot`](_autosummary/ov.capture.probes.screenshot.html.md#module-ov.capture.probes.screenshot)   | Screenshot probe: full-page PNG per captured state.                                |
| [`sse`](_autosummary/ov.capture.probes.sse.html.md#module-ov.capture.probes.sse)                 | SSE probe: Server-Sent-Event frames via CDP (Chromium-only).                       |
| [`storage`](_autosummary/ov.capture.probes.storage.html.md#module-ov.capture.probes.storage)         | Storage probe: cookies, localStorage, sessionStorage, IndexedDB names.             |
| [`websocket`](_autosummary/ov.capture.probes.websocket.html.md#module-ov.capture.probes.websocket)     | WebSocket probe: frames sent/received and open/close, first-class (D1).            |


# _autosummary/ov.capture.probes.navigation.html.md

# ov.capture.probes.navigation

Navigation probe: URL changes, redirects, frame tree, and SPA history.

Hard navigations are captured from `framenavigated`; SPA soft navigations
(`history.pushState`/`replaceState`/`popstate`) are captured by injecting a
tiny init script that records URL changes onto `window.__ov_nav` and reading it
back at finalize. This keeps client-side route changes visible even when no
network request accompanies them.

### Classes

| [`NavigationProbe`](_autosummary/ov.capture.probes.navigation.html.md#ov.capture.probes.navigation.NavigationProbe)()   | Record hard navigations (events) + soft SPA navigations (injected hook).   |
|----------------------------------------------------------------------|----------------------------------------------------------------------------|

### *class* ov.capture.probes.navigation.NavigationProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Record hard navigations (events) + soft SPA navigations (injected hook).

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.network.html.md

# ov.capture.probes.network

Network probe: request/response metadata + bodies, accumulated from events.

Structured records come from Playwright `request`/`response` events (which we
control), not from the HAR file – the HAR is stored separately by the session as
a raw artifact. Bodies are captured only for configured content types and under
the size cap; `response.body()` eviction is caught and recorded as a fact
rather than crashing the run (D1: design around eviction from day one).

Headers are redacted by default (privacy): cookie/auth/token headers never
persist as raw values unless `config.capture_secrets` is set.

### Classes

| [`NetworkProbe`](_autosummary/ov.capture.probes.network.html.md#ov.capture.probes.network.NetworkProbe)()   | Accumulate request/response records (+ size-capped bodies) via events.   |
|-------------------------------------------------------------------|--------------------------------------------------------------------------|

### *class* ov.capture.probes.network.NetworkProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Accumulate request/response records (+ size-capped bodies) via events.

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.perf.html.md

# ov.capture.probes.perf

Performance probe: Navigation Timing, paint, web-vitals entries, CDP counters.

An init script installs `PerformanceObserver``s that accumulate layout-shift and
event-timing entries onto ``window.__ov_perf` (so per-step CWV attribution is
possible downstream); at each captured state the probe reads those plus the
Navigation Timing and paint entries, and – on Chromium – `Performance.getMetrics`
via CDP. Web-vitals *attribution* (naming the offending element) is refined in the
`cwv` analyzer; this probe captures the raw entries deterministically.

### Classes

| [`PerfProbe`](_autosummary/ov.capture.probes.perf.html.md#ov.capture.probes.perf.PerfProbe)()   | Snapshot timing + web-vitals entries + CDP counters per captured state.   |
|----------------------------------------------------------------|---------------------------------------------------------------------------|

### *class* ov.capture.probes.perf.PerfProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Snapshot timing + web-vitals entries + CDP counters per captured state.

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### capture(ctx)

Snapshot current state into artifacts. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.screenshot.html.md

# ov.capture.probes.screenshot

Screenshot probe: full-page PNG per captured state.

Full-page screenshots ground the set-of-mark evidence bundle later (§8.1). The
artifact id is recorded onto the step so the evidence assembler can resolve the
exact image a finding refers to.

### Classes

| [`ScreenshotProbe`](_autosummary/ov.capture.probes.screenshot.html.md#ov.capture.probes.screenshot.ScreenshotProbe)()   | Capture a full-page PNG of the current state.   |
|----------------------------------------------------------------------|-------------------------------------------------|

### *class* ov.capture.probes.screenshot.ScreenshotProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Capture a full-page PNG of the current state.

#### capture(ctx)

Snapshot current state into artifacts. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.sse.html.md

# ov.capture.probes.sse

SSE probe: Server-Sent-Event frames via CDP (Chromium-only).

SSE frames are *not* reliably reachable through `page.route` or
`response.body()`, so this probe uses `Network.eventSourceMessageReceived`
through the CDP escape hatch (which requires `Network.enable`). When CDP is
unavailable (non-Chromium), the probe is inert.

### Classes

| [`SseProbe`](_autosummary/ov.capture.probes.sse.html.md#ov.capture.probes.sse.SseProbe)()   | Capture SSE frames via `CdpSession.capture_sse` when CDP is available.   |
|---------------------------------------------------------------|--------------------------------------------------------------------------|

### *class* ov.capture.probes.sse.SseProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Capture SSE frames via `CdpSession.capture_sse` when CDP is available.

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.storage.html.md

# ov.capture.probes.storage

Storage probe: cookies, localStorage, sessionStorage, IndexedDB names.

Values are **redacted by default** (privacy; `config.redact_values`) – we keep
the *shape* of client state (which keys exist, how big) without persisting
secrets/PII. sessionStorage is read manually (it is not in `storage_state`) and
IndexedDB is probed for database names only (deep dumps are fragile and deferred).

### Classes

| [`StorageProbe`](_autosummary/ov.capture.probes.storage.html.md#ov.capture.probes.storage.StorageProbe)()   | Snapshot client storage (redacted) for the current state.   |
|-------------------------------------------------------------------|-------------------------------------------------------------|

### *class* ov.capture.probes.storage.StorageProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Snapshot client storage (redacted) for the current state.

#### capture(ctx)

Snapshot current state into artifacts. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.probes.websocket.html.md

# ov.capture.probes.websocket

WebSocket probe: frames sent/received and open/close, first-class (D1).

Uses `page.on("websocket")` -> `framesent`/`framereceived`/`close` (a
high-level Playwright API, *not* CDP). Frame payloads are truncated to a sane cap
to keep the store bounded; realtime *shape* synthesis happens later in arch
analysis, not here.

### Classes

| [`WebSocketProbe`](_autosummary/ov.capture.probes.websocket.html.md#ov.capture.probes.websocket.WebSocketProbe)()   | Capture WS lifecycle + frames via `page.on('websocket')`.   |
|---------------------------------------------------------------------|-------------------------------------------------------------|

### *class* ov.capture.probes.websocket.WebSocketProbe

Bases: [`Probe`](_autosummary/ov.capture.probes.html.md#ov.capture.probes.Probe)

Capture WS lifecycle + frames via `page.on('websocket')`.

#### attach(ctx)

Subscribe listeners before navigation. Default: no-op.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### finalize(ctx)

Flush accumulated state into artifacts at run end. Default: nothing.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)]


# _autosummary/ov.capture.session.html.md

# ov.capture.session

`CaptureSession` – owns the browser and orchestrates the probes (§3.1).

The session is the deterministic capture spine: it resolves and dependency-orders
the enabled probes, attaches their listeners before navigation, snapshots state
on demand (the `snapshot_state` primitive of §2.3), finalizes and flushes them
at the end, stores the HAR, and persists the [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun).

It exposes `page` so the `operate` primitives and the scripted driver can act
on the same browser, and is a context manager for safe teardown.

### Classes

| [`CaptureSession`](_autosummary/ov.capture.session.html.md#ov.capture.session.CaptureSession)(\*, target_url[, config, ...])   | Drive one target and record everything into the store (zero-config default).   |
|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|

### *class* ov.capture.session.CaptureSession(, target_url, config=None, store=None, mode='reconstruct', probes='default', record_har=True, read_only=False)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Drive one target and record everything into the store (zero-config default).

Typical use is via the [`ov.observe()`](_autosummary/ov.html.md#ov.observe) facade, but the session is directly
usable:

```default
with CaptureSession(target_url="https://example.com") as s:
    s.open()                 # navigate to target_url + capture the load state
    run = s.run
```

#### capture_step(step)

Run per-state probes for an externally-built step (used by the driver).

* **Return type:**
  [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)

#### close()

Finalize if needed and tear down (idempotent).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### finalize()

Flush every probe (page still alive), close the browser, store the HAR.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### navigate(url)

Navigate the page to `url` (waits for the default load state).

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### open(url=None, , intent='load')

Navigate to the target (or `url`) and capture the initial state.

* **Return type:**
  [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)

#### *property* page

The active Playwright `Page` for `operate` primitives / the driver.

#### snapshot_state(, intent='observe', strategy='ax_snapshot')

Capture all probes for the current state and journal a `JourneyStep`.

Bundles the §2.3 `snapshot_state` primitive: observe affordances, run
per-state probes, and record one step keyed to the produced artifacts.

* **Return type:**
  [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)

#### start()

Launch the browser, attach CDP (Chromium), and attach all probes.

* **Return type:**
  [`CaptureSession`](_autosummary/ov.capture.session.html.md#ov.capture.session.CaptureSession)


# _autosummary/ov.capture.stores.html.md

# ov.capture.stores

The capture store – a `MutableMapping` Mall over a run directory (§3.4).

A single root holds many runs. Artifacts are **content-addressed** (keyed by a
hash of their bytes) so identical assets dedupe across runs – which is exactly
what makes own-target diffing cheap. `dol` provides the filesystem-backed
mappings; this module is a thin facade that adds the `ov` semantics (typed
runs, artifact put/get, report + analysis storage) on top.

Layout under `root`:

```default
runs/<run_id>.json          # CaptureRun, JSON
artifacts/<hash>.<ext>      # content-addressed bytes (shared across runs)
reports/<run_id>/<name>     # rendered Markdown
analyses/<analysis_id>.json # analysis JSON
```

The Mall exposes four `MutableMapping` attributes (`runs`, `artifacts`,
`reports`, `analyses`) for callers who want raw access, plus convenience
methods that speak the SSOT models.

### Functions

| [`resolve_store`](_autosummary/ov.capture.stores.html.md#ov.capture.stores.resolve_store)(store)   | Coerce `store` (a CaptureStore, a path, or `None`) into a CaptureStore.   |
|-------------------------------------------------------------------------|---------------------------------------------------------------------------|

### Classes

| [`CaptureStore`](_autosummary/ov.capture.stores.html.md#ov.capture.stores.CaptureStore)([root])   | A store of stores for one or many capture runs (XDG-aligned root by default).   |
|-------------------------------------------------------------------------|---------------------------------------------------------------------------------|

### *class* ov.capture.stores.CaptureStore(root=None)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

A store of stores for one or many capture runs (XDG-aligned root by default).

```pycon
>>> import tempfile
>>> store = CaptureStore(tempfile.mkdtemp())
>>> art = store.put_artifact(b"<html>hi</html>", kind="dom")
>>> store.artifact_bytes(art) == b"<html>hi</html>"
True
>>> from ov.base import CaptureRun
>>> run = CaptureRun(target_url="http://x", artifacts=[art])
>>> store.save_run(run)
>>> store.load_run(run.run_id).target_url
'http://x'
```

#### artifact_bytes(artifact_or_uri)

Return the raw bytes for an `Artifact` (or a raw `uri` string).

* **Return type:**
  [`bytes`](https://docs.python.org/3/builtins/stdtypes.html#bytes)

#### load_analysis(analysis_id)

Load an analysis JSON blob by id.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

#### load_run(run_id)

Load a `CaptureRun` by id (accepts bare id or `<id>.json`).

* **Return type:**
  [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun)

#### put_artifact(data, , kind, step_id=None, content_type=None, meta=None)

Store `data` content-addressed and return its `Artifact` record.

Identical bytes produce the same `uri`, so re-storing is a no-op write
and cross-run assets dedupe automatically.

* **Return type:**
  [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact)

#### report_names(run_id)

List report keys belonging to `run_id` (separator-normalized).

`dol` returns directory-listing keys with the OS separator, which is a
backslash on Windows; we always speak the logical `/` separator (and
store/read with it), so normalize before the prefix match.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]

#### run_ids()

List stored run ids (without the `.json` suffix).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]

#### save_analysis(analysis_id, obj)

Persist an analysis JSON blob by id.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### save_report(run_id, name, markdown)

Store a rendered Markdown report; return its store key.

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

#### save_run(run)

Persist a `CaptureRun` as JSON under its `run_id`.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

### ov.capture.stores.resolve_store(store)

Coerce `store` (a CaptureStore, a path, or `None`) into a CaptureStore.

The dependency-injection seam: callers pass whatever they have and get a
usable store, defaulting to the XDG root.

* **Return type:**
  [`CaptureStore`](_autosummary/ov.capture.stores.html.md#ov.capture.stores.CaptureStore)


# _autosummary/ov.config.html.md

# ov.config

Configuration – the single source of truth for `ov`’s defaults.

Everything is a keyword-only field on [`OvConfig`](_autosummary/ov.config.html.md#ov.config.OvConfig) with a smart default, so
`ov.observe(url)` works with zero config while every knob stays reachable.
Environment variables (`OV_*`) override the defaults; an explicit constructor
argument overrides the environment.

This module also encodes the **default-safety checklist** from the spec’s
boundary note (§6): redaction is on, secret/PII capture is off, a polite rate is
applied, `robots.txt` intent is respected by default, and a *foreign* target
requires an explicit `authorized=True` acknowledgement.

### Functions

| [`default_store_root`](_autosummary/ov.config.html.md#ov.config.default_store_root)()   | Return the XDG-aligned default root for `ov`'s capture stores.   |
|-------------------------------------------------------------------------|------------------------------------------------------------------|

### Classes

| [`OvConfig`](_autosummary/ov.config.html.md#ov.config.OvConfig)(\*[, store_root, headed, browser, ...])   | Resolved settings for a capture/analysis run (keyword-only, env-overridable).   |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|

### *class* ov.config.OvConfig(, store_root=default_store_root(), headed=False, browser='chromium', nav_timeout_ms=30000, default_probes=('navigation', 'network', 'dom', 'screenshot', 'console', 'fingerprint', 'assets', 'a11y'), max_body_bytes=2000000, console_text_cap=2000, ws_frame_cap=4096, capture_body_content_types=('application/json', 'application/javascript', 'text/javascript', 'text/html', 'text/css', 'text/event-stream', 'application/graphql', 'application/xml', 'text/plain'), max_steps=40, max_failures=6, wall_clock_s=300.0, no_progress_steps=3, redact_values=True, capture_secrets=False, respect_robots=True, polite_rate_s=0.3, authorized=False, use_proxy=False, stealth_profile=None)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Resolved settings for a capture/analysis run (keyword-only, env-overridable).

Construct with [`from_env()`](_autosummary/ov.config.html.md#ov.config.OvConfig.from_env) for the env-aware default, or pass explicit
fields to override. The instance is snapshotted into every
[`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) (`settings_snapshot`) for provenance.

#### *classmethod* from_env(\*\*overrides)

Build a config from `OV_*` env vars, with explicit `overrides` winning.

```pycon
>>> isinstance(OvConfig.from_env().store_root, Path)
True
```

* **Return type:**
  [`OvConfig`](_autosummary/ov.config.html.md#ov.config.OvConfig)

#### snapshot()

Return a JSON-serializable snapshot for `CaptureRun.settings_snapshot`.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.config.default_store_root()

Return the XDG-aligned default root for `ov`’s capture stores.

Honors `OV_STORE_ROOT` then `XDG_DATA_HOME`, falling back to
`~/.local/share/ov`.

* **Return type:**
  [`Path`](https://docs.python.org/3/library/pathlib.html#pathlib.Path)


# _autosummary/ov.html.md

# ov

`ov` – OverView: agent-driven web reconnaissance & analysis.

Point `ov` at a URL and it drives the target like a user, recording two
parallel streams – the *behavioral* stream (what the app does) and the *static*
stream (what it is made of) – then runs two analysis lenses (UX and
software-design) and renders Markdown reports plus a single synopsis.

This module is the **progressive-disclosure facade**: the five top-level
functions below are all most callers need, and each works with sensible defaults.
Everything underneath (capture probes, operate primitives, analyzers, report
sections) is reachable but never required.

```pycon
>>> import ov
>>> callable(ov.observe) and callable(ov.overview)
True
```

The primary consumption model is a *host agent* (Claude Code) wielding these
functions via the skills in `.claude/skills/` – the deterministic core here
runs with no model and no host.

### Functions

| [`observe`](_autosummary/ov.html.md#ov.observe)(url, \*[, goal, journey, mode, ...])   | Drive the target and capture everything.                                    |
|-------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [`analyze`](_autosummary/ov.html.md#ov.analyze)(run, \*[, lenses, llm, store])         | Run the deterministic UX + architecture analyzers over a captured run.      |
| [`diff`](_autosummary/ov.html.md#ov.diff)(run, \*[, baseline, store])               | Diff an analyzed run against a prior baseline run (own-target review mode). |
| [`report`](_autosummary/ov.html.md#ov.report)(run_or_analyses, \*[, sections, ...])   | Render Markdown reports from analyses.                                      |
| [`synopsis`](_autosummary/ov.html.md#ov.synopsis)(reports_or_dir, \*[, out, store])     | Extract-and-aggregate many reports into one synopsis for downstream agents. |
| [`overview`](_autosummary/ov.html.md#ov.overview)(url, \*\*kw)                          | `observe -> analyze -> report -> synopsis`, the one-liner.                  |
| [`check_requirements`](_autosummary/ov.html.md#ov.check_requirements)(\*[, components, verbose])  | Detect missing system dependencies and print exact install commands.        |

### Classes

| [`OvConfig`](_autosummary/ov.html.md#ov.OvConfig)(\*[, store_root, headed, browser, ...])   | Resolved settings for a capture/analysis run (keyword-only, env-overridable).   |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [`CaptureRun`](_autosummary/ov.html.md#ov.CaptureRun)(\*[, run_id, target_url, mode, ...])    | Everything one `observe` produced; artifacts live in the store by id.           |
| [`RunDiff`](_autosummary/ov.html.md#ov.RunDiff)(\*, run_id, baseline_run_id[, ...])        | Own-target regression: a run vs a stored prior baseline run (review mode, §10). |

### *class* ov.CaptureRun(\*, run_id=<factory>, target_url='', mode='reconstruct', started_at=<factory>, finished_at=None, steps=<factory>, artifacts=<factory>, fingerprint=<factory>, rendering_model=None, source_maps_present=None, api_surface=<factory>, findings=<factory>, settings_snapshot=<factory>, notes=<factory>)

Bases: `BaseModel`

Everything one `observe` produced; artifacts live in the store by id.

#### artifact_by_id(artifact_id)

Return the `Artifact` with `artifact_id` or `None`.

* **Return type:**
  [`Artifact`](_autosummary/ov.base.html.md#ov.base.Artifact) | [`None`](https://docs.python.org/3/builtins/constants.html#None)

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {'validate_assignment': False}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

### *class* ov.OvConfig(, store_root=default_store_root(), headed=False, browser='chromium', nav_timeout_ms=30000, default_probes=('navigation', 'network', 'dom', 'screenshot', 'console', 'fingerprint', 'assets', 'a11y'), max_body_bytes=2000000, console_text_cap=2000, ws_frame_cap=4096, capture_body_content_types=('application/json', 'application/javascript', 'text/javascript', 'text/html', 'text/css', 'text/event-stream', 'application/graphql', 'application/xml', 'text/plain'), max_steps=40, max_failures=6, wall_clock_s=300.0, no_progress_steps=3, redact_values=True, capture_secrets=False, respect_robots=True, polite_rate_s=0.3, authorized=False, use_proxy=False, stealth_profile=None)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

Resolved settings for a capture/analysis run (keyword-only, env-overridable).

Construct with [`from_env()`](_autosummary/ov.html.md#ov.OvConfig.from_env) for the env-aware default, or pass explicit
fields to override. The instance is snapshotted into every
[`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) (`settings_snapshot`) for provenance.

#### *classmethod* from_env(\*\*overrides)

Build a config from `OV_*` env vars, with explicit `overrides` winning.

```pycon
>>> isinstance(OvConfig.from_env().store_root, Path)
True
```

* **Return type:**
  [`OvConfig`](_autosummary/ov.config.html.md#ov.config.OvConfig)

#### snapshot()

Return a JSON-serializable snapshot for `CaptureRun.settings_snapshot`.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### *class* ov.RunDiff(\*, run_id, baseline_run_id, target_url='', created_at=<factory>, finding_deltas=<factory>, tech_added=<factory>, tech_removed=<factory>, endpoints_added=<factory>, endpoints_removed=<factory>, rendering_model_change=None, source_maps_change=None, notes=<factory>)

Bases: `BaseModel`

Own-target regression: a run vs a stored prior baseline run (review mode, §10).

Produced by [`ov.analysis.diff.diff_runs()`](_autosummary/ov.analysis.diff.html.md#ov.analysis.diff.diff_runs) from two analyzed
`CaptureRun`s of the same target. The :attr:`finding_deltas` list is
the SSOT; [`counts`](_autosummary/ov.html.md#ov.RunDiff.counts)/[`has_drift`](_autosummary/ov.html.md#ov.RunDiff.has_drift) are *derived* (`@computed_field`,
so they serialize) and [`regressions`](_autosummary/ov.html.md#ov.RunDiff.regressions)/[`improvements`](_autosummary/ov.html.md#ov.RunDiff.improvements) are views over
the deltas – nothing is stored twice.

```pycon
>>> d = RunDiff(run_id="run_b", baseline_run_id="run_a", finding_deltas=[
...     FindingDelta(key="k1", status="new", direction="regression"),
...     FindingDelta(key="k2", status="resolved", direction="improvement"),
... ])
>>> d.counts["new"], d.counts["resolved"], d.has_drift
(1, 1, True)
>>> [r.key for r in d.regressions], [i.key for i in d.improvements]
(['k1'], ['k2'])
```

#### *property* counts *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [int](https://docs.python.org/3/builtins/functions.html#int)]*

Per-status tallies derived from the deltas (the headline of a diff).

#### *property* has_drift *: [bool](https://docs.python.org/3/builtins/functions.html#bool)*

`True` if anything changed across runs (findings, stack, API, or model).

#### *property* improvements *: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[FindingDelta](_autosummary/ov.base.html.md#ov.base.FindingDelta)]*

Deltas that were resolved or got better since the baseline.

#### model_config *: [ClassVar](https://docs.python.org/3/library/typing.html#typing.ClassVar)[ConfigDict]* *= {}*

Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict].

#### *property* regressions *: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[FindingDelta](_autosummary/ov.base.html.md#ov.base.FindingDelta)]*

Deltas that got worse or are newly present (a downstream fix list).

### ov.analyze(run, , lenses=('ux', 'arch'), llm=None, store=None)

Run the deterministic UX + architecture analyzers over a captured run.

Runs fully without a model (`llm=None` is the default and the only path
needed in Phases 1-2). The host agent reasons over the returned analyses +
evidence bundle to add narrative judgment.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)

### ov.check_requirements(, components=None, verbose=True)

Detect missing system dependencies and print exact install commands.

`components` filters which groups to check (`"browser"`, `"node"`,
`"sidecar"`, `"clis"`); `None` checks all. The deterministic analysis
core needs none of these – they gate *capture* and the *arch sidecar*, so
every requirement here is reported as optional unless capture is requested.

```pycon
>>> rep = check_requirements(components=["clis"], verbose=False)
>>> isinstance(rep, RequirementReport)
True
```

* **Return type:**
  [`RequirementReport`](_autosummary/ov.util.html.md#ov.util.RequirementReport)

### ov.diff(run, , baseline=None, store=None)

Diff an analyzed run against a prior baseline run (own-target review mode).

The distinguishing capability of `mode="review"`: report what is *new*,
*changed*, or *resolved* versus a stored prior run of the same target
(regression/drift detection, §10). Fully deterministic – no browser, no model.

* **Parameters:**
  * **run** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – an analyzed [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) or a run id.
  * **baseline** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – a run/run-id to compare against, or `None` to auto-discover the
    latest prior run of the same target.
  * **store** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – a [`CaptureStore`](_autosummary/ov.capture.stores.html.md#ov.capture.stores.CaptureStore), a path, or `None`.
* **Return type:**
  [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff) | [`None`](https://docs.python.org/3/builtins/constants.html#None)
* **Returns:**
  A [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff), or `None` if no baseline exists yet (the
  first review run). Sets `Finding.diff_status` on the run in place and
  persists a `diff_<run_id>` blob that the review report + synopsis read.

### ov.observe(url, , goal=None, journey=None, mode='reconstruct', probes='default', headed=False, store=None, crawl_pages=None, config=None, authorized=None, read_only=False)

Drive the target and capture everything. Zero-config default works.

* **Parameters:**
  * **url** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – the target to study.
  * **goal** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str) | [`None`](https://docs.python.org/3/builtins/constants.html#None)) – a natural-language objective (goal-pursuit is *host* policy; the
    deterministic core records it and does the baseline journey).
  * **journey** ([`list`](https://docs.python.org/3/builtins/stdtypes.html#list) | [`None`](https://docs.python.org/3/builtins/constants.html#None)) – an optional scripted action list (guided-replay), each item an
    [`Action`](_autosummary/ov.base.html.md#ov.base.Action) or a dict like `{"type": "click", "ref": "e3"}`.
  * **mode** ([`str`](https://docs.python.org/3/builtins/stdtypes.html#str)) – `"reconstruct"` (foreign target) or `"review"` (own target).
  * **probes** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – `"default"`, `"all"`, or an iterable of probe names.
  * **headed** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – run the browser headed (default headless).
  * **store** ([`Any`](https://docs.python.org/3/library/typing.html#typing.Any)) – a [`CaptureStore`](_autosummary/ov.capture.stores.html.md#ov.capture.stores.CaptureStore), a path, or `None`.
  * **crawl_pages** ([`int`](https://docs.python.org/3/builtins/functions.html#int) | [`None`](https://docs.python.org/3/builtins/constants.html#None)) – if set (>1), politely crawl that many same-origin pages.
  * **config** ([`OvConfig`](_autosummary/ov.config.html.md#ov.config.OvConfig) | [`None`](https://docs.python.org/3/builtins/constants.html#None)) – an explicit [`OvConfig`](_autosummary/ov.html.md#ov.OvConfig) (overrides `headed`).
  * **authorized** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool) | [`None`](https://docs.python.org/3/builtins/constants.html#None)) – acknowledge authorization to study a *foreign* target.
  * **read_only** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – abort every non-GET/HEAD/OPTIONS request in the browser (pages
    that POST on load send nothing); the aborted ones are listed in a
    `blocked_requests` artifact and a run note.
* **Return type:**
  [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun)
* **Returns:**
  The populated [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) (also persisted to the store).

### ov.overview(url, \*\*kw)

`observe -> analyze -> report -> synopsis`, the one-liner.

Returns the synopsis path/handle. This is the pit-of-success entry point.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### ov.report(run_or_analyses, , sections='default', out_dir=None, store=None)

Render Markdown reports from analyses. Returns the written paths/keys.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)

### ov.synopsis(reports_or_dir, , out=None, store=None)

Extract-and-aggregate many reports into one synopsis for downstream agents.

* **Return type:**
  [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)

### Modules

| [`agents`](_autosummary/ov.agents.html.md#module-ov.agents)       | `ov.agents` — the optional in-package agent layer (Phase 4 productization).   |
|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [`analysis`](_autosummary/ov.analysis.html.md#module-ov.analysis)   | Analysis layer: deterministic analyzers over captured artifacts (Phases 2-3). |
| [`base`](_autosummary/ov.base.html.md#module-ov.base)           | Single source of truth (SSOT) for the `ov` artifact schema.                   |
| [`capture`](_autosummary/ov.capture.html.md#module-ov.capture)     | Capture layer: drive a browser and record behavioral + static streams.        |
| [`config`](_autosummary/ov.config.html.md#module-ov.config)       | Configuration -- the single source of truth for `ov`'s defaults.              |
| [`operate`](_autosummary/ov.operate.html.md#module-ov.operate)     | The operate layer -- deterministic, LLM-free tool primitives (the "hands").   |
| [`registry`](_autosummary/ov.registry.html.md#module-ov.registry)   | The plugin mechanism: decorated functions registered into a dict (§3.2).      |
| [`reporting`](_autosummary/ov.reporting.html.md#module-ov.reporting) | Report layer: registered Markdown sections + the synopsis (Phase 2).          |
| [`util`](_autosummary/ov.util.html.md#module-ov.util)           | Internal helpers: content-addressing, hashing, redaction, and requirements.   |


# _autosummary/ov.operate.driver.html.md

# ov.operate.driver

The scripted/guided driver – model-free journey execution (Phase 1).

Two deterministic strategies that compose the operate primitives over a
[`CaptureSession`](_autosummary/ov.capture.session.html.md#ov.capture.session.CaptureSession):

* [`replay()`](_autosummary/ov.operate.driver.html.md#ov.operate.driver.replay) – execute a scripted list of actions (guided-replay), capturing
  state and journaling each step.
* [`crawl()`](_autosummary/ov.operate.driver.html.md#ov.operate.driver.crawl) – a polite, same-origin breadth-first crawl (crawl-and-map),
  capturing each visited page and stopping on `max_pages` / no-progress.

These let the capture spine produce a real multi-state journey with **no model**.
Goal-pursuit (`advance` toward a success predicate) is the host’s job via the
`ov-operate` skill; the package supplies the hands, not the policy.

### Functions

| [`crawl`](_autosummary/ov.operate.driver.html.md#ov.operate.driver.crawl)(session, \*[, max_pages])   | Politely crawl same-origin links breadth-first, capturing each page.   |
|------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [`replay`](_autosummary/ov.operate.driver.html.md#ov.operate.driver.replay)(session, actions)          | Execute a scripted action list, capturing + journaling each step.      |

### ov.operate.driver.crawl(session, , max_pages=5)

Politely crawl same-origin links breadth-first, capturing each page.

Stops at `max_pages`, on `max_steps`, or when the deterministic progress
signal reports a loop. The host can run a richer crawl; this is the model-free
baseline that yields a multi-state capture.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)]

### ov.operate.driver.replay(session, actions)

Execute a scripted action list, capturing + journaling each step.

```pycon
>>> # actions are Action models or dicts: {"type": "click", "ref": "e3"}
>>> callable(replay)
True
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)]


# _autosummary/ov.operate.html.md

# ov.operate

The operate layer – deterministic, LLM-free tool primitives (the “hands”).

This is the package-owned *tool plane* from §2.3. It composes as
`journal(progress(act(observe())))` and contains no model and no policy: it
perceives affordances, executes actions, records the journey, and reports
loop/no-progress *facts*. The decision of *what to do next* and *when to stop*
belongs to the policy plane – the host (Claude Code) via the `ov-operate`
skill, or, later, an in-package agent.

Primitives (each is individually callable and testable):

* `observe()` – `observe(page, strategy) -> Observation`
* `act()` – `act(page, action) -> ActionResult` (returns a fresh Observation)
* `journal()` – append a structured per-step record
* `progress()` – loop/no-progress facts (never decides to stop)
* perception strategies – [`PERCEPTION_REGISTRY`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.PERCEPTION_REGISTRY)

### Functions

| [`observe`](_autosummary/ov.operate.html.md#ov.operate.observe)(page[, strategy])                          | Perceive the current page state with `strategy` and return an Observation.   |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| [`act`](_autosummary/ov.operate.html.md#ov.operate.act)(page, action, \*[, perception, polite_rate_s]) | Execute `action` against `page` and return the result + a fresh Observation. |
| [`journal`](_autosummary/ov.operate.html.md#ov.operate.journal)(run, step)                                 | Append `step` to `run.steps` and return it.                                  |
| [`make_step`](_autosummary/ov.operate.html.md#ov.operate.make_step)(\*, intent[, action, ...])               | Build a `JourneyStep` from an action's before/after observations.            |
| [`progress`](_autosummary/ov.operate.html.md#ov.operate.progress)(history, \*[, no_progress_steps])         | Compute loop/no-progress facts from the journey `history` so far.            |
| [`perceive`](_autosummary/ov.operate.html.md#ov.operate.perceive)(page[, strategy])                         | Dispatch to the named perception strategy (defaults to `ax_snapshot`).       |

### ov.operate.act(page, action, , perception='ax_snapshot', polite_rate_s=0.0)

Execute `action` against `page` and return the result + a fresh Observation.

On failure, `ok=False` and `error` carries the message; a fresh
Observation is still attached so the host can recover (re-observe, scroll,
disambiguate).

* **Return type:**
  [`ActionResult`](_autosummary/ov.base.html.md#ov.base.ActionResult)

### ov.operate.journal(run, step)

Append `step` to `run.steps` and return it.

* **Return type:**
  [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)

### ov.operate.make_step(, intent, action=None, pre_observation=None, result=None, artifact_ids=None, network_delta=0, console_delta=0, note=None)

Build a `JourneyStep` from an action’s before/after observations.

`outcome` is derived: `error` on a failed action, `noop` when the
post-observation hash equals the pre-observation hash (nothing changed),
else `ok`.

* **Return type:**
  [`JourneyStep`](_autosummary/ov.base.html.md#ov.base.JourneyStep)

### ov.operate.observe(page, strategy='ax_snapshot')

Perceive the current page state with `strategy` and return an Observation.

```pycon
>>> from ov.operate.perception import PERCEPTION_REGISTRY
>>> "ax_snapshot" in PERCEPTION_REGISTRY
True
```

* **Return type:**
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)

### ov.operate.perceive(page, strategy='ax_snapshot')

Dispatch to the named perception strategy (defaults to `ax_snapshot`).

Raises `KeyError` with the known strategies when `strategy` is unknown –
an informative error per the project’s principles.

* **Return type:**
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)

### ov.operate.progress(history, , no_progress_steps=3)

Compute loop/no-progress facts from the journey `history` so far.

```pycon
>>> from ov.base import JourneyStep, Action
>>> s = JourneyStep(action=Action(type='click', ref='e1'), post_obs_hash='h')
>>> sig = progress([s, s.model_copy(), s.model_copy()], no_progress_steps=3)
>>> sig.no_new_signal_steps >= 3 and sig.loop_suspected
True
```

* **Return type:**
  [`ProgressSignal`](_autosummary/ov.base.html.md#ov.base.ProgressSignal)

### Modules

| [`driver`](_autosummary/ov.operate.driver.html.md#module-ov.operate.driver)         | The scripted/guided driver -- model-free journey execution (Phase 1).         |
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [`perception`](_autosummary/ov.operate.perception.html.md#module-ov.operate.perception) | Perception strategies -- pluggable ways to turn a page into an `Observation`. |
| [`strategies`](_autosummary/ov.operate.strategies.html.md#module-ov.operate.strategies) | Journey-strategy helpers -- intent shaping for the three strategies (§2.3).   |


# _autosummary/ov.operate.perception.html.md

# ov.operate.perception

Perception strategies – pluggable ways to turn a page into an `Observation`.

A perception strategy returns a uniform [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation) so the rest
of the operate layer (and the host’s policy) stays declarative about *what* an
observation is, not *how* it was grounded. Three strategies ship:

* `ax_snapshot` – affordances from an accessibility-relevant DOM walk plus the
  concise ARIA snapshot text (cheap, deterministic, the default).
* `screenshot` – the same affordances with bounding boxes, intended to pair
  with a screenshot artifact (for canvas/exotic renderers).
* `hybrid` – AX-grounded affordances, robust when the AX layer is thin.

Affordances are extracted by stamping a stable `data-ov-ref` attribute on each
interactive element, so `act()` can target it deterministically
(`getByRole`-stable, survives CSS churn) – the require-description-and-ref
safety pattern from Playwright-MCP.

### Module Attributes

| [`REF_ATTR`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.REF_ATTR)            | The attribute stamped on interactive elements to create stable refs.   |
|----------------------------------------------------------------------|------------------------------------------------------------------------|
| [`PERCEPTION_REGISTRY`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.PERCEPTION_REGISTRY) | name -> `perceiver(page) -> Observation`                               |

### Functions

| [`perceive`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.perceive)(page[, strategy])   | Dispatch to the named perception strategy (defaults to `ax_snapshot`).       |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------|
| [`perceive_ax_snapshot`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.perceive_ax_snapshot)(page)   | Affordances + concise ARIA snapshot text (the cheap, deterministic default). |
| [`perceive_hybrid`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.perceive_hybrid)(page)        | AX-grounded affordances + ARIA snapshot; the robust default when AX is thin. |
| [`perceive_screenshot`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.perceive_screenshot)(page)    | Affordances with bounding boxes (pairs with a screenshot artifact).          |
| [`register_perception`](_autosummary/ov.operate.perception.html.md#ov.operate.perception.register_perception)(name)    | Decorator registering a perceiver under `name`.                              |

### ov.operate.perception.PERCEPTION_REGISTRY *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [Callable](https://docs.python.org/3/library/typing.html#typing.Callable)[[[Any](https://docs.python.org/3/library/typing.html#typing.Any)], [Observation](_autosummary/ov.base.html.md#ov.base.Observation)]]* *= {'ax_snapshot': <function perceive_ax_snapshot>, 'hybrid': <function perceive_hybrid>, 'screenshot': <function perceive_screenshot>}*

name -> `perceiver(page) -> Observation`

### ov.operate.perception.REF_ATTR *= 'data-ov-ref'*

The attribute stamped on interactive elements to create stable refs.

### ov.operate.perception.perceive(page, strategy='ax_snapshot')

Dispatch to the named perception strategy (defaults to `ax_snapshot`).

Raises `KeyError` with the known strategies when `strategy` is unknown –
an informative error per the project’s principles.

* **Return type:**
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)

### ov.operate.perception.perceive_ax_snapshot(page)

Affordances + concise ARIA snapshot text (the cheap, deterministic default).

* **Return type:**
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)

### ov.operate.perception.perceive_hybrid(page)

AX-grounded affordances + ARIA snapshot; the robust default when AX is thin.

* **Return type:**
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)

### ov.operate.perception.perceive_screenshot(page)

Affordances with bounding boxes (pairs with a screenshot artifact).

* **Return type:**
  [`Observation`](_autosummary/ov.base.html.md#ov.base.Observation)

### ov.operate.perception.register_perception(name)

Decorator registering a perceiver under `name`.


# _autosummary/ov.operate.strategies.html.md

# ov.operate.strategies

Journey-strategy helpers – intent shaping for the three strategies (§2.3).

The three strategies reuse the same primitives, varying only the *intent* written
to the journal: crawl-and-map (`enumerate`), goal-pursuit (`advance`), and
guided-replay (`replay`). These helpers keep that vocabulary in one place and
provide the deterministic target-selection a model-free driver needs.

### Module Attributes

| [`NAV_ROLES`](_autosummary/ov.operate.strategies.html.md#ov.operate.strategies.NAV_ROLES)   | Roles treated as navigable for crawl-and-map.   |
|--------------------------------------------------------------|-------------------------------------------------|

### Functions

| [`absolutize`](_autosummary/ov.operate.strategies.html.md#ov.operate.strategies.absolutize)(href, base_url)         | Resolve `href` against `base_url` (drops fragments).                        |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [`is_same_origin`](_autosummary/ov.operate.strategies.html.md#ov.operate.strategies.is_same_origin)(url, base_url)      | True when `url` shares scheme+host(+port) with `base_url`.                  |
| [`navigable_affordances`](_autosummary/ov.operate.strategies.html.md#ov.operate.strategies.navigable_affordances)(observation) | Return affordances suitable for breadth-first crawl (links/tabs/menuitems). |

### ov.operate.strategies.NAV_ROLES *= frozenset({'a', 'link', 'menuitem', 'tab'})*

Roles treated as navigable for crawl-and-map.

### ov.operate.strategies.absolutize(href, base_url)

Resolve `href` against `base_url` (drops fragments).

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.operate.strategies.is_same_origin(url, base_url)

True when `url` shares scheme+host(+port) with `base_url`.

```pycon
>>> is_same_origin("https://x.com/a", "https://x.com/b")
True
>>> is_same_origin("https://y.com/a", "https://x.com/b")
False
```

* **Return type:**
  [`bool`](https://docs.python.org/3/builtins/functions.html#bool)

### ov.operate.strategies.navigable_affordances(observation)

Return affordances suitable for breadth-first crawl (links/tabs/menuitems).

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`Affordance`](_autosummary/ov.base.html.md#ov.base.Affordance)]


# _autosummary/ov.registry.html.md

# ov.registry

The plugin mechanism: decorated functions registered into a dict (§3.2).

Everything extensible in `ov` – probes (what we collect), analyzers (what we
conclude), and report sections (what we render) – is a callable registered with
declared `requires`/`produces` artifact dependencies. A run is then just:
*resolve registry -> topologically order by declared deps -> execute*. Adding a
new capability is registering a function; it never means editing a dispatcher
(open-closed).

This is the “functions as data” + dataflow-DAG shape the project favors. We keep
the `meshed` dependency optional by shipping a small, transparent topo-sort
here; a caller who wants `meshed` can build the same DAG from
[`Registry.items`](_autosummary/ov.registry.html.md#ov.registry.Registry.items).

### Classes

| [`RegisteredFn`](_autosummary/ov.registry.html.md#ov.registry.RegisteredFn)(name, fn[, requires, produces, ...])   | A registered callable plus its declared artifact-kind dependencies.                                                    |
|------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|
| [`Registry`](_autosummary/ov.registry.html.md#ov.registry.Registry)(label)                                     | A named registry of [`RegisteredFn`](_autosummary/ov.registry.html.md#ov.registry.RegisteredFn), with dependency-ordered resolution. |

### *class* ov.registry.RegisteredFn(name, fn, requires=(), produces=(), meta=dict())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

A registered callable plus its declared artifact-kind dependencies.

### *class* ov.registry.Registry(label)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

A named registry of [`RegisteredFn`](_autosummary/ov.registry.html.md#ov.registry.RegisteredFn), with dependency-ordered resolution.

```pycon
>>> reg = Registry("demo")
>>> @reg.register("a", produces=("x",))
... def a():
...     return "a"
>>> @reg.register("b", requires=("x",), produces=("y",))
... def b():
...     return "b"
>>> [r.name for r in reg.ordered()]   # b depends on a's output kind "x"
['a', 'b']
>>> reg["a"].fn()
'a'
```

#### *property* items *: [dict](https://docs.python.org/3/builtins/stdtypes.html#dict)[[str](https://docs.python.org/3/builtins/stdtypes.html#str), [RegisteredFn](_autosummary/ov.registry.html.md#ov.registry.RegisteredFn)]*

The underlying `name -> RegisteredFn` mapping (read-only by convention).

#### names()

Registered names in insertion order.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]

#### ordered(names=None)

Return the selected items topologically ordered by `requires`/`produces`.

An item depends on any *selected* item that `produces` a kind it
`requires`. Inputs produced by no selected item are treated as already
available (captured upstream). Falls back to selection order on a cycle.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`RegisteredFn`](_autosummary/ov.registry.html.md#ov.registry.RegisteredFn)]

#### register(name, , requires=(), produces=(), \*\*meta)

Decorator: register `fn` under `name` with its declared deps.

* **Return type:**
  [`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)[[[`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)], [`Callable`](https://docs.python.org/3/library/typing.html#typing.Callable)]


# _autosummary/ov.reporting.html.md

# ov.reporting

Report layer: registered Markdown sections + the synopsis (Phase 2).

Each section is a registered function (`register_section()`) that takes the
analyses + run and returns a Markdown fragment; [`ov.reporting.render`](_autosummary/ov.reporting.render.html.md#module-ov.reporting.render)
concatenates the selected sections. [`ov.reporting.synopsis`](_autosummary/ov.reporting.synopsis.html.md#module-ov.reporting.synopsis) performs the
structured map-reduce that compresses many findings into one agent-consumable
synopsis.

(The package is named `reporting` rather than `report` so it cannot shadow
the `ov.report` facade *function*; see `ov/__init__.py`.)

### Functions

| [`load_builtin_sections`](_autosummary/ov.reporting.html.md#ov.reporting.load_builtin_sections)()   | Import builtin report-section modules so their `@register_section` runs.   |
|----------------------------------------------------------------------------|----------------------------------------------------------------------------|

### ov.reporting.load_builtin_sections()

Import builtin report-section modules so their `@register_section` runs.

Invoked once at the bottom of this module so the section registry is fully
populated on import (no order-dependent gaps). Safe to call repeatedly.

* **Return type:**
  [`None`](https://docs.python.org/3/builtins/constants.html#None)

### Modules

| [`overview`](_autosummary/ov.reporting.overview.html.md#module-ov.reporting.overview)   | The `overview` one-liner: observe -> analyze -> report -> synopsis (§4).             |
|------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|
| [`render`](_autosummary/ov.reporting.render.html.md#module-ov.reporting.render)       | Render Markdown report sections from an analyzed run (§8.3).                         |
| [`sections`](_autosummary/ov.reporting.sections.html.md#module-ov.reporting.sections)   | The default report sections (§8.3) -- each a registered Markdown fragment.           |
| [`synopsis`](_autosummary/ov.reporting.synopsis.html.md#module-ov.reporting.synopsis)   | Synopsis: structured map-reduce over findings into one agent-consumable file (§8.4). |


# _autosummary/ov.reporting.overview.html.md

# ov.reporting.overview

The `overview` one-liner: observe -> analyze -> report -> synopsis (§4).

This is the pit-of-success entry point behind [`ov.overview()`](_autosummary/ov.html.md#ov.overview). It threads a
single store through capture, the deterministic analyzers, report rendering, and
the synopsis, returning the synopsis path/key. No model is involved.

### Functions

| [`run_overview`](_autosummary/ov.reporting.overview.html.md#ov.reporting.overview.run_overview)(url, \*[, headed, mode, probes, ...])   | Run the full deterministic pipeline and return the synopsis path/key.   |
|-------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|

### ov.reporting.overview.run_overview(url, , headed=False, mode='reconstruct', probes='default', store=None, out_dir=None, authorized=None, lenses=('ux', 'arch'), baseline=None, \*\*observe_kw)

Run the full deterministic pipeline and return the synopsis path/key.

In `mode="review"` it inserts an own-target diff step between analysis and
reporting: the run is compared against a stored prior baseline (`baseline`,
or the latest prior run of the same target) so the review report and synopsis
carry regression/drift detail. A first review run (no baseline) is a no-op.

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)


# _autosummary/ov.reporting.render.html.md

# ov.reporting.render

Render Markdown report sections from an analyzed run (§8.3).

Selects the registered sections that apply to the run’s mode, orders them by their
numeric `order`, renders each over the run + per-analyzer summaries, and writes
them to the store (and optionally an output directory). Returns the written keys
or paths.

### Functions

| [`render_reports`](_autosummary/ov.reporting.render.html.md#ov.reporting.render.render_reports)(run_or_analyses, \*[, ...])   | Render and persist the report sections; return their store keys/paths.   |
|-----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|

### ov.reporting.render.render_reports(run_or_analyses, , sections='default', out_dir=None, store=None)

Render and persist the report sections; return their store keys/paths.

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str)]


# _autosummary/ov.reporting.sections.html.md

# ov.reporting.sections

The default report sections (§8.3) – each a registered Markdown fragment.

A section is `fn(run, analyses) -> str`. Sections are registered with an
`order` (numeric prefix) and the `modes` they apply to (reconstruct/review),
so [`ov.reporting.render`](_autosummary/ov.reporting.render.html.md#module-ov.reporting.render) can select and concatenate them. They read the
already-analyzed [`CaptureRun`](_autosummary/ov.base.html.md#ov.base.CaptureRun) (findings, fingerprint, api_surface,
rendering_model, …) plus the per-analyzer summaries – no model involved.

### Functions

| `api_section`(run, analyses)              |    |
|-------------------------------------------|----|
| `appendix_section`(run, analyses)         |    |
| `architecture_section`(run, analyses)     |    |
| `overview_section`(run, analyses)         |    |
| `reconstruction_section`(run, analyses)   |    |
| `recovered_source_section`(run, analyses) |    |
| `review_section`(run, analyses)           |    |
| `ux_section`(run, analyses)               |    |


# _autosummary/ov.reporting.synopsis.html.md

# ov.reporting.synopsis

Synopsis: structured map-reduce over findings into one agent-consumable file (§8.4).

Maps each [`Finding`](_autosummary/ov.base.html.md#ov.base.Finding) into a compact synopsis record, \*\*deduplicates
deterministically\*\* (cluster on type + evidence-ref overlap + normalized summary;
merge to the union of evidence refs and the max severity), and emits two
renderings from one source: `synopsis.json` (the SSOT a downstream agent
consumes) and `SYNOPSIS.md` derived from it (never hand-authored). Evidence-id
overlap is a model-free check, more reliable than LLM similarity-judging.

### Functions

| [`build_synopsis`](_autosummary/ov.reporting.synopsis.html.md#ov.reporting.synopsis.build_synopsis)(run_or_id, \*[, out, store])   | Build + persist `synopsis.json` and the derived `SYNOPSIS.md`; return the md path/key.   |
|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| [`build_synopsis_doc`](_autosummary/ov.reporting.synopsis.html.md#ov.reporting.synopsis.build_synopsis_doc)(run, \*[, diff])           | Build the `synopsis.json` SSOT document from a run's findings (pure).                    |
| [`dedupe_findings`](_autosummary/ov.reporting.synopsis.html.md#ov.reporting.synopsis.dedupe_findings)(findings)                     | Cluster + merge findings deterministically; return synopsis records (pure).              |
| [`render_synopsis_md`](_autosummary/ov.reporting.synopsis.html.md#ov.reporting.synopsis.render_synopsis_md)(doc)                       | Derive SYNOPSIS.md from the synopsis JSON (never hand-authored).                         |

### ov.reporting.synopsis.build_synopsis(run_or_id, , out=None, store=None)

Build + persist `synopsis.json` and the derived `SYNOPSIS.md`; return the md path/key.

`run_or_id` may be a `CaptureRun` or a run id. The JSON is the SSOT;
the Markdown is derived. Both are written to the store (and `out` dir if given).

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.reporting.synopsis.build_synopsis_doc(run, , diff=None)

Build the `synopsis.json` SSOT document from a run’s findings (pure).

When `diff` (a serialized [`RunDiff`](_autosummary/ov.base.html.md#ov.base.RunDiff)) is given – review mode
with a baseline – a `regression` block is appended so the synopsis tells a
downstream agent what changed since the prior run, not just the current state.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.reporting.synopsis.dedupe_findings(findings)

Cluster + merge findings deterministically; return synopsis records (pure).

Two findings cluster when they share `type` and either overlap on evidence
refs or share a normalized summary. Each cluster yields one record holding the
union of evidence refs, the max severity, and the highest-severity representative.

```pycon
>>> from ov.base import Finding, Severity
>>> a = Finding(type="ux_issue", signal="contrast.text", category="a11y",
...             title="low contrast", evidence_refs=["x"],
...             severity=Severity(impact_tier="serious", score=3.0))
>>> b = Finding(type="ux_issue", signal="contrast.text", category="a11y",
...             title="low contrast", evidence_refs=["y"],
...             severity=Severity(impact_tier="serious", score=5.0))
>>> recs = dedupe_findings([a, b])
>>> len(recs), sorted(recs[0]["evidence_refs"]), recs[0]["severity_score"]
(1, ['x', 'y'], 5.0)
```

* **Return type:**
  [`list`](https://docs.python.org/3/builtins/stdtypes.html#list)[[`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]]

### ov.reporting.synopsis.render_synopsis_md(doc)

Derive SYNOPSIS.md from the synopsis JSON (never hand-authored).

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)


# _autosummary/ov.util.html.md

# ov.util

Internal helpers: content-addressing, hashing, redaction, and requirements.

Nothing here knows about Playwright or analysis specifics – these are the
small, reusable primitives the rest of the package leans on. The most
user-facing item is [`check_requirements()`](_autosummary/ov.util.html.md#ov.util.check_requirements), which detects missing system
dependencies (Playwright browsers, Node, the sidecar, optional CLIs) and prints
the exact commands to install them, per the spec’s `check_requirements`
mandate (§9).

### Functions

| [`check_requirements`](_autosummary/ov.util.html.md#ov.util.check_requirements)(\*[, components, verbose])   | Detect missing system dependencies and print exact install commands.           |
|--------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|
| [`content_hash`](_autosummary/ov.util.html.md#ov.util.content_hash)(data, \*[, length])                | Return a short, stable SHA-256 hex digest for content-addressing.              |
| [`redact_mapping`](_autosummary/ov.util.html.md#ov.util.redact_mapping)(mapping, \*[, redact])           | Return a copy of `mapping` with values redacted when `redact` is true.         |
| [`redact_value`](_autosummary/ov.util.html.md#ov.util.redact_value)(value)                             | Replace a value with a length-tagged placeholder (keeps shape, drops content). |
| [`sidecar_dir`](_autosummary/ov.util.html.md#ov.util.sidecar_dir)()                                   | Return the path to the Node sidecar directory (`OV_SIDECAR_DIR` override).     |
| [`stable_hash`](_autosummary/ov.util.html.md#ov.util.stable_hash)(obj, \*[, length])                  | Hash an arbitrary JSON-able object deterministically (sorted keys).            |

### Classes

| [`Requirement`](_autosummary/ov.util.html.md#ov.util.Requirement)(name, present[, detail, ...])   | One checked system dependency.                                                                                        |
|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| [`RequirementReport`](_autosummary/ov.util.html.md#ov.util.RequirementReport)([requirements])           | The result of [`check_requirements()`](_autosummary/ov.util.html.md#ov.util.check_requirements) -- iterable, with a tidy summary. |

### *class* ov.util.Requirement(name, present, detail='', install_hint='', optional=True)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

One checked system dependency.

### *class* ov.util.RequirementReport(requirements=list())

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object)

The result of [`check_requirements()`](_autosummary/ov.util.html.md#ov.util.check_requirements) – iterable, with a tidy summary.

#### *property* missing *: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[Requirement](_autosummary/ov.util.html.md#ov.util.Requirement)]*

Requirements that are absent (optional or not).

#### *property* ok *: [bool](https://docs.python.org/3/builtins/functions.html#bool)*

True when every *non-optional* requirement is present.

#### render()

Human-readable multi-line summary with install hints for what’s missing.

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.util.check_requirements(, components=None, verbose=True)

Detect missing system dependencies and print exact install commands.

`components` filters which groups to check (`"browser"`, `"node"`,
`"sidecar"`, `"clis"`); `None` checks all. The deterministic analysis
core needs none of these – they gate *capture* and the *arch sidecar*, so
every requirement here is reported as optional unless capture is requested.

```pycon
>>> rep = check_requirements(components=["clis"], verbose=False)
>>> isinstance(rep, RequirementReport)
True
```

* **Return type:**
  [`RequirementReport`](_autosummary/ov.util.html.md#ov.util.RequirementReport)

### ov.util.content_hash(data, , length=16)

Return a short, stable SHA-256 hex digest for content-addressing.

```pycon
>>> content_hash(b"hello")
'2cf24dba5fb0a30e'
>>> content_hash("hello") == content_hash(b"hello")
True
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.util.redact_mapping(mapping, , redact=True)

Return a copy of `mapping` with values redacted when `redact` is true.

* **Return type:**
  [`dict`](https://docs.python.org/3/builtins/stdtypes.html#dict)[[`str`](https://docs.python.org/3/builtins/stdtypes.html#str), [`Any`](https://docs.python.org/3/library/typing.html#typing.Any)]

### ov.util.redact_value(value)

Replace a value with a length-tagged placeholder (keeps shape, drops content).

```pycon
>>> redact_value("super-secret-token")
'<redacted:18>'
>>> redact_value(None)
'<redacted>'
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)

### ov.util.sidecar_dir()

Return the path to the Node sidecar directory (`OV_SIDECAR_DIR` override).

Defaults to `<repo_root>/sidecar` (sibling of the `ov` package). Packaging
the sidecar for installed use is a later concern; for now it lives in the
source tree.

* **Return type:**
  [`Path`](https://docs.python.org/3/library/pathlib.html#pathlib.Path)

### ov.util.stable_hash(obj, , length=16)

Hash an arbitrary JSON-able object deterministically (sorted keys).

Used for `obs_hash` and `args_hash` so progress detection is reproducible.

```pycon
>>> stable_hash({"b": 1, "a": 2}) == stable_hash({"a": 2, "b": 1})
True
```

* **Return type:**
  [`str`](https://docs.python.org/3/builtins/stdtypes.html#str)


# about-this-build.html.md

<!-- generated by epythet -->

# About this build

This documentation was built on **2026-11-23 07:50 UTC** from commit <a href="https://github.com/thorwhalen/ov/commit/23e31c82ae12d5b7140dbfb2052c6d8b545858c3"><code>23e31c8</code></a> on branch <code>main</code>, for **ov 0.1.5** (from <code>pyproject.toml</code>).

#### NOTE
Nothing suggests a mismatch: the tree was clean at the commit above, and the documented version is the one on PyPI.

## Source

|                     |                                                                                                                                                      |
|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| Commit              | <a href="https://github.com/thorwhalen/ov/commit/23e31c82ae12d5b7140dbfb2052c6d8b545858c3"><code>23e31c82ae12d5b7140dbfb2052c6d8b545858c3</code></a> |
| Branch              | <code>main</code>                                                                                                                                    |
| Tags at this commit | none                                                                                                                                                 |
| Working tree        | clean                                                                                                                                                |
| Remote              | <code>https://github.com/thorwhalen/ov</code>                                                                                                        |

## Continuous integration

|              |                                                                                            |
|--------------|--------------------------------------------------------------------------------------------|
| Repository   | <code>thorwhalen/ov</code>                                                                 |
| Run          | <a href="https://github.com/thorwhalen/ov/actions/runs/45133859794">45133859794</a>        |
| Ref          | <code>refs/heads/main</code>                                                               |
| Event commit | <code>23e31c82ae12d5b7140dbfb2052c6d8b545858c3</code> (in the history of the built commit) |

## Tools

|          |         |
|----------|---------|
| epythet  | 0.2.24  |
| Sphinx   | 9.1.1   |
| docutils | 0.22.4  |
| Python   | 3.12.16 |

## Configuration as resolved

|               |                                                                   |
|---------------|-------------------------------------------------------------------|
| theme         | <code>auto</code> (Sphinx theme <code>pydata_sphinx_theme</code>) |
| accent        | <code>#7e387b</code>                                              |
| api_generator | <code>autosummary</code>                                          |
| ignore        | <code>tests/</code>, <code>scrap/</code>, <code>examples/</code>  |
| agent_outputs | <code>true</code>                                                 |
| aggregates    | <code>md</code>                                                   |
| ai_artifacts  | <code>true</code>                                                 |

## Package on PyPI

Latest release: <a href="https://pypi.org/project/ov/0.1.5/">0.1.5</a>, the same as the documented version.

## Reproduce

```bash
git clone https://github.com/thorwhalen/ov && cd ov
git checkout 23e31c82ae12d5b7140dbfb2052c6d8b545858c3
pip install "epythet==0.2.24"
epythet quickstart . --ignore tests/ scrap/ examples/
```

The same data, for machines: <a href="build_info.json"><code>build_info.json</code></a> (schema version 1).


# ai-agents.html.md

<!-- generated by epythet -->

# For AI agents

`ov` ships artifacts for coding agents alongside its code. This page lists
them, says where each lives in the repository, and points at the
machine-readable copies of this documentation.

## Skills

Skills are folders holding a `SKILL.md` (the [Agent Skills](https://agentskills.io) format): a description that tells an agent when to use it and a body with the procedure. Install one into your agent with `gh skill` (any host: `--agent claude-code`, `copilot`, `cursor`, `codex`, `gemini`), or use the copy bundled in the wheel.

### `ov-analyze-arch`

How to run ov’s deterministic architecture-reconstruction analyzers and turn the scored facts into a rebuild blueprint (reconstruct) or an architecture audit (review). Load this for the software-design lens: framework/rendering/state/routing detection, source-map recovery, API surface synthesis, dependency/CVE flags.

Source: [`.claude/skills/ov-analyze-arch`](https://github.com/thorwhalen/ov/tree/HEAD/.claude/skills/ov-analyze-arch).

### `ov-analyze-ux`

How to run ov’s deterministic UX + accessibility analyzers, assemble a grounded evidence bundle, and add narrative UX judgment as the host. Load this for the UX lens: accessibility audit, contrast, Core Web Vitals, form friction, Nielsen heuristics, and severity-ranked usability findings with fixes.

Source: [`.claude/skills/ov-analyze-ux`](https://github.com/thorwhalen/ov/tree/HEAD/.claude/skills/ov-analyze-ux).

### `ov-capture`

How to run an `ov` capture session against a web app — launch the browser, choose which probes to enable, and inspect the resulting artifact store. Load this when you are capturing a target with ov (step 1 of study-web-app), choosing probes, or looking at what was captured.

Source: [`.claude/skills/ov-capture`](https://github.com/thorwhalen/ov/tree/HEAD/.claude/skills/ov-capture).

### `ov-operate`

How to drive a web app with ov’s operate primitives — read affordances, choose and execute the next action, log per-step intent, and detect no-progress. Load this when you (the host) are driving a journey: crawling, pursuing a goal (signup/checkout), or replaying a script, and need the perceive→decide→act→record loop.

Source: [`.claude/skills/ov-operate`](https://github.com/thorwhalen/ov/tree/HEAD/.claude/skills/ov-operate).

### `ov-report`

How to render ov’s Markdown report sections and produce the single agent-consumable synopsis. Load this for the final step of study-web-app — turning analyzed findings into reports and a deduplicated synopsis.json + SYNOPSIS.md.

Source: [`.claude/skills/ov-report`](https://github.com/thorwhalen/ov/tree/HEAD/.claude/skills/ov-report).

### `study-web-app`

Study, audit, reverse-engineer, or review a web app or website end-to-end with the `ov` tool. Use whenever the user says things like “go study this app”, “audit this site’s UX”, “reconstruct this frontend”, “what’s this site built with”, “review our web app”, “analyze the accessibility of this page”, or hands you a URL to investigate. You (the host agent) are the manager: you plan the journey, call ov’s deterministic tools, reason over the grounded evidence, and assemble the report. ov supplies the hands (drive) and eyes (observe + analyze); you supply the control loop.

Source: [`.claude/skills/study-web-app`](https://github.com/thorwhalen/ov/tree/HEAD/.claude/skills/study-web-app).

## Instruction files

Files agents read before working in this repository.

- [`CLAUDE.md`](https://github.com/thorwhalen/ov/tree/HEAD/CLAUDE.md): read by Claude Code

## Machine-readable documentation

This site publishes the same documentation in forms that fit an agent’s context window:

- [`llms.txt`](https://thorwhalen.github.io/ov/llms.txt): an index of every page with a one-line description ([llms.txt](https://llmstxt.org) format)
- [`ov.md`](https://thorwhalen.github.io/ov/ov.md): the whole documentation as one Markdown file
- `<page>.html.md`: a rendered Markdown twin of every page, advertised from each page’s `<head>` with `<link rel="alternate" type="text/markdown">`
- [`objects.inv`](https://thorwhalen.github.io/ov/objects.inv): the Sphinx inventory: a symbol-to-URL index (`sphobjinv convert plain objects.inv -`)


# api.html.md

# API reference

| [`ov`](_autosummary/ov.html.md#module-ov)   | `ov` -- OverView: agent-driven web reconnaissance & analysis.   |
|-----------------------------------------------------------------|-----------------------------------------------------------------|


