recording an operation appends one record instead of rewriting .loot/ops: the log becomes a header plus one self-contained, checksummed record per operation, and oplog::record reads only the tail and appends under a per-position lock instead of reading, decoding, re-encoding and rewriting the whole file; a legacy log is still read and is rewritten as records on its next append, keeping every operation, view and barrier; a torn final record is dropped and cut off by the next append, while other damage refuses the read; op_index reads only the tail and the harbor seal readers decode the log once; one record onto a 100-op and a 1,000-op log took 780 and 7,083 allocations and rewrote 10,827 and 107,127 bytes, and now takes 61 at both lengths and appends 129 bytes; the new allocation test fails 780 against 7,083 on the old record, the migration test goes red (0 passed, 1 failed) when the rewrite drops a barrier, the torn-tail test when damage reads as torn, the race test when appends skip the lock (43 of 80 operations kept), and the suite is green (vnkowyms) 61a36338 · dbf3dbe6…
Renames are not followed. loot's tree maps a path to an address, so a rename is a delete and an add. This list is the history of the name, not of the bytes.