Knowing that an intervention changes an outcome does not automatically tell us how the change occurred. Causal mediation analysis studies questions about effects transmitted through an intermediate variable and effects that operate through other routes, using explicitly specified causal models. It matters whether a new review procedure improves a document because more issues are detected, because the reviewer receives clearer instructions, or because some other part of the workflow changes. These explanations can suggest very different subsequent interventions.
Vocabulary Coding and Engineering needs to protect the meaning of words such as because, through, mechanism, direct and indirect. A powerful Second Intelligence Pool could generate many plausible explanations for an observed result, but plausibility is not identification. We construct a small hypothetical document-review model, calculate its pathway effects and examine what information would be required to justify such a decomposition. The eduKate Z-layer and ZTime records proposed here retain the causal question, assumptions and evidence, rather than converting an attractive story into a verified explanation.
- A total effect measures a specified contrast between interventions.
- A mediator lies on a hypothesised causal pathway between an intervention and an outcome.
- Direct, indirect and controlled effects are different causal estimands.
- Random assignment of an intervention does not automatically identify the mediator’s causal effect.
- Natural effects may require stronger assumptions involving nested counterfactuals.
- Interactions can change the effect decomposition; percentages mediated need careful interpretation.
- Preserve the intervention, mediator, outcome, model, assumptions and temporal order with the claim.
Choose your reading route
Understand the meaning of through · Calculate and question a pathway · Build a transferable mediation record
Contents
Understand the meaning of through · Sections 1–4
Calculate and question a pathway · Sections 5–8
Build a transferable mediation record · Sections 9–12
1. An outcome is not yet an explanation
Imagine a fictional archive introducing a new document-review workflow. A higher proportion of documents subsequently pass an independent quality assessment. An AI writes that the new workflow works because it increases the use of a structured checklist. This may be a useful hypothesis, but the observed improvement alone does not establish the proposed mechanism.
The workflow might also provide clearer criteria, more time for review or a second opportunity to correct mistakes. Checklist completion could be a consequence of a conscientious reviewer rather than the cause of the better result. Several processes can produce the same observed association.
The earlier article on counterfactual meaning distinguishes evidence about observed events from claims about alternative interventions. Mediation extends that distinction to pathways. Instead of asking only whether changing the workflow changes performance, we ask which intermediate change could account for a specified part of the effect.
2. Name the intervention, mediator and outcome
Let X denote assignment to the original workflow (0) or a new workflow (1). Let M denote whether a structured checklist is completed, and Y denote whether a document passes an independently defined quality criterion. M is a possible mediator because the workflow may alter checklist completion, which may in turn alter the outcome.
A diagram might contain the arrows X to M, M to Y and X to Y. The final arrow represents routes not captured by the specified mediator; it need not mean a single literal physical connection. A different model may also contain pre-intervention factors influencing M and Y, or variables changed by X that influence both.
Imai, Keele and Tingley’s 2010 study of causal mediation analysis develops definitions, identification conditions, estimation and sensitivity analysis for mediation beyond a single linear regression specification. Its distinction between defining an effect and identifying it from evidence is central to this proposal.
Contents · Previous section · Next section
3. A hypothetical model with two pathways
For this teaching example, stipulate that checklist completion has probability 0.30 under X = 0 and 0.70 under X = 1. Assume a structural model in which independent exogenous random variables determine checklist completion and the binary quality outcome. For a workflow and mediator set to particular values, stipulate the following outcome probability: 0.20 + 0.10X + 0.40M.
| Workflow X | Checklist M | Stipulated probability of passing |
|---|---|---|
| 0 | 0 | 0.20 |
| 0 | 1 | 0.60 |
| 1 | 0 | 0.30 |
| 1 | 1 | 0.70 |
The model is intentionally simple. Every stipulated probability lies between zero and one. It assumes that setting the checklist status is a well-defined intervention and that no additional common cause or interference changes these probabilities. Those assumptions belong to this constructed example; they are not facts about real document-review systems.
A reader can calculate the implied outcome distributions before collecting any data. This is a useful benchmark for determining whether an AI is preserving the meaning of a model, not evidence that this is the correct model of an actual institution.
Contents · Previous section · Next section
4. Calculate the total effect
Under the original workflow, the model’s average passing probability is 0.20 + 0.40 × 0.30 = 0.32. Under the new workflow, it is 0.20 + 0.10 + 0.40 × 0.70 = 0.58. The total causal risk difference is therefore 0.26, or 26 percentage points.
| Assigned workflow | Probability checklist completed | Average probability of passing |
|---|---|---|
| Original | 30% | 32% |
| New | 70% | 58% |
| Difference | 40 percentage points | 26 percentage points |
Notice that the checklist-completion difference is 40 points, not the same as the outcome difference of 26 points. The effect on a mediator and the effect on an outcome are different quantities. An AI that merges them under the label improvement has lost meaningful information.
The total effect answers a question about changing the entire workflow. It does not independently establish the change attributable to the checklist. That requires a more specific contrast.
Contents · Previous section · Next section
5. The direct and indirect contrasts
Let M(x) denote the checklist status that would occur under workflow x, and Y(x,m) the outcome that would occur if workflow and checklist status were set to x and m. Natural-effect definitions use nested counterfactuals of the form Y(x,M(x′)). These make it possible to distinguish changing the workflow from changing the mediator to the value it would have taken under another workflow.
In our independent-noise structural model, the expected outcome holding the mediator at its original-workflow natural value but changing X to one is 0.20 + 0.10 + 0.40 × 0.30 = 0.42. The natural direct contrast is 0.42 − 0.32 = 0.10. The indirect contrast at X = 1 is 0.58 − 0.42 = 0.16.
| Nested outcome mean | Expected value |
|---|---|
| E[Y(0,M(0))] | 0.32 |
| E[Y(1,M(0))] | 0.42 |
| E[Y(0,M(1))] | 0.48 |
| E[Y(1,M(1))] | 0.58 |
These two contrasts sum to the total effect: 10 + 16 = 26 percentage points. In the example’s no-interaction mechanism, changing X at either mediator distribution produces the same direct contrast. The decomposition would not necessarily have this property in a different model.
Contents · Previous section · Next section
6. What changes when the pathways interact?
Suppose completing a checklist is helpful only when the workflow also gives reviewers the necessary supporting information. In that case, the effect of changing M may depend on X. A model containing an interaction term can represent that possibility. The direct effect calculated using M(0) may then differ from the direct effect using M(1). The corresponding indirect contrast also changes with the chosen workflow reference.
Two legitimate decompositions can therefore answer different questions. They are not contradictory simply because the numbers differ. The receiving system needs the exact definitions of each estimand, its reference intervention, scale and assumptions.
A controlled direct effect instead compares Y(1,m) with Y(0,m) for a specified fixed mediator value m. It is not automatically the same as a natural direct effect. The word direct alone does not identify which intervention was imagined or which comparison was made.
Contents · Previous section · Next section
7. Why randomising the workflow is not enough
Suppose the archive randomly assigns the original or new workflow. This can support identification of the workflow’s total effect under appropriate study conditions. But checklist completion after assignment is not necessarily randomised. A reviewer’s experience, document difficulty or available time may influence both completion and the independent quality result.
Comparing documents with completed and incomplete checklists can therefore mix causal effects with selection differences. Controlling statistically for a post-intervention variable can also introduce complications, including bias from conditioning on a variable influenced by the intervention and other causes.
The article on causal transportability illustrates why additional assumptions are necessary when a causal quantity moves beyond its original design. Here the extra question concerns identification of intermediate pathways within the design. An AI must not mistake a randomized total-effect estimate for automatic proof of a specific mechanism.
Contents · Previous section · Next section
8. Natural effects and the boundary of interpretation
The nested quantity Y(1,M(0)) combines the new workflow with a mediator value defined under the old workflow. In the simple structural model above, the counterfactuals are specified coherently. Real data do not ordinarily reveal both the original and new mediator values for the same unit. Identification of natural effects from observed data therefore requires additional causal assumptions.
Interventional mediation estimands offer alternative formulations in some settings, using specified interventions on mediator distributions instead of the same natural nested contrast. The estimand and identification strategy should be selected for the substantive question and data, not merely because the resulting formula is familiar.
Even if a natural or interventional indirect effect is identified, calling it the entire mechanism would overstate the result. It concerns the particular mediator and intervention represented. Several intermediate processes can interact, feed back or remain unmeasured. The proper statement is a bounded causal finding, not a complete account of reality.
Contents · Previous section · Next section
9. A proposed Z-layer causal-pathway record
| Field | Purpose |
|---|---|
| Intervention X | Identify the actual or hypothetical change |
| Mediator M | Define the intermediate variable and its measurement |
| Outcome Y | Define the target outcome and measurement window |
| Causal structure | Record paths and possible common causes |
| Estimand | Name total, controlled direct, natural or interventional effects |
| Reference and scale | State the comparator and numerical scale |
| Identification | Record assumptions, data and design |
| Sensitivity | Show how results depend on disputed assumptions |
| Authority and ZTime | Record applicable versions and legitimate decisions |
The W3C PROV framework can help identify the entities and activities producing observations and estimates. Provenance does not prove that a causal graph is correct. Keep the graph, identification assumptions and evidence separate from the record of who produced the calculation.
Retain unresolved alternatives rather than selecting whichever mechanism is easiest to communicate. The article on underdetermination explains why several models may agree with the same observed evidence. A mediation result should name the conditions under which a particular causal interpretation is justified.
Contents · Previous section · Next section
10. From individual explanation to civilisation-scale intelligence
At word scale, through may describe a route, an association or a causal claim. At process scale, define exactly which intermediate variable is changed. At research scale, distinguish observed mediator relationships from identified causal effects. At institution scale, assess whether intervening on the mediator is feasible, legitimate and capable of reproducing the intended benefit.
At civilisation scale, a Second Intelligence Pool could assemble many partial explanations of how technologies, institutions and practices affect society. Its value would increase if it could preserve which mechanisms are supported, which remain hypotheses and which interventions would distinguish competing explanations.
The proposed ZTime framework records the order in which assignments, intermediate events and outcomes occur. Temporal precedence alone does not establish causality, but losing the temporal order can make an already difficult causal question impossible to interpret. A later correction to a mediator definition must not silently change the historical estimand.
Contents · Previous section · Next section
11. A four-week causal-pathway experiment
Week one: implement a synthetic generator with independently specified workflow, checklist and outcome mechanisms. Independently derive the four nested means and verify the 26-point total effect. Week two: ask AI systems to distinguish the total, controlled and natural contrasts, with the full model available as a reference.
Week three: introduce a mediator–outcome common cause and then an interaction between workflow and checklist status. Ask the model to identify which previous inferences no longer follow and to state precisely what additional evidence or assumptions would be needed. Include incorrect stories that fit the observed total effect.
Week four: transfer the pathway record to a second reasoning agent. Evaluate whether it reproduces the stipulated calculations, labels nonidentified effects honestly and separates a pathway estimate from a decision to mandate the checklist. The experiment is proposed; no empirical success is claimed.
Contents · Previous section · Next section
12. The frontier: mechanisms must earn their names
Can AI tell how an intervention works? Sometimes, with an appropriate causal model, evidence and identification strategy. Does knowing that an intervention works prove a particular explanation? No. A total effect does not automatically identify its pathways. Can a well-supported mediation finding justify every policy change? No. Decisions also require judgement about feasibility, consequences and authority.
Superintelligence could accelerate the generation and testing of mechanistic hypotheses. That opportunity becomes more valuable when the language infrastructure distinguishes explanations that have been established from explanations that merely sound coherent.
The proposed Z-layer protects the small word through because the word can carry a very large scientific claim. Preserve the exact pathway contrast and its assumptions, and a future intelligence can inherit an explanation without inheriting an unsupported causal certainty.
Contents · Previous section · Sources
Primary sources and further reading
- Imai, Keele and Tingley (2010), A General Approach to Causal Mediation Analysis
- Psychological Methods — journal publication
- Stanford Encyclopedia of Philosophy — Causal Models
- W3C PROV Overview
The numerical examples and proposed Z-layer studies are original teaching illustrations, not measured results of deployed AI systems. Identification claims depend on the specified causal assumptions.
Research and editorial review: 1 December 2026.
