Skip to content

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

PropertyModifierTypeDescriptionDefined in
condition?readonlystringFree-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?readonlynumber-packages/memory/src/tiers/procedural-memory.ts:43
sensitivity?readonlySensitivityDefault 'public' per DEC-126 — rules are NOT user data.packages/memory/src/tiers/procedural-memory.ts:42
steps?readonlyreadonly 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?readonlyreadonly string[]Verifiable success criteria stored with the procedure (P2-2).packages/memory/src/tiers/procedural-memory.ts:54
tags?readonlyreadonly string[]-packages/memory/src/tiers/procedural-memory.ts:44
textreadonlystring-packages/memory/src/tiers/procedural-memory.ts:32
variables?readonlyreadonly string[]Variable names abstracted into RuleInput.steps (P2-2).packages/memory/src/tiers/procedural-memory.ts:52