aetherlight: the resolver's candidate graph is an overlay, not a copy of the world
resolve_patch no longer seeds fifteen maps by copying every partition. Each candidate map is an Overlay over its committed partition (patch/candidate.rs): reads fall through by point get, the patch's writes sit in a local map. The scale-sensitive reads are named methods of Candidate: occupants_under, offices_of, offices_held_by, kind_taken, import_key_held, custody, and a running overlap set re-judged at every write to authority, offices or retirement, which is graph_overlaps' answer because the committed world is disjoint. The seeding block and the old scans live on only as test references (Materialized), and the new tests hold every named read to them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b41cae3b87
commit
f18c6d5e18
3 changed files with 1416 additions and 549 deletions
|
|
@ -667,7 +667,7 @@ fn a_failed_apply_rolls_back() {
|
|||
|
||||
/// Worlds that between them hold a document in every partition: the golden
|
||||
/// session, the civic, custody and speech benches and the ticked clock bench.
|
||||
fn populated_worlds() -> Vec<crate::WorldState> {
|
||||
pub(crate) fn populated_worlds() -> Vec<crate::WorldState> {
|
||||
use crate::tests::{auth_principal, civic_world, creation, custody_world, owner, speech_world};
|
||||
let created = |title: &str| {
|
||||
WorldKernel::create(creation(title), &auth_principal(owner())).unwrap().0
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
1294
native/aetherlight/src/patch/candidate.rs
Normal file
1294
native/aetherlight/src/patch/candidate.rs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue