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

    Module Aggregator/ArticleMeta

    Deterministic emitter for article-meta.json — a small structured sidecar written next to article.md in every analysis run directory. Consumers (HTML SEO/structured data, news indexes, RSS) read this file instead of re-parsing the article body.

    The file is a pure function of the run inputs:

    • manifest.json → article type, date, run id, gate result
    • executive-brief.md/synthesis-summary.md → top finding (lead)
    • intelligence/synthesis-summary.md → key takeaways (3–7 bullets)
    • risk-scoring/risk-matrix.md (if present) → top risks
    • intelligence/parliamentary-calendar-projection.md / extended/forward-indicators.md → key dates / what to watch
    • intelligence/economic-context.md → IMF / WorldBank macro hook

    Same artifact bytes in → same article-meta.json bytes out (verified by the determinism test).

    Functions

    extractTopRisks
    extractKeyDates
    extractKeyActors
    extractMacroContext
    extractKeyTakeaways
    buildArticleMeta
    serializeArticleMeta
    buildKeyTakeawaysMarkdown → buildKeyTakeaways

    Interfaces

    ArticleMeta
    BuildArticleMetaOptions