---
title: handoff
description: "The schema of a `Handoff`, for a door's input or a pick's param: `z.object({ handoff })`."
---

# `handoff`

Constant, in `@jr2/orchestrator/src/handoff.ts`. It is an export of `@jr2/orchestrator`, in the [Effects](group-effects.md) group of the [Authoring surface](../authoring-surface.md) page.

```ts
const handoff: z.ZodType<Handoff>
```

The schema of a [`Handoff`](type-handoff.md), for a door's input or a pick's param: `z.object({ handoff })`.
It checks the shape only. The cut checks each field against the run's ledger, and refuses a
Handoff that the run did not make. Other fields of a `WorktreeReady` (`outcome`, `found`) are
dropped.

**Example**

```ts
import { handoff } from "@jr2/orchestrator";
import { z } from "zod";

export const finalInput = z.object({ handoff, earlier: z.array(z.string()) });
```

**See also**

- [ADR-0080: A nested Workspace takes a Handoff at its cut](../decisions/0080-a-nested-workspace-takes-a-handoff-at-its-cut.md)
