How croviatrust/causari works
Causari is a Rust CLI for measuring survival of AI-attributed code in Git history and recording agent activity in a local causal ledger. Users run re audit for a history-based report, or initialize the ledger and capture agent actions to trace their causes and effects. The README also documents proxy capture, skills, MCP, and PNX proof-of-non-exfiltration capabilities. Edges reflect README workflows and relationships listed in the source index; unsampled command implementations are represented by their exact paths, with uncertain links omitted.
Main entry points: cli.rs CLI · hook.rs Agent hooks · pnx.rs PNX command · pnx_run.rs PNX runtime
Components 24
History audit
- CLI
src/cli.rs - Audit command
src/commands/audit.rs - Survival audit
src/audit.rs - Git repository
- Audit report
Agent capture
- Agent hooks
src/commands/hook.rs - Cursor hook
src/commands/hook/cursor.rs - LLM proxy
src/commands/proxy.rs - Exchange capture
src/capture.rs - Redaction
src/redact.rs
Causal ledger
- Tree snapshots
src/snapshot.rs - Event objects
src/object.rs - Content store
src/store.rs - Ledger refs
src/repo.rs - Event commit
src/commit.rs - Event index
src/index.rs
Ledger analysis
- Causal queries
src/commands/why.rs
Proof and trust
- PNX command
src/commands/pnx.rs - PNX proofs
src/pnx.rs - Reach record
src/pnx_reach.rs - PNX runtime
src/pnx_run.rs - Signed seals
src/seal.rs - Signing keys
src/keys.rs
Other components
- Engineer
Connections 28
- Engineer → CLI: runs commands
README.md - CLI → Audit command: dispatches audit
src/commands/audit.rs - Audit command → Survival audit: runs audit
src/commands/audit.rs - Survival audit → Git repository: reads history
README.md - Survival audit → Audit report: reports survival
README.md - CLI → Agent hooks: dispatches hooks
src/commands/hook.rs - Agent hooks → Exchange capture: records exchanges
src/commands/hook.rs - Agent hooks → Cursor hook: uses Cursor hook
src/commands/hook.rs - CLI → LLM proxy: dispatches proxy
src/commands/proxy.rs - LLM proxy → Exchange capture: parses exchanges
src/commands/proxy.rs - Agent hooks → Tree snapshots: captures tree state
src/commands/hook.rs - Agent hooks → Redaction: redacts captured data
src/commands/hook.rs - Exchange capture → Redaction: redacts content
src/capture.rs - Tree snapshots → Content store: writes blobs
src/snapshot.rs - Tree snapshots → Event objects: builds trees
src/snapshot.rs - Content store → Event objects: stores objects
src/store.rs - Event commit → Content store: persists events
src/commit.rs - Event commit → Ledger refs: updates refs
src/commit.rs - Event commit → Event index: indexes events
src/commit.rs - CLI → Causal queries: dispatches queries
README.md - CLI → PNX command: dispatches PNX
src/commands/pnx.rs - PNX command → PNX proofs: verifies proofs
src/commands/pnx.rs - PNX command → Reach record: checks reach
src/commands/pnx.rs - PNX command → PNX runtime: runs witness
src/commands/pnx.rs - PNX runtime → PNX proofs: builds run sheet
src/pnx_run.rs - PNX runtime → Reach record: records destinations
src/pnx_run.rs - PNX runtime → Signed seals: signs proof
src/pnx_run.rs - Signed seals → Signing keys: loads signing keys
src/seal.rs