import type { MemoryObservation, MemoryLearningCheckKind } from '../comet-memory/index.js'; import { readProjectLearningStatus, type WriteProjectMemoryInput } from '../project-knowledge/index.js'; import type { AgentContextOutcomeEvidence, AgentContextOutcomeStatus } from '../agent-learning/index.js'; export interface TaskLearningInput { readonly schema: 'comet.task-learning.v1'; readonly personal: { readonly check: MemoryLearningCheckKind; readonly observations?: readonly Omit[]; }; readonly project: { readonly check: MemoryLearningCheckKind; readonly memories?: readonly WriteProjectMemoryInput[]; readonly memorySlugs?: readonly string[]; readonly reviews?: readonly { readonly id: string; readonly actions: unknown; }[]; }; readonly outcomes?: readonly { readonly applicationId: string; readonly outcome: AgentContextOutcomeStatus; readonly evidence?: AgentContextOutcomeEvidence; }[]; } export interface TaskLearningSubmission { readonly status: 'applied' | 'partial' | 'accepted'; readonly personalCheck: MemoryLearningCheckKind; readonly projectCheck: MemoryLearningCheckKind; readonly memorySlugs: readonly string[]; readonly personalVerified: boolean; readonly projectLearning: Awaited>; readonly errors: readonly { readonly section: string; readonly index: number; readonly message: string; }[]; readonly personalObservations: readonly { readonly index: number; readonly result: string; readonly reason?: string; }[]; readonly nextActions: readonly string[]; } export declare function parseTaskLearningInput(value: unknown): TaskLearningInput; /** Submit task learning through existing owners; retries reuse their identities and receipts. */ export declare function submitTaskLearning(options: { readonly projectRoot: string; readonly workflow: string; readonly change: string; readonly input: unknown; readonly homeDirectory?: string; readonly cacheRoot?: string; }): Promise; //# sourceMappingURL=task-learning.d.ts.map