Outcome

loom-builder-solsourcetypescript
Path: loom-builder-sol/src/outcome.tsRelative: src/outcome.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 27Bytes: 894Imports: 1Exports: 4

Content Preview

  1. import type { DispatchOutcome } from "./types.js";
  2. export type DispatchStatus = DispatchOutcome["status"];
  3. export function validationPassed(validation: DispatchOutcome["validation"]): boolean {
  4. return validation.every((x) => x.exitCode === 0);
  5. }
  6. /**
  7. * A halted agent can still have completed valid work. Validation is the done
  8. * criterion, so preserve the halt reason while distinguishing false negatives
  9. * from genuinely invalid halted runs.
  10. */
  11. export function settleStatusAfterValidation(