Skip to content

OrchestrationState

Orchestration state persisted separately from CF messages. This is everything Kuralle needs beyond message history — CF owns messages, Kuralle owns agent state.

agentStates: Record<string, unknown>;

currentAgent: string;

optional durableRuns?: SessionDurableRuns;

Legacy durable run journal from before SqlRunStore. Read on get() so a pre-existing session can be copied forward; new runs are not written here.


handoffHistory: object[];
Name Type

from

string

reason

string

timestamp

string

to

string


optional metadata?: Omit<SessionMetadata, "audit"> & object;

Session metadata that CF’s chat message store does not own.

Name Type

audit?

ConversationAuditEntry[]


optional state?: Record<string, unknown>;

optional version?: number;

Optimistic-concurrency version for orchestration row CAS (C2).


workingMemory: Record<string, unknown>;