Persistence and recovery
Authorities: the reactive activation (RAC) and dependency/invalidation/recovery contracts are carried verbatim in Authorities — this chapter is pedagogical and does not replace them.
Persistence keeps representations of sources, results, evidence and operational records. The contract of each artifact determines which identities, bases and historical relations need to be reconstructed after reopening.
Identify what will be persisted
Separate authoritative source states, derived results, observation records and execution control. Each class has its own rules of formation and continuity. A common storage format can realize several classes while keeping their roles distinguishable.
Keep with the artifacts the references needed for interpretation: contract revisions, dependencies, authorities, time coordinates and pertinent realization bindings.
Reopen under the correct basis
Recovery reconstructs the identity of the records and verifies their coherence. A historical record is interpreted under its introduction basis. New transitions use the authority and currency conditions applicable to the new act.
A durable operation preserves the stable reference across preparation, attempts and reconciliation. Reopening a receipt keeps the earlier occurrence, allowing control to resume without producing a new attempt because of the read.
On the mechanical side, the persistence engine carries the same discipline: reopening yields exactly the acknowledged prefix, and whatever the crash cut away is reported and discarded rather than interpreted. FormaKV, the persistence engine documents that mechanism.
Integrity and completeness
Verify the digests and the bindings the format uses. Required fields, missing references and incompatible data must produce the refusal foreseen by the decoding contract.
An integral copy keeps the bytes or the canonical representation that its verifier examines. The validity of a transition also depends on the relations and bases required by the semantic contract.
Publication recovery
When an incorporation attempt was left without a known conclusion, reconstruct the outcome from the evolution and publication records. An already applied publication must be recognized by its original identity. A new attempt follows the reconciliation and retry contract.
Operational verification
Include in the validation process a save and reopen in another process. Compare identities, material fields, histories and query results. Record separately the behavior under corruption, artifact loss and interruption at the publication point.