Decomposer.Test
Path:
loom-sprint-scaffold/loom/tests/orchestrator/decomposer.test.tsRelative: loom/tests/orchestrator/decomposer.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 182Bytes: 6,299Imports: 4Exports: 0has tests
Content Preview
- /**
- * Tests for decomposer (H1.3).
- *
- * Proves:
- * - rejects non-machine-evaluable done_criteria with the specific violation
- * - accepts valid stage specs
- * - throws DecompositionError on failure
- */
- import { describe, expect, test } from "bun:test";
- import { decompose, DecompositionError } from "../../src/orchestrator/core/decomposer";
- import type { ModelCaller, AnthropicResponse } from "../../src/types/execution";
- import type { GoalId } from "../../src/types/contracts";
- const GOAL_ID = "