TransFS::Document
The folded state of a document — the result of replaying its claim log in order. This is derived, never stored on disk as truth (the log is truth; this is what the future SQLite index materializes). See §1, §6.
Constructors
Fold a log into a Document. Claims are applied in timestamp order so that
a merged log (interleaved from two machines) folds deterministically;
within equal timestamps, file order is the tiebreak. The sort key is
{ts, original_index} because Crystal's sort_by is not stable on its
own — and a batch (create+version+name) shares one timestamp, so
without the index tiebreak the fold order would be undefined.
Class methods
Instance methods
created_at
Sourcehead
The current content = the newest version's hash (nil if no version yet: the document is a bare shell or a container). §5.
id
Sourcename
Sourcetags
Sourceversion_count
Sourceversions
Source