scripts/config_sync.py enforces NOVOSKY config authority.
- Canonical writable files are in repo root only:
config.jsonml_config.json
Why this exists
Optimizer, weekly optimize, and onboarding all read and write runtime and ML config. Without a single authority, config drift causes train/live mismatch and unstable results.config_sync.py gives you one way to validate configs before automation runs.
Commands
Check drift (hard fail)
Use this in CI and pre-run checks.0: root configs are valid1: drift or missing file detected
Validate canonical configs
Strict mode for runtime scripts
SetNOVOSKY_STRICT_CONFIG_SYNC=1 to force a hard check before scripts continue.
- If drift exists, the script stops with an error.
- If no drift exists, the script proceeds.
Recommended CI step
Add this before any train/tune/deploy job:Best practices
- Edit only root configs.
- Run
--checkbefore retrain, weekly optimize, and release. - Keep
NOVOSKY_STRICT_CONFIG_SYNC=1enabled in production automation.