gatelineAPI reference
  • escalations: read on its own, independent of whether the rest of the file matches the contract (#49). A malformed run still renders loudly — nothing here changes that — but for a governance surface an unresolved escalation is the one fact worth a best-effort read even when parseRunState already gave up on the whole document. Never throws: unparsable YAML, a missing escalations: key, or one that itself fails escalationSchema all resolve to no escalations, the same as a well-formed file with none, so a caller already showing "malformed" gets no second failure mode to handle.

    Parameters

    • text: string

    Returns {
        at: null | string;
        disposition: null | "re-review" | "return-to-implement" | "re-plan";
        from_role: null | string;
        reason: string;
        resolution: null | string;
        resolved: boolean;
        resolved_at: null | string;
        resolved_by: null | string;
        [key: string]: unknown;
    }[]