Interface: UnifiedRule

August 8, 2026 · View on GitHub

@plures/praxis


@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?

optional description?: 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

PraxisFact[]

Returns

RuleResult


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