# How to independently verify the CAIN 40 organization lifecycle

This bundle contains one real, live "trusted autonomous organization"
lifecycle: `org-cain40-live-demo-46e62543` — two real agent identities form
an organization, one recruits the other with a signed authorization, both
vote (recorded as a `COLLECTIVE_DECISION_PROOF`), and the organization
dissolves. 11 evidence objects total.

## 1. Cryptographic integrity (reused, unmodified, from CAIN 37)

```
python3 cain_37_independent_verifier.py verify-chain cain40_organization_chain.jsonl
python3 cain_37_independent_verifier.py verify-checkpoint cain40_organization_chain.jsonl cain40_organization_checkpoints.jsonl
```
Expect `"verdict": "VALID"`, `"checked": 11` both times.

## 2. Business-rule replay (state-machine legality)

```python
from cain_organization_40 import AgentOrganization
import json
records = [json.loads(l) for l in open("cain40_organization_chain.jsonl")]
print(AgentOrganization.replay_states(records, "org-cain40-live-demo-46e62543"))
```
Expect:
```python
{'valid': True, 'final_state': 'DISSOLVED', 'path': ['FORMING', 'PROPOSED', 'NEGOTIATING', 'AUTHORIZED', 'ACTIVE', 'COMPLETED', 'DISSOLVING', 'DISSOLVED'], 'is_terminal': True}
```

## 3. Inspect the collective decision and its dissent field

```python
decision = [r for r in records if r["evidence"]["event_type"] == "COLLECTIVE_DECISION_PROOF"][0]
print(decision["evidence"]["proof"]["votes"])   # both agents' votes, in full
print(decision["evidence"]["proof"]["decision_rule"])  # "majority"
```
Note: even when a decision is `APPROVED`, any `DISAGREE`/`SECURITY_CONCERN`/etc.
vote is always present in `proof.votes` — CAIN never drops dissent from the
record to make a decision look cleaner.

## What this does and does not prove

- Proves: this exact 8-state organization lifecycle and 2-member team
  formation happened, in this order, with cryptographically SIGNED
  authorization for each membership change (not a self-declared role), and
  the chain has not been tampered with or reordered since.
- Does NOT prove: that the underlying economic settlement moved real money
  (it did not -- see `/proof/bundle/cain38-economic-fabric/` and
  `/proof/bundle/cain39-agent-internet-fabric/` for that machinery, which
  this demo reuses but does not re-publish here), or that this pattern has
  been tested at any scale beyond 2 agents.
