Expand description
Deontic logic engine — ODRL-based policy evaluation for credential-gated subgraph access.
The policy hierarchy maps agent Verifiable Credentials to SubgraphLayer access rights.
Policy evaluation is:
- Extract
VcAttributesfrom the agent’s NQuin slice (credential claims). - Evaluate against the
SubgraphPolicyfor the requested layer. - If the policy passes, call
KeyVault::generate_layer_key()and return it.
The deontic_logic module is intentionally free of heap allocation in evaluation paths
— all structures fit in fixed-size arrays.
Modules§
- vc_
roles - Compile-time hashes of canonical ODRL/Qualia role IRIs used in VC claims.
Structs§
- VcAttributes
- Parsed Verifiable Credential attributes for a single agent.
Enums§
- Deontic
Result - The result of a deontic policy evaluation for subgraph key release.
Functions§
- compile_
n3_ rule_ to_ norm - Compile an N3 rule into a norm Quin (or a defeater Quin if rule_type is Defeater).
- evaluate_
accessible_ layers - Convenience: evaluate which layers the agent can access and write the permitted
keys into
out, in ascending layer order. - evaluate_
vc_ for_ subgraph_ key_ release - Evaluate an agent’s VCs against the ODRL policy for
layerand, if permitted, return the derivedSubgraphKey. - write_
vc_ claim_ quins - Build the NQuins that record a VC credential claim for an agent, for insertion into the daemon graph.