Function: traceImpact()

August 8, 2026 ยท View on GitHub

@plures/praxis


@plures/praxis / index / traceImpact

Function: traceImpact()

traceImpact<TContext>(factTag, registry): ImpactReport

Defined in: packages/praxis-core/src/decision-ledger/derivation.ts:121

Trace the impact of removing a fact from the system.

Returns which rules would stop firing and which downstream facts would disappear if the given fact were removed.

Type Parameters

TContext

TContext = unknown

Parameters

factTag

string

The fact type tag whose removal to simulate

registry

PraxisRegistry<TContext>

The Praxis registry containing all rules

Returns

ImpactReport

An ImpactReport listing affected rules and downstream facts