vela_protocol/lib.rs
1//! The Vela protocol kernel: the typed, content-addressed substrate that turns
2//! scientific activity into signed, replayable state.
3//!
4//! Layering (a module's tier, not its file location):
5//! - **kernel** — the trust-critical core: `events` (canonical event types),
6//! `reducer` (the deterministic frontier state machine), `sign` (Ed25519),
7//! `bundle` (proof packets), `canonical` (canonical bytes/ids), `repo` (I/O).
8//! - **state** — computed views over the log: `state`, `registry`, `frontier_repo`.
9//! - **analysis** — derived, non-authoritative projections: `atlas`, `transfer`,
10//! `verifier_attachment`, `status_provenance`, `frontier_graph`, `boundary`,
11//! `contradiction`, `evidence_diff`.
12//! - **policy** — governance: `acceptance_policy`, `frontier_policy`, `tcb_policy`,
13//! `access_tier`.
14//! - **domains** — domain profiles: `sidon_profile`, `lean_verification`.
15//!
16//! Id prefixes (content-addressed unless noted): `vf_` finding, `vev_` signed
17//! event, `vfr_` frontier, `vpr_` proposal, `val_` signed anchor, `vtr_` signed
18//! transfer, `vva_` verifier attachment, `vsa_` statement attestation. Authority
19//! is key custody: an agent may draft, only a key-holding human signs an accept.
20
21mod kernel;
22pub use kernel::{
23 actor_registration, bundle, canonical, detached, events, reducer, repo, sign, signing_input,
24};
25mod computed;
26pub use computed::{frontier_repo, project, sources, state, transfer_registry};
27mod analysis;
28pub use analysis::{
29 atlas, boundary, contradiction, credit, diff, diff_pack_review, evidence_ci, evidence_diff,
30 evidence_polarity, frontier_bound, frontier_graph, frontier_identification, independence,
31 inspect_adapter, pathfind, propagate, released_diff_pack, scientific_diff, status_provenance,
32 transfer, verdict_conflict, verifier_attachment,
33};
34mod policy;
35pub use policy::{acceptance_policy, access_tier, endorsement, frontier_policy, tcb_policy};
36mod domains;
37pub use domains::{lean_verification, proof_verification, sidon_profile};
38mod objects;
39pub use objects::{
40 activity, anchor, attempt, cli_style, identity, merkle, nanopub, provenance, receipt_v1,
41 record, statement_attestation, verification_policy, verification_summary,
42};
43
44pub mod proposals;
45
46#[cfg(any(test, feature = "test-support"))]
47pub mod test_support;