EU Parliament Monitor — API Documentation - v0.8.53
    Preparing search index...

    Module Config/ArticleHorizons

    Single source of truth for every article horizon — slug, perspective, data window, cadence, mandatory artifacts, stage budgets, scenario depth, electoral overlay and forward-statement horizon.

    Adding a new article horizon is a four-step change:

    1. New ArticleCategory enum value.
    2. New entry in ARTICLE_HORIZONS keyed by that category.
    3. Per-language title generator in src/constants/language-articles.ts.
    4. New news-<slug>.md workflow under .github/workflows/.

    The aggregator (src/aggregator/article-metadata.ts), forward-statements registry (scripts/aggregator/forward-statements-registry.js) and the drift-guard tests all consume this registry directly. The validator (scripts/validate-analysis-completeness.js) currently still uses its own per-slug map; converging it onto mandatoryArtifacts[] from this registry is tracked as deferred work in the slicing plan and will eliminate the remaining drift between the two surfaces.

    • analysis/methodologies/forward-projection-methodology.md
    • analysis/methodologies/electoral-cycle-methodology.md

    Functions

    getHorizonConfig
    getProspectiveSlugs
    getElectoralOverlaySlugs
    getMandatoryArtifacts

    Interfaces

    DataWindowConfig
    StageBudgetConfig
    CadenceConfig
    ArticleHorizonConfig

    Type Aliases

    DataWindowDirection
    DataWindowAnchor

    Variables

    ARTICLE_HORIZONS