Interface: UnifiedRule
August 8, 2026 · View on GitHub
@plures/praxis / index / UnifiedRule
Interface: UnifiedRule
Defined in: src/unified/types.ts:103
A reactive rule definition for the unified API — watches graph paths and emits facts.
Properties
description?
optionaldescription?:string
Defined in: src/unified/types.ts:107
Human-readable description
evaluate
evaluate: (
values,facts) =>RuleResult
Defined in: src/unified/types.ts:111
Rule evaluation function — receives watched values by path
Parameters
values
Record<string, unknown>
facts
Returns
id
id:
string
Defined in: src/unified/types.ts:105
Unique rule ID
watch
watch:
string[]
Defined in: src/unified/types.ts:109
Graph paths this rule watches — auto-subscribed