Expand description
Keepsake-backed fact resolution for gatekeep.
The adapter maps gatekeep FactIds to keepsake relation ids. Full decisions
resolve those facts from the principal’s active keepsakes. Query resolution
can either do the same request-scoped lookup or mark selected facts as
Unknown so a later QueryLowering adapter can turn them into row
predicates.
Structs§
- Fact
Binding - Mapping from one gatekeep fact to one keepsake relation.
- Keepsake
Resolver - Resolves gatekeep facts from active keepsake relations for the principal.
- Principal
Subject Mapper - Principal-only subject mapper for applications that already encode tenancy in keepsake subject identifiers.
- Tenant
Scoped Subject Mapper - Default tenant-aware subject mapper.
Enums§
- Fact
Binding Error - Errors returned while building typed fact bindings.
- Keepsake
Resolve Error - Backend error emitted by
crate::KeepsakeResolver. - Query
Presence - Whether a keepsake-backed fact is resolved during query preparation.
Traits§
- Active
Relation Source - Async read-side boundary for active relation state.
- Subject
Mapper - Maps a gatekeep request context to the keepsake subject being resolved.
Functions§
- principal_
subject - Maps a gatekeep context through
PrincipalSubjectMapper. - tenant_
scoped_ subject - Maps a gatekeep context through
TenantScopedSubjectMapper.