docs,test: claims WB-format-8 to 10, the interface, the handbook and the tests follow the review

WB-format-8 now says every reader applies the frame rule because ids are
reused after a failed call, and names the committed accessor and the labels;
WB-format-9 the keyed argument digest, the bounded answer, the in-memory
table for calls that wrote nothing and what a repeat of a long answer is
told; WB-format-10 the vault staged inside the transaction and the honest
words when the closing line is on disk. docs/mcp-interface.md, the receipt
store's frame paragraph and the handbook (contract, tracing figures) say the
same.

Tests follow the new shapes: a call that wrote nothing leaves no line, the
head a write answers is where its own lines end and its closing line follows,
the idempotency table compares events, and the checks that a refusal or a
preview wrote nothing compare the raw journal.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 10:40:00 -07:00
1 parent 4c23fade7a
commit b592aaf416
13 files changed
+175 -68

No files matched your search

+3 -3
View File
@@ -997,11 +997,11 @@ fn books_p2_served_cut_over_whole() {
}
let verified = a.call("books.verify", json!({})).unwrap();
assert_eq!(verified["status"], "ok", "{verified}");
// It counts the lines there were when it ran: the call's own closing
// line comes after its answer.
// It counts the lines there were when it ran, all of them: a call that
// wrote nothing leaves no closing line of its own.
let events = verified["events"].as_u64().unwrap();
let on_disk = journal(&dir).iter().filter(|b| **b == b'\n').count() as u64;
assert!(events > 470 && events < on_disk, "{events} of {on_disk}");
assert!(events > 470 && events == on_disk, "{events} of {on_disk}");
assert_eq!(verified["database"], ledger_store::db_file());
assert_eq!(verified["other_databases"], json!(["wanderbooks.db"]));
assert_eq!(