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

    Function readLatestResolvedGateResult

    • Find the most-recent resolved (non-PENDING) gateResult in a manifest's history[] array by searching backward from the end.

      Used by the --analysis-only wrap-up path to carry forward the Stage-C result already written by the AI agent, so the discovery history entry produced by runAnalysisStage preserves GREEN / ANALYSIS_ONLY instead of clobbering it with the default PENDING.

      Parameters

      • manifestPath: string

        Absolute path to the run's manifest.json.

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

      The latest non-PENDING gateResult, or 'PENDING' when none exists or the manifest is missing / unreadable.