Skip to main content

Module cohort_access_gate

Module cohort_access_gate 

Source
Expand description

Permission-Scoped Query, Explanation & Derivative Access Gate (C4–C5).

Enforces sensitivity tiers in context[56..63] (PUBLIC=0, RESTRICTED=1, CLASSIFIED=2) and human principal / delegated-agent authority (AUTH-H1..H6) across source queries, cohort estimates, inference explanations, error logs, and HMC export bundles.

Invariant (C4): Aggregation or estimation never auto-declassifies restricted inputs.

Structs§

CohortAccessReceipt
Zero-heap receipt returned after filtering a candidate cohort NQuin slice.
PrincipalAndAgentGrant
Scoped grant binding a human principal and an optional delegated agent.

Enums§

AccessGateError

Constants§

CONTEXT_GRAPH_MASK
SENSITIVITY_CLASSIFIED
SENSITIVITY_MASK
SENSITIVITY_PUBLIC
SENSITIVITY_RESTRICTED
SENSITIVITY_SHIFT

Functions§

authorize_derivative_or_explanation_export
Enforces C4: Aggregation or estimation never auto-declassifies restricted inputs.
extract_graph_context_hash
extract_sensitivity_class
filter_authorized_cohort_quins
Zero-heap filter for candidate cohort Quins before query evaluation or statistical estimation.
pack_context_with_sensitivity
validate_quin_access
Point check for single-Quin read access under an active grant.
verify_grant_active
Validates that the grant has an authentic human principal, is within its validity epoch, and has not been revoked.