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,itemverdict:"held"key:stringitem:T
Form 2:
verdict,key,item,runverdict:"existing"key:stringitem:Trun(optional):string
Form 3:
verdict,key,itemverdict:"hold-full"key:stringitem:T
Form 4:
verdictverdict:"reread"
Form 5:
verdict,reasonverdict:"skipped"reason:string