Preflight

_archivesourcetypescript
Path: _archive/loom-stale-pre-sprint-snapshot/src/execution/preflight.tsRelative: loom-stale-pre-sprint-snapshot/src/execution/preflight.tsSubproject: _archiveCategory: archived
Lines: 47Bytes: 1,936Imports: 0Exports: 3

Content Preview

  1. /**
  2. * H3.7 — Self-consistency preflight (P5).
  3. * Before recoverable|destructive actions: the staged change (the tool args
  4. * content about to be written/applied) must carry no unresolved markers.
  5. * Violations bounce back to the model with the specific marker named.
  6. */
  7. const MARKERS: ReadonlyArray<{ re: RegExp; name: string }> = [
  8. { re: /\bTODO\b/, name: "TODO" },
  9. { re: /\bFIXME\b/, name: "FIXME" },
  10. { re: /^<{7}(\s|$)/m, name: "merge-conflict <<<<<<<" },
  11. { re: /^={7}$/m, name: "merge