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,
)
| 502 | /// (`InodeAttrEvent::new` rejects it), so the closure check alone is |
| 503 | /// exact. |
| 504 | fn get_inode_attr_events( |
| 505 | &self, |
| 506 | position: Position<NodeId>, |
| 507 | name: crate::change::InodeAttrName, |
| 508 | ) -> Result<Vec<crate::pristine::InodeAttrEvent>, PristineError> { |
| 509 | Ok(self |
| 510 | .inner |
| 511 | .get_inode_attr_events(position, name)? |
| 512 | .into_iter() |
| 513 | .filter(|event| self.visibility.contains(event.introduced_by)) |
| 514 | .collect()) |
| 515 | } |
| 516 | |
| 517 | fn get_inode_attr_events_by_inode( |
| 518 | &self, |