- books ahead of the folder (as after a restore from an older backup) offer a
new backup set beside the old one, at the person's request: books.back_up_now
new_set, back-up --new-set, a button in the Backups window
- a key file lost from a sealed destination stops backups and asks for the
passphrase; plain is written only after an explicit removal, which the record
keeps (a damaged record falls back to what the folder itself holds)
- a restore that is not of the newest backup says so first, in the warning
colour, with both dates and how many backups it passes over
- a folder a sync service keeps (or may) is said in plain words at set-up and
in the window: one computer only, kept offline, a second computer its own
- a drill that finds only an older whole backup fails in words
- a manifest whose proof was cut short is marked unproven and proven by the
next backup, even one with nothing new; a saved backup file is proven whole
before it is given its name
- the proof compares the journal its pieces make with the head the manifest
records before the books open, and lets opening add only after it
- the restore tests are split from backups.rs to keep each under a minute; the
clone-of-an-old-git-backup test builds the working tree without git
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each test fails without the change it covers: the reviewer's sequence (a
byte flipped in backup 2's segment, more backups, a drill, a restore), a
damaged stored file found by the rotating share, a drill that must fail
when only an older manifest is whole, ahead told from diverged with a new
set beside the old, the no-link path (and two writers racing on it), sealed
pieces in folders, header settings capped and authenticated, one key
derivation per setting, files not downloaded yet, vault scratch files, and
a destination of 3000 backups made cheaply (12 MB of manifests, 0.8 KB for
the newest, 32 ms to find and read it).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A backup that restores old or wrong books while reporting good is the worst
defect the product can have. A piece already in the destination was taken as
the piece (its name is its hash), the manifest built on the newest backup
whose pieces were the right length, no proof ran after a backup, and the
drill fell back to older manifests and recorded ok with the older head.
- the manifest just written is read back and proven before the backup is
recorded good: every journal and access segment re-hashed, the chain
replayed to its head, vault and keys present, the index, and the stored
files this backup added plus a rotating sixteenth of the others (every
stored file is re-read within 16 manifest numbers; the drill re-hashes all)
- a piece found damaged is written again under a generation suffix beside
the damaged file (never touched), a new manifest names it, and the reader
accepts any generation of a piece whose contents hash right
- the drill passes only on the newest manifest, and only when it reaches the
head of the last backup recorded good; an older whole backup is a failure
that says so with its date
- no consolidation: a manifest names the one before it and only what is new
(a chain of 64, each link proven by the hash its successor holds)
- restore and drill read newest first and stop at the first that proves
- live books that are the beginning of the destination's longer history are
ahead; any other mismatch is diverged or other books
- a new set can begin beside the old (.2), never touching it; set folders
carry a fixed prefix so no book id is a reserved name on Windows
- no hard link is never a reason to replace: only errors that mean the disk
makes no links fall back, to a move that refuses to replace
- sealed pieces are sharded by two digits; header settings are capped at 4x
and bound into the sealed check; find derives one key per distinct setting
- vault scratch files are never backed up as records
- files a sync service has not downloaded read as not downloaded yet
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The count of free-text source clauses falls from 56 to 54: the git form's spec
blocks are gone.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Admin requests set up the backup folder (journaled as the books' own
backup.folder setting, the owner the one who decided) and the passphrase, save
a backup as one file, and say how the backups stand; the Backups window, Save a
backup and Restore (a folder or a file, with the passphrase when it has one) use
them, and the command line has backup-setup, backup-status and backup-save
(the passphrase typed at a terminal, never on the command line).
New dependency: rfd (MIT) in ledger-gui, with pollster, for the system's own
folder and file dialogs (the portal on Linux, native on Windows and macOS). It
adds no other crate to the tree (zbus is already there through the window
toolkit); cargo deny passes and THIRD-PARTY-NOTICES.txt is regenerated.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
WB-backup-1 to WB-backup-11 state the laws (a destination only grows; a
manifest names only pieces that exist and hash right; a restore of any whole
manifest is a prefix of the books; other or newer history is never written;
two writers cannot corrupt a destination and a death at any write leaves the
previous manifest whole; a damaged piece is never restored; a wrong
passphrase never yields books). Property tests hold them over random books,
random backups, random interleavings of two writers, and any flipped or cut
piece.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Linux packages, the AUR recipe and the rpm metadata no longer depend on
another program for backups (WB-pkg-4 is replaced); the Windows host's PATH no
longer carries Git for Windows; the handbook an assistant reads, the
tool descriptions, the install notes and the site say plain folders. A test
adopts a clone of an old backup as the docs describe.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The store's own verification reads the text an extraction recorded as a stored
file, so a verification that left the stored files out would not prove books
with extracted text. Every proof now builds the books with their stored files,
as a restore does, and a test holds it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Restore reads a destination folder, a set's folder, or a backup file with an
optional passphrase; the server cuts the books under the store's lock and
writes the folder outside it; the format upgrade proves a local backup in the
book's folder (the same form) before it moves the format. The old backup
(git processes, their locks, the output drain) and every test of it are gone;
what each test protected is held by the new form's tests (table in the
report). Old settings and an old history in a book's folder are said in the
status and left alone.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A backup is a folder holding one folder per set of books, made only of
files that are written once: the journal and the access log as immutable
segments, an index of stored files and the stored files under their hash,
the vault and keys by content hash, and a manifest, written last, that
makes a backup complete. It is built beside the git form for now.
Accounting reasoning: the journal is append-only and a stored file never
changes, so what the store's lock must fix is one look (its length, that
its last line is the head, the vault and keys); the rest is read after it.
A destination is written only when its newest whole manifest is a point on
the live journal (byte-identical prefix); otherwise nothing is written.
Two writers cannot corrupt it: pieces are named by what is in them, the
manifest number is taken by exclusive create, the loser looks again.
A passphrase (D-92) seals every piece with XChaCha20-Poly1305 in 1 MiB
chunks, the key derived by Argon2id at the owner passphrase's own cost
(64 MiB, 3 passes, 1 lane); names are made from the key and say nothing;
the derived key is kept in the book's local/ folder, owner-only.
"Save a backup..." is a zip of the same form (.wbbackup).
New dependencies: none new to the tree. chacha20poly1305, zeroize and zip
(deflate only) were already used by ledger-vault, the viewer and the
packages; ledger-store now names them.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The sub-reference check reads 'INVARIANT n' as the old vocabulary and
WB-assist-6 has no numbered parts; the comments now cite what exists.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The two Connect page baselines are re-blessed on the merged code: the
page gained the extension row here and the stopped test clock on main.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The taskbar on Windows and X11 shows the same icon the packages carry;
macOS takes it from the bundle and Wayland from the desktop entry.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
docs/install.md is three short sections for a person installing.
docs/packaging.md records what the installed app is on each system, why
NSIS and the macOS bundle are scripts of our own, how signing is wired
with the owner's secrets, what was left out, and what bundling git
would require (GPL-2.0, separate program, unmodified: notices, source
offer), which stays the owner's decision. WB-pkg-1 to WB-pkg-8 are the
product rules. The Linux packages, the AUR file and the rpm now depend
on git, so the package manager fetches it and a Linux person never meets
the missing-git words.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The release workflow runs on a version tag (which must equal the
program's version) or by hand, never on an ordinary push. Each system
runs the workspace's whole tests, builds its package, signs it only when
the owner's secrets exist (and says so in the run's notices when not),
and checks it: the .deb and .rpm file lists; the Windows program's PE
subsystem is the GUI one, and the installer is run silently, installed
over itself, uninstalled, with a sentinel in the data folder that must
survive; the dmg is opened (never run) and its app checked for both
architectures, the plist, the licences and the signature. A last job
gathers the packages, the licences, a latest.json with the version
number the app's daily look reads, and SHA256SUMS.txt, into a DRAFT
release; a release that is already published is never touched. The apt
and dnf repositories are no longer pushed to by a tag: that is the
manual publish-repos workflow, from a published release.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Windows: a hand-written NSIS script (per user, no administrator prompt,
installs under the profile's Programs folder; one program file; a Start
Menu entry named Wanderbooks with the icon; an uninstaller listed in
Settings > Apps that removes only what the installer put in its own
folder and never names the data folder). The installer asks the person to
quit the app fully before it replaces or removes the program. An optional
Authenticode signing step runs only when its secrets exist.
macOS: the .app is assembled by a script (Info.plist with the bundle
identifier, version, name, Documents-folder purpose string; the one
program at Contents/MacOS/wanderbooks; the licences), signed with the
hardened runtime and an empty entitlements file that says why, put in a
dmg with an Applications shortcut, notarized and stapled when the
owner's Apple identity is given and skipped with a notice when not. The
program is one universal binary (lipo of the two release builds).
Linux: both desktop entries name the window's app id and the icon; the
rpm now installs the icon; the deb, the pacman tarball and the rpm all
carry LICENSE-MIT and LICENSE-APACHE beside the notices.
One version: deploy/packaging/version.sh reads crates/ledger-cli's
Cargo.toml; every script takes it from there. Tests read the scripts and
build a bundle with a stand-in program.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The working mark's arc (connect.rs paint_mark) and every ui.spinner() turn
with the frame time, and the number of frames run before a picture depends
on how long threads take, so the arc's phase differed from machine to
machine. The window now runs on a clock that stands still, a second capture
a few frames later must match, and the shape text is rounded so a sin/cos
last-digit difference is not a changed picture. All assist_*.shapes are
re-blessed (the hash text changed; the pictures did not, but the arc sits at
phase 0).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Update is an ordinary app update: the newer package installed over the
old one. The program's part is to say one exists. Once a day, on a
thread of its own, it reads one small file a release publishes
(latest.json: only a version number is taken from it; where to get the
update is a fixed address in the program) and notes the answer in the
data root's updates folder. A higher x.y.z shows a standing notice with
a button that opens the download page and the words that books, keys
and connections stay. Check for updates does the same look at once on
every platform; where a program may replace itself with a signed release
it also stages one as before. A macOS app is never replaced one file at
a time (that breaks its signature): it is treated as managed, and says
to drag the new app over the old. Window prose names the product
Wanderbooks.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude's desktop extension format is the MCP Bundle: a .mcpb zip with a
manifest.json (manifest 0.3, github.com/anthropics/mcpb). The row's
button makes the company's agent key if there is none and writes
Documents/Wanderbooks/Extensions/wanderbooks-<id>.mcpb: a manifest whose
server is a binary running this program's own stable path as
mcp --book <id>, the 512 px icon and a short README as the entry point.
The package carries no program (the one executable is the installed
one), no key and no path of the data root. The page then says in plain
words where in Claude to pick the file and to keep Wanderbooks open, and
offers to show the file. The manifest is checked against Anthropic's
published schema (a test fixture) and its required fields. The blessed
Connect page pictures change by exactly the new row. The program's
version is now one value set by main for every platform, not only Unix.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Backups run the system's git, which the program does not carry (it is a
separate GPL program: bundling it is the owner's decision). The error a
backup reports with no git now says so in plain words and how to get one
on Windows (Git for Windows, winget), macOS (the command line tools, or
Homebrew) and Linux (the package manager); backups stay off until then
and nothing else changes. On a Mac without the developer tools,
/usr/bin/git is a stub that opens Apple's installer and fails: it no
longer counts as found. Git for Windows' per-user folder is searched too.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The installed program is one executable that is the window, the books
server's child and the assistants' bridge. Built for the Windows GUI
subsystem, a Start Menu launch shows no console; console.rs gives a
command run in a terminal its words back and never replaces a pipe an
assistant handed the bridge. The two console programs the window starts
(the agent's own list, the system's opener) get CREATE_NO_WINDOW. The
window title is the product name; the storage id and the Linux app id
stay lowercase so nothing already kept moves.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Buypass is left out of the compiled-in directory hosts: its directory
could not be confirmed from its own documentation.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Once web assistants are connected the three progress lines (address,
certificate, connected) collapse to a green dot and "Connected"; they are
shown while connecting and when a step is the trouble. The page no longer
says nobody can read what passes through, which was not true: the relay
that carries the connection cannot, but the assistant's own company reads
what it is sent.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
turn_off sent RemoteAllow{false} and ignored any reply but an error, so a
refusal left the company reachable while the window said off, and with
another company on the line and the door stayed up. Now anything but the
server's success keeps the company shown as on, with the reason in words;
a server that cannot be reached at all closes the whole line and door
(the safe side) and says so. The door is also started only once the relay
has accepted the name (the settled address), and production uses the
public roots as its certificate trust.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The review of P15 B3 found the relay could steer three things it must not.
- A certificate is now checked against the public roots the program
ships, for the app's wildcard, when it is issued and every time it is
read from disk; a lifetime over 100 days is refused (no public
authority issues one), and the renewal is planned no later than two
thirds of the life or 60 days. A kept certificate that fails is
ignored and ordered again. Only a test builds a CertTrust of its own
roots.
- The ACME client sends a request only to a directory on a host compiled
into the app (Let's Encrypt production and staging, Google Trust
Services, ZeroSSL, Buypass, SSL.com): the relay still picks which and
in what order, but cannot name a new host. A kept account is used only
if its directory is on the list too. http is a direct dependency now
(it was a dev-dependency, and already in the tree): the host is read
with the parser the ACME library uses.
- The resolver refuses a certificate at its end, sleeps stop at it, and
the state stops saying "Connected" when it has ended.
- The certificate work waits for the line, so it is for the name the
relay accepted (a first claim that finds the name taken picks another);
web.rs starts the door only once the name is settled.
- A line that held under 60 s does not reset the backoff; one that held
is redialled after 0 to 30 s, so a relay restart is not met by every
app in the same second.
- What the relay and the authority say is shown as a short quoted detail
with control and invisible characters removed, in the app's own words.
- The kept address is read once, not from the key file every frame; the
folder is synced after a private file is renamed into place.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The real books server (a child process on a temp root), its remote door and sign-in,
the app's link, the relay crate's own in-process relay and an in-process
certificate authority: a web caller's TLS through the relay is ended with the app's
certificate, signs in with the person's answer made through the admin socket, and
reads the books; HTTP/2 reaches the door by its authority; the door drops a
connection without the secret; off closes the line and the door and on again is
the same address with the same certificate; a new address refuses the old tokens;
the switches are put back at the next start.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Connect page gets "On the web": a switch "Allow web assistants" per company,
off by default; three lines of progress in plain words (getting an address,
getting a certificate, connected) with a spinner on the one under way; once it
works, the address for the company with Copy; the three steps for Claude on the
web that the plan stands behind (Settings, Connectors, Add custom connector,
paste, sign in and match the code); and, for ChatGPT and any other assistant,
"we haven't tested this yet" rather than steps nobody tried. What goes wrong is
in words and says whether the window and the assistants on this computer are
affected. A new address is asked for twice.
The first time a company is open and the server says no assistant was ever
connected, the Connect page opens by itself, once, remembered per installation.
The owner trait gains web_state, web_turn_on, web_turn_off and web_new_address;
an owner that does not offer them shows no switch. The tabs tests start with the
first run already done, since they are about tabs.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
WebAssistants is the switch per company: turning one on makes the link's address,
starts the books server's remote door at it (the door listens on 127.0.0.1 and
gives the app its per-start secret), offers the company, and hands the link the
door; turning off withdraws the company and, with none left, closes the line
first and then the door. A new address stops the door, makes a new label, and
restarts the door at the new issuer, so every token made at the old address is
refused. The switches are kept in a private file and put back for the companies
that are open at the next start. Nothing is half-on after a failed step.
The line runs in the window's process (the viewer owner holds it), so it ends
with the window and never outlives the books it offers. THIRD-PARTY-NOTICES.txt
is regenerated with scripts/notices.sh: the app now links instant-acme, the relay
crate's client side and hickory-proto.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The real instant-acme client speaks RFC 8555 to a small authority written in the
test: account, order, DNS-01 proof read from the relay's own DNS, finalize with
the client's CSR, download, an account binding when the relay gave one and none
when it did not, a renewal that names the certificate it replaces, the
authority's renewal window, and a refusal in the authority's own words.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The app keeps one durable address https://<secret>.<four-words>.wanderbooks.link:
an Ed25519 key, a four-word name the app picks, and a 32-character base-36 secret
label (about 165 bits), all in private (0600 / owner-only) files in the data
root's link/ folder. One name per installation, as plan section 5 says; each
company is a path under it.
The line (yamux over TLS 1.3, the relay crate's own client) runs in the app's own
process, not in the books server child: a window that dies takes its sockets with
it, so the line can never keep a door open for books that closed. It reconnects
with full-jitter backoff, pings every 30 s (the relay drops a line silent for
180 s), re-dials at once after a wall-clock jump (a sleep), and says in words
what is wrong: no internet, the relay down, a busy relay, a wrong clock, a name
the relay lost.
TLS ends in the app with its own certificate (rustls, ALPN h2 and http/1.1),
served only for the app's exact host name, then the plain stream goes to the
remote door on 127.0.0.1 after the door's per-start secret and the relay's PROXY
header. The private keys are never sent to the relay.
Certificates are ordered by ACME DNS-01 (instant-acme, behind an Issuer trait so
tests use an in-process authority) for the wildcard under the app's name, from
the relay's authority list in its order (a not-usable one is skipped, a failing
one falls to the next), stored, reused across restarts, and renewed at the time
the authority's renewal information suggests, else two thirds through the life.
New dependencies: instant-acme 0.8 (Apache-2.0; ring, hyper-rustls, time and
x509-parser features, no aws-lc-rs), x509-parser 0.18 and webpki-root-certs 1
(already in the tree), time and async-trait for tests.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A push to a bare folder repository locks HEAD as well as the branch when it
moves the branch HEAD names. Both locks are left when git is killed, and the
server names both. A newer git (Linux) goes on past a stale HEAD.lock, an older
one (macOS) refuses the push with "cannot lock ref 'HEAD'"; the test removed
only main.lock, so the last backup failed on macOS. The test now removes each
lock the report names (and asserts each is named), as the words tell the owner;
the program already reported both.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>