Checkpoint

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/orchestrator/core/checkpoint.tsRelative: loom/src/orchestrator/core/checkpoint.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 299Bytes: 9,633Imports: 8Exports: 2

Content Preview

  1. /**
  2. * H1.1 + H1.4 — The alarm-tick sequence: assemble current GoalState,
  3. * evaluate active stage done-criteria predicates, update per-stage
  4. * fail_streak, decide CONTINUE | REFORMULATE | HALT.
  5. *
  6. * REFORMULATE triggers at fail_streak === m exactly (m from tunables,
  7. * default 3), never another silent retry. Reformulation depth bounded
  8. * by max_reformulations (default 2) → then HALT with reason to human.
  9. * Every decision appends a trace event (kind=checkpoint) with evidence.
  10. */
  11. import { c