Validation Contract

This page separates what is enforced now from what is intended later.

Enforced Now

Current validation checks:

  • required market files exist
  • config.yml loads
  • required top-level config keys exist
  • week_start is one of the allowed values
  • required functions can be sourced
  • forbidden local-environment patterns are blocked in committed scripts

Planned Next

Not fully enforced yet:

  • transform runs against real market input
  • transformed columns match the intended model contract
  • predict succeeds
  • decomp succeeds
  • build produces a traceable artefact
  • formula regression checks for cases like lead() and I(...)

Why This Distinction Matters

The repo should not overstate its current level of technical assurance. Today, validation proves that the market scaffold is structurally governed. It does not yet prove that every migrated market implementation runs end to end.