# V2 Cook CI Integration

`V2/ue/Build/Cooking/v2-cook-ci-integration.json` defines the CI contract for
nightly full cook, per-commit incremental cook, and cook size regression alerts.
The lightweight workflow is `.github/workflows/v2-cook-ci.yml`.

The per-commit incremental cook mode runs on push and pull request changes to
the cooking contracts, tools, and asset-pipeline docs. It plans dependency
graph, incremental cook, parallel schedule, validation, reporting, and size
regression alert steps.

The nightly full cook mode runs on cron `0 8 * * *` and manual dispatch. It
plans platform profiles, dependency graph, parallel schedule, validation,
report, and artifact publishing.

Cook size regression alerts compare against the main-branch cook report
baseline. The policy fails critical regressions above 10 percent total size
growth or 250 MiB on a single cooked asset, and emits GitHub annotation plus
build-notification evidence.

`plan-v2-cook-ci-integration.py` emits mode-specific evidence for the workflow.

Required gates:

- `cook-ci-nightly-full-cook`
- `cook-ci-per-commit-incremental`
- `cook-ci-size-regression-alerts`
- `cook-ci-validation-chain`
- `cook-ci-artifact-retention`

The CI validator is:

```bash
python3 V2/ue/Tools/check-v2-cook-ci-integration.py
```
