Skip to content

SourceVerdict ​

Type, in @jr2/orchestrator/src/pool.ts. It is an export of @jr2/orchestrator, in the Composition group of the Authoring surface page.

ts
type SourceVerdict<T> =
  | { readonly verdict: "held"; readonly key: string; readonly item: T }
  | { readonly verdict: "existing"; readonly key: string; readonly item: T; readonly run?: string }
  | { readonly verdict: "hold-full"; readonly key: string; readonly item: T }
  | { readonly verdict: "reread" }
  | { readonly verdict: "skipped"; readonly reason: string };

A Source's verdict on one delivery, as its reply reads it (ADR-0017). held, existing and hold-full come from a push Source and carry the item and its key; existing names the run that holds the key, when one holds it. reread comes from a Source that can read. skipped carries the reason. A Pool that is paused has no run, so no reply of it runs: the door writes that text.

Forms: it is one of these objects.

  • Form 1: verdict, key, item

    • verdict: "held"
    • key: string
    • item: T
  • Form 2: verdict, key, item, run

    • verdict: "existing"
    • key: string
    • item: T
    • run (optional): string
  • Form 3: verdict, key, item

    • verdict: "hold-full"
    • key: string
    • item: T
  • Form 4: verdict

    • verdict: "reread"
  • Form 5: verdict, reason

    • verdict: "skipped"
    • reason: string

The docs of Kit version 0.8.0. Each page is also at its .md URL.