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 lifecycle:
Probe.attach()– subscribe event listeners before navigation (used by the streaming probes: network, console, navigation, websocket, sse).Probe.capture()– snapshot the current state into artifacts (used by the per-state probes: dom, screenshot, perf, storage, fingerprint).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
Import the builtin probe modules so their |
Classes
|
Base class for probes; override only the lifecycle hooks you need. |
|
Everything a probe needs, injected by the |
- class ov.capture.probes.Probe[source]#
Bases:
objectBase class for probes; override only the lifecycle hooks you need.
- class ov.capture.probes.ProbeContext(store, run, config, page=None, cdp=None, step=None, extras=dict())[source]#
Bases:
objectEverything a probe needs, injected by the
CaptureSession.extrasis 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()[source]#
Import the builtin probe modules so their
@register_proberuns.Safe to call repeatedly (imports are cached). It is also invoked once at the bottom of this module so that simply importing
ov.capture.probesyields a fully-populatedPROBE_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:
Modules
Accessibility-signals probe: computed text styles (for contrast) + optional axe. |
|
Assets probe: a content-addressed inventory of loaded resources. |
|
Console probe: console messages, page errors, and unhandled rejections. |
|
DOM probe: serialized DOM + ARIA snapshot (agent view) + full AX tree (evidence). |
|
Fingerprint probe: a built-in, license-clean technology detector. |
|
Navigation probe: URL changes, redirects, frame tree, and SPA history. |
|
Network probe: request/response metadata + bodies, accumulated from events. |
|
Performance probe: Navigation Timing, paint, web-vitals entries, CDP counters. |
|
Screenshot probe: full-page PNG per captured state. |
|
SSE probe: Server-Sent-Event frames via CDP (Chromium-only). |
|
Storage probe: cookies, localStorage, sessionStorage, IndexedDB names. |
|
WebSocket probe: frames sent/received and open/close, first-class (D1). |