[roads] The road model, validator, compiler and explain; proto's versioned CBOR messages; the via command
Road files in Pensum's strict header subset (unknown keys are errors, random ids), the directory and device snapshots, deny-by-default compilation to one plan per device, explain from the compiler's own grants, CBOR envelope v1 with version-first refusals. Tests: the six mandatory ones (validation fixtures for every rule, revocation, the least-privilege property against an independent oracle, determinism with golden plans, explain, custom round-trip), QA's attack cases, the protocol and the CLI.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
//! Via Domi's road model, its validator and the compiler from roads to per-device plans.
|
||||
//!
|
||||
//! Pure: the only I/O is [`Store::load_dir`] reading the store; no network, no clock (`now` is a parameter),
|
||||
//! no randomness (ids take a random source as a parameter). See `docs/02_via-core.md` and `docs/FORMATS.md`.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
pub mod compile;
|
||||
pub mod explain;
|
||||
pub mod header;
|
||||
pub mod id;
|
||||
pub mod ids;
|
||||
pub mod net;
|
||||
pub mod plan;
|
||||
pub mod ports;
|
||||
pub mod problem;
|
||||
pub mod road;
|
||||
pub mod rules;
|
||||
pub mod snapshot;
|
||||
pub mod store;
|
||||
|
||||
pub use compile::{Compiled, Grant, compile};
|
||||
pub use explain::explain;
|
||||
pub use id::RoadId;
|
||||
pub use ids::{AppId, DeviceKey, GroupId, Hostname, PersonId};
|
||||
pub use plan::Plan;
|
||||
pub use problem::{Problem, Severity};
|
||||
pub use road::{Body, Place, Road, Subject, Verb};
|
||||
pub use snapshot::{Devices, Directory};
|
||||
pub use store::Store;
|
||||
Reference in New Issue
Block a user