Identity-scoped session leases, snapshots, stores, and resource ownership.
Identity-scoped session leases, snapshots, stores, and resource ownership. Read the sessions and resources guide for examples, defaults, and behavior.These declarations cover every public export in this category. Import from @agentium/harness. Types such as ChatMessage, RunContext, and ExecutionServices come from @agentium/core. A ? marks an optional field.
export interface HarnessSessionLease { /** Remote stores preload this snapshot during acquire. */ read(): HarnessSessionSnapshot; /** A rejection can mean acknowledgement was lost after the write applied. */ commit(snapshot: Omit<HarnessSessionSnapshot, "revision">): void | Promise<void>; release(): void | Promise<void>;}
HarnessSessionSnapshot
export interface HarnessSessionSnapshot { /** Derived summaries are bound to the exact host-attested continuity scope. */ taskSummaries?: Record<string, TaskSummaryRecord>; memoryScope?: RecallScope; /** Canonical records held by the host archive, in archival order. */ archivedHistory?: HistoryArchiveReference[]; conversations?: Record<string, ChatMessage[]>; history: ChatMessage[]; state: Record<string, unknown>; revision: number; replayable: boolean;}