Expand description
§urge-runtime
The std-tier public API for URGE. This is the crate most applications
will depend on directly. It assembles all lower crates into a coherent,
easy-to-use governance interface.
§Quick start — healthcare
use urge_runtime::healthcare::HealthcareGovernor;
let mut gov = HealthcareGovernor::new();
// Register HIPAA obligation: must obtain consent within 24 hours.
gov.require_consent("P123", "nurse_007", 86_400_000_000_000); // 24h in ns
// Tick time forward — check for violations.
let now_ns: u64 = 1_000_000_000; // supply your own clock source
let violations = gov.tick(now_ns);
for v in &violations {
eprintln!("Violation: {:?}", v);
}
// Evaluate a governance expression before an action.
// `evaluate` takes the expression plus a slice of context slots.
let verdict = gov.evaluate("must audit_access", &[]);
assert!(verdict.valid, "Access denied by governance layer");§Quick start — embedded BIOS access control
use urge_runtime::embedded::BiosGovernor;
let gov = BiosGovernor::new();
// All evaluation is no-alloc, stack-only.
let permitted = gov.check_access("camera", "app.health", 45); // 45% batteryModules§
- audit
- Audit log — durable, append-only record of all governance decisions.
- embedded
- Embedded BIOS-like governance facade.
- healthcare
- Healthcare-specific governance facade.
Structs§
- Governance
Monitor - The full continuous governance engine.
- Governance
Pipeline - The complete governance pipeline (Figure 26).
- Obligation
- A tracked obligation in the world state.
- Pipeline
Config - Configuration for the governance pipeline.
- Verdict
- The outcome of a complete governance evaluation.
Enums§
- Expr
- A node in the multi-paradigm AST.
- Literal
- A literal value in an expression.
- Obligation
State - Lifecycle state of a single obligation.
- Obligation
Type - The SDL modality of this obligation.
- Paradigm
- All supported logic paradigms, ordered for stable bit-mapping.