Gate Escalation.Test

loom-buildertesttypescript
Path: loom-builder/src/gate-escalation.test.tsRelative: src/gate-escalation.test.tsSubproject: loom-builderCategory: dispatch-system
Lines: 373Bytes: 15,237Imports: 3Exports: 0has tests

Content Preview

  1. import { describe, expect, test } from "bun:test";
  2. import {
  3. GateEscalationTracker,
  4. buildDiagnosticPrompt,
  5. parseDiagnosticResponse,
  6. appendDiagnosticReasoning,
  7. } from "./gate-escalation.js";
  8. import type { EscalationRecord } from "./types.js";
  9. // ---------------------------------------------------------------------------
  10. // 1. 2 consecutive failures of one gate → NO escalation triggered
  11. // ---------------------------------------------------------------------------
  12. describe("2 consecutive f