Function: analyzeDependencyGraph()

August 8, 2026 ยท View on GitHub

@plures/praxis


@plures/praxis / index / analyzeDependencyGraph

Function: analyzeDependencyGraph()

analyzeDependencyGraph<TContext>(registry): DependencyGraph

Defined in: packages/praxis-core/src/decision-ledger/analyzer.ts:45

Build the fact dependency graph from a registry.

This runs each rule with synthetic probe events to discover which facts it reads from state and which facts it produces. For static analysis we inspect rule metadata, contracts, event types, and probe execution.

Type Parameters

TContext

TContext = unknown

Parameters

registry

PraxisRegistry<TContext>

The Praxis registry containing all rules and constraints

Returns

DependencyGraph

A DependencyGraph mapping facts, edges, producers, and consumers