Reference
Witness states
Interpret lifecycle, reconciliation status, execution state, and recovery status.
lifecycle #
| Value | Meaning |
|---|---|
OPEN | Observations can still be added. The pair stays open indefinitely until finalize is called. |
FINALIZED | Finalize was called. reconciliationStatus, divergences, finalizedAt, reconciliationFormat, and reconciliationDigest are fixed. New observations return 409. |
reconciliationStatus #
| Value | Observations | Meaning |
|---|---|---|
matched | Assembly and delivery | Every compared field is equal. |
divergent | Assembly and delivery | At least one compared field differs. Each difference is listed in divergences. |
incomplete | Assembly only | Finalized without a delivery observation. |
orphaned | Delivery only | Finalized without an assembly observation. |
null | One stage, still OPEN | Nothing to compare yet. |
While a pair is OPEN with both observations, reconciliationStatus shows the current comparison (matched or divergent). It becomes permanent only when the pair is finalized. incomplete and orphaned appear only on finalized pairs.
divergences #
Each entry names one compared field that differs between the two observations.
| field | Compares |
|---|---|
event_type_relationship | Assembly eventType and delivery eventType. |
routing_continuity | Assembly destination and delivery source, only when both are present. |
action | Assembly action and delivery action. |
evidence | The canonical evidence objects. |
classification is always material_mismatch. timestamp, eventId, stage, and outcome are never compared.
{
"pairId": "pr_divergent00000001",
"lifecycle": "FINALIZED",
"reconciliationStatus": "divergent",
"divergences": [
{
"field": "evidence",
"assembly_value": { "actionId": "transfer_82", "amount": 500, "currency": "USD" },
"delivery_value": { "actionId": "transfer_82", "amount": 5000, "currency": "USD" },
"classification": "material_mismatch"
}
]
}assemblyObserved, deliveryObserved, finalized #
These booleans report what attest durably holds: whether an assembly or delivery observation was accepted, and whether finalize was called. They are facts about attest's records, not reconciliation results.
executionState #
Always unknown, on every witness response. attest observes the boundary. It does not observe your operation, so it never claims whether the operation executed.
recoveryStatus #
Returned only by the SDK's resumeWitness(), never by the HTTP API. The only value is delivery_required: the pair is OPEN with no delivery observation, and the SDK left it open rather than finalize it as incomplete.
Finalized record fields #
| Field | Description |
|---|---|
finalizedAt | When the pair was finalized. null while OPEN. |
reconciliationFormat | attest-witness-reconciliation-v1 once finalized. |
reconciliationDigest | SHA-256 of the canonical reconciliation record: pair ID, account, environment, status, divergences, and both observation hashes. It contains no clock value. |