Correct store.rs and the cut9 header's no-second-writer prose

F7: store.rs claimed "no non-test code outside this crate touches a row
directly." False: MindStore's supertrait CacheBackingStore and the public
compare_and_swap_batch already let it. Rewrite the comment to say so, and
name the re-export honestly -- two traits, CacheBackingStore and
DatabaseEntry, plus DatabaseEntry's own derive macro riding along under the
same name in a different namespace. Sealing the store so admission is its
only write path stays a recorded follow-up, its own cut; nothing here seals
it.

The cut9 entries header rested the same false premise: "no behaviour this
Body can reach" for assignments_of and resolutions_of's two weakenings
assumed admission is the only write path. Corrected to "not yet reached,"
with the reason -- a row planted through the store port directly bypasses
A5's instance check and the leaf's kind/id grammar alike.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-22 03:22:41 +02:00
commit 7fc8ed3610
2 changed files with 35 additions and 16 deletions

View file

@ -12,11 +12,19 @@ use cultcache_rs::CultCacheEnvelope;
/// dependency entry, one rev, one place to move it.
pub use cultcache_rs::OwnedRedbMessagePackBackingStore;
/// CultCache's own row traits, re-exported for the same reason and used for
/// one thing: the daemon's store-integrity test reaches past this crate to
/// break a store's rows, so that a read over the broken store raises the
/// refusal its dispatch arm must carry. No non-test code outside this crate
/// touches a row directly, and nothing here abstracts them.
/// CultCache's own row traits, re-exported for the same reason: the crate
/// that serves a mind reaches a store's rows through here rather than
/// declaring `cultcache-rs` a second time. The daemon's store-integrity tests
/// use it to break a row on purpose, over a real store, so a read over the
/// broken store raises the refusal its dispatch arm must carry — but that is
/// not the only door a row already has: `MindStore`'s own supertrait is
/// `CacheBackingStore`, and its public `compare_and_swap_batch` already lets
/// non-test code outside this crate write a row directly. Sealing the store
/// so admission is its only write path is a follow-up, its own cut; this
/// re-export does not widen anything that door does not already reach. It
/// carries two traits, `CacheBackingStore` and `DatabaseEntry`, plus
/// `DatabaseEntry`'s own derive macro, which shares its name in a different
/// namespace and rides along unnamed.
pub use cultcache_rs::{CacheBackingStore, DatabaseEntry};
/// A store a mind can be opened over. `Clone` shares ownership of the same