Only register events introduced by changes visible in THIS view. The POSITION_ATTRS/INODE_ATTRS tables are global, so the raw read returns every sibling's writers. A change assembled on this view must not import invisible sibling causality: an event written by a change outside the view's closure is not an ancestor of the new change, and wiring it as a dependency leaks foreign causality into the a
(
&self,
position: Position<NodeId>,
name: crate::change::InodeAttrName,
)
| 496 | /// (`InodeAttrEvent::new` rejects it), so the closure check alone is |
| 497 | /// exact. |
| 498 | fn get_inode_attr_events( |
| 499 | &self, |
| 500 | position: Position<NodeId>, |
| 501 | name: crate::change::InodeAttrName, |
| 502 | ) -> Result<Vec<crate::pristine::InodeAttrEvent>, PristineError> { |
| 503 | Ok(self |
| 504 | .inner |
| 505 | .get_inode_attr_events(position, name)? |
| 506 | .into_iter() |
| 507 | .filter(|event| self.visibility.contains(event.introduced_by)) |
| 508 | .collect()) |
| 509 | } |
| 510 | |
| 511 | fn get_inode_attr_events_by_inode( |
| 512 | &self, |