| # Counterfactual Intervention Lattice Format | |
| A CIL record is one action intervention from a shared initial state. Records that share | |
| `group_id` form one lattice. | |
| Required fields: | |
| - `schema_version` | |
| - `group_id` | |
| - `state` | |
| - `observation0` | |
| - `instruction` | |
| - `goal` | |
| - `action` | |
| - `next_observation` | |
| - `reward` | |
| - `structured_effect` | |
| - `failure_type` | |
| - `explanation` | |
| - `metadata` | |
| JSONL shards should preserve complete groups. A group may exceed the target shard size, but it | |
| should never be split across shards unless an explicit future streaming mode opts into that tradeoff. | |