Module audit

Module audit 

Source
Expand description

Audit event domain types and pure functions. Audit event domain types and pure functions.

This module defines the append-only audit event model, state materialization, reconciliation diff logic, and the writer trait. All types are storage-agnostic; concrete writers live in ito-core.

Re-exports§

pub use context::GitContext;
pub use context::resolve_user_identity;
pub use event::Actor;
pub use event::AuditEvent;
pub use event::AuditEventBuilder;
pub use event::EntityType;
pub use event::EventContext;
pub use event::TaggedAuditEvent;
pub use event::WorktreeInfo;
pub use event::ops;
pub use materialize::AuditState;
pub use materialize::materialize_state;
pub use reconcile::Drift;
pub use reconcile::FileState;
pub use reconcile::compute_drift;
pub use reconcile::generate_compensating_events;
pub use writer::AuditWriter;
pub use writer::NoopAuditWriter;

Modules§

context
Event context resolution: session ID, harness session ID, git context, and user identity.
event
Audit event types and builder.
materialize
State materialization from audit event sequences.
reconcile
Reconciliation diff logic: compare materialized audit state against file-on-disk state and produce drift items and compensating events.
writer
Audit writer trait and no-op implementation.