Skip to main content

Type Alias: ProposalResult<T>

ProposalResult<T> = { ledgerId: string; result: T; status: "kept"; } | { result: T; status: "written"; } | { error?: unknown; ledgerId?: string; reason: "frozen" | "forgotten" | "write_failed" | "conflict" | "store_unavailable"; status: "rejected"; }

Defined in: packages/agentos/src/cognition/learning/types.ts:249

What a recorded memory write came to: kept with its ledger row; written with no ledger row (mode off or a suspension); or rejected, with the reason and, where one was written, the candidate's row.

Type Parameters​

T​

T = unknown