cadrumo.domain.deadlines.fact_context module

Typed governed-fact resolution context for deadline consequences.

The deadline domain receives authority and both temporal coordinates from its application composition boundary. It does not open the bundled registry on a domain-method call: the caller must state the filing and submission dates that select each fact.

class DeadlineFactResolutionContext(authority, filing_period, submission_date)[source]

Bases: object

Authority and explicit filing/submission coordinates for deadline facts.

Parameters:
authority: GovernedFactSource
filing_period: date
submission_date: date
decimal(fact_id)[source]

Resolve a Decimal-valued deadline scalar while retaining provenance.

Return type:

Decimal

Parameters:

fact_id (str)

integer(fact_id)[source]

Resolve an integer-valued deadline scalar while retaining provenance.

Return type:

int

Parameters:

fact_id (str)

mapping_decimal(fact_id, key)[source]

Resolve one exact Decimal entry from a governed mapping fact.

A missing key is an unpublished legal coordinate, not permission to substitute the most recent value.

Return type:

Decimal

Parameters:
resolved_scalar(fact_id)[source]

Resolve a scalar on the fact’s declared temporal axis.

Return type:

ResolvedScalarFact

Parameters:

fact_id (str)

resolved_mapping(fact_id)[source]

Resolve a mapping on the fact’s declared temporal axis.

Return type:

ResolvedMappingFact

Parameters:

fact_id (str)