# Evolution 81 — Reproduction Guide

All commands run from the repository root in the `evolution-81` worktree. Python 3.14 with
`torch`, `transformers`, `cryptography`, `psutil`, `pytest`, and `bubblewrap` installed.

```bash
# 1. Baseline
pytest tests/test_cain2027_e80.py -q
python3 scripts/evolution80/verify_e80_offline.py artifacts/e80/bundle

# 2. E81 tests (no model load in most files; sandbox tests take ~30 s)
pytest tests/test_e81_*.py -q

# 3. Systems: registry, model health, model evaluation, competency, sandbox, security lab,
#    process-kill recovery, reference mission, cost
python3 scripts/evolution81/run_systems.py

# 4. Collaboration benchmark (15 arms, frozen tasks, real local inference)
python3 scripts/evolution81/run_bench.py

# 5. Memory evaluation (constructed suite + integrity)
python3 scripts/evolution81/run_memory.py

# 6. Capacity stages (10/50/100/250 workers; 5k/10k logical identities)
python3 scripts/evolution81/run_capacity.py

# 7. Cross-host drill (requires ~/.ssh/cain42_cluster and the development replica)
python3 scripts/evolution81/run_crosshost.py

# 8. Endurance (resumable; real wall clock)
python3 scripts/evolution81/run_endurance.py --duration 3600 --cycle-sleep 25

# 9. Evidence bundle, standalone verification, second-host replication, ClawX auth, gates
python3 scripts/evolution81/run_evidence.py

# 10. Generate the 23 documents from the artifacts
python3 scripts/evolution81/docs_e81.py
```

## Expected results

- Security lab: 60/60 blocked, 0 bypassed.
- E80 tests: 30 passed.
- Evidence bundle: standalone verifier `ok=true`.
- Collaboration: whatever the rows say. Do not pre-write the conclusion; `decide()` derives it.

## Environment fingerprint

Recorded in `artifacts/e81/baseline.json` (branch, HEAD, parent) and `artifacts/e81/model_health.json`
(model availability). The host has no remote provider credential; remote gates stay BLOCKED.

## Determinism

Greedy decoding at temperature 0, fixed seeds, frozen task set hashed before the run. The
replication artifact compares a separate process's rows byte-for-byte at the answer level.
