Gate Escalation

loom-buildersourcetypescript
Path: loom-builder/src/gate-escalation.tsRelative: src/gate-escalation.tsSubproject: loom-builderCategory: dispatch-system
Lines: 295Bytes: 9,472Imports: 1Exports: 5

Content Preview

  1. /**
  2. * gate-escalation — consecutive-failure tracking and diagnostic interrogation.
  3. *
  4. * When the same validation gate fails 3 consecutive attempts, the harness stops
  5. * blind-retrying and interrogates the executor model about WHY. This prevents
  6. * the gaming anti-pattern: an executor rewriting 25 titles to satisfy a buggy
  7. * regex gate instead of reporting the defect.
  8. *
  9. * Design: escalation is always on (no config flag), enforced in code.
  10. */
  11. import type { EscalationClassification, Escalatio