From 47c3c7842f6c31af18cfaa2d84ada5dc83b9831b Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 8 Nov 2026 09:33:41 +0000 Subject: access: judged by the policy written under The rules read the policy at the change's dependencies only for strict mode, so history from before the policy was judged by today's rules when a late node caught up, or when REFUSALS had it judged again. A change written while the document had no policy, or one this node doesn't know, is now judged by none. Review finding 6. --- src/access/screen.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/access/screen.rs') diff --git a/src/access/screen.rs b/src/access/screen.rs index 8d23b47..35a2af7 100644 --- a/src/access/screen.rs +++ b/src/access/screen.rs @@ -579,6 +579,11 @@ mod tests { }; transact(&mut theirs, UnixMillis(1), &writer, |doc| { store::write_path(doc, &path("_continuum/swarm"), &json!("s"))?; + store::write_path( + doc, + &path("_continuum/access/policy"), + &json!({"version": 1}), + )?; store::write_path(doc, &path("_continuum/users/alice"), &alice) }) .unwrap(); -- cgit v1.3.1