[draft] fix: make curator deletes recoverable#20480
Conversation
…h - prevents OOM cascade
- archive curator-declared skill deletes instead of rmtree - restore archived skills by frontmatter-safe lookup with path validation - add usage repair command for orphan managed records - update autonomous curator dry-run/operator-gate docs Verification: - targeted curator/skill tests: 219 passed - curator dry-run completed with no mutations - live restore/archive smoke test passed - independent reviewer passed - full suite still has unrelated baseline failures (114 failed, 20015 passed)
|
Thanks for the curator-deletes work @izaiahat — closing with context, not because the work is bad. Most of the PR body is already on main. Archive-instead-of-destroy shipped in #18731 (April), The substantive new piece — If you want to land Closing this one to keep the queue legible. Your authorship will land cleanly when the focused curator PR opens. |
Summary
absorbed_intopresent) instead of destructively removing skill directories..archive/and make restore frontmatter-safe/path-safe.hermes curator repair-usageto reconcile orphan or misaligned curator-managed usage records.Verification
git diff --check./venv/bin/python -m pytest tests/tools/test_skill_manager_tool.py tests/tools/test_skill_usage.py tests/hermes_cli/test_curator_status.py tests/hermes_cli/test_curator_archive_prune.py tests/agent/test_curator_classification.py tests/agent/test_curator_backup.py -q→219 passedhermes curator run --sync --dry-run→ completed with no mutations.ab-test-setup→ passed; usage cleaned back to 67 managed records.Full-suite note
./venv/bin/python -m pytest -qwas attempted in this live profile and remains red from unrelated baseline/environment failures:114 failed, 20015 passed, 73 skipped. Failures are in Discord/gateway/delegation/provider/environment tests, not the changed Curator files.