Checkpoint
Path:
loom-sprint-scaffold/loom/src/orchestrator/core/checkpoint.tsRelative: loom/src/orchestrator/core/checkpoint.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 299Bytes: 9,633Imports: 8Exports: 2
Content Preview
- /**
- * H1.1 + H1.4 — The alarm-tick sequence: assemble current GoalState,
- * evaluate active stage done-criteria predicates, update per-stage
- * fail_streak, decide CONTINUE | REFORMULATE | HALT.
- *
- * REFORMULATE triggers at fail_streak === m exactly (m from tunables,
- * default 3), never another silent retry. Reformulation depth bounded
- * by max_reformulations (default 2) → then HALT with reason to human.
- * Every decision appends a trace event (kind=checkpoint) with evidence.
- */
- import { c