Skip to content

fix: dedupe corrupt kanban db backups#31798

Open
iamhungree wants to merge 1 commit into
NousResearch:mainfrom
iamhungree:fix/kanban-corrupt-backup-dedupe
Open

fix: dedupe corrupt kanban db backups#31798
iamhungree wants to merge 1 commit into
NousResearch:mainfrom
iamhungree:fix/kanban-corrupt-backup-dedupe

Conversation

@iamhungree

Copy link
Copy Markdown

Summary

  • Reuse an existing corrupt Kanban DB backup when the bytes match
  • Avoid creating backup landfill on repeated dispatcher probes
  • Add regression coverage for repeated corrupt DB probes

Test Plan

  • python -m pytest tests/hermes_cli/test_kanban_db.py::test_init_db_refuses_corrupt_existing_file tests/hermes_cli/test_kanban_db.py::test_connect_refuses_corrupt_existing_file tests/hermes_cli/test_kanban_db.py::test_repeated_corrupt_db_probe_reuses_existing_backup tests/hermes_cli/test_kanban_db.py::test_locked_healthy_db_does_not_classify_as_corrupt -q -o 'addopts='

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins labels May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants