cadrumo.core.profile_publication module

Why a profile custody capsule was published.

One vocabulary, previously written out at ten annotation sites across seven modules in two layers: the custody capsule records and their writers, the profile aggregate and summary views, and the custody service and ports between them. They agreed only because nobody had changed one of them.

The custody adapters and the profile application code both reach core, so the definition lives here rather than in either of them.

class ProfilePublicationKind(*values)[source]

Bases: StrEnum

Which act published this generation of a profile’s custody capsule.

ENROLL

First publication, establishing custody for a profile that had none.

RESTORE

Republication of custody for a profile that already had it.

A restore says the capsule was re-established, and deliberately not what authorised it – that is a separate axis, and the two must not be merged.

ProfilePublicationKindValue

The same vocabulary for a strict model field or a boundary parameter.

A bare enum under strict validation refuses the plain token a serialised capsule record carries, so those fields take this literal over the members above rather than restating the pair.

alias of Literal[ENROLL, RESTORE]