Merge branch 't3/transactional-mcp-writes': every write through the tools is one transaction, exactly once (P15 T1, D-88, D-89)

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:34 -07:00
commit 38647e2143
61 files changed
+5801 -339

No files matched your search

+5 -1
View File
@@ -4769,8 +4769,12 @@ mod tests {
assert_eq!(added.len(), 1, "one line");
assert_eq!(added[0]["type"], "journal.format_set");
let c = ledger_store::format::current();
// The declaration also gives older books their id (plan P15 6a).
let mut declared = added[0]["payload"].clone();
let books_id = declared.as_object_mut().unwrap().remove("books_id");
assert_eq!(books_id.and_then(|v| v.as_str().map(str::len)), Some(32));
assert_eq!(
added[0]["payload"],
declared,
serde_json::json!({"format": c.format, "features": c.features})
);
assert_eq!(done.head.0, backup.head.0 + 1);