cadrumo.application.workflow.profile_bucket_scan module¶
Committed-capsule profile discovery for workflow projections.
Workflow sees only the non-authoritative UUID and label projection emitted by the custody capsule owner. It does not inspect manifests, buckets, deleted directories, or record facts.
That projection is exactly what the profile summary inventory observes, so this module reads it rather than building a second one. It previously went through the authenticated aggregate, which took a per-profile custody lock and could publish a label head as a side effect of resolving a name – work no consumer here needs, and a second definition of “which profiles exist” that could disagree with the first.
It takes the REFUSING half of that boundary. Callers here receive a pointer or
None, with no channel to explain a store that could not be read, so an
unreadable capsule must raise rather than resolve to “absent” – health
assessment distinguishes a dangling pointer from an unreadable capsule, and
collapsing the two reports a damaged profile as a missing one.
- read_profile_bucket(label, *, root=None)[source]¶
Resolve one exact label from committed-capsule label projections.
- Return type:
- Parameters:
- read_profile_bucket_by_id(profile_id, *, root=None)[source]¶
Resolve one UUID only when its current capsule is committed.
- Return type:
- Parameters: