cadrumo.application.modelo.work_lifecycle_ports module

Application-owned capabilities for Modelo work-unit lifecycle operations.

The lifecycle service coordinates the work-unit catalogue with the bucket event history that records each durable transition. It receives both authorities as one required bundle so application code does not construct or discover a persistence adapter. Outer composition roots bind the domain protocols to the secure-object-backed repositories for the requested profile bucket.

class WorkLifecyclePorts(work_unit_repository, bucket_event_repository)[source]

Bases: object

Required persistence authorities for one bucket-scoped lifecycle call.

Parameters:
work_unit_repository: WorkUnitCatalogueRepositoryProtocol
bucket_event_repository: BucketEventHistoryRepositoryProtocol
class WorkLifecyclePortsFactory(*args, **kwargs)[source]

Bases: Protocol

Construct the lifecycle authorities for one profile bucket.

class ActiveWorkLifecyclePortsFactory(*args, **kwargs)[source]

Bases: Protocol

Construct lifecycle authorities for the active execution profile.