cadrumo.application.modelo.work_profile module

The decrypted profile one modelo work command carries through its call chain.

Core types: UserProfileRecord.

class ModeloWorkProfile(record, profile_decode_context)[source]

Bases: object

One authenticated profile record and the decode context its session used.

A command loads this once for its target bucket and hands the same value to every gate, resolver and advisory it runs, instead of each of them decrypting the same unchanged record again.

Parameters:
record: UserProfileRecord
profile_decode_context: ProfileDecodeContext
class ModeloWorkProfilePathValues(profile)[source]

Bases: object

Serve the path-keyed projection of an already-loaded work profile.

Satisfies ProfilePathValuesReadPort with the same absence semantics as the session-bound persistence reader: a bucket other than the loaded profile’s own has no profile here.

Parameters:

profile (ModeloWorkProfile)

profile: ModeloWorkProfile
load_path_values(*, bucket_id)[source]

Return the loaded record’s path values, or None for any other bucket.

Return type:

Mapping[str, str] | None

Parameters:

bucket_id (str)