# CAIN CAUSALITY — Test Report

| Suite | Command | Result |
|---|---|---|
| CAUSALITY tests | `pytest tests/test_causality.py` | **8/8 passed** |
| Formal properties | `run_property_suite_causality()` | **30/30 passed (P271–P300)** |
| Adversarial lab | `run_causality_lab(cases=100000)` | **100,000 executed / 100,000 blocked / false-verified-causality = 0**, 32 categories |
| Mutations | `run_causality_mutations()` | **26/26 killed** |
| Causality chaos | `CausalityChaosEngine.run()` | **21/21 faults fail-safe** |
| Clean-room verifier | `python3 cain-causality-verify/verify.py event\|certificate\|bundle` | valid accepted; tampered/reordered/missing rejected |
| Benchmark | `python3 scripts/cain42_evolution/bench_causality.py` | per-op p50/p95/p99 in `artifacts/causality/CAUSALITY_BENCH.json` |
| **REAL two-system experiment** | `python3 scripts/cain42_evolution/causality_experiment.py` | **COMPLETED**: ntfy.sh + paste.rs; A→B=CAUSES, X/Y=CONCURRENT, A=NECESSARY, B=CONTRIBUTORY, VERIFIED_CAUSALITY, clean-room valid |
| Live wiring | `install_hosted_pipeline()` | **default_stages_v22 installed by default (3 causality stages)** |

## The decisive result (Phases 10-11, 25)
Two DISTINCT real external systems were driven with real effects (ntfy.sh publish, paste.rs create), observed
independently, ordered by vector clocks + a declared causal edge, tested with a real negative control, attributed, and
sealed in a Causal Accountability Certificate that the clean-room verifier independently reproduces. The engine
distinguishes **A caused B** (CAUSES) from **A happened before B** (BEFORE) and **A and B correlated** (CONCURRENT),
and honestly reports `counterfactual unknown` for the unrelated candidate.

## What is exercised
event integrity + self-report rejection; vector-clock ordering/happens-before/concurrency/cycles; contribution classes;
counterfactual unknown vs necessary; multi-agent laundering/collusion; six responsibility categories + collapse
detection; causal evidence independence; certificate semantics + tamper/replay/unresolved/contradiction; deterministic
state policy; property suite; lab; mutations; chaos; hosted stages.

## Limits
Same-project tests only; two real external systems; responsibility is descriptive, not legal; no third-party
validation; physical SIMULATED; the lab/mutations/benchmark are self-defined / local.
