docs: claims WB-backup-12 to 21, backups for a person, the end of plan section 9 and the module invariants for the second pass
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
344b3b4abe
commit
573dcb0531
5 files changed
+410
-74
No files matched your search
@@ -648,3 +648,47 @@ rules are `docs/spec/claims/backup.md`; the words for a person are
|
||||
- Sealed sets are folders named by a random id, so a sealed destination's names
|
||||
say nothing of the books; restore finds the one a passphrase opens.
|
||||
|
||||
**Second pass (2026-11-22): what a review of the built unit found, and what the
|
||||
fix round changed.** A backup that restores old or wrong books while reporting
|
||||
good is the worst defect this product can have, and the first build could.
|
||||
Changes to what this section says:
|
||||
|
||||
- *A proof after every backup* (promised above, and now made). The manifest just
|
||||
put is read back from the destination and proven before the backup is recorded
|
||||
good: every journal and access segment re-hashed, the chain replayed to the
|
||||
recorded head, the books opened, the vault and keys present, the index read, and
|
||||
of the stored files those the backup added plus one sixteenth of the rest (every
|
||||
stored file is re-read within 16 backups; the weekly drill re-reads all). The
|
||||
proof is marked in the destination, a tiny file per proven manifest (`proofs/`),
|
||||
so one cut short is proven by the next backup even when it has nothing new.
|
||||
- *A piece already there is not trusted.* A damaged piece found by the proof is
|
||||
written again under a generation suffix (`.g1`) beside it, a new manifest names
|
||||
it, and the reader takes any generation whose contents hash right: "nothing is
|
||||
rewritten or deleted" holds, the damaged file stays and is listed in the status.
|
||||
- *The drill passes only on the newest manifest*, which must reach the last head
|
||||
recorded good; proving an older one is a failure in words, never ok. A restore
|
||||
that would use anything but the newest says so first, with both dates and how
|
||||
many backups it passes over.
|
||||
- *No consolidation.* "Series of segments are consolidated into one at 200" above
|
||||
is withdrawn: it wrote the whole journal, access log and index again every 200
|
||||
backups into what may be a quota-limited synced folder. A manifest instead names
|
||||
the one before it (by number and body hash) and what is new, a chain of at most
|
||||
64 and then one that names everything; a reader proves the chain link by link and
|
||||
never trusts an unproven one. 3,000 backups: 12 MB of manifests (765 MB if each
|
||||
named everything), the newest 0.8 KB, found and read in 32 ms.
|
||||
- *Ahead is told from diverged.* The live journal is checked to be the beginning
|
||||
of a longer destination before it is called ahead; ahead offers, at the person's
|
||||
request, a new set beside the old (`.2`), which is never touched.
|
||||
- *A set's folder is `wanderbooks-` and the id* (legal on every system whatever
|
||||
the id), sealed pieces are in folders of two digits, a failed link is never
|
||||
taken to mean "make no links" unless the error says so (and then the move
|
||||
refuses to replace), header settings are capped at four times ours and bound
|
||||
into the sealed check, and the vault's scratch files are never backed up as
|
||||
records.
|
||||
- *A lost key never makes backups plain*, and a folder a sync service keeps (or
|
||||
may) is explained at set-up; a file not downloaded yet reads as such.
|
||||
|
||||
Where the lead's design said "each manifest stands alone", it now stands alone
|
||||
only as far as its chain: a lost manifest makes unreadable the manifests chained
|
||||
on it (at most the rest of 64), never an earlier one.
|
||||
|
||||
Reference in new issue
Block a user