# checkpoint_dependencies.toml - Complete configuration

# ============================================================================
# COLLECTION STAGE (No dependencies)
# ============================================================================

[checkpoints.exchange_collection_complete]
description = "Yahoo exchanges collected and validated"
depends_on = []

[checkpoints.lei_figi_mapping_complete]
description = "LEI-to-FIGI mappings from OpenFIGI API"
depends_on = []

# ============================================================================
# CLEANSING STAGE (Depends on collection)
# ============================================================================

[checkpoints.yahoo_companies_cleansed]
description = "Company data cleansed and validated"
depends_on = ["exchange_collection_complete"]

# ============================================================================
# ENRICHMENT GROUP (All depend on cleansed companies)
# ============================================================================

[groups.enrichment_group]
description = "Yahoo Finance enrichment functions"
members = [
    "yahoo_events_enrichment_complete",
    "yahoo_options_enrichment_complete",
    "yahoo_chart_enrichment_complete"
]
depends_on = ["yahoo_companies_cleansed"]

[checkpoints.yahoo_events_enrichment_complete]
description = "Corporate events enriched for all companies"
depends_on = []
group = "enrichment_group"

[checkpoints.yahoo_options_enrichment_complete]
description = "Options data enriched for all companies"
depends_on = []
group = "enrichment_group"

[checkpoints.yahoo_chart_enrichment_complete]
description = "Chart data enriched for all companies"
depends_on = []
group = "enrichment_group"

# ============================================================================
# SECURITIES PROCESSING (Depends on LEI mapping)
# ============================================================================

[checkpoints.securities_data_complete]
description = "Securities data built from FIGI mappings"
depends_on = ["lei_figi_mapping_complete"]