# CAIN HERMES — Test Report

## Unit / property / lab

| Suite | Command | Result |
|---|---|---|
| HERMES tests | `pytest tests/test_hermes.py` | **17/17 passed** |
| Formal properties | `python3 -c "from cain.hermes import run_property_suite8 as r; print(r())"` | **14/14 passed** |
| Adversarial lab | `python3 -c "from cain.hermes.lab import run_hermes_lab; print(run_hermes_lab(cases=100000))"` | **99,975 executed / 99,975 blocked / 0 violations**, 31 categories |
| Regression (hosted/atlas) | `pytest tests/test_cain_continuum_hosted.py tests/test_cain_continuum_pipeline.py tests/test_cain42_hosted_evolution.py tests/test_atlas.py tests/test_atlas_federation.py` | **114/114 passed** |

## What the tests exercise
spec signing/tamper/tenant/expiry; order-independent semantic hash; broadening change set; full/partial/no coverage;
compiler determinism; all semantic-preservation dimensions; coverage certificate verify + forgery; critical-gap
exposure; SBOM impact sets; drift detection + fail-closed; enforcement integrity (dead/bypass/shadow/stale/unexpected
path); property suite; lab; the `governance_coverage` hosted stage; the `/fabric/hermes` HTTP surface.

## Lab categories (31)
policy_weakening, constraint_omission, scope_expansion, semantic_downgrade, approval_omission, evidence_omission,
budget_expansion, coverage_hiding, unknown_path_laundering, stale_policy, dead_enforcement, shadow_enforcement,
adapter_drift, runtime_drift, version_mismatch, forged_spec, forged_coverage_cert, tampered_plan,
dependency_injection, model_swap, skill_mutation, world_model_corruption, effect_divergence, delegation_expansion,
authority_escalation, target_substitution, cross_tenant, rollback, partition, clock_manipulation, forged_preservation.

## Limits
Same-project tests only; no third-party audit, penetration test or certification. A check exception in the lab is
counted as a violation (never a pass).
