/** * Logical agent store — port + validation (3.0.0 foundation). * * A logical agent is a semantic execution context over the existing durable * identities (child session / mission / assignment / execution). This store is * a read/control model; it does not introduce a second agent identity and does * not replace the Mission state machine. */ import type { LogicalAgentRecord } from "./types.js"; export declare const LOGICAL_AGENT_SCHEMA_VERSION: 1; export type LogicalAgentLoadResult = { status: "ok"; record: LogicalAgentRecord; } | { status: "missing"; } | { status: "corrupt"; logicalAgentId: string; diagnostic: string; }; export type LogicalAgentSaveResult = { status: "saved"; record: LogicalAgentRecord; } | { status: "stale"; expectedRevision: number; actualRevision: number | undefined; }; export interface LogicalAgentStore { readonly storeId: string; load(logicalAgentId: string): Promise; /** Optimistic-concurrency save: reject when on-disk revision differs. */ save(record: LogicalAgentRecord, options?: { expectedRevision?: number; }): Promise; list(): Promise; } export declare function isSafeLogicalAgentId(value: string): boolean; export declare function createLogicalAgentRecord(input: { logicalAgentId: string; parentAgentId?: string; missionId?: string; assignmentId?: string; attemptId?: string; executionId?: string; workerId?: string; executorId?: string; modelPolicy?: { provider: string; model: string; }; sessionId: string; sessionDir?: string; evidenceRefs?: string[]; activity: LogicalAgentRecord["activity"]; waitingReason?: string; pendingInferenceRequestId?: string; priority?: number; now?: number; }): LogicalAgentRecord; export declare function parseLogicalAgentRecord(value: unknown): { ok: true; record: LogicalAgentRecord; } | { ok: false; diagnostic: string; }; //# sourceMappingURL=logical-agent.d.ts.map