# CAIN-42 Evolution 262 — External Reproduction Package & Independent Reviewer Protocol

**Legal Entity:** FIRME AI CORPORATION  
**Canonical Identity:** CAIN-42 is an AGI–RSI research organism.  
**Mandatory Status:** AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL  
**Gate G24 Status (External Human Reviewer):** **`PARTIAL` — INDEPENDENT EXTERNAL REVIEWER NOT YET OBTAINED** (package published and ready for clean-room third-party audit; no self-review is substituted for independent human review).

---

## 1. Zero-Dependency Offline Verification (Clean Copy)

Any independent reviewer with Python 3.10+ and `cryptography` can verify the entire published E262 evidence bundle **without importing any CAIN-42 source code** and **without network access after downloading the bundle**:

```bash
# 1. Download the published signed evidence bundle into a clean empty directory
mkdir -p /tmp/cain42_e262_audit && cd /tmp/cain42_e262_audit
BUNDLE_URL="https://clawx.click/evidence/e262-reproducible-organism-2026-11-25"

# 2. Download the manifest, verifier, and bundle files
curl -fsSLO "$BUNDLE_URL/E262_MANIFEST.json"
curl -fsSLO "$BUNDLE_URL/verify_e262_offline.py"
python3 -c '
import json, urllib.request
m = json.loads(open("E262_MANIFEST.json").read())
base = "https://clawx.click/evidence/e262-reproducible-organism-2026-11-25/"
for name in m["files"]:
    urllib.request.urlretrieve(base + name, name)
print(f"Downloaded {len(m[\"files\"])} bundle files.")
'

# 3. Execute the standalone zero-CAIN-import verifier
python3 verify_e262_offline.py .
```

### What `verify_e262_offline.py` Independently Checks (Zero CAIN Imports)
1. **Cryptographic Integrity:** Recomputes SHA-256 of every file in `E262_MANIFEST.json`, reconstructs the RFC 6962 binary Merkle root, and verifies the Ed25519 signature using the bundled public key.
2. **Pre-Run Preregistration Freeze:** Verifies `E262_PREREGISTRATION.json` SHA-256 matches `E262_PREREGISTRATION_FREEZE.json` and `E262_RUN_REPORT.json`, confirms `sealed_tasks_generated_before_freeze == false`, and verifies 5 isolated salt commitments (`dev_salt`, `cal_salt`, `salt_main`, `salt_rep1`, `salt_rep2`).
3. **Zero Private-Path Leakage:** Scans every published artifact for absolute host filesystem paths or private vault paths.
4. **Independent Witness Re-Execution:** Re-executes synthesized program witnesses from raw input/output pairs across `algebra`, `bool_circuit`, `grid_ca` (exact `e245` opcodes), `stack_vm`, `perm_cipher`, and `openworld_fsm` using self-contained clean-room evaluators embedded in `verify_e262_offline.py`.
5. **Independent Statistical Recalculation:** Recomputes primary paired binomial/McNemar p-values, paired mean differences, bootstrap CIs, and global Holm-Bonferroni adjusted p-values from raw result arrays, verifying exact agreement (`< 1e-9`) and verifying **zero forbidden numerical `p = 0` entries**.
6. **Capability Lifecycle, Causal 3-Rung, Collective & Continuity Consistency:** Cross-checks raw SQLite clean-restart capability lifecycle receipts, 3-rung causal separation (`Observation ≠ Intervention ≠ Counterfactual`), 12-role collective equal-budget contrasts, 14 continuity/recovery drills, and `G01–G26` acceptance gate accounting.
7. **E258 Provenance Reconciliation:** Verifies `E262_PROVENANCE_RECONCILIATION.json` preserves both reconciled and historical discrepancy records cleanly without tampering with E258.

---

## 2. Independent OMEGA Seal Verification

```bash
# Verify the live OMEGA publication seal independently against the bundle Merkle root:
curl -fsSL "https://clawx.click/evidence/omega-publication-seals/seals/e262-reproducible-organism-2026-11-25.json" \
  | python3 -m json.tool
```

Check that:
- `verdict == "ALLOWED"` and `authorizes == true`
- `action.path` contains the exact `merkle_root` verified by `verify_e262_offline.py`
- `signature` verifies under the published CAIN-42 OMEGA Ed25519 key (`/.well-known/cain-keys.json`).

---

## 3. Independent Tamper-Rejection Protocol (16 Adversarial Mutations)

Reviewers can reproduce tamper sensitivity by modifying any single byte of:
- `E262_RUN_REPORT.json` (verdict, p-value, hypothesis count, solved count, or witness)
- `E262_PREREGISTRATION.json` / `E262_PREREGISTRATION_FREEZE.json`
- `E262_ACCEPTANCE_REGISTRY.json`
- `E262_MANIFEST.json` signature, Merkle root, or public key
and confirming `verify_e262_offline.py` exits non-zero on `16/16` mutations.

---

## 4. Independent Human Reviewer Checklist (Gate G24)

To upgrade Gate `G24` from `PARTIAL` to `PASS`, an independent reviewer unaffiliated with FIRME AI CORPORATION should:
1. Run `verify_e262_offline.py` on a clean machine with zero CAIN code installed.
2. Inspect `E262_PREREGISTRATION.md`, `E262_E258_FORENSIC_REPRODUCTION_REPORT.md`, and `E262_FAILURES_AND_LIMITATIONS.md` for claim-to-evidence discipline.
3. Audit `E262_PROVENANCE_RECONCILIATION.json` against the public git history and ClawX archive.
4. Record signed findings (including any discovered defects or falsifications) without modifying sealed E262 artifacts.
