//! Record history — what a version row means, read back as an edit. //! //! The port of `packages/core/src/engine/history/`. History is DERIVED, not //! authored: the file's own triggers snapshot a row before every update and //! delete, below the op layer, so no code path can skip it and no version row //! ever travels between devices. Everything in this directory is the READING //! half of that arrangement, and every bit of it is pure — a phone draws the //! same trail from the same rows as the server does, which is the whole point //! of a history nobody can quietly disagree with. //! //! Five pieces, in the order a screen uses them: //! //! * [`fields`] — what a kind SHOWS and what a restore may write back, one //! declaration per versioned kind. A whole-row snapshot is not a reading. //! * [`diff`] — what changed, at column level and at word level. //! * [`actor`] — WHO left the version behind, as far as `actor_role` can //! honestly say. A token, never a sentence. //! * [`entries`] — the pairing: a version row is the state BEFORE the edit //! that dated it, so an edit is one row read against the NEXT NEWER one. //! * [`restorable`] — whether this particular record can be put back, and //! the sentence saying why not. pub mod actor; pub mod diff; pub mod entries; pub mod fields; pub mod restorable; pub mod trail;