aetherlight: Docs loses Deref; reads are inherent methods and every row an iterator yields is counted

No behaviour change. Reads of a partition go through get, contains_key,
len, is_empty, iter, keys, values, range, Index and IntoIterator, so no
reader can bypass the test-build row counter by coercing to BTreeMap.
Resolver and is_genesis parameters take &Docs. golden.digests untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-20 05:51:57 +01:00
commit 436c6d59ca
4 changed files with 127 additions and 19 deletions

View file

@ -1169,7 +1169,7 @@ fn require_play(caller: &CallerId) -> Result<(), KernelError> {
/// `WorldState` so the genesis lane, which resolves declarations before any
/// `WorldState` exists, can call the same owner instead of hand-copying the
/// literal it would otherwise always evaluate to.
fn is_genesis(revision: u64, subjects: &BTreeMap<SubjectId, SubjectState>) -> bool {
fn is_genesis(revision: u64, subjects: &Docs<SubjectId, SubjectState>) -> bool {
revision == 0 && subjects.is_empty()
}