aeat.domain.calculations.registry._validate_reference_checker module

Reference-checker accumulator for snapshot validation.

IdReferenceChecker collects all typed-ID sets from a RegistrySnapshot and accumulates dangling-reference diagnostics used by the per-section reference walkers.

class IdReferenceChecker(snapshot)[source]

Bases: object

Accumulates dangling typed-ID reference diagnostics for one snapshot.

Holds the per-kind ID sets and a failures buffer so per-kind reference walkers can stay focused on their own field paths instead of juggling closure state.

Parameters:

snapshot (RegistrySnapshot)

prefix
failures: list[str]
casilla_ids: set[TypeAliasType]
casilla_data_types: dict[TypeAliasType, str]
formula_ids
parameter_ids
binding_ids
algorithm_provider_ids
algorithm_binding_ids
relation_ids
export_layout_ids
export_field_ids
extraction_profile_ids
cross_reference_ids
workbook_parity_ids
verification_expectation_ids
deadline_window_ids
filing_schedule_ids
support_removal_decision_ids
construct_ids
dependency_classification_ids
legal_ids
legal_evidence_tiers
source_ids
chk(field_path, value, id_set)[source]
Return type:

None

Parameters:
chk_opt(field_path, value, id_set)[source]
Return type:

None

Parameters:
chk_tuple(field_path, values, id_set)[source]
Return type:

None

Parameters:

Single-call helper for the (legal_refs, source_refs) pair every record carries.

Return type:

None

Parameters:
  • owner (str)

  • legal_refs (tuple[LegalRefId, ...])

  • source_refs (tuple[SourceRefId, ...])