Expand description
euv-automation
Dev-only UI automation testing driver, AI Schema v1/v2 (euv.ai.schema.v1 /
euv.ai.schema.v2) same-frame runtime/layout introspection protocol,
non-blocking async DevAutomationBridge, and versioned euv.ui-e2e.v1
recorder/replayer/verdict engine. All live dev bridge hooks compile to
zero-cost no-ops under release builds (#[cfg(not(debug_assertions))]).
Structs§
- AiA11y
Node - Serializable semantic accessibility node exported from
App::a11y_tree(). - AiActionability
Report - Strict pre-action actionability verification report including real hit-test occlusion diagnostics.
- AiApp
Hooks - Optional host-application telemetry and interactive control hooks bound to
AiSchemaProtocolorDevAutomationBridge. - AiBatch
Report - Aggregated result returned by
AiSchemaRequest::ExecuteBatch. - AiBatch
Step Result - Per-action execution outcome entry emitted inside
AiBatchReport. - AiDelta
Tracker - Stateful per-session delta tracker computing added/updated/removed node diffs without resending full trees.
- AiEdges
Summary - Serializable four-sided inset values
(top, right, bottom, left)for margin and padding diagnostics. - AiFont
Summary - Serializable typography and text wrapping metadata exported per
AiLayoutNode. - AiHit
Test Result - Result of an AI Schema
HitTestquery at logical coordinates(x, y). - AiInteraction
Info - Serializable pointer, focus, hover, and cursor interaction snapshot.
- AiLayout
Anomaly - Automatically detected layout or visual anomaly reported in
AiRuntimeSnapshot. - AiLayout
Constraints - Serializable layout constraints, flex/grid track config, spacing, and DPR-scaled physical bounds.
- AiLayout
Node - Hierarchical scene and layout node exported by AI Schema v1/v2.
- AiLogical
Node - Lightweight logical/semantic tree entry separated from computed layout and paint layers.
- AiNode
Digest - Compact per-node change digest retained by
AiDeltaTrackerfor incremental revision diffs. - AiObservation
Frame - Coalesced latest-frame observation published from the UI thread with explicit dropped/gap markers.
- AiPaint
Node - Lightweight paint-layer entry recording stacking order, clip chain, visibility, and redaction.
- AiPerf
Info - Serializable rendering and scene performance metrics exported to AI agents.
- AiReactive
Info - Serializable reactive graph telemetry exported from
euv::reactive_stats(). - AiRect
- Serializable rectangle geometry
(x, y, width, height)in logical or physical pixels. - AiRedacted
Region - Auditable record of a sensitive region masked out of both snapshot text and screenshot pixels.
- AiRevision
Delta - Incremental scene delta computed between
from_revisionandto_revision. - AiRuntime
Meta - Serializable platform capabilities and registered dynamic OTA metadata.
- AiRuntime
Snapshot - Complete AI Schema v1/v2 (
euv.ai.schema.v1/euv.ai.schema.v2) runtime snapshot. - AiSame
Frame Capture - Same-frame diagnostic bundle pairing
frame_id,scene_revision, asset version, logical/layout/paint/a11y trees, masked screenshot regions, and optional redacted RGBA FNV-1a digest. - AiSchema
Protocol - Stateless AI Schema v1/v2 protocol dispatcher and runtime inspector facade.
- AiSchema
Response - Unified AI Schema v1/v2 JSON response envelope.
- AiStyle
Summary - Compact visual style summary attached to each
AiLayoutNode. - AiSubtree
Result - Result returned by partial subtree queries (
AiSchemaRequest::QuerySubtree). - AiTransform
Summary - Serializable 2D paint transform summary exported per
AiLayoutNode. - AiVirtual
List Meta - Virtualized scroll container metadata exposing logical scroll height and mounted child count.
- AiWindow
Info - Serializable window and viewport state exported to AI agents.
- Declared
Platform Adapter - Declarative host adapter descriptor for Web, Android, iOS, iPadOS, Desktop, HarmonyOS, Wearable, MiniApp, QuickApp, and Terminal targets.
- DevAutomation
Bridge - Dev-only live non-blocking AI Schema v1/v2 loopback inspector bridge; compiles to a zero-sized no-op in release builds.
- DevBridge
Session - Short-lived capability session scoped to a specific application and capability tier.
- Headless
E2eAdapter - In-process headless E2E adapter wrapping an
euv::Appand explicitly taggingHeadlessSimulatedfidelity. - Order
Fixture Config - Fault-injection and timing configuration for
OrderWorkspaceFixture. - Order
Record - Single deterministic order record stored inside the Order List & Editor reference fixture.
- Order
Store Handle - Shared host-side inspection handle for asserting authoritative business state alongside UI assertions.
- Order
Workspace Fixture - Deterministic Order List & Editor closed-loop E2E reference fixture and flow builder.
- Terminal
CliPipe Adapter - Captured pure-text CLI execution snapshot verified by
TerminalCliPipeAdapterwithout faking graphical screenshots. - Terminal
TuiGrid Adapter - Captured PTY terminal TUI grid snapshot verified by
TerminalTuiGridAdapterusing character-cell output and cursor coordinates. - UiAnomaly
Audit Config - Tunable rule thresholds and toggles controlling
UiAnomalyAuditor. - UiAnomaly
Auditor - Stateless unified UI logic anomaly detection engine operating across
App,SceneTree,DisplayList, andFramebuffer. - UiAnomaly
Finding - Single UI logic or visual anomaly finding emitted by
UiAnomalyAuditor. - UiAnomaly
Report - Structured audit report returned by
UiAnomalyAuditorandUiAutomator::audit_ui_anomalies. - UiAutomator
- High-level UI automation driver operating directly over a live
euv::Appinstance. - UiE2e
Adapter Capabilities - Declared input/output capabilities and host availability for a cross-platform E2E adapter.
- UiE2e
Attempt Record - Single execution attempt record preserved inside
UiE2eResultV1::attemptsso retries never overwrite initial failures. - UiE2e
Environment Meta - Environment and honesty metadata embedded in
UiE2eResultV1. - UiE2e
Event LogEntry - Structured execution event appended to
UiE2eResultV1::event_log. - UiE2e
Fixture Meta - Fixture isolation, seed, reset, and cleanup metadata embedded in a
UiE2eFlowV1. - UiE2e
Flow V1 - Versioned
euv.ui-e2e.v1executable UI E2E flow shared across manual recording, AI runs, CLI, and CI. - UiE2e
Html Report - Self-contained HTML5 report renderer linking
UiE2eResultV1steps with same-frame layout, screenshot, and event evidence. - UiE2e
Locator Change - Single locator update entry inside a
UiE2eMigrationProposal. - UiE2e
Migration Proposal - Reviewable locator-only migration proposal carrying a mandatory
assertions_changed: falseinvariant. - UiE2e
Platform Matrix Report - Multi-platform release gate report aggregating independent per-platform E2E runs without letting headless stand in for real devices.
- UiE2e
Platform RunReport - Per-platform E2E execution outcome preserving honest 4-state adapter status (
pass/fail/inconclusive/unsupported). - UiE2e
Recorder - Semantic UI E2E action recorder merging consecutive scroll/drag moves, redacting secrets, and never emitting idle sleeps.
- UiE2e
Replayer - Deterministic
euv.ui-e2e.v1flow replayer andeuv.ui-e2e.result.v1verdict engine. - UiE2e
Result V1 - Executor-produced
euv.ui-e2e.result.v1verdict artifact preserving initial failure records and bounded retry history. - UiE2e
Retirement Record - Explicit approved retirement record required before a flow may be classified as
UiE2eVerdict::Retired. - UiE2e
Step Evidence - Same-frame artifact evidence references linked to a
UiE2eStepResultV1and rendered in HTML reports. - UiE2e
Step Result V1 - Per-step execution result recorded into
UiE2eResultV1, includingNotRunfor skipped trailing steps. - UiE2e
Step V1 - Single versioned step inside a
UiE2eFlowV1with explicit step ID and bounded timeout. - UiE2e
Target V1 - Target execution environment metadata stored inside a
UiE2eFlowV1. - UiE2e
Virtual Clock - Injectable deterministic monotonic clock (in milliseconds) enabling exact timeout testing in headless E2E runs.
- UiStep
Result - Execution telemetry and pass/fail result for a single
UiTestStep. - UiTest
Report - Aggregated UI automation test run report.
- UiTest
Script - Declarative JSON-serializable end-to-end UI automation test script.
Enums§
- AiAction
- Interactive UI action executable remotely through the AI Schema v1/v2 protocol.
- AiAnomaly
Kind - Categories of layout or visual defects automatically detected for AI diagnostics.
- AiCapture
Source - Authoritative pixel capture source recorded on
AiSameFrameCapture. - AiGesture
Kind - High-level pointer or multi-touch gesture synthesized by AI agents.
- AiLayout
State - Layout measurement status reported per node in AI Schema v2 so hidden or unmounted nodes never report fabricated geometry.
- AiSchema
Request - Structured AI Schema v1/v2 request envelope accepted by
AiSchemaProtocol::handle. - Automation
Error - Error returned when a UI automation query, interaction, or assertion fails.
- DevBridge
Capability - Session capability tier separating read-only runtime observation from interactive UI actions.
- UiAnomaly
Rule - Rules evaluated by
UiAnomalyAuditoracross scene layout, contrast, scroll chaining, reactive repaints, and display-list Z-order. - UiAnomaly
Severity - Severity classification assigned to each
UiAnomalyFinding. - UiE2e
Action Kind - Interactive action verb executed inside a
UiE2eStepOp::Dostep. - UiE2e
Adapter Status - Four-state honesty verdict for cross-platform adapter execution and release matrix gating.
- UiE2e
Assert Kind - Observable verification predicate evaluated inside a
UiE2eStepOp::Assertstep. - UiE2e
Execution Mode - Honest execution fidelity classification distinguishing simulated headless runs from real platform hosts.
- UiE2e
Failure Category - Canonical failure taxonomy classification exported in
euv.ui-e2e.result.v1. - UiE2e
Locator - Semantic unique-target locator used by
euv.ui-e2e.v1steps (matching 0 or >1 nodes always fails). - UiE2e
Migration Status - Lifecycle review status of a locator-only
UiE2eMigrationProposal. - UiE2e
Platform - Cross-platform E2E target catalog covering all required graphical, mobile, desktop, wearable, mini-app, and terminal targets.
- UiE2e
Step Op - Structured step operation discriminated cleanly into
do,wait, orassert(never arbitrary sleeps). - UiE2e
Step Status - Per-step execution status inside
UiE2eResultV1. - UiE2e
Verdict - Top-level execution verdict classified by the
euv.ui-e2e.result.v1verdict engine. - UiE2e
Wait Kind - Bounded wait predicate evaluated inside a
UiE2eStepOp::Waitstep. - UiSelector
- Declarative semantic UI node locator shared by
UiAutomator, AI Schema v1/v2, andeuv.ui-e2e.v1. - UiTest
Step - Declarative automation step executed inside a
UiTestScript. - Value
- Represents any valid JSON value.
Constants§
- AI_
ACTIONABILITY_ AMBIGUOUS - Actionability check result code indicating more than one visible node matched the locator.
- AI_
ACTIONABILITY_ DISABLED - Actionability check result code indicating the target node is disabled.
- AI_
ACTIONABILITY_ NOT_ FOUND - Actionability check result code indicating zero visible nodes matched the locator.
- AI_
ACTIONABILITY_ OCCLUDED - Actionability check result code indicating another layer or node occludes the target hit-test point.
- AI_
ACTIONABILITY_ OK - Actionability check result code indicating the target node is unique, visible, enabled, and receives hit-testing.
- AI_
ACTIONABILITY_ UNMEASURED - Actionability check result code indicating the target node is unmeasured without valid layout geometry.
- AI_
CAPTURE_ SOURCE_ GPU_ READBACK - Canonical same-frame capture source identifier for GPU readback capture.
- AI_
CAPTURE_ SOURCE_ OS_ WINDOW - Canonical same-frame capture source identifier for OS window capture.
- AI_
CAPTURE_ SOURCE_ SOFTWARE_ BUFFER - Canonical same-frame capture source identifier for CPU software framebuffer capture.
- AI_
CAPTURE_ SOURCE_ UNSYNCED - Canonical same-frame capture source identifier when frame pixels cannot be verified synchronized.
- AI_
SCHEMA_ JSON_ SPEC - Formal JSON Schema specification describing
AiSchemaRequest,AiSchemaResponse, andAiRuntimeSnapshot. - AI_
SCHEMA_ PROTOCOL_ VERSION - Version identifier for the euv AI Runtime & Layout Introspection Schema v1 protocol.
- AI_
SCHEMA_ REDACTED_ VALUE - Canonical redaction marker replacing sensitive input or secret-keyed node content in AI snapshots.
- AI_
SCHEMA_ V2_ PROTOCOL_ VERSION - Version identifier for the euv AI Runtime & Layout Introspection Schema v2 protocol.
- ANOMALY_
DEFAULT_ CLIP_ OVERFLOW_ TOLERANCE - Default tolerance in logical pixels for unscrollable
Overflow::Hiddenclipping checks. - ANOMALY_
DEFAULT_ EDGE_ PROTRUSION_ TOLERANCE - Default tolerance in logical pixels for child protrusion beyond a bordered parent card.
- ANOMALY_
DEFAULT_ MAX_ CONTROL_ HEIGHT_ DELTA - Default maximum allowed height delta in logical pixels among sibling toolbar controls.
- ANOMALY_
DEFAULT_ MIN_ CONTRAST_ ERROR - Default WCAG 2.1 hard error contrast floor ratio (
3.0:1). - ANOMALY_
DEFAULT_ MIN_ CONTRAST_ NORMAL_ TEXT - Default WCAG 2.1 AA normal-body text contrast warning threshold (
4.5:1). - ANOMALY_
DEFAULT_ MIN_ NESTED_ INSET - Default minimum inset in logical pixels between a bordered rounded parent card and a nested bordered child panel/table.
- ANOMALY_
DEFAULT_ SAFE_ AREA_ TOLERANCE - Default tolerance in logical pixels for safe-area collision checks.
- ANOMALY_
DEFAULT_ SIBLING_ OVERLAP_ TOLERANCE - Default tolerance in logical pixels for normal-flow sibling overlap checks.
- DEV_
AI_ INSPECTOR_ ADDR - Default localhost address for the dev-only AI Schema HTTP/JSON inspector server.
- DEV_
BRIDGE_ DEFAULT_ BUDGET_ US - Default UI-thread frame budget in microseconds for
DevAutomationBridge::poll. - DEV_
BRIDGE_ ERR_ ACTION_ FORBIDDEN - Structured error code emitted with HTTP
403 Forbiddenwhen an action is attempted on a read-only session. - DEV_
BRIDGE_ ERR_ BACKPRESSURE - Structured backpressure error code emitted with HTTP
429 Too Many Requestswhen the bounded control queue is saturated. - DEV_
BRIDGE_ ERR_ SESSION_ EXPIRED - Structured error code emitted with HTTP
401 Unauthorizedwhen a short-lived session token has expired. - DEV_
BRIDGE_ ERR_ UNAUTHORIZED - Structured error code emitted with HTTP
401 Unauthorizedwhen a session token is missing or invalid. - DEV_
BRIDGE_ HEADER_ SESSION_ TOKEN - HTTP header carrying a short-lived dev automation capability session token.
- DEV_
BRIDGE_ QUEUE_ CAPACITY - Default fixed bounded control queue capacity between the async network worker and UI thread.
- E2E_
ERR_ AMBIGUOUS_ LOCATOR - Error code emitted when more than one visible node matches a strict unique locator.
- E2E_
ERR_ ASSERTION_ FAILED - Error code emitted when an explicit E2E assertion fails.
- E2E_
ERR_ ASSERTION_ MUTATION_ FORBIDDEN - Error code emitted when a migration proposal attempts to alter original assertions.
- E2E_
ERR_ DISABLED - Error code emitted when a target control is disabled and cannot be interacted with.
- E2E_
ERR_ ENVIRONMENT_ BLOCKED - Error code emitted when the execution environment is blocked before running steps.
- E2E_
ERR_ FLOW_ RETIRED - Error code emitted when a flow carries an approved retirement record.
- E2E_
ERR_ LOCATOR_ NOT_ FOUND - Error code emitted when zero visible nodes match a strict unique locator.
- E2E_
ERR_ OCCLUDED - Error code emitted when another overlay or node occludes a target’s hit-test point.
- E2E_
ERR_ RUNTIME_ ERROR - Error code emitted when runtime stepping or action dispatch fails.
- E2E_
ERR_ TIMEOUT - Canonical failure taxonomy code for step/wait timeouts.
- E2E_
ERR_ UNSUPPORTED_ ADAPTER - Error code emitted when the requested execution adapter is unsupported.
- E2E_
ERR_ UNSUPPORTED_ SCHEMA - Error code emitted when a flow declares an unsupported schema version.
- E2E_
ERR_ WAIT_ TIMEOUT - Error code emitted when a bounded wait condition expires without becoming satisfied.
- ORDER_
FIXTURE_ NAME - Canonical fixture name stored in
UiE2eFixtureMeta. - ORDER_
FLOW_ ID_ EDIT_ QTY - Canonical happy-path flow identifier.
- ORDER_
HEADING_ LOADING - Canonical heading text while the order list is still loading.
- ORDER_
HEADING_ READY - Canonical heading text once the order list finishes loading.
- ORDER_
ROUTE_ EDIT - Route path for the order quantity editor view.
- ORDER_
ROUTE_ LIST - Route path for the virtualized order list view.
- ORDER_
STATUS_ IDLE - Canonical status label shown before any save occurs.
- ORDER_
STATUS_ INVALID - Canonical status label shown when the user enters an invalid quantity.
- ORDER_
STATUS_ SAVED - Canonical status label shown once an async save completes.
- ORDER_
STATUS_ SAVING - Canonical status label shown while an async save is in flight.
- ORDER_
TEST_ ID_ API_ TOKEN - Stable
test_idfor the sensitive API token password input used for redaction audits. - ORDER_
TEST_ ID_ EDITOR_ BACK - Stable
test_idfor the Back-to-Orders button in the order editor. - ORDER_
TEST_ ID_ EDITOR_ HEADING - Stable
test_idfor the editor heading. - ORDER_
TEST_ ID_ EDITOR_ QTY_ INPUT - Stable
test_idfor the quantity input in the order editor. - ORDER_
TEST_ ID_ EDITOR_ SAVE - Default
test_idfor the Save button in the order editor. - ORDER_
TEST_ ID_ EDITOR_ STATUS - Stable
test_idfor the async save status indicator in the order editor. - ORDER_
TEST_ ID_ HEADING - Stable
test_idfor the order list heading. - ORDER_
TEST_ ID_ LIST - Stable
test_idfor the virtualized order list container. - ORDER_
TEST_ ID_ MODAL_ BLOCKER - Stable
test_idfor the occlusion modal blocker overlay. - ORDER_
TEST_ ID_ ROW_ DEMO_ 001 - Stable
test_idfor the first demo order row (demo-001). - ORDER_
TEST_ ID_ ROW_ DEMO_ 001_ OPEN - Stable
test_idfor the first demo order Edit button. - ORDER_
TEST_ ID_ ROW_ DEMO_ 001_ QTY - Stable
test_idfor the first demo order quantity label. - ORDER_
TEST_ ID_ ROW_ UNMOUNTED - Stable
test_idfor the off-screen unmounted virtual row placeholder. - UI_
E2E_ DEFAULT_ FRAME_ SAFETY_ CAP - Default safety cap on frames stepped per wait loop when bounded by monotonic/virtual clock.
- UI_
E2E_ DEFAULT_ TIMEOUT_ MS - Default bounded per-step timeout in milliseconds.
- UI_
E2E_ DEFAULT_ VIRTUAL_ FRAME_ MS - Default virtual millisecond increment per frame when using an injected virtual clock.
- UI_
E2E_ FLOW_ SCHEMA_ V1 - Canonical schema version identifier for versioned UI E2E flow files.
- UI_
E2E_ MAX_ RETRIES - Maximum permitted bounded clean retry count for transient failures.
- UI_
E2E_ MAX_ TIMEOUT_ MS - Maximum permitted bounded per-step timeout in milliseconds.
- UI_
E2E_ MIGRATION_ SCHEMA_ V1 - Canonical schema version identifier for locator-only migration proposal artifacts.
- UI_
E2E_ RESULT_ SCHEMA_ V1 - Canonical schema version identifier for UI E2E verdict result artifacts.
Traits§
- UiE2e
Platform Adapter - Cross-platform E2E execution adapter contract separating shared flow semantics from platform-specific input/output capture.
Type Aliases§
- AiConfig
Handler - Callback mutating any host-application runtime configuration key with a JSON value.
- AiConfig
Reader - Callback reading host-application runtime configuration entries for requested keys (empty = all).
- AiGame
Control Handler - Callback dispatching a game engine command with structured JSON parameters.
- AiNavigate
Handler - Callback switching the active application route.
- AiTheme
Handler - Callback switching the active design scheme and/or appearance mode (
Light/Dark).