cadrumo.domain.modelos.filing_text module

Bounded operator-supplied text carried by modelo filing records.

Three constrained string shapes recur across the modelo record models: the label naming who acted, the reason an operator gave for discarding or amending a revision, and the reference identifying an externally-filed return’s evidence. Each is declared here once and imported by every model that carries it, so a bound cannot drift between the work unit, the calculation revision, the verification report and the filing record.

This is a defining module, not a facade: nothing here re-exports, and the models that use these aliases import them from this path.

The neighbouring FilingEvidenceReference wrapper carries a SEPARATE 256-character reference and deliberately does not share EvidenceReference. Its reference is a nominal locator admitted at the evidence-collection boundary, while EvidenceReference identifies an AEAT justificante or live capture; the bounds differ because the referents do, and collapsing them would loosen the AEAT-facing one by 128 characters.

ACTOR_LABEL_MAX_LENGTH

Longest an actor label may be, wherever one is recorded.

One number because one operator resolver feeds every actor field. It was 64 here and 128 on the review package, and the review package’s own docstring recorded the difference as “unexplained rather than principled” and declined to narrow it – correctly, since tightening a persisted bound is a decision about stored data rather than a de-duplication.

Reconciled the other way instead. Widening refuses nothing that was accepted before, and the 64 turned out to be arbitrary: no fixed-width export slot binds an actor, so nothing downstream was relying on it.