Skip to main content

Crate zenith_tx

Crate zenith_tx 

Source
Expand description

Transaction engine and audit contract for Zenith.

Owns the v0 transaction op set and the apply/dry-run engine, referential- integrity and ID-uniqueness enforcement, the transaction-result contract (status, diagnostics, source diff, scene diff, affected node IDs, audit preview and audit record), and audit record production. Both the CLI and the future MCP surface sit on top of this crate; neither reimplements it.

Re-exports§

pub use engine::run_transaction;
pub use merge::merge_candidate_page;
pub use merge::reconcile_candidate_tokens;
pub use op::Op;
pub use op::OpPoint;
pub use op::OpSpan;
pub use op::Permissions;
pub use op::Position;
pub use op::Transaction;
pub use result::TxError;
pub use result::TxResult;
pub use result::TxStatus;

Modules§

engine
Transaction engine: run_transaction and all per-op application logic.
merge
Pure candidate-page merge and token-reconciliation helpers.
op
Transaction envelope: Transaction and the Op enum.
result
Transaction result types: TxResult, TxStatus, and TxError.
schema
Static schema metadata for the transaction op set.