Decomposer.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/orchestrator/decomposer.test.tsRelative: loom/tests/orchestrator/decomposer.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 182Bytes: 6,299Imports: 4Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for decomposer (H1.3).
  3. *
  4. * Proves:
  5. * - rejects non-machine-evaluable done_criteria with the specific violation
  6. * - accepts valid stage specs
  7. * - throws DecompositionError on failure
  8. */
  9. import { describe, expect, test } from "bun:test";
  10. import { decompose, DecompositionError } from "../../src/orchestrator/core/decomposer";
  11. import type { ModelCaller, AnthropicResponse } from "../../src/types/execution";
  12. import type { GoalId } from "../../src/types/contracts";
  13. const GOAL_ID = "