---
title: WorktreeReady
description: Type, an export of @jr2/orchestrator.
---

# `WorktreeReady`

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

```ts
type WorktreeReady<S extends string = string> = {
  outcome: "ready";
  slot: S;
  path: WorktreePath<S>;
  branch: string | null;
  head: string;
  found: WorktreeFound;
  stale?: string;
};
```

**Fields**

- `outcome`: `"ready"`
- `slot`: `S`
- `path`: `WorktreePath<S>`
- `branch`: `string | null`

  The branch of the cut, from git and the cut's record, never from the folder or HEAD. `null`
  when the Worktree is detached.
- `head`: `string`

  The tip of `branch` (of the commit, when detached). Never HEAD.
- `found`: [`WorktreeFound`](type-worktreefound.md)
- `stale` (optional): `string`

  [ADR-0053](../decisions/0053-a-fetch-inside-the-pod-asks-the-node-cache-and-the-cache-asks-the-remote.md)'s words when the remote did not answer. The cut used what the clone holds.
