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.
Find the most-recent resolved (non-
PENDING)gateResultin a manifest'shistory[]array by searching backward from the end.Used by the
--analysis-onlywrap-up path to carry forward the Stage-C result already written by the AI agent, so the discovery history entry produced byrunAnalysisStagepreservesGREEN/ANALYSIS_ONLYinstead of clobbering it with the defaultPENDING.