Preflight

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/execution/preflight.tsRelative: loom/src/execution/preflight.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 84Bytes: 2,426Imports: 1Exports: 4

Content Preview

  1. /**
  2. * H3.7 — Preflight: before any recoverable|destructive action, scan a provided
  3. * list of staged file contents for unresolved markers (TODO, FIXME, <<<<<<<,
  4. * =======, >>>>>>>). Fail → bounce back to the model with the exact violation
  5. * string.
  6. */
  7. import { createLogger } from "../lib/logger";
  8. const log = createLogger({ component: "preflight" });
  9. /** Markers that signal unresolved work or merge conflicts. */
  10. const UNRESOLVED_MARKERS = [
  11. "TODO",
  12. "FIXME",
  13. "<<<<<<<",
  14. "=======",