Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / RuleInput
Interface: RuleInput
Defined in: packages/memory/src/tiers/procedural-memory.ts:31
Author-time rule payload accepted by ProceduralMemory.define.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
condition? | readonly | string | Free-form predicate evaluated by ProceduralMemory.activate. The predicate language is intentionally narrow in v0.1: either the literal string 'always', or a 'topic=...' / 'tag=...' shorthand. Custom predicates should be expressed as a callable matched in activate(...)'s customMatchers argument. | packages/memory/src/tiers/procedural-memory.ts:40 |
priority? | readonly | number | - | packages/memory/src/tiers/procedural-memory.ts:43 |
sensitivity? | readonly | Sensitivity | Default 'public' per DEC-126 — rules are NOT user data. | packages/memory/src/tiers/procedural-memory.ts:42 |
steps? | readonly | readonly string[] | Optional structured workflow payload (P2-2). Usually set by ProceduralMemory.induce, but accepted here so an author can round-trip a hand-written procedure. See Rule.steps. | packages/memory/src/tiers/procedural-memory.ts:50 |
successCriteria? | readonly | readonly string[] | Verifiable success criteria stored with the procedure (P2-2). | packages/memory/src/tiers/procedural-memory.ts:54 |
tags? | readonly | readonly string[] | - | packages/memory/src/tiers/procedural-memory.ts:44 |
text | readonly | string | - | packages/memory/src/tiers/procedural-memory.ts:32 |
variables? | readonly | readonly string[] | Variable names abstracted into RuleInput.steps (P2-2). | packages/memory/src/tiers/procedural-memory.ts:52 |