Make the key asks the server first and never replaces: a live key whose copy
is missing here may be in use, so it is said in words and left alone. A
page-made key carries read, write and post, not admin (the connect command
keeps its scopes). Revoke names the key's id, so a stale row cannot end a
newer key of the same name; a revoke that leaves the token file says the key
is dead and where the file is. The copyable command is single-quoted for a
POSIX shell and PowerShell, and refused when cmd.exe would act on a part.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The four untested tools shared one text four times: now one card. The
copied sentence no longer pushes the page down: a popover under the
button. The Books menu's two connect entries became one that opens the
Connect page. Link::Working has no glyph (it is a drawn arc). Shape
baselines re-blessed: assist_{working,none,connected,connect_page,ask}
in light and dark.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The bottom panel, the welcome steps, empty states and notices said
agent, bookkeeper or a books.* tool name; they now say assistant.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A bridge session opened with a key is on the roster; revoking the key
takes the key and its session off, refuses the session's next call and
deletes the token file's copy.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
P15 unit A4, plan 3.3 and D-79. The window only reads the books, so it
now says so by what it offers. Each company is in one of three states
(no assistant, connected, working) read from the books server's own
sessions answer, never waited for, drawn as a shape on its tab and said
in words with the last thing done at the right of the top bar; the
sidebar gives up no height, because the links must all fit at 1479x519.
Where a button that edits would be there is "Ask your assistant", which
copies a ready sentence. The Connect page has a row per local tool with
exact commands, the keys with who is on each, and Revoke through the
existing command path. Closing the window or a tab with an assistant
connected warns first, before and never beside the server's own close.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Connect page of P15 unit A4 shows an assistant the exact command it
must run to reach a company (`<this program> mcp --book ID`, with --root
when a root was named). `connect` already built that command, so it is
now one function (`bridge_serve_args`/`command_line`) used by both, and
the step `connect` does first (the company's default key exists and its
copy is in the token file) is `ensure_key`, which the page offers by
itself for assistants it has no button for.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The claims check reads a backticked word as a code item; Drop is a
trait, not an item of this workspace.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
WB-relay-2 to 5 and 7 say what is now true: one refusal for a stranger,
the secret label's 128 bits, the word list's 1 427 words and 40-bit floor,
the claim ceiling and the certificate budget charged at first publish with
their per-prefix numbers, the block reaching a live line within 10 s, no
static binding secret, CAA from the list, and the limits in one table with
what stays unsolved.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A review found ways for one cheap attacker to stop the service.
- Line handshakes were limited only by a global pool: one address could
finish a hello, stall, and repeat. A handshake now holds a place for its
address (4) and network (64) from the relay's host name to the verdict.
- Claims were counted per full address and against the certificate
authority's weekly 50: one IPv6 /64 could spend all 50 with throwaway
keys. Addresses now count by IPv6 /64 and /48 and IPv4 address and /24;
claiming a name is limited by a separate safety ceiling (5 000 a day) and
by those prefix limits, and the authority's weekly budget is charged when
a name first publishes a proof record (once per name, renewals free,
durable in the registry), under per-prefix limits of its own.
- IPv4 callers on a dual-stack listener (::ffff:a.b.c.d) shared one slot:
every table now makes the address canonical first.
- The pool of unfinished hellos also counts per /48 and /24, and a
reserve is kept for addresses that held a proven line lately (the server
name is not known before the hello, so it is for who calls, not what is
asked).
- A static account-binding secret was served to anyone with a name: the
list file may no longer carry one (refused at load), a binding comes only
from a per-app source, and an authority that needs one and has none is
served without and marked not usable.
- Blocking now reaches a live line: the next publish and a sweep every
10 s close it.
- Unclaimed, held-by-another-key and blocked names answer a stranger the
same.
- A hostile app and caller could make a line hold 13 MiB: yamux fixes each
stream's window at 256 KiB, so the stream limits are 8+2+4 (3.5 MiB), and
the splice has a minimum rate in place of a per-write stall check.
- DNS answers truncated over the per-address rate, has a global ceiling,
answers CAA from the authority list (issue per authority, dns-01 only),
and passes over a Windows UDP connection reset without sleeping.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The word list had 'dong' and three words of death and estates (probate,
testament, executor); it held both a word and its inflection (accrue and
accrued, audit and audited, ...) and homophones (peer and pier, sell and
cell, current and currant, ...). Four spoken words must identify one
name, so each pair keeps the base form or one spelling, 'fulfil' is
'fulfill', and the list is 1 427 words: 41.9 bits for four, over the
40-bit floor, which a test now states. A second test scans the list for
stem + ed/s/ing pairs and a list of alike-sounding groups.
The secret label was accepted at 16 characters ('aaaaaaaaaaaaaaaa'). The
app makes it from at least 128 random bits, 25 or more base 36 characters,
and the relay now refuses a label shorter than 25.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Real TLS and real lines on loopback with in-process clients: an assistant
reaches an app with the app's own certificate; unknown and offline names
close alike; a wrong key, a name claimed twice, a replayed or relayed proof
are refused; a proof record is published for one's own name only; the list
of authorities follows its file; a silent, dripping or slow peer, too many
streams, lines or unfinished hellos are all bounded. tests/memory.rs (ignored
by default) measures the relay's resident memory per idle line with the apps
in a child process: 15.2 KiB at 20 000 lines, flat under churn.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A new crate, crates/relay (lib `relay`, binary wanderbooks-relay), with no
ledger-* dependency. Routes an assistant's TLS connection by the server name
in its ClientHello down the line an app holds open, forwarding encrypted
bytes only; the line is yamux over TLS 1.3 on 443, the app proving its key
with an Ed25519 signature bound to the session's TLS exporter and a fresh
nonce. One durable table (SQLite: name, key, created, blocked), four-word
names from a curated list of 1454 words (42.0 bits), a PROXY v2 header with
the caller's address, an authoritative DNS server that publishes an app's
ACME DNS-01 value for its own name only, and a list of certificate
authorities served as data. Every table, queue, buffer and time is bounded.
New dependencies, each permissive and passing cargo deny: yamux 0.14
(Apache-2.0 OR MIT; the multiplexer), hickory-proto 0.26 (MIT OR Apache-2.0;
DNS wire format, std only), rusqlite (already in the tree), rustls and
tokio-rustls (already in the tree, ring provider), ring (Ed25519, already in
the tree); dev only: rcgen 0.14 (MIT OR Apache-2.0), proptest, tempfile.
Added to the kernel-only lint list (no Decimal in the crate).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Unit A4 of plan P15 needs the window to read who is connected to each
open company and to end a token. Both go through admin requests the
server already answers (Sessions, TokenList, TokenRevoke): the window's
server handle gains a quick roster (an Err in words while the server is
starting, gone or slow; never a wait) and a revoke that does what
`wanderbooks token revoke` does, including removing the token file's
copy. The command that reaches a company's books is now made in one
place (`bridge_serve_args`) for `connect` and for the Connect page.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The window retries a failed server start when the next tab opens or when the
person asks, says a server still starting is starting, tells the person which
wanted companies did not open, and when the close reports an incomplete last
backup or a bad exit it stays up with a Close anyway button. ViewerOwner only
forwards to AppHost now, and the format upgrade goes to the window's own server.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
AppHost holds what the window does with its books server, so what the tests
drive is what the window runs. A server that is alive but not ready is waited
for; a failed start, or a window closed before the child was stored, closes
the child's input and waits for it, so no server runs that nothing manages.
The close first closes each open company, so a closing backup that was not
whole, and a server that exited badly, come back as words. The format
upgrade goes to the server as an admin request (there is no host to ask),
and the companies the window wanted that the server did not open are told.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The server child starts, closes on input close and on the window's death (a
killed stand-in window leaves no server and a whole book), a stop that runs out
of time leaves it closing and says so, a start is refused while a server or host
holds the books; a tab opened or closed opens or closes that company, in order,
with failures said in words; closing the window waits in view and asks the owner
once; the bridge answers 'Wanderbooks isn't running' and 'Company X isn't open'
in one running session, starting no host. Claims for WB-app-1 to WB-app-4 name
them.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The window starts the server with the companies it restores, a tab opened or
closed opens or closes that company in it (one queue per company, so one
company's backup at close delays no other), failures and incomplete backups are
notices under the tab bar, and asked to close the window waits, saying so, for
the server's bounded close (WB-app-2, WB-app-4). The viewer no longer starts a
detached host.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The desktop app is the host (D-77, D-84): AppServer starts the books server
from the program's own executable, closes it by closing its input, and never
signals it. A window that dies closes the same pipe, so the books close
cleanly. A start is refused in words when host.lock or server.lock is held.
Starting writes run/app-hosted; for such a root with no host the bridge holds
no lease and starts no host, and answers 'Wanderbooks isn't running' or
'Company X isn't open' (WB-app-1, WB-app-3). Owner commands and the viewer
take a lease-less hold on the app's server instead of starting a host beside
it; closing the books and wanderbooks serve say the app has them.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner's decision, 2026-11-21: test users get nothing until web
assistants work, so every P15 unit is built before the first installer.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Raw::until_closed set a read timeout on a connection the server had already
cut. macOS answers EINVAL to setsockopt on a socket whose peer has closed,
where Linux accepts it, so five tests failed there before they could observe
the cut they wait for. Such a socket cannot block a read, so that refusal
alone is passed over (a zero bound is asserted against, and any other error
still fails); a read that reports NotConnected is the same cut. The timers
test now says which timer never held, and the hammer test how long each close
took, so a platform failure names its cause. The deaf shim flag (see the
store commit) is used by the lock test.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
handles_from_before_a_close_do_nothing_after_the_book_is_open_again adds the
planted stray file to the digest as uploads/stray.bin, but the walk keyed the
same file by the system's path, uploads\stray.bin on Windows, so the two
maps could never be equal there. The helper now keys with / everywhere; the
assertion (an old handle changes no file) is untouched.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On macOS a SIGTERM sent to a SIGSTOPped git ended it inside the grace and it
removed its own locks, so the three tests that need a git the kill must end
failed there (the grace was not waited, no lock was left). A blocked signal
stays pending on every system, and the mask is inherited through exec and
through git's own children: the test shim blocks SIGTERM for a git when a
deaf flag file exists. The program's stop (SIGTERM, grace, SIGKILL) is
unchanged. Checked here with the stop turned off: the tests still pass.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Not a vulnerability and no upgrade is offered; replacing chrono with jiff
is the owner's decision.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The new zstd-sys carries the BSD 2-Clause text of its legacy decoders, so the
notices gain that licence. libc was already listed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
zip's reader extracted entries under local-header names that can differ from
the central directory (fixed in 9.0.5). ledger-package reads packages with
it. Lock file only; ledger-package builds and its unit tests pass.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
scripts/raw-decimal-arith.sh refuses an Iterator::sum of any type (it cannot
tell widths from money without types it does not have). The tab widths are f32
layout, no money; a fold says the same and the check reads 0 places.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The stored tab-bar images were compared pixel for pixel on every machine.
GitHub's software renderer rasterizes the same shapes differently from the
GPU that made them (thousands of faint pixels, dozens strong along glyph
edges); sidenav.rs already says so and compares shapes everywhere, pixels
only locally. The tab bar now does the same: a hash of the visible shapes
(tests/snapshots/<name>.shapes, TABS_BLESS=1 writes them), the pixels with
TABS_PIXELS=1. The images are unchanged and still pass locally.
The hash is of a description of each shape, not of its debug form, for
two things in the debug form depended on the run, not on the books: a
glyph's place in egui's font atlas changes with which tests ran in the
process before (the same view hashed differently alone and beside another
test), and the page under a short bar holds the current time, clipped
away, which no picture shows. Shapes whose clip is off the window are
left out.
A new test renders the same companies from two differently named
temporary folders, light and dark, and requires the same hue keys (the
book ids), the same shapes and the same pixels. The sidenav fixture's
copy outside a data root is in a folder of a fixed name, not the temporary
folder's random one, since that folder's name is its badge's hue key.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cause: a book's writer lock is a flock, which lasts as long as any copy of
its open file description does. A child forked by another thread of the
server (git, for another book's backup, on a timer) holds a copy of every
descriptor from its fork until its exec, so a close of book B, answered
after its Store was dropped, could be followed by an open of B that found
the lock still held: "another program has these books open". The open's
failed attempt left B failed, and the next close found it not open. This
broke the unit's rule that a close answers only once the lock is released,
and that closing book A never refuses a job on book B (the hammer's maker
thread saw it on GitHub's slower runner; with a 40 ms fork-to-exec delay in
the backup's git it fails on every cycle).
Fix: every child the crate starts goes through lock::spawn, which holds a
process-wide gate while it runs (it returns once the child has exec'd);
dropping the Store's WriterLock closes the file, waits for the gate to
empty of spawns begun before, then takes the lock afresh and lets it go
(the kernel lets go of a closed file's last copy a moment after the exec),
for 500 ms at most. A test with a child held between fork and exec fails
without it.
rustdoc -D warnings refused [`take_lock_notes`]: a method is linked as Self::take_lock_notes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
`verified` is a field of a StoreError::NewerJournal variant, which the claims
check does not read as an item; it passed before only because a doc comment
in gui app.rs quoted "verified" (a string literal, removed today). The claim
now names newer_journal_text, the function that reads the flag, and says in
words what the flag is.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
WB-GUI-2 was never written into docs/spec/claims/, so the source-line test
could not find it. What the module rests on is plan 3.2 (D-78: a tab's
threads end with it); the hold on a change an owner has begun is a
CONVENTION, named as one.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pty::child exists only on Unix; the child's pid is now Some on Unix and
None on Windows, so the kill after the grace happens only where it can.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The viewer was a read-only window on one company per process. D-78 makes
a company reachable exactly while it has a tab, so the window now holds
one tab per open company, each with its own loader, navigation, page
state and assistant dock, and nothing shared between them. The company
is named once in the frame, on its tab; the status card at the foot of
the sidebar carries its badge and name with the live state; each company
has its own badge colour. A restore or a format upgrade in progress is
never abandoned by closing its tab or the window. The viewer still
writes nothing to the books.
docs/testing.md: both units added their test records at the end; both
are kept.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The heading row is badge and name (elided) at the left, the live dot and word at the right edge; the event is the heading's hover and the live word's accessible label, not a printed row. The check lines are as before, with no event. Every text elides to one line; a test lays the card out in every state with a very long name and event 1,234,567. The heading is its badge's height and the card's vertical padding 8, so the sidebar still fits at 1479x519.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>