Escalation Ledger
Path:
loom-sprint-scaffold/loom/src/orchestrator/core/escalation-ledger.tsRelative: loom/src/orchestrator/core/escalation-ledger.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 115Bytes: 3,562Imports: 5Exports: 3
Content Preview
- /**
- * H1.4 — Escalation ledger for per-stage fail_streak persistence and
- * escalation records. Append-only records are surfaced via GET.
- *
- * Used by checkpoint to track how many consecutive failures a stage has
- * accumulated and when escalation actions were taken.
- */
- import { newEventId } from "../../lib/ids";
- import { createLogger } from "../../lib/logger";
- import type { GoalId, StageId } from "../../types/contracts";
- import type { CheckpointDecision } from "./types";
- import type { KVSto