gatelineAPI reference
  • A run's state history (newest first, as stateHistory returns it) → one ledger entry per commit, each joined to the state that commit wrote (#426).

    parseLedgerSubject reads the words of the commit; this adds what the commit put in the record beside them. A decision row gains the approver's notes; a closure, its reason; an escalation resolution, who escalated and about what; an engine escalated, the card it opened. A commit outside the grammar gains the notes of any gate it decided and the closure reason if it closed the run — the v0 runs and a fixture's first commit record decisions that way. "Decided here" is read against the commit before it, and only when that commit's state parsed: an unreadable predecessor is not evidence, so nothing is attributed across it. artifacts is the run's artifact list, for resolving the report an escalation reason names.

    Parameters

    • history: readonly LedgerCommit[]
    • artifacts: readonly string[] = []

    Returns LedgerEntry[]