Exit Matrix

loom-builder-solsourcetypescript
Path: loom-builder-sol/src/exit_matrix.tsRelative: src/exit_matrix.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 71Bytes: 2,575Imports: 1Exports: 4

Content Preview

  1. /**
  2. * Exit-code retry matrix — maps process outcomes to verdicts.
  3. *
  4. * Bug fixed: executor exit -1 previously could report "completed" in MANIFEST.
  5. * Now: verdict is computed from exit code + signal; non-COMPLETE verdict can
  6. * never produce status "DONE".
  7. *
  8. * Verdicts:
  9. * - COMPLETE: exit 0 + all digest gates pass → only way to get DONE
  10. * - RETRYABLE: killed/signal/−1/null/network-class errors → one auto-retry with backoff ≥5s
  11. * - FATAL_SPEC: exit 2 / preflight class errors → no retry, s