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.
>>> 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
|
Drive the target and capture everything. |
|
Run the deterministic UX + architecture analyzers over a captured run. |
|
Diff an analyzed run against a prior baseline run (own-target review mode). |
|
Render Markdown reports from analyses. |
|
Extract-and-aggregate many reports into one synopsis for downstream agents. |
|
|
|
Detect missing system dependencies and print exact install commands. |
Classes
|
Resolved settings for a capture/analysis run (keyword-only, env-overridable). |
|
Everything one |
|
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>)[source]#
Bases:
BaseModelEverything one
observeproduced; artifacts live in the store by id.
- 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)[source]#
Bases:
objectResolved settings for a capture/analysis run (keyword-only, env-overridable).
Construct with
from_env()for the env-aware default, or pass explicit fields to override. The instance is snapshotted into everyCaptureRun(settings_snapshot) for provenance.
- 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>)[source]#
Bases:
BaseModelOwn-target regression: a run vs a stored prior baseline run (review mode, §10).
Produced by
ov.analysis.diff.diff_runs()from two analyzedCaptureRun`s of the same target. The :attr:`finding_deltaslist is the SSOT;counts/has_driftare derived (@computed_field, so they serialize) andregressions/improvementsare views over the deltas – nothing is stored twice.>>> 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[str, int]#
Per-status tallies derived from the deltas (the headline of a diff).
- property improvements: list[FindingDelta]#
Deltas that were resolved or got better since the baseline.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- property regressions: list[FindingDelta]#
Deltas that got worse or are newly present (a downstream fix list).
- ov.analyze(run, *, lenses=('ux', 'arch'), llm=None, store=None)[source]#
Run the deterministic UX + architecture analyzers over a captured run.
Runs fully without a model (
llm=Noneis 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:
- ov.check_requirements(*, components=None, verbose=True)[source]#
Detect missing system dependencies and print exact install commands.
componentsfilters which groups to check ("browser","node","sidecar","clis");Nonechecks 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.>>> rep = check_requirements(components=["clis"], verbose=False) >>> isinstance(rep, RequirementReport) True
- Return type:
- ov.diff(run, *, baseline=None, store=None)[source]#
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) – an analyzedCaptureRunor a run id.baseline (
Any) – a run/run-id to compare against, orNoneto auto-discover the latest prior run of the same target.store (
Any) – aCaptureStore, a path, orNone.
- Return type:
- Returns:
A
RunDiff, orNoneif no baseline exists yet (the first review run). SetsFinding.diff_statuson the run in place and persists adiff_<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)[source]#
Drive the target and capture everything. Zero-config default works.
- Parameters:
url (
str) – the target to study.goal (
str|None) – a natural-language objective (goal-pursuit is host policy; the deterministic core records it and does the baseline journey).journey (
list|None) – an optional scripted action list (guided-replay), each item anActionor a dict like{"type": "click", "ref": "e3"}.mode (
str) –"reconstruct"(foreign target) or"review"(own target).probes (
Any) –"default","all", or an iterable of probe names.headed (
bool) – run the browser headed (default headless).store (
Any) – aCaptureStore, a path, orNone.crawl_pages (
int|None) – if set (>1), politely crawl that many same-origin pages.config (
OvConfig|None) – an explicitOvConfig(overridesheaded).authorized (
bool|None) – acknowledge authorization to study a foreign target.read_only (
bool) – abort every non-GET/HEAD/OPTIONS request in the browser (pages that POST on load send nothing); the aborted ones are listed in ablocked_requestsartifact and a run note.
- Return type:
- Returns:
The populated
CaptureRun(also persisted to the store).
- ov.overview(url, **kw)[source]#
observe -> analyze -> report -> synopsis, the one-liner.Returns the synopsis path/handle. This is the pit-of-success entry point.
- Return type:
- ov.report(run_or_analyses, *, sections='default', out_dir=None, store=None)[source]#
Render Markdown reports from analyses. Returns the written paths/keys.
- Return type:
- ov.synopsis(reports_or_dir, *, out=None, store=None)[source]#
Extract-and-aggregate many reports into one synopsis for downstream agents.
- Return type:
Modules
|
|
Analysis layer: deterministic analyzers over captured artifacts (Phases 2-3). |
|
Single source of truth (SSOT) for the |
|
Capture layer: drive a browser and record behavioral + static streams. |
|
Configuration -- the single source of truth for |
|
The operate layer -- deterministic, LLM-free tool primitives (the "hands"). |
|
The plugin mechanism: decorated functions registered into a dict (§3.2). |
|
Report layer: registered Markdown sections + the synopsis (Phase 2). |
|
Internal helpers: content-addressing, hashing, redaction, and requirements. |