cadrumo.domain.calculations.registry.deadline_coordinate module

Canonical semantic identity for registry deadline windows.

class DeadlineSemanticCoordinate(modelo, filing_year, period_token, resultado_scope, tipo_renta_code)[source]

Bases: NamedTuple

Law-fact identity shared by deadline validation and projection.

Dates, authored ids, revision ids, and declared cadence are intentionally absent. They describe or own a deadline fact; they cannot make two copies of the same fact semantically distinct.

Parameters:
modelo: str

Alias for field number 0

filing_year: int

Alias for field number 1

period_token: str

Alias for field number 2

resultado_scope: ResultDisposition | None

Alias for field number 3

tipo_renta_code: str | None

Alias for field number 4

deadline_semantic_coordinate(modelo, period, resultado_scope, tipo_renta_code)[source]

Project one deadline identity through the canonical typed axes.

Period supplies the filing year and registry token. Calling the shared cadence classifier here keeps the projection on the registry period vocabulary without copying its parser or token map. Qualifier values are atomic: authored scopes are expanded by deadline_window_semantic_coordinates() before uniqueness checks.

Return type:

DeadlineSemanticCoordinate

Parameters:
deadline_window_semantic_coordinates(modelo, window)[source]

Expand one window into every atomic request identity it can match.

None is a wildcard in deadline resolution. Expanding it here makes an unqualified window collide during registry validation with every qualified window it would shadow at runtime. The expansion reuses the canonical core enum and official M210 code projection; it owns no vocabulary of its own.

Return type:

tuple[DeadlineSemanticCoordinate, ...]

Parameters: