# V2 Level And World Cooking

`V2/ue/Tools/plan-v2-level-world-cooking.py` expands
`V2/ue/Build/Cooking/v2-level-world-cooking.json` into deterministic Unreal
commandlet commands for world source sets and platform chunk profiles.

Source coverage is `.umap`, `.worldpartition`, and JSON world descriptors. Each
command collects transitive hard and soft references, writes a reference
manifest, generates `.v2worldchunk` streaming chunks, builds `.v2spatial.json`
spatial indices, and emits a dependency sidecar ending in `*.v2deps.json`.

Required gates:

- `level-world-cooking-plan-generated`
- `level-world-reference-closure`
- `level-world-streaming-chunks`
- `level-world-spatial-indices`
- `level-world-dependency-sidecars`

The primary metrics are `cook.level.reference_closure_command_count`,
`cook.level.streaming_chunk_count`, `cook.level.spatial_index_count`, and
`cook.level.dependency_sidecar_count`. The CI validator is:

```bash
python3 V2/ue/Tools/check-v2-level-world-cooking.py
```
