/** * Local Subagent Runtime (3.0.0 foundation). * * Maintains MANY logical agents independently of physical inference capacity. A * logical agent is a durable semantic execution context reusing existing Jensen * identities (child session / mission / assignment / execution). This runtime * is a control/read model; it does NOT implement automatic fan-out, does NOT * own the Mission state machine, and never owns an OS process. */ import type { LogicalAgentStore } from "./logical-agent.js"; import type { LogicalAgentActivity, LogicalAgentRecord } from "./types.js"; export interface LocalSubagentRuntimeOptions { store: LogicalAgentStore; now?: () => number; idFactory?: () => string; } export interface RegisterLogicalAgentInput { 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?: LogicalAgentActivity; priority?: number; } export interface ActivityCounts { runningInference: number; waitingInference: number; tooling: number; parked: number; runnable: number; total: number; } export declare class LocalSubagentRuntime { private readonly _store; private readonly _now; private readonly _idFactory; constructor(options: LocalSubagentRuntimeOptions); get store(): LogicalAgentStore; /** Register a logical agent (idempotent by logicalAgentId). Never creates a duplicate identity. */ register(input: RegisterLogicalAgentInput): Promise; inspect(logicalAgentId: string): Promise; list(): Promise; /** Transition activity with a waiting reason. Optimistic revision guarded. */ transition(logicalAgentId: string, activity: LogicalAgentActivity, options?: { waitingReason?: string; pendingInferenceRequestId?: string; executionId?: string; attemptId?: string; assignmentId?: string; }): Promise; /** Park a logical agent (durable identity + reason preserved; no hot KV reservation). */ park(logicalAgentId: string, reason: string): Promise; /** Resume a parked/waiting agent back to RUNNABLE. */ resume(logicalAgentId: string): Promise; cancel(logicalAgentId: string, reason?: string): Promise; complete(logicalAgentId: string, state?: "COMPLETED" | "FAILED"): Promise; /** Deterministic activity counts (used to enrich scheduler status). */ activityCounts(): Promise; } //# sourceMappingURL=runtime.d.ts.map