feat(storage): fingerprint proposed strategies

Co-authored-by: GPT-6 <gpt-6@openai.com>
This commit is contained in:
ZeusinaandGPT-6 Bot committed 2026-10-09 21:56:53 +03:00
1 parent e2b87e0416
commit 04fd9b370d
4 files changed
+405 -12

No files matched your search

+5 -1
View File
@@ -29,5 +29,9 @@ it must be writable. In Docker, mount that directory to retain history:
docker run --rm -v autotune-data:/var/lib/zapret-autotune zapret-autotune status
```
Schema version 1 is initialized transactionally on `tune` and `status`; subsequent
Schema version 2 is initialized transactionally on `tune` and `status`; subsequent
opens are idempotent and newer, unsupported schema versions are rejected.
Proposed runs store a SHA-256 fingerprint of validated arguments with separator
whitespace normalized and argument order preserved; repeated proposals retain
separate history rows. Failed runs have no fingerprint. Version 1 history is
upgraded atomically, rejecting invalid proposed arguments without changing it.