Docs
Sign in

Counterfactuals

Counterfactuals let you ask "what if this link were gone?" on a causal chain, and show how much the chain's overall confidence changes.

Screenshot to add: The Counterfactuals table with the source dropdown, and the Counterfactual side panel showing intervention controls and a Baseline GM, CF GM and delta result.

It is the fourth tab of Causal Intelligence.

Choose a source

SourceWhat it listsCan you run a test?
Source: Causal memories (default)Memories of type causal, shown with Root memory and ID columns. Server-pagedYes
Source: Computed chainsChains from the analytical layer, with Root, Hops and Method columnsNo, read only

The hint line changes with the source. For causal memories it reads "Open a chain, then run an intervention. A delta near zero means the chain is robust to that node." Empty states are "No causal-typed memories yet" and, for computed chains, "No computed chains yet" (run a computation from Operations → Analytical). Computed chains need a project, otherwise you see "No project selected".

Run a counterfactual

  1. Open a row

    Click a causal memory. A panel titled Counterfactual opens with the hop count, a confidence figure (GM) and a regime tag, and then the hops.

  2. Pick the target

    Choose a Target memory from the chain. The first option is the root, marked "(root)".

  3. Choose the action

    Set Action to Remove or Replace confidence. For replace, a New confidence slider from 0 to 1 appears.

  4. Run it

    Click Run counterfactual. The test runs against the live chain.

Reading the result

FigureMeaning
Baseline GMThe chain's confidence as it is now
CF GMThe confidence after your change
ΔThe difference. Red when it drops, green when it rises, neutral if close to zero

Below that, Per-hop confidence changes lists up to 12 memories with their before and after values. If nothing changed, the panel says "No downstream confidence changes — the chain has no hops to propagate through." A failure shows "Counterfactual failed" with the reason.

A delta near zero means the chain barely depends on that link.

Computed chains are read only

Opening a computed chain shows its hops (with expandable bridging notes) and, for hybrid runs, a Comparison score with Agreement, Edge overlap and Hop Δ. The panel states "Counterfactual interventions are not supported for computed chains (analytical-layer output is read-only)."