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:
1 parent
4c23fade7a
commit
b592aaf416
13 files changed
+175
-68
No files matched your search
@@ -349,13 +349,13 @@ fn a_package_the_build_refuses_journals_no_decision_even_with_a_reason() {
|
||||
draft(&mut w, "2026-03-10", "Open", "40.00");
|
||||
let mut args = json!({"as_of": "2026-03-31", "cash_accounts": ["1000"]});
|
||||
args["allow_open_drafts"] = json!({"reason": "the CPA wants it before the receipt comes"});
|
||||
let before = books.journal().len();
|
||||
let before = books.journal_raw().len();
|
||||
for _ in 0..2 {
|
||||
let why = answer_of(&w.call("books.export_cpa_package", args.clone()))
|
||||
.expect_err("the build refuses an unknown capital account");
|
||||
assert!(why.contains("unknown capital account 3999"), "{why}");
|
||||
assert_eq!(
|
||||
books.journal().len(),
|
||||
books.journal_raw().len(),
|
||||
before,
|
||||
"a decision was journaled for a package that was refused"
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user