mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-04 14:41:05 +00:00
6c88c0360c
Codex v4 SILENT finding: my audit Finding-2 fix made the orphan-.bak branch emit a state_db_deleted_webui_tombstone item, but the state_db_missing_rows loop still emitted the same sid/kind again when both a surviving .json.bak AND a state.db row exist for one deleted session — double-counting unsafe_to_repair, violating the no-double-classification invariant. Fix: track _bak_tombstoned_ids from the .bak branch and skip them in the state.db loop. Regression test test_audit_no_double_count_when_bak_and_state_db_row_both_survive (verified fails without the dedup). Co-authored-by: rodboev <rodboev@users.noreply.github.com>