---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/orchestration/type-aliases/AppendResult.md
description: >-
  The outcome of an `appendOps` call. On success it carries the new revision and
  digest; on failure it names whether the plan was not `editable` (frozen) or
  the log had moved past `expectedRevision`, and carries the actual state so a
  stale writer learns what happened.
---

# Type Alias: AppendResult

```ts
type AppendResult =
  | {
      digest: string;
      ok: true;
      revision: number;
    }
  | {
      actual: {
        revision: number;
        state: PlanState;
      };
      ok: false;
      reason: "not_editable" | "revision_moved";
    };
```

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

The outcome of an `appendOps` call. On success it carries the new revision and digest; on
failure it names whether the plan was not `editable` (frozen) or the log had moved past
`expectedRevision`, and carries the actual state so a stale writer learns what happened.
