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>
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>
Adding a brand-new certificate authority needs a release of the app: it
contacts only directory hosts compiled into it, and believes only
certificates that chain to the public roots it ships, because a relay that
could name any host or authority could make every app send requests where
it likes. The secret label is seen by the relay, the vendor's resolvers and
the network path (the sign-in is the lock); the relay cannot read the
traffic, the assistant's own company reads what it is sent. Certificate
log watching is still not built, so a relay misusing its DNS control to get
a certificate for a name would not be detected.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The claims for the identity, the line, TLS at the app, certificates, the states in
words and the per-company switch, the Connect page's web half and the first run;
parity.md, the architecture table and the plan's follow-ups (what B3 left out and
why: certificate-log watching, steps for products nobody tried, the key for
key-only products, a real relay and authority).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Rule 6 of section 4 now says every new sign-in is asked and an approval is
never reused; WB-remote-1, 5, 6, 7, 8 and the interface carry the matching
code, the neutral words, the per-start secret B3 must send first, and the
limits as built.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner's decision, 2026-11-21: an approval is not reused for a new
sign-in, because the app knows the product and not the account.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Ties WB-format-8 to 10, the calls.rs spec block, the command-steps map and
plan 2a to bookspec law 47 (Calls.lean): a call is a Steps run, no new Step.
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>
The last rounds of both units fix what blocks a merge and no more. What
was left out on purpose is listed in the plan so it is not lost.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner chose one write path over two: an un-upgraded company opens
and is read, and every write waits for his format upgrade. The unsafe
path does not stay in the program beside the proved one.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner's rule, given when a retried write after a lost answer turned
out to record twice. Reading the write path showed more than that: a
tool call may append several journal lines with nothing joining them, so
a crash between them leaves part of a call in the books. The plan now
says what the code does today and the rule that replaces it: a call's
lines commit together under a closing line, every write carries a
request key, a repeat returns the answer first given, and a failed write
is on record. It is a journal feature, built as its own unit before the
remote door.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner wants Let's Encrypt swappable. Every candidate speaks ACME,
so the app knows the protocol only and takes the authorities to try
from the relay service; a swap is a server-side change, and the tests
fail over between two configurations.
docs/routing.md: Muse Code lists muse-ember-1.0 as of today, so
run-only tasks go to it, as the owner asked on 2026-11-09.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The relay answers for wanderbooks.link itself: every name is at the
relay, and a proof code is the one an app just handed in, so nothing is
stored per user. The owner doubted that a certificate per installation
is what Let's Encrypt is for; the plan now carries what Tailscale, Home
Assistant Cloud, Plex and Let's Encrypt's own pages say, the one denial
found, and the fallback authorities.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Decided 2026-11-20: the app is its own sign-in server and a new web
assistant is approved in its window (D-83); a web assistant reads and
drafts but does not post until the owner allows it for that connection
(D-86); each app holds its own certificate (D-87). D-84 and D-85 stay
the lead's engineering proposals.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The owner asked whether one wildcard certificate at the relay, with our
own encryption behind it, could replace a certificate per user. It
cannot be end to end, because the vendor's server speaks only HTTPS to a
trusted name, so whoever holds the certificate reads the traffic. He
kept the certificate per app. The plan now says what that leaves open
(we control the DNS, so a taken-over relay could get a certificate; the
app watches the public logs for one) and names a second authority as
the fallback.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A design, nothing built. The detached host is what makes packaging hard
on each system, and the people the product is for use chat products in a
browser. So the app's window becomes the host (a tab per open company,
agents reach a company only while it is open), and web assistants reach
the app through a relay on wanderbooks.link that routes by name and
cannot read traffic, the app holding its own certificate.
The owner's decisions of 2026-11-20 are D-77 to D-82; D-83 to D-86 are
proposed and wait for him. The bookkeeping rules do not change: the
window still only reads, and every entry still goes through the tools.
The delegation log gains the nine research and reading tasks behind it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The five-part check ran on CI for the first time (the slowest part done
43 minutes after the push, where the one job took 72), with deny,
notices-check and kernel-only in its lint part.
Co-Authored-By: Claude <noreply@anthropic.com>
just prove on 0178809a3 and just check on 3bc198594, the latter in two
runs since a two-hour limit stopped the first with nothing failed. What
is still unseen: CI on the push, and a built AppImage with the new rule.
Co-Authored-By: Claude <noreply@anthropic.com>
The AppImage launcher sets APPIMAGE (the image's file) and APPDIR (where
it is mounted) for the program it starts, and every program that one
starts inherits both: a terminal, an editor, an agent's app. The host's
start, the agent's pointer file, the host's check for a replaced program
and `update` each read APPIMAGE and believed it whenever it named a file.
So a wanderbooks run from inside another app's AppImage took that app's
image for its own:
- it started that image as the host, and the books never opened ("the
books server keeps failing to start");
- `connect` would have written that image into the agent's pointer file;
- `wanderbooks update` replaced that app's file with wanderbooks.
Found by the batch's gate: the_host_outlives_the_app_scope_that_started_it
passes its own environment on (the other tests clear it), and this gate
ran in a session started from an AppImage app. The first and the third
are reproduced by two new tests, which fail without this change (the
update test read an ELF header where the other app's file had been).
The rule now (start.rs INVARIANT 6, from the AppImage documentation's
"Environment variables"): the image is this program's own only when
APPIMAGE is an absolute file, APPDIR an absolute folder, and the running
executable's file is inside APPDIR, compared as resolved paths. One
function decides (`own_appimage`), and all four readers ask it. The host
is handed APPDIR beside APPIMAGE, and neither unless both are its own.
No books and no figure are touched. The tests that pretend to be an
AppImage now set APPDIR as a launcher does; translocation.rs used a bare
APPIMAGE to stand in for a macOS path, the very thing this closes, and
names the program's folder as the mount.
The failing test's message now lists the lines that did arrive, which is
what showed the host was refused rather than slow.
Not checked against a built AppImage (none has been built with this
change): the first trial of one shows `update` and a restart find the
image.
Co-Authored-By: Claude <noreply@anthropic.com>
STATUS gets a section for 2026-11-10: what the evaluation batch landed,
what is not verified yet (the one gate, CI, a package build), and what
is next. The roadmap said the parity floor was 21 rows enforced by
review; it is 36, enforced by a test and by CI, and its "Next" described
units that have all landed. The hand-off described `just check` and
`just prove` as they were before the five parts, the supply-chain and
notices gates, the kernel-only gate and the per-harness cap.
Co-Authored-By: Claude <noreply@anthropic.com>
The viewer was the last crate with arithmetic of its own on amounts. With
it at zero, `just kernel-only` runs the detector over all eleven crates,
and it now fails when a folder under crates/ is not in its list, so a new
crate cannot do money arithmetic of its own from the day it is added.
Why it matters for the books: the proofs (Kani, Lean) are about the
kernel. A sum or a product computed anywhere else is one they say nothing
about, and rust_decimal's own operators either panic or round without
saying so. Bar item 1 of AGENTS.md is now a property the compiler checks
for the whole workspace, not a rule to remember.
Checked on main after the merge: the detector reads 0 places and 0
waivers for ledger-gui, the crate's whole test suite passes in one run
(300 passed, 0 failed, 1 ignored), clippy with warnings denied and fmt
are clean.
docs/proofs/k-u12.md is the account: the 183 places by crate, the rule
each kind followed, and the decision for every site that was not a plain
sum or sign.
Co-Authored-By: Claude <noreply@anthropic.com>
The kernel rule holds in ledger-core and is held by the lint part for
five crates; the six outer crates with places left are K-U12. The
traceability gate's counts are 62 functions and 16 listed exceptions
(kernel::rescale_exact is the sixteenth).
Co-Authored-By: Claude <noreply@anthropic.com>
The triage marked exact Decimal arithmetic and the tie rule as in
flight; both are on main. It now says what each closed, the one figure
a new foreign line can book differently (the exact product's cent,
10500000099.89 where the double rounding booked .90; posted lines are
not recomputed), and what the checks found that the workers' own runs
did not: an exact division that accepted a rounded quotient, the six
review findings, and the Kani cover the tie change made unreachable.
The comment in add_line_fx said a 20-place product past 7.9e8 rounds
twice; since K-U10 the kernel holds that product in 256 bits and rounds
once. The K-U1 note's open edge points at the unit that closed it.
Three lines in the delegation log: the two hard implementations and the
review.
Co-Authored-By: Claude <noreply@anthropic.com>
The rule (BS-partner-1, bookspec's Apportion) is that leftover cents go
to the largest remainders, ties to the earlier part. The engine ranked
the difference of quotients rounded at Decimal's 28th digit, so an exact
tie went where that digit sent it: 20.00 by 4/1/1 came out 13.33 / 3.34 /
3.33. It now ranks the exact remainder, whole x weight - part x total,
and gives 13.34 / 3.33 / 3.33. The owner decided for the exact ranking on
2026-11-09 (D-76, recorded here).
What moves: no golden, nothing between two parts or by equal weights, at
most a cent a part elsewhere (tests/kernel_bridge/ties.rs measures it).
Of the engine's splits only the K-1 worksheet's share of contributed
property divides by a total that is not one; a convention's split and the
frozen close rule already ranked exactly. Posted splits are not
recomputed.
Changed in the merge:
- The ranking's two products are the rounding ones (checked_mul_rounded).
The kernel's checked_mul is exact or refused since K-U10a, and would
refuse a split by weights of 27 places; the split is made, ranked by
the nearest figures Decimal holds. A test splits by thirds, sevenths,
ninths and elevenths at 27 and 28 places, both signs.
- Kani failed the unit as it came: with the exact ranking a part whose
share is exact never takes a leftover unit (5 by 2/3/5 is 1, 2, 2, where
i64's truncated quotients gave 2, 1, 2), so the cover "a part exactly
one step above its truncated share" could not be reached. The harness
split_by_weights_within_one_step now asserts the strict bound and that
an exact share takes no unit; both covers are reached.
- docs/verification.md also takes K-U10a's account (sums and products
exact or refused), which closes the edges it listed as pinned.
Co-Authored-By: Claude <noreply@anthropic.com>
bookspec proves its laws (the trial balance, the accounting equation,
posted is forever) for every state its steps reach. The engine has 119
public commands and the model 14 steps, and nothing said which command is
which step, so "every reachable state" read wider than it was.
docs/command-steps.md is that map, command by command: 71 are the
`record` step (they change how the books are kept and no figure), 11 are
one step, 19 are several steps run as one, 17 are the doors a journal is
replayed through, and one, `renumber_account`, is no step at all.
What the map shows that was not written down before:
- A renumber changes the chart's codes and the model has no step for it.
- Four doors apply a journaled change without a check the model's step
requires (a draft dated in a closed period, a period overlapping
another, a reversal dated before its original). Books replayed from an
old journal can therefore be outside the model's reachable states. The
laws resting on distinct codes, acceptable entries and known accounts
still hold by reading their proofs; no theorem says so yet.
- The registers (assets, schedules, recurring entries, payroll runs) have
proved arithmetic and no model of how they change over time.
- No proof ties a Rust command to its step: bookspec's examples and the
differential test do, and the page lists what that test does not reach.
Each closes with Lean in bookspec; the triage (P2.5) lists them.
tests/command_steps.rs keeps the map whole: a command with no row, a row
with no command, a step the model does not have, or a new command marked
as no step without being added to the pinned list fails the build.
Co-Authored-By: Claude <noreply@anthropic.com>
The detector, run again on the three crates K-U9 touched: ledger-gui
123 places of money arithmetic outside the kernel (was 137),
ledger-import 18 (was 22), ledger-package 13 (unchanged: its sums are
totals, not display rounding).
Co-Authored-By: Claude <noreply@anthropic.com>
One page (plan/2026-11-09_TRIAGE.md) of what is missing or not as the
manual promises, each item with how it is known, what closes it and who
does it. The engine's numbers are not in question; the gaps are in what
the gates did not see: a red Windows gate nobody read, 210 places in
ledger-core and 201 in the outer crates that do money arithmetic outside
the kernel, Decimal sums that round silently, a tie between shares that
went where the 28th digit sent it (the owner's decision D-76: the
earlier part, exactly), no supply-chain gate, no third-party notices in
the packages, and a Lean model of 14 steps against about 100 commands.
docs/routing.md: Muse Code still lists no Ember (19:30 MST).
Co-Authored-By: Claude <noreply@anthropic.com>
K-U6's review: ledger-gui's fmt::pct_change divides money amounts in f64
and prints the result, a money path by AGENTS.md's first non-negotiable.
It predates the sweep and routing it through percent_of would change
what it shows (it divides by the absolute previous figure), so it waits
for K-U9, which now names it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
S-C8 dropped BS-statement-3's and BS-partner-3's Rule n labels, which
had drifted from their positions; wanderbooks' cash-flow code and tests
still cite them by label (Rule 11 is statement 16).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What landed since yesterday's status, unit by unit, what the reviews and
the units found and fixed, and what is next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
S-E3 found two records still using the old words inside bookspec:
BS-format-2's statements cite each other as items, and BS-statement-3's
and BS-partner-3's statements carry Rule n labels that no longer equal
their positions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
S-E2 found that S-E's rewrite kept the old item numbers after the new
ids: BS-statement-5 item 7 now means finished or abandoned projects, not
what B-37 item 7 meant. 261 sub-references outside plan/ carry the old
numbering; S-E3 maps them from the last rules.md that held the text and
adds a test that each names an item the pinned record has.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
K-U3's review found the split ranks remainders by a rounded quotient, so
a tie goes where the 28th digit sends it. Making it exact moves a cent
between parties in recomputed past reports, so it is put to the owner
with the cents it moves; K-U3 keeps today's behaviour and pins it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found in X-H1a's re-check: every schedule event names its convention,
so no schedule example depends on the engine's BS-prepaid-2 pick, and
for whole months from the 1st the daily and equal-months methods agree.
The fix is a schedule that takes the engine's method, with a mid-month
start, where the two differ.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every slice adds to the same four files (the schema, its derivation, the
Lean runner and the adapter), so they cannot run in parallel; split by
what the schema must learn, A/R and A/P reading first (the most rules
for one new event and two queries).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
S-E rewrote every rule citation in comments, docs and tests, but kept
13 in program output and one golden unchanged: output is a contract,
and a golden only changes when recomputed by hand. S-E2 changes them
together, after checking none is stored in the books.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>