Harness.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/execution/harness.test.tsRelative: loom/tests/execution/harness.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 612Bytes: 20,705Imports: 4Exports: 0has tests

Content Preview

  1. /**
  2. * Integration tests for harness (runStage).
  3. *
  4. * Proves every StageTermination kind is reachable:
  5. * DONE | GATE_REJECT | HALT_LOOP | TOKEN_DENIED | ESCALATE_CONFIDENCE |
  6. * BUDGET_SUSPEND | PREFLIGHT_FAIL | MODEL_ERROR
  7. *
  8. * Uses scripted fake ModelCaller with a stateful approach that handles
  9. * ack compliance correctly by responding to tool results with proper
  10. * <ack> tags. Never touches network.
  11. */
  12. import { describe, expect, test } from "bun:test";
  13. import { runStage } from "../../src/