Expand description
Transport-neutral contracts for bounded authorization differential review.
This module owns no transport, request broker, runtime budget, credential source, or report. It validates one declared policy and two host-supplied principal contexts, captures four raw-value-free JSON views through the existing API visibility comparator, and classifies their relationship.
Structs§
- Authorization
Differential Receipt Id - Stable receipt for one complete four-view comparison invocation.
- Authorization
Differential Result - Complete raw-value-free differential receipt.
- Authorization
Principal Pair - Exactly two distinct, role-bound principal contexts.
- Authorization
Principal Pair Proof - Value-free evidence that a distinct primary/peer pair was checked.
- Authorization
Resource Scope Id - Pseudonymous exact selected-resource identity.
- Authorization
Review Policy - Strict, bounded policy for one exact-origin JSON resource.
- Authorization
Review Policy Id - Stable semantic identity of a validated policy.
- Authorization
Review View - One role-bound response reduced to bounded fingerprints and typed metadata.
- Authorization
View Receipt Id - Scanner-owned response-receipt correlation identity.
- Dimension
Equivalence - Equivalence result for the three required comparison dimensions.
- Peer
Authorization Principal - Host-supplied peer-principal
Authorizationheader value. - Primary
Authorization Principal - Host-supplied primary-principal
Authorizationheader value.
Enums§
- Authorization
Differential Error - Internal correlation/comparator failure.
- Authorization
Principal Error - Static, value-free principal validation failure.
- Authorization
Review Body State - Bounded response state supplied by a host/runtime before pure comparison.
- Authorization
Review Expectation - V1 host-declared relation under review.
- Authorization
Review Media Class - Normalized, value-free media classification bound to one response view.
- Authorization
Review Method - Read-only method supported by V1.
- Authorization
Review Outcome - Deterministic non-boolean four-view outcome.
- Authorization
Review Policy Error - Static, value-free policy validation failure.
- Authorization
Review View Error - View capture failure with no raw response values.
- Authorization
View Role - The four independently dispatched views required by V1.
Constants§
- AUTHORIZATION_
REVIEW_ ALGORITHM_ VERSION - Stable comparison and identity algorithm implemented by this module.
- AUTHORIZATION_
REVIEW_ POLICY_ SCHEMA - Purpose-oriented repository policy schema.
- HARD_
MAX_ AUTHORIZATION_ REVIEW_ DIFF_ PATHS - Maximum retained redacted diff paths in V1.
- HARD_
MAX_ AUTHORIZATION_ REVIEW_ IGNORED_ PATHS - Maximum ignored subtrees in V1.
- HARD_
MAX_ AUTHORIZATION_ REVIEW_ PATH_ BYTES - Maximum bytes in one canonical pointer.
- HARD_
MAX_ AUTHORIZATION_ REVIEW_ POLICY_ BYTES - Maximum accepted policy source bytes.
- HARD_
MAX_ AUTHORIZATION_ REVIEW_ SELECTED_ PATHS - Maximum selected subtrees in V1.
- HARD_
MAX_ AUTHORIZATION_ REVIEW_ UNORDERED_ ARRAY_ PATHS - Maximum unordered-array paths in V1.