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
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.