# Changes — 2026-11-15

## 1. Primary non-equivocation self-guard

File: `platform-gateway/cain_pbft_engine_33.py` (`_propose_locked`)

Before this change, a primary could sign two different PRE_PREPARE messages for the same `(view, sequence)`. Receivers detected the second and quarantined the primary, but the primary itself had no guard.

Now:

- if the same `(view, sequence)` already has a different digest, raise `RuntimeError("refusing to equivocate…")` and do not sign;
- if the digest is the same, return the already-signed PRE_PREPARE (safe re-drive), never a new one.

Test: `tests/test_pbft_leader_equivocation.py`, using the exact 2026-11-15 evidence digests (`cc1682…` vs `63bb2c…`).

## 2. Soak preflight correctness

File: `scripts/cain42_bft/multi_region_soak.py`

- `_decision_hash` now accepts the QC endpoint's direct certificate object; it previously looked for a `commit_qc` wrapper that the endpoint does not return, so every preflight reported `0/12`.
- The decision window is `min(12, height)`, so a fresh cluster with fewer than 12 commits can be soaked.
- The SJC host's SSH login banner is stripped from command output.
- Preflight waits for all replicas to reach a common height instead of failing on an in-flight commit.
- The preflight refuses to start on a missing or disagreement decision window (fail closed).

## 3. Cluster replacement

- Old cluster `cain-mr-02`: quarantined; node-4 carries a valid equivocation proof; data and proof preserved.
- New cluster `cain-mr-03`: four new Ed25519 identities, fresh state, four regions.
- Patched engine copied into all four new containers before start.
- `cain-mr-autoheal` disabled during the maintenance window so it cannot restart a node mid-repair.

## Test results

```
63 passed in 21.90s
```

Includes `tests/test_pbft_leader_equivocation.py`, `test_cain42_pbft_evolution2.py`, `test_cain42_pbft_hybrid_qc.py`, `test_pbft_decision_chain_incremental.py`.
