Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/memory / / ProceduralMemoryStoreExt
Interface: ProceduralMemoryStoreExt
Defined in: packages/memory/src/internal/storage-adapter.ts:722
Extension of the typed ProceduralMemoryStore with the optional promotion helper that storage adapters may expose (MCON-2).
Stable
Extends
Methods
add()
add(rule): Promise<void>;Defined in: packages/core/dist/contracts/memory-store.d.ts
Parameters
| Parameter | Type |
|---|---|
rule | Rule |
Returns
Promise<void>
Inherited from
list()
list(scope): Promise<readonly Rule[]>;Defined in: packages/core/dist/contracts/memory-store.d.ts
Parameters
| Parameter | Type |
|---|---|
scope | SessionScope |
Returns
Promise<readonly Rule[]>
Inherited from
recordSuccess()?
optional recordSuccess(id): Promise<number>;Defined in: packages/memory/src/internal/storage-adapter.ts:754
Record one demonstrated successful reuse of a rule and return the new counter value (MCON-2 part 4). Powers promotion-by-demonstrated-success via ProceduralMemory.recordOutcome. Optional - adapters without the counter simply never auto-promote.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<number>
remove()
remove(id, reason?): Promise<void>;Defined in: packages/core/dist/contracts/memory-store.d.ts
Parameters
| Parameter | Type |
|---|---|
id | string |
reason? | string |
Returns
Promise<void>
Inherited from
search()?
optional search(
scope,
query,
opts?): Promise<readonly MemoryHit<Rule>[]>;Defined in: packages/memory/src/internal/storage-adapter.ts:742
Lexical runbook search over rule text (D3, migration 028) - content recall for "find the procedure for this task", as opposed to predicate activation. Quarantined (unvalidated induced) procedures are excluded unless the inspector opts in. Optional - adapters without the index omit it and ProceduralMemory.search falls back to an in-memory lexical scan over list(...).
Parameters
| Parameter | Type |
|---|---|
scope | SessionScope |
query | string |
opts? | { includeQuarantined?: boolean; topK?: number; } |
opts.includeQuarantined? | boolean |
opts.topK? | number |
Returns
Promise<readonly MemoryHit<Rule>[]>
setStatus()?
optional setStatus(
id,
status,
reason?,
scope?): Promise<void>;Defined in: packages/memory/src/internal/storage-adapter.ts:728
Set a rule's retrieval-trust status - promote a quarantined (induced) procedure into activate() or re-quarantine an active one, with a memory_history audit row. Powers ProceduralMemory.validate.
Parameters
| Parameter | Type |
|---|---|
id | string |
status | MemoryStatus |
reason? | string |
scope? | SessionScope |
Returns
Promise<void>