Pick the latest non-PENDING gateResult from manifest.history[], falling back to 'PENDING' when no closed gate is recorded.
PENDING
gateResult
manifest.history[]
'PENDING'
Parsed manifest
Latest non-PENDING gate result, or 'PENDING'
Pick the latest non-
PENDINGgateResultfrommanifest.history[], falling back to'PENDING'when no closed gate is recorded.