Skip to content

EngineSnapshot

Namespace: E2E.Engine

public sealed record EngineSnapshot : IEquatable<EngineSnapshot>

Upstream’s EngineSnapshot (engine/index.ts): what an engine’s observe returns. A snapshot with TreeUnavailable carries only the root reference and the pixels.

Inheritance: object

Implements: IEquatable<EngineSnapshot>

View source

public EngineSnapshot(EngineNode Root, ViewportSize Viewport)

Upstream’s EngineSnapshot (engine/index.ts): what an engine’s observe returns. A snapshot with TreeUnavailable carries only the root reference and the pixels.

Parameters

Name Type Description
Root EngineNode
Viewport ViewportSize

public bool? KeyboardVisible { get; init; }

Whether an on-screen keyboard is showing, when the engine measured it.

Value: bool?

public string? Location { get; init; }

Where the surface was when captured, when the platform has a location.

Value: string

public int? MaskedRegionCount { get; init; }

How many regions the engine masked over the secure nodes it saw; the harness checks it covers every secure node. An engine asked for pixels (Pixels) that cannot mask every secure node on screen omits Pixels and still reports the regions it could mask, fewer than the secure nodes, so the session marks the observation MaskingUnproven instead of a missing screenshot.

Value: int?

public ObservationPixels? Pixels { get; init; }

The screen’s pixels, when the engine took them.

Value: ObservationPixels

public EngineNode Root { get; init; }

Value: EngineNode

public EngineTabs? Tabs { get; init; }

The tabs the surface has open, when it has more than one, such as a browser with a tab the app opened. The harness tells the model which tab it reads and how many there are, and the agent switches between them through SwitchTab and closes them through CloseTab. Null with one tab.

Value: EngineTabs

public bool TreeUnavailable { get; init; }

The semantic tree could not be read; Pixels are the only evidence of the screen.

Value: bool

public bool Truncated { get; init; }

True when the engine left nodes out of the tree to stay within its budget.

Value: bool

public ViewportSize Viewport { get; init; }

Value: ViewportSize