---
title: SourceVerdict
description: "A Source's verdict on one delivery, as its `reply` reads it (ADR-0017)."
---

# `SourceVerdict`

Type, in `@jr2/orchestrator/src/pool.ts`. It is an export of `@jr2/orchestrator`, in the [Composition](group-composition.md) group of the [Authoring surface](../authoring-surface.md) 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](../decisions/0017-pool-over-a-source-port.md)). `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`
