Files
Clément SAILLANT c2fc583bae Refactor scenario validation to support V2 schema and update related tests
- Updated `validate_scenario.py` to handle V2 scenario YAML files, introducing new required keys and validation logic.
- Added support for legacy V1 scenarios with an option to allow migration.
- Modified `run_content_checks.sh` to validate V2 scenarios and associated audio and printables manifests.
2026-03-05 19:29:48 +01:00

731 B

Game Agent Contract

Purpose: scenario and story content source-of-truth management.

Allowed scope:

  • game/scenarios/**
  • game/prompts/**
  • generated docs derived from scenario YAML

Validate:

  • python3 tools/scenario/validate_scenario.py game/scenarios/zacus_v2.yaml
  • python3 tools/scenario/export_md.py game/scenarios/zacus_v2.yaml
  • python3 tools/audio/validate_manifest.py audio/manifests/zacus_v2_audio.yaml
  • python3 tools/printables/validate_manifest.py printables/manifests/zacus_v2_printables.yaml

Common commands:

  • rg -n "id:|station|solution" game/scenarios
  • rg --files game

Do not:

  • edit generated outputs without updating scenario YAML first
  • change IDs without syncing cross-file references