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, frontier_repository, reducer, repo,
24 sign, signing_input,
25};
26mod computed;
27pub use computed::{
28 frontier_profile, frontier_repo, frontier_settings, project, scientific_state, sources, state,
29 transfer_registry,
30};
31mod analysis;
32pub use analysis::{
33 atlas, boundary, contradiction, credit, diff, diff_pack_review, evidence_ci, evidence_diff,
34 evidence_polarity, frontier_bound, frontier_graph, frontier_identification, independence,
35 inspect_adapter, pathfind, propagate, released_diff_pack, scientific_diff, status_provenance,
36 transfer, verdict_conflict, verifier_attachment,
37};
38mod policy;
39pub use policy::{acceptance_policy, access_tier, endorsement, frontier_policy, tcb_policy};
40mod domains;
41pub use domains::{lean_verification, proof_verification, sidon_profile};
42mod objects;
43pub use objects::{
44 activity, anchor, attempt, cli_style, identity, merkle, nanopub, provenance, receipt_v1,
45 record, statement_attestation, verification_policy, verification_summary,
46};
47
48pub mod proposals;
49
50#[cfg(any(test, feature = "test-support"))]
51pub mod test_support;