pub enum DecisionReason {
Show 22 variants
Permit,
FloorDeny,
UnlabeledObject,
NoClearance,
WriteDirectionUndecided,
TeMiss,
Escalate,
TokenGate,
AuditFailClosed,
MoqUnlabeledSubject,
MoqNoPepInstalled,
MoqStaleAuthority,
MoqUnknownObjectIdentity,
MoqTrackAdmissionHookUnavailable,
GrantMissingSenderBinding,
GrantEmptyGrant,
GrantUnlabeledSubject,
GrantFloorDeny,
GrantChainInvalid,
GrantOverCeiling,
GrantAuditFailClosed,
MoqSourceOwnershipDenied,
}Expand description
Why the PDP returned this decision. Recorded so denials are diagnosable and so the policy-evolution feedback (deferred) can bucket denials by cause.
Variants§
Permit
Both the TE matrix and the lattice floor permitted the op.
FloorDeny
The MAC lattice floor denied (clearance does not dominate label).
UnlabeledObject
The PEP could not resolve a content-bound label for the object.
NoClearance
The PEP could not derive a verified subject clearance.
WriteDirectionUndecided
A write was denied because the system’s IFC write direction is not yet ratified. Writes fail closed until that policy decision is made.
TeMiss
The TE matrix had no allow (and no escalate) entry for the triple.
Escalate
The decision was Escalate (floor held, TE escalate-band hit).
TokenGate
The token gate denied (expired token or op outside the token op-set).
AuditFailClosed
Fail-closed: the audit write failed, so a Permit was downgraded to Deny. This is itself auditable (the deny is what the PEP enforced).
MoqUnlabeledSubject
The active MoQ/event PEP could not derive subject clearance.
MoqNoPepInstalled
The explicitly installed MoQ/event PEP had no operational policy.
MoqStaleAuthority
A streaming continuation’s MoQ authority was stale or revoked.
MoqUnknownObjectIdentity
The MoQ/event boundary coordinate did not decode into a typed track/prefix identity (malformed grammar, noncanonical service segment, or an internal map key passed as an identity).
Track admission was denied because moq-net has no #276 callback.
GrantMissingSenderBinding
No DPoP sender-binding proof was supplied (ZSP gate 1).
GrantEmptyGrant
The presented grant carries no capabilities at all (gate 2).
GrantUnlabeledSubject
The subject carried no derivable MAC clearance (gate 3, S1 floor).
GrantFloorDeny
The MAC clearance floor denied for a grant request (gate 5). Distinct
from DecisionReason::FloorDeny (a TE-path floor denial) so a grant
vs. per-op floor denial is distinguishable in the audit trail. Also
covers gate 4 (unlabeled object), which evaluate_grant maps to the
same GrantError::InsufficientClearance.
GrantChainInvalid
The UCAN chain failed S5 validation (gate 6: bad signature, broken linkage, widening, window escape, expiry, over-depth).
GrantOverCeiling
The request exceeded the grant’s ceiling (gate 7) — an escalation attempt, denied pending a ceiling amendment (S6 does not auto-widen).
GrantAuditFailClosed
A grant was Permit, but the caller’s sink (or checking can_sign
preflight) could not durably audit it — the permit is downgraded to
deny, mirroring DecisionReason::AuditFailClosed for the grant path.
MoqSourceOwnershipDenied
Native Event service identity does not own the requested source/op.
Implementations§
Trait Implementations§
Source§impl Clone for DecisionReason
impl Clone for DecisionReason
Source§fn clone(&self) -> DecisionReason
fn clone(&self) -> DecisionReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecisionReason
impl Debug for DecisionReason
Source§impl<'de> Deserialize<'de> for DecisionReason
impl<'de> Deserialize<'de> for DecisionReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DecisionReason
impl PartialEq for DecisionReason
Source§fn eq(&self, other: &DecisionReason) -> bool
fn eq(&self, other: &DecisionReason) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DecisionReason
impl Serialize for DecisionReason
impl Copy for DecisionReason
impl Eq for DecisionReason
impl StructuralPartialEq for DecisionReason
Auto Trait Implementations§
impl Freeze for DecisionReason
impl RefUnwindSafe for DecisionReason
impl Send for DecisionReason
impl Sync for DecisionReason
impl Unpin for DecisionReason
impl UnsafeUnpin for DecisionReason
impl UnwindSafe for DecisionReason
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request