aeat.application.modelo._autonomic_deduccion_advisory module¶
Madrid nacimiento/adopción D4 indeterminate-eligibility advisory for verification.
The Madrid nacimiento/adopción deducción autonómica (casilla 1039, DL 1/2010
arts. 4 y 18.1) auto-populates on the calculate path only for the determinable
single/monoparental individual filer
(_inject_derived_autonomic_deduccion_facts());
a tributación conjunta declaration or a married/pareja-de-hecho filer is
fail-closed by design (ADR 2026-07-01-autonomic-deduccion-auto-trigger-adr,
decision D4) because the unidad-familiar 61.860 € límite needs the spouse’s
base imponible, which the app does not persist. That fail-closed branch
resolves casilla 1039 to zero with no operator-facing signal that the
entitlement might still exist.
This module implements the deferred D4 advisory: when the filer is a Madrid
resident with at least one nacimiento/adopción-eligible descendant, the unit is
indeterminate (conjunta or married/partnered), and casilla 1039 has resolved to
zero, emit a non-blocking ADVISORY prompting the operator to confirm eligibility
and consider entering the deducción manually. The finding stays advisory
because the unidad-familiar income-limit gate genuinely cannot be evaluated
from data this application holds (no-silent-under-declaration is
symmetric for a deducción: over-claim, not silence, is the hazard the
calculate-path fail-closed default already guards against; this advisory is
the surface half of that same guard).
The advisory reads the casilla-1039 semantic role and the resolved input value
off the verify-time RegistrySnapshot
for the target modelo revision, the same authority the calculate path resolves
its registry formula against.
See also
_inject_derived_autonomic_deduccion_facts()The calculate-path injector whose fail-closed branch this advisory surfaces to the operator.
_madrid_nacimiento_adopcion_candidate_weighted_count()Shared candidate-count primitive: evaluates only the per-descendant window/cohabitation condition, independent of the unit’s determinability.
_collect_revision_verification_findings()Verification collector that appends this advisory beside the DT 12ª / art. 20 / art. 52 / Convenio LOB advisories using the same non-blocking mechanism.