Probe Planner.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/dispatcher/probe-planner.test.tsRelative: loom/tests/dispatcher/probe-planner.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 197Bytes: 7,246Imports: 5Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for ProbePlanner (H2.5).
  3. *
  4. * Proves:
  5. * - api_integration + no behavior model → probe prepended (recoverable-only tools)
  6. * - probe has http_status criterion
  7. * - model exists → no probe
  8. * - hypothesis MemoryRecord validates against contract
  9. * - non-api_integration stages skip probe
  10. */
  11. import { describe, expect, test } from "bun:test";
  12. import { ProbePlanner } from "../../src/dispatcher/core/probe-planner";
  13. import { parseContract } from "../../src/lib/validate";
  14. import type { S