perf: skip snapshot retraining when policy_stats_live deltas are empty #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After Issue #12, snapshot refresh is correct and much cheaper because it can fold
policy_stats_live.jsoninto the published snapshot. The next structural waste is that we still mint a fresh snapshot and retrain a candidate policy even when the live delta file is empty. We should detect no-op refreshes, reuse the current snapshot when there are no deltas, and expose whether a gate run evaluated a reused snapshot or a newly built one.Implemented and live-verified no-op snapshot reuse.
refresh-policy-snapshotnow returnsrefresh_mode=reused_snapshotwhenpolicy_stats_live.jsonis empty and already anchored to the current manifest snapshot id, instead of minting a fresh snapshot and retraining.run-sacred-evalsnow surfaces that refresh mode too. Live verification showed both the direct refresh command and the sacred gate reusing the current snapshot while still promoting with100/100/0.