Skip to content

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()

ts
add(rule): Promise<void>;

Defined in: packages/core/dist/contracts/memory-store.d.ts

Parameters

ParameterType
ruleRule

Returns

Promise&lt;void&gt;

Inherited from

ProceduralMemoryStore.add


list()

ts
list(scope): Promise<readonly Rule[]>;

Defined in: packages/core/dist/contracts/memory-store.d.ts

Parameters

ParameterType
scopeSessionScope

Returns

Promise&lt;readonly Rule[]&gt;

Inherited from

ProceduralMemoryStore.list


recordSuccess()?

ts
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

ParameterType
idstring

Returns

Promise&lt;number&gt;


remove()

ts
remove(id, reason?): Promise<void>;

Defined in: packages/core/dist/contracts/memory-store.d.ts

Parameters

ParameterType
idstring
reason?string

Returns

Promise&lt;void&gt;

Inherited from

ProceduralMemoryStore.remove


ts
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

ParameterType
scopeSessionScope
querystring
opts?{ includeQuarantined?: boolean; topK?: number; }
opts.includeQuarantined?boolean
opts.topK?number

Returns

Promise<readonly MemoryHit&lt;Rule&gt;[]>


setStatus()?

ts
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

ParameterType
idstring
statusMemoryStatus
reason?string
scope?SessionScope

Returns

Promise&lt;void&gt;