Type Alias: Observation
@termwright/driver / Observation
Type Alias: Observation<T>
Section titled “Type Alias: Observation<T>”Observation<
T> = {evidence:ObservationEvidence;status:"known";value:T; } | {evidence:AuthoritativeObservationEvidence;reason:ObservationAbsentReason;status:"absent"; } | {reason:ObservationUnknownReason;status:"unknown"; } | {capability:string;reason:ObservationUnsupportedReason;status:"unsupported"; }
Defined in: protocol/dist/contract-DRS0RIwS.d.ts:47
A fact with its epistemic state preserved.
Consumers must never coerce unknown/unsupported to false, nor absence to
an empty value. That rule prevents assertions from passing because a probe
simply could not observe the requested property.
Type Parameters
Section titled “Type Parameters”T