Harness.Test
Path:
loom-sprint-scaffold/loom/tests/execution/harness.test.tsRelative: loom/tests/execution/harness.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 612Bytes: 20,705Imports: 4Exports: 0has tests
Content Preview
- /**
- * Integration tests for harness (runStage).
- *
- * Proves every StageTermination kind is reachable:
- * DONE | GATE_REJECT | HALT_LOOP | TOKEN_DENIED | ESCALATE_CONFIDENCE |
- * BUDGET_SUSPEND | PREFLIGHT_FAIL | MODEL_ERROR
- *
- * Uses scripted fake ModelCaller with a stateful approach that handles
- * ack compliance correctly by responding to tool results with proper
- * <ack> tags. Never touches network.
- */
- import { describe, expect, test } from "bun:test";
- import { runStage } from "../../src/