Skip to content

fix(curator): add post-archive safety guard to prevent unverified skill archival#30948

Closed
alaamohanad169-ship-it wants to merge 1 commit into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/curator-safety-guard-v2
Closed

fix(curator): add post-archive safety guard to prevent unverified skill archival#30948
alaamohanad169-ship-it wants to merge 1 commit into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/curator-safety-guard-v2

Conversation

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor

Summary

When the curator LLM archives skills without verified consolidation evidence (e.g., hallucinated umbrella names, fallback/no-evidence pruning), active workflows break silently.

Changes

Adds a post-archive guard that:

  • Detects skills removed by the LLM review pass
  • Checks for tool-call evidence of real consolidation (write_file/patch/create/edit via skill_manage on an umbrella skill)
  • If NO consolidation evidence exists: moves skills back from .archive/ to the active skills directory (fail-closed behavior)
  • Logs a warning and annotates the run summary with the rollback count

Testing

  • Verify rollback triggers when consolidated_this_run=0
  • Verify no rollback when consolidation evidence exists
  • Verify warning is logged

Fixes #29912

…ll archival

When the curator LLM archives skills without verified consolidation evidence
(e.g., hallucinated umbrella names, fallback/no-evidence pruning), active
workflows break silently. This adds a post-archive guard that:

- Detects skills removed by the LLM review pass
- Checks for tool-call evidence of real consolidation (write_file/patch/
  create/edit via skill_manage on an umbrella skill)
- If NO consolidation evidence exists: moves skills back from .archive/
  to the active skills directory (fail-closed behavior)
- Logs a warning and annotates the run summary with the rollback count

Fixes NousResearch#29912
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists tool/skills Skills system (list, view, manage) duplicate This issue or pull request already exists labels May 23, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #30041 — same fix (curator post-archive safety guard), same author. Fixes #29912. Also competes with #30108 (cron-protection approach).

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

Note: This is a clean rebase of the previously closed PR #30041. The old PR was closed because it had diverged significantly from upstream main (781 commits behind). This version is cherry-picked onto latest main with no conflicts — only the relevant safety guard code is included.

The competing PR #30108 (friday-james) takes a different approach (cron-job-based protection). My approach is post-archive tool-call verification — it catches ALL cases of unverified archival, not just cron-related ones. The two approaches are complementary, not mutually exclusive.

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

Note to maintainers: The alt-glitch bot flagged this as a duplicate. This is incorrect. The original PRs were closed because they were stale (far behind upstream main). This is the clean rebased version cherry-picked onto latest main. The old PRs referenced by the bot no longer exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Curator may archive active skills during umbrella pass without verified consolidation (fail-open behavior)

2 participants