From bd70a607d174c80b31902ef62200baaca1cacf91 Mon Sep 17 00:00:00 2001 From: Aditya Mukhopadhyay Date: Thu, 3 Dec 2026 20:42:49 +0530 Subject: [PATCH] Clarify retraction and durability test comments on main --- src/browser/flush_tests.rs | 2 +- src/db.rs | 2 +- src/graph/storage.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/browser/flush_tests.rs b/src/browser/flush_tests.rs index 6f88df8c37..4b3174fc19 100644 --- a/src/browser/flush_tests.rs +++ b/src/browser/flush_tests.rs @@ -603,7 +603,7 @@ async fn checkpoint_does_not_wait_for_later_writes() { tick().await; let boundary = checkpoint(&db); tick().await; - // Restore admission of transactions, retaining the first held callback. + // Let new transactions start while the first callback remains paused. first_fault.restore.call0(&JsValue::NULL).unwrap(); let later_fault = Fault::for_db(&db, "hold"); let later = execute(&db, write(2, 3)); diff --git a/src/db.rs b/src/db.rs index 23ef76c3c0..8c06d3ba46 100644 --- a/src/db.rs +++ b/src/db.rs @@ -3467,7 +3467,7 @@ mod tests { ); } - // ── file-backed: sync mode is plumbed through to both WalWriter call sites ── + // ── Both file-backed WalWriter calls use the selected sync mode ── /// #476: an in-memory handle under the `usize::MAX` sentinel closes /// without a checkpoint and without touching any file storage. diff --git a/src/graph/storage.rs b/src/graph/storage.rs index 8aa4407a89..27d9c1a83b 100644 --- a/src/graph/storage.rs +++ b/src/graph/storage.rs @@ -1127,9 +1127,9 @@ pub(crate) fn filter_facts_as_of(facts: Vec, as_of: &AsOf) -> Vec { /// (NaN canonicalisation, ±0.0 disambiguation) consistently with the rest of /// the storage layer. /// -/// This is the single source of truth for retraction semantics over facts: -/// the engine's pending scans use it (committed keys decide net-assert on -/// the keys, #379), and so do the tests' fact-level reads. +/// Pending scans in the engine and fact-level reads in tests use these +/// retraction rules. For pending scans, committed keys determine whether +/// their facts are net assertions (#379). /// /// # Implementation note ///