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

    Function readLatestGateResult

    • Read the gateResult from the most recent entry in the manifest's history[] array.

      Used by the article workflow to decide whether to consume a committed analysis folder: GREEN proceeds to Stage D, everything else exits noop.

      Parameters

      • manifestPath: string

        Absolute path to the run's manifest.json.

      Returns "GREEN" | "GREEN_WITH_WARNINGS" | "ANALYSIS_ONLY" | "PENDING"

      The latest gateResult, or 'PENDING' when the manifest is missing, unreadable, or contains no history entries.