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:
NamedTupleLaw-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)
filing_year (int)
period_token (str)
resultado_scope (ResultDisposition | None)
tipo_renta_code (str | None)
-
resultado_scope:
ResultDisposition|None¶ Alias for field number 3
- deadline_semantic_coordinate(modelo, period, resultado_scope, tipo_renta_code)[source]¶
Project one deadline identity through the canonical typed axes.
Periodsupplies 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 bydeadline_window_semantic_coordinates()before uniqueness checks.- Return type:
- Parameters:
modelo (str)
period (Period)
resultado_scope (ResultDisposition | None)
tipo_renta_code (str | None)
- deadline_window_semantic_coordinates(modelo, window)[source]¶
Expand one window into every atomic request identity it can match.
Noneis 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:
- Parameters:
modelo (str)
window (DeadlineWindowDefinition)