Enrich — Acteurs SIRET & SIREN (lien succession) (enrich_siret_siren_lien_succession)¶
This DAG proposes SIREN/SIRET successor replacements for visible acteurs,
using resolved Annuaire Entreprises (AE)
succession links. It first refreshes the dbt models
(dbt run --select +tag:lien_succession), runs tests, then generates grouped
suggestions for one cohort.
Suggestions use the SuggestionGroupe / SuggestionUnitaire mechanism
(non-legacy): one group and one unitary suggestion per corrected acteur.
Cohort — SIREN/SIRET successor from lien succession¶
dbt model: exposure_stats_acteur_siret_successeur
Input population: visible acteurs from marts_ae_lien_succession_resolved_vueacteur
with an active AE successor establishment. Acteurs whose current SIREN/SIRET
couple already matches the successor couple are excluded at suggestion time.
Proposal: update both siren and siret to the resolved successor values.
Grouping rules:
Each corrected acteur gets its own
SuggestionGroupe, even when several acteurs share the same source couple or the same proposed successor couple.