{
  "collective_passport": {
    "schema": "cain42.e9.collective-passport.v1",
    "collective_id": "coll:example",
    "parent_agent": "agent:A",
    "members": [
      "agent:A",
      "agent:B"
    ],
    "delegation_tree": {},
    "shared_resources": [
      "db:customers"
    ],
    "shared_budget": 1100.0,
    "capability_ceiling": [
      [
        "READ",
        "db:customers"
      ],
      [
        "WRITE",
        "db:customers"
      ]
    ],
    "creator": "agent:A",
    "member_passport_digests": {
      "agent:A": "bb2d63a7dde9984f8e9e373ca1ddf157156d93dd1fac2c615df1839b1162e372",
      "agent:B": "f59128995cfa53f42f553e633489cefe07ba8fee7597a445ae1a15a455325e86"
    },
    "membership_policy": "signed",
    "role_assignments": {
      "agent:A": "coordinator",
      "agent:B": "researcher"
    },
    "authority_envelope": [
      [
        "READ",
        "db:customers"
      ]
    ],
    "objective": "migrate customers",
    "resource_budget": {
      "money": 100.0,
      "tokens": 1000.0
    },
    "collective_policy": "",
    "formation_event": "f0a0b24e06c0e8fd1973557a15697b6cacffe460dbb71f811118c9124e5fa3c7",
    "provenance_root": "215af41a427a32d5b7c95f753e1bc9bb4ff14e999035327479103f1d7990edbd",
    "current_state": "ACTIVE",
    "version": 1,
    "expires_at": 3600.0,
    "revoked": false,
    "issuer": "cain:example",
    "issuer_public_key_b64": "98Sf/3ubpSUmxvUmBJ3mbp97Q5GgMPEA+UG3e0W3hMY=",
    "signature_b64": "F6PhdoKtY0Lx33EE6Yq3Uax1JFNQVIAjcI/B/JHI7aPa8W+MhlD27hW+soufqgTQkOFT7zjp8dP4TLBqaoQaCQ==",
    "digest": "860e59544af81ae391af1f490dd0ad9611f0cf1a49ecdace5552dc118e8447f2",
    "authority": "NONE"
  },
  "collective_state": {
    "membership": [
      "agent:A",
      "agent:B"
    ],
    "roles": {
      "agent:A": "coordinator",
      "agent:B": "researcher"
    },
    "active_tasks": [],
    "pending_proposals": [],
    "current_objective": "migrate customers",
    "resource_allocation": {},
    "budgets": {
      "money": 100.0,
      "tokens": 1000.0
    },
    "trust_state": "UNKNOWN",
    "risk_state": "UNKNOWN",
    "shared_memory_root": "2cf97d4efd183e13a5e622e9b3eed4d2579cad1c4070a05a4521505fa39e9566",
    "world_state_root": "",
    "trajectory_root": "",
    "governance_root": "",
    "provenance_root": "2e8a863e9d82387cff8d64e29df2863896a47a641420573e71bdbc4beb59455f",
    "evidence_root": "",
    "lifecycle": "ACTIVE",
    "state_root": "cf863ad8791d80188b82e8c43f7eaf3c2cd893d64a4dc470cdb1c585af726303",
    "authority": "NONE"
  },
  "provenance_graph": {
    "schema": "cain42.e10.collective-provenance-graph.v1",
    "collective_id": "coll:example",
    "layers": [
      "principal",
      "collective",
      "member",
      "role",
      "delegation",
      "capability",
      "shared_resource",
      "shared_memory",
      "decision",
      "action",
      "result",
      "evidence"
    ],
    "nodes": [
      {
        "id": "act:1",
        "layer": "action"
      },
      {
        "id": "agent:A",
        "layer": "member"
      },
      {
        "id": "agent:B",
        "layer": "member"
      },
      {
        "id": "coll:example",
        "layer": "collective"
      },
      {
        "id": "db:customers",
        "layer": "shared_resource"
      },
      {
        "id": "org:1",
        "layer": "principal"
      },
      {
        "id": "res:1",
        "layer": "result"
      },
      {
        "id": "role:coordinator",
        "layer": "role"
      }
    ],
    "edges": [
      [
        "act:1",
        "RESULTED_IN",
        "res:1"
      ],
      [
        "agent:A",
        "EXECUTED",
        "act:1"
      ],
      [
        "coll:example",
        "HAS_MEMBER",
        "agent:A"
      ],
      [
        "org:1",
        "CREATED_BY",
        "coll:example"
      ]
    ],
    "root": "a8998d3b37e2c0d9d955261a2c3dd2a4c4e9306ba8943e5119e4d8a53b44a219",
    "authority": "NONE"
  },
  "governance_graph": {
    "schema": "cain42.e10.collective-governance-graph.v1",
    "collective_id": "coll:example",
    "states": [
      "FORMING",
      "ATTESTING",
      "GOVERNED",
      "ACTIVE",
      "DEGRADED",
      "QUARANTINED",
      "DISSOLVING",
      "DISSOLVED"
    ],
    "permitted": {
      "FORMING": [
        "ATTESTING",
        "DISSOLVING"
      ],
      "ATTESTING": [
        "DISSOLVING",
        "GOVERNED"
      ],
      "GOVERNED": [
        "ACTIVE",
        "DEGRADED",
        "DISSOLVING",
        "QUARANTINED"
      ],
      "ACTIVE": [
        "DEGRADED",
        "DISSOLVING",
        "QUARANTINED"
      ],
      "DEGRADED": [
        "ACTIVE",
        "DISSOLVING",
        "QUARANTINED"
      ],
      "QUARANTINED": [
        "DEGRADED",
        "DISSOLVING"
      ],
      "DISSOLVING": [
        "DISSOLVED"
      ],
      "DISSOLVED": []
    },
    "sanctions": [
      "NONE",
      "WARN",
      "THROTTLE",
      "RESTRICT",
      "QUARANTINE",
      "DISSOLVE"
    ],
    "restoration": {
      "QUARANTINED": [
        "DEGRADED",
        "ACTIVE"
      ],
      "DEGRADED": [
        "ACTIVE"
      ]
    },
    "events": [
      {
        "seq": 0,
        "kind": "MEMBERSHIP",
        "detail": {
          "agent": "agent:A",
          "role": "coordinator",
          "signed": true
        },
        "at": 0.0,
        "signed": true,
        "authority": "NONE"
      },
      {
        "seq": 1,
        "kind": "MEMBERSHIP",
        "detail": {
          "agent": "agent:B",
          "role": "researcher",
          "signed": true
        },
        "at": 0.0,
        "signed": true,
        "authority": "NONE"
      },
      {
        "seq": 2,
        "kind": "TRANSITION",
        "detail": {
          "to": "ATTESTING"
        },
        "at": 0.0,
        "signed": true,
        "authority": "NONE"
      },
      {
        "seq": 3,
        "kind": "TRANSITION",
        "detail": {
          "to": "GOVERNED"
        },
        "at": 0.0,
        "signed": true,
        "authority": "NONE"
      },
      {
        "seq": 4,
        "kind": "TRANSITION",
        "detail": {
          "to": "ACTIVE"
        },
        "at": 0.0,
        "signed": true,
        "authority": "NONE"
      }
    ],
    "root": "691ae8054bb05e4a9f998f4a8928a110b40f28e6a55187761b10e1b02030b63a",
    "authority": "NONE"
  },
  "combination_example": {
    "combination_state": "HIGH_RISK",
    "triggered": [
      {
        "rule": [
          "credential_read",
          "data_read",
          "deployment_execute",
          "infrastructure_access"
        ],
        "state": "HIGH_RISK",
        "why": "exfiltration-and-deploy chain",
        "contributors": {
          "credential_read": [
            "B:READ:cred:secrets"
          ],
          "data_read": [
            "A:READ:db:customers"
          ],
          "deployment_execute": [
            "D:EXECUTE:deploy:prod"
          ],
          "infrastructure_access": [
            "C:ADMIN:infra:cluster"
          ]
        }
      }
    ],
    "sources": {
      "data_read": [
        "A:READ:db:customers"
      ],
      "credential_read": [
        "B:READ:cred:secrets"
      ],
      "infrastructure_access": [
        "C:ADMIN:infra:cluster"
      ],
      "deployment_execute": [
        "D:EXECUTE:deploy:prod"
      ]
    },
    "evaluated_before_commitment": true,
    "authority": "NONE",
    "note": "each contributing action may be individually permitted; the combination is what is judged"
  },
  "signing": {
    "algorithm": "Ed25519",
    "note": "ephemeral example key; no key material is published"
  }
}
