Skip to main content

GRANT_PATH_SUBJECT

Constant GRANT_PATH_SUBJECT 

Source
pub const GRANT_PATH_SUBJECT: SubjectType;
Expand description

Sentinel ids (B2, #674) for auditing a decision that is NOT a per-op TE evaluation — today, the S6 grant path (mac::exchange::evaluate_grant), which decides against a UCAN grant’s capabilities, not a compiled TE matrix. AuditRecord has one shape (it predates the grant path); rather than fork the schema, a grant record uses these reserved ids so it is self-describing and can never collide with a real interned TE id (which starts from 0 and is bounded by the compiled registry). subject_type/ object_type reuse u32::MAX; action uses ScopeAction’s id space directly when the requested ability parses, or ACTION_UNRECOGNIZED otherwise (still recorded — an audit record for an unparseable ability is exactly the diagnosable case, not a reason to drop the record).