1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # spacedb-console — the operator's read-model
//!
//! The substance of an operations console is not pixels — it is the logic that
//! turns raw fleet / access / audit / settlement [`Observations`] into the four
//! boards a SpaceDB business is run from:
//!
//! 1. **Fleet Health** ([`FleetHealth`]) — durability + availability: under-replicated,
//! at-risk and lost shards, quorum loss, lag; one Green/Amber/Red rollup.
//! 2. **Access & Audit** ([`AccessOverview`]) — human vs AI-agent capabilities,
//! expirations, revocations, per-agent activity, denials.
//! 3. **Economics** ([`Economics`]) — revenue, spend per customer, per-rail split,
//! agent budget burn-down, unsettled claims.
//! 4. **Alerts** ([`Alert`]) — the page-me surface, severity-sorted.
//!
//! [`Dashboard::assemble`] computes all four from one snapshot; [`Dashboard::render_text`]
//! prints them. A Dioxus/WASM shell binds the same fields to a UI:
//!
//! ```ignore
//! // in the Dioxus shell (compiles to wasm32, not part of the tested core):
//! let dash = Dashboard::assemble(&observations, &Config::at(now));
//! rsx! {
//! HealthBadge { status: dash.health.status }
//! for alert in dash.alerts { AlertRow { alert } }
//! EconomicsPanel { economics: dash.economics }
//! }
//! ```
//!
//! Open-core (MIT). Fed by observation DTOs, so it stays decoupled and testable.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
// Re-export the shared economics vocabulary.
pub use Resource;
/// Compiles the README's examples as doctests, so the documented API can never
/// drift from the real one. Not part of the public API, and not rendered into
/// the crate docs — it exists only under `cargo test --doc`.
;