Predicates

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/orchestrator/core/predicates.tsRelative: loom/src/orchestrator/core/predicates.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 109Bytes: 3,011Imports: 2Exports: 5

Content Preview

  1. /**
  2. * H1.1 — Predicate evaluators for the six machine-evaluable predicate kinds.
  3. *
  4. * Each takes a Predicate spec + an injected PredicateRunner and returns
  5. * { pass: boolean, evidence: string }.
  6. *
  7. * Tests inject fakes that return scripted results — no shelling out, no network.
  8. */
  9. import type { Predicate, PredicateKind } from "../../types/contracts";
  10. import type { PredicateResult, PredicateRunner } from "./types";
  11. export interface PredicateEvaluation {
  12. pass: boolean;
  13. evidence: string;