Escalation Ledger.Test
Path:
loom-sprint-scaffold/loom/tests/orchestrator/escalation-ledger.test.tsRelative: loom/tests/orchestrator/escalation-ledger.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 110Bytes: 3,728Imports: 4Exports: 0has tests
Content Preview
- /**
- * Tests for EscalationLedger (H1.4).
- *
- * Proves:
- * - fail_streak increment/reset
- * - escalation records append-only
- * - records surfaced via GET
- */
- import { describe, expect, test } from "bun:test";
- import { EscalationLedger } from "../../src/orchestrator/core/escalation-ledger";
- import type { KVStore } from "../../src/orchestrator/core/types";
- import type { GoalId, StageId } from "../../src/types/contracts";
- function fakeKVStore(): KVStore {
- const store = new Map<string, unknown>