---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/type-aliases/ClaimRunResult.md
description: >-
  The outcome of a `claimRun` call. On success it carries the run id and whether
  this call resumed an existing run; on failure it names whether the plan was
  not `executable`, its digest had moved, a run was already claimed, the named
  run did not exist, or the named run was already settled — carrying the
  existing run id where one exists.
---

# Type Alias: ClaimRunResult

```ts
type ClaimRunResult =
  | {
      ok: true;
      resumed: boolean;
      runId: string;
    }
  | {
      existingRunId?: string;
      ok: false;
      reason:
        | "not_executable"
        | "digest_mismatch"
        | "run_already_claimed"
        | "run_not_found"
        | "run_already_settled";
    };
```

Defined in: [src/batteries/orchestration/store.ts:232](https://github.com/NHTIO/ADK/blob/v1.20260906.0/src/src/batteries/orchestration/store.ts#L232)

The outcome of a `claimRun` call. On success it carries the run id and whether this call
resumed an existing run; on failure it names whether the plan was not `executable`, its digest
had moved, a run was already claimed, the named run did not exist, or the named run was already
settled — carrying the existing run id where one exists.
