cadrumo.application.user_profile.profile_repository module

Committed-capsule profile projection repository.

This repository owns only mutable presentation labels. UUID discovery and all custody facts are delegated to the current-format capsule adapter; a label record without a valid committed capsule is intentionally invisible.

class CommittedProfileRepository(*, root=None)[source]

Bases: object

Resolve labels and UUIDs only for validated committed capsules.

Parameters:

root (Path | None)

property root: Path

Return the storage root used for committed-capsule discovery.

load(profile_id)[source]

Load one validated committed capsule by canonical UUID.

Return type:

CommittedProfileView

Parameters:

profile_id (str | UUID)

resolve(value)[source]

Resolve an exact UUID or exact label without scanning retired buckets.

Return type:

CommittedProfileView

Parameters:

value (str)

list()[source]

Project only current capsules recognized by the custody adapter.

Return type:

tuple[CommittedProfileView, ...]

load_unlocked(profile_id)[source]

Project fact state and provenance only through the current authenticated session.

Return type:

CommittedProfileView

Parameters:

profile_id (str | UUID)