Format versions

Format versions

loot’s stored files and its sync bundles begin with two bytes, [major][minor], except a few plain-text and fixed-width files that cannot be misread. A newer loot reads every older major; an older loot refuses a newer one rather than misread it.

The current format is 14.0. The minor stays 0: every layout change so far has taken a new major. Why the gate works this way is on Format versions and compatibility.

The rules

  • A reader accepts any major from 1 to its own. A higher major, or 0, fails with unsupported format version vN — upgrade loot (this build reads up to vM).
  • A writer writes the current major, except that a bundle carrying a change as a delta is stamped 15, so a build that reads no deltas refuses that bundle alone. Before a push, loot asks the host which major it reads, and if the host says an older one, nothing is sent. Upgrading your loot doesn’t fix that; the host’s operator has to.
  • The contract number in --json output is the format major, so it moves with every bump. See Porcelain and --json contracts.
loot --version --json     # {"contract":14,"version":"0.4.30"}
loot remote info origin   # the host's format, e.g. v14.0

Majors

MajorWhat changedFirst release that reads it
1The format marker itself. Earlier files are unreadable.v0.1.0
2A per-object compression flag.v0.1.0
3Each change records its author’s public key and signature.v0.1.0
4Attestations, in bundles and in their own file.v0.1.0
5Bundles stop carrying embargoed keys; a timed grant carries its reveal time. Older bundles’ embargoed keys are dropped on read.v0.1.0
6The durable change id, covered by the signature.v0.1.0
7Each version lists the versions it supersedes, for loot edit.v0.1.0
8An optional expiry on a grant.v0.2.0
9Each recorded conflict keeps its common ancestor. Store only: no bundle layout changed.v0.2.0
10Burn and revocation requests are signed. Older unsigned ones are dropped on read.v0.2.0
11Each change records when it was authored, covered by the signature.v0.4.0
12Each change records the moves it watched happen.v0.4.20
13Bundles stop declaring each object’s address, which the reader now derives from the bytes; grant ids shrink to a flag byte.v0.4.20
14Packed object storage (loot gc --pack). Store only: no bundle layout changed.v0.4.20
14, delta graphThe graph file can store a change’s tree as what changed from its first parent’s, behind a marker of its own that a build without it refuses as v129. Store only: no bundle layout changed, and a save with LOOT_GRAPH_DELTA=0 writes the file back in the earlier layout.the release after v0.4.32
15A change in a bundle can carry its tree as what changed from its first parent’s, sent only to a receiver that holds that parent. Bundles only, and only a bundle carrying one is stamped 15; every other bundle and file keeps the current major.the release after v0.4.35

By release line, the newest major each reads: v0.1.0 reads up to 7, v0.2.0 to v0.3.1 up to 10, v0.4.0 to v0.4.19 up to 11, and v0.4.20 onward up to 14.

A change from before major 12 has no recorded moves, and stays a delete plus an add. loot does not infer moves after the fact.