Skip to content
PACKAGES

nodeFileAgenticMemoryCommittedFactLogBackend()

Create a Node file-backed D594 single-writer committed fact-log backend.

The backend implements the D592 adapter contract directly. It appends each canonical D589 committed fact batch as one strict JSON append-log entry so a readable committed stream never exposes a partial batch. Physical file paths, append-log sequence keys, writer mode, and durability limits are reported only through backend diagnostic DATA; fact-log cursors are computed from committed fact-stream positions and never from file names, storage keys, or row ids. Write completion means the storage promise settled; this backend does not claim host fsync or permanent durability guarantees.

This helper does not materialize records, replay facts into application state, hydrate/restore graphs, refresh subscribers, acknowledge applications, mutate live graph truth, or create a graph commit barrier.

import { nodeFileAgenticMemoryCommittedFactLogBackend } from "@graphrefly/ts/solutions/agentic-memory/node";
function nodeFileAgenticMemoryCommittedFactLogBackend(
dir: string,
opts: NodeFileAgenticMemoryCommittedFactLogBackendOptions<TJson> = {},
): AgenticMemoryCommittedFactLogBackend<TJson>
ParameterTypeDescription
dirstringDirectory owned by the host for the file-backed append log.
optsNodeFileAgenticMemoryCommittedFactLogBackendOptions<TJson>Optional namespace/prefix/extension and diagnostic backend name.

A D592 committed fact-log backend.

This page was generated from source JSDoc, but the structured API tags are incomplete:

  • Missing @example.

packages/ts/src/solutions/agentic-memory/node.ts