By default, calibrate outputs proposed changes for a human to manually review and edit in config.py. While keeping manual control is great, it would be really convenient before a match to run a flag that auto-applies calculated weights without manually editing python files.
To keep things clean, we shouldn't modify config.py programmatically. Instead, we can write applied values to a separate config_overrides.json file. Suggested fix:
Make config.py check for and load config_overrides.json if it exists. Add a --apply flag to calibrate that automatically writes the proposed weights into config_overrides.json.
Definition of Done:
Running calibrate --apply updates runtime classification behavior instantly. Deleting config_overrides.json safely reverts everything back to default without touching config.py.
By default, calibrate outputs proposed changes for a human to manually review and edit in config.py. While keeping manual control is great, it would be really convenient before a match to run a flag that auto-applies calculated weights without manually editing python files.
To keep things clean, we shouldn't modify config.py programmatically. Instead, we can write applied values to a separate config_overrides.json file. Suggested fix:
Make config.py check for and load config_overrides.json if it exists. Add a --apply flag to calibrate that automatically writes the proposed weights into config_overrides.json.
Definition of Done:
Running calibrate --apply updates runtime classification behavior instantly. Deleting config_overrides.json safely reverts everything back to default without touching config.py.