attest Docs

Reference

Witness states

Interpret lifecycle, reconciliation status, execution state, and recovery status.

lifecycle #

ValueMeaning
OPENObservations can still be added. The pair stays open indefinitely until finalize is called.
FINALIZEDFinalize was called. reconciliationStatus, divergences, finalizedAt, reconciliationFormat, and reconciliationDigest are fixed. New observations return 409.

reconciliationStatus #

ValueObservationsMeaning
matchedAssembly and deliveryEvery compared field is equal.
divergentAssembly and deliveryAt least one compared field differs. Each difference is listed in divergences.
incompleteAssembly onlyFinalized without a delivery observation.
orphanedDelivery onlyFinalized without an assembly observation.
nullOne stage, still OPENNothing 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.

fieldCompares
event_type_relationshipAssembly eventType and delivery eventType.
routing_continuityAssembly destination and delivery source, only when both are present.
actionAssembly action and delivery action.
evidenceThe canonical evidence objects.

classification is always material_mismatch. timestamp, eventId, stage, and outcome are never compared.

Response · 200 · Divergent pair (excerpt)
{
  "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 #

FieldDescription
finalizedAtWhen the pair was finalized. null while OPEN.
reconciliationFormatattest-witness-reconciliation-v1 once finalized.
reconciliationDigestSHA-256 of the canonical reconciliation record: pair ID, account, environment, status, divergences, and both observation hashes. It contains no clock value.