cadrumo.domain.calculations.registry.identifier_evolutions module

Authored retirement and replacement of identifier-keyed declarations across editions.

A family whose members carry a stable, edition-free identifier inherits across editions: an unmentioned member is inherited, a restated member supersedes in place, and a withdrawal must be declared. This module is the declaration shape for that withdrawal, shared by every identifier-keyed family. A retired evolution ends the chain at the withdrawing edition; a replaced evolution ends it and names the successor identifier. Omission is never a withdrawal.

class RetiredIdentifierEvolution(**data)[source]

Bases: RegistryModel

The declaration named by identifier is withdrawn from to_revision onward.

Parameters:

data (Any)

kind: Literal['retired']
family: FamilyName
identifier: DeclarationIdentifier
to_revision: RevisionId
legal_refs: LegalRefs
source_refs: SourceRefs
class ReplacedIdentifierEvolution(**data)[source]

Bases: RegistryModel

The declaration named by identifier is superseded by replaced_by from to_revision.

Parameters:

data (Any)

kind: Literal['replaced']
family: FamilyName
identifier: DeclarationIdentifier
replaced_by: DeclarationIdentifier
to_revision: RevisionId
legal_refs: LegalRefs
source_refs: SourceRefs