Skip to content

Type Alias: Observation

@termwright/driver


@termwright/driver / Observation

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.

T