Decomposer
Path:
loom-sprint-scaffold/loom/src/orchestrator/core/decomposer.tsRelative: loom/src/orchestrator/core/decomposer.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 230Bytes: 8,248Imports: 7Exports: 2
Content Preview
- /**
- * H1.3 — Decompose a goal spec into a sequence of StageSpec[] via a single
- * model call. Each StageSpec is validated against stage-spec.schema.json.
- *
- * Rejects any stage whose done_criteria are not machine-evaluable every
- * predicate must have kind ∈ {exit_code, http_status, schema_valid,
- * file_exists, test_pass, sql_assert}. On violation, re-prompt with the
- * SPECIFIC violation text, max 2 model attempts, then throw DecompositionError.
- */
- import { parseContract, checkContract } f