RelaySessionSnapshot class
ONE session, as the relay sees it: the engine's RelayObservation plus
everything the four read tools returned for it.
A pure VALUE — every collection is copied at construction and handed back unmodifiable, so the brief a relay reasons over cannot be edited underneath it.
Constructors
-
RelaySessionSnapshot({required RelayObservation observation, required RelayWorktreeSnapshot worktree, required List<
RelayFlareRecord> flares, required List<RelayTelemetryRecord> telemetry, RelayGateRecord? openGate}) -
Creates the snapshot;
flaresandtelemetryare copied defensively.
Properties
-
flares
→ List<
RelayFlareRecord> -
What
flares.readreturned, in the order the reader vended it. Unmodifiable.final - hashCode → int
-
The hash code for this object.
no setterinherited
- observation → RelayObservation
-
The engine's observation this snapshot answers.
final
- openGate → RelayGateRecord?
-
What
gates.readreturned; null when the session is parked at no gate.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
telemetry
→ List<
RelayTelemetryRecord> -
What
telemetry.readreturned, in the order the reader vended it. Unmodifiable.final - worktree → RelayWorktreeSnapshot
-
What
worktree.readreturned.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - The CANONICAL evidence object the brief carries — one nested JSON value over all five reads. Map keys inside each read are sorted; the flare and telemetry ROWS keep the order their reader vended, because that order is itself evidence.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited