Skip to main content

zenith_tx/
lib.rs

1//! Transaction engine and audit contract for Zenith.
2//!
3//! Owns the v0 transaction op set and the apply/dry-run engine, referential-
4//! integrity and ID-uniqueness enforcement, the transaction-result contract
5//! (status, diagnostics, source diff, scene diff, affected node IDs, audit
6//! preview and audit record), and audit record production. Both the CLI and
7//! the future MCP surface sit on top of this crate; neither reimplements it.
8
9pub mod engine;
10pub mod merge;
11pub mod op;
12pub mod result;
13pub mod schema;
14
15// Curated flat re-exports.
16pub use engine::run_transaction;
17pub use merge::{merge_candidate_page, reconcile_candidate_tokens};
18pub use op::{Op, OpPoint, OpSpan, Permissions, Position, Transaction};
19pub use result::{TxError, TxResult, TxStatus};