agenticMemoryRecordUseGateBundle()
Create one real exact-use lifecycle for a bounded stream of complete inputs (D789).
Every projection preserves scoped occurrence identity. Governed consumers must correlate their query with this gate’s allowedRecords occurrence, never raw records. Permission errors are per-use invalid DATA. Malformed/conflicting occurrence identity rejects the invocation synchronously; an upstream ERROR terminates the lifecycle and all projections. Neither failure permits continued use of a previously emitted authorization as a new occurrence’s authority.
Import
Section titled “Import”import { agenticMemoryRecordUseGateBundle } from "@graphrefly/ts/solutions/agentic-memory";Signature
Section titled “Signature”function agenticMemoryRecordUseGateBundle( graph: Graph, opts: AgenticMemoryRecordUseGateBundleOptions<TJson>,): AgenticMemoryRecordUseGateBundle<TJson>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph owning the gate and its projections. |
opts | AgenticMemoryRecordUseGateBundleOptions<TJson> | Complete occurrences, retention bound and optional stable name. |
Returns
Section titled “Returns”Snapshot and declared, identity-preserving authorization projections.
Example
Section titled “Example”import { agenticMemoryRecordUseGateBundle } from "@graphrefly/ts/solutions/agentic-memory";// completeUses: Node<AgenticMemoryRecordUseOccurrence>const gate = agenticMemoryRecordUseGateBundle(graph, { occurrences: completeUses, maxOccurrences: 30,});// Match the query to the exact gate.allowedRecords occurrence before retrieval.Source
Section titled “Source”packages/ts/src/solutions/agentic-memory/record-use.ts