Expand description
Fail-closed bridge from signed QualiaDB consent to source-bound sensing authority.
The existing ConsentScope covers health record families, not sensor sources or
acquisition/processing acts. This module therefore requires host-provided identity,
sensor-scope, revocation, and trusted-clock authorities. It never treats a Quin or
caller-supplied identity projection as authorization.
This is one optional adapter for the existing signed grant, not the sole policy framework for sensing. The host must separately resolve data-subject ownership and any applicable guardianship through its selected policy system; this module alone does not bind or decide those relationships.
Structs§
- Revalidated
Sensing Use - Fresh, non-copy, exact-request handle for one immediate operation. It carries no persistent authority; callers must consume it at the operation boundary.
- Sensing
Permit - One-shot policy decision, not durable authorization. Before use, consume it
through
revalidate, which rechecks trusted time, identity, scope and live revocation. It is not a device receipt or proof that capture occurred. - Sensing
Request - Exact operation requested under a consent grant.
Enums§
- Authorization
Error - Sensing
Action - Distinct actions so capture consent cannot implicitly authorize later use.
- Sensing
Modality - Sensor family selected by the caller. NFC is distinct from Bluetooth even when both observations contain radio protocol identifiers. Unknown or future families need an explicit policy implementation before authorization.
Traits§
- Identity
Authority - Required fail-closed integration authorities. Implementations are trust boundaries and must be backed by authenticated identity, a sensor-specific signed scope assertion, durable revocation state, and a trusted clock.
- Revocation
Authority - Sensing
Scope Authority - Trusted
Unix Clock
Functions§
- authorize_
sensing - Verify grant signature/expiry, principal-recipient binding, exact purpose, sensor scope, and complete revocation state before minting a permit.