t1542: fix: add 14 orphaned archived scripts to cleanup_deprecated_paths()#5157
Conversation
After the supervisor-to-pulse-wrapper migration, rsync-based updates only add/overwrite files — they don't delete files removed from the source. Users who installed before the archival retain 14 orphaned scripts in ~/.aidevops/agents/scripts/ that no longer exist upstream. Add them to the deprecated_paths array in cleanup_deprecated_paths() so they are removed on the next aidevops update, following the same pattern used for supervisor-helper.sh in PR #5151. Scripts: pattern-tracker, quality-sweep, quality-loop, review-pulse, self-improve, coderabbit-pulse, coderabbit-task-creator, audit-task-creator, batch-cleanup, coordinator, finding-to-task, objective-runner, ralph-loop, stale-pr. Closes #5155
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses the issue of orphaned script files remaining in user installations after being archived upstream. By extending the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Caution Review failedPull request was closed or merged during review WalkthroughExtends the Changes
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can customize the high-level summary generated by CodeRabbit.Configure the |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Tue Mar 17 16:05:48 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
There was a problem hiding this comment.
Code Review
This pull request correctly adds 14 orphaned scripts to the deprecated_paths array for cleanup. The change is straightforward and addresses the issue described. My feedback includes a suggestion to sort the newly added list of script paths alphabetically to improve readability and maintainability.
| "$agents_dir/scripts/pattern-tracker-helper.sh" | ||
| "$agents_dir/scripts/quality-sweep-helper.sh" | ||
| "$agents_dir/scripts/quality-loop-helper.sh" | ||
| "$agents_dir/scripts/review-pulse-helper.sh" | ||
| "$agents_dir/scripts/self-improve-helper.sh" | ||
| "$agents_dir/scripts/coderabbit-pulse-helper.sh" | ||
| "$agents_dir/scripts/coderabbit-task-creator-helper.sh" | ||
| "$agents_dir/scripts/audit-task-creator-helper.sh" | ||
| "$agents_dir/scripts/batch-cleanup-helper.sh" | ||
| "$agents_dir/scripts/coordinator-helper.sh" | ||
| "$agents_dir/scripts/finding-to-task-helper.sh" | ||
| "$agents_dir/scripts/objective-runner-helper.sh" | ||
| "$agents_dir/scripts/ralph-loop-helper.sh" | ||
| "$agents_dir/scripts/stale-pr-helper.sh" |
There was a problem hiding this comment.
For better readability and future maintenance, please sort this list of script paths alphabetically.
| "$agents_dir/scripts/pattern-tracker-helper.sh" | |
| "$agents_dir/scripts/quality-sweep-helper.sh" | |
| "$agents_dir/scripts/quality-loop-helper.sh" | |
| "$agents_dir/scripts/review-pulse-helper.sh" | |
| "$agents_dir/scripts/self-improve-helper.sh" | |
| "$agents_dir/scripts/coderabbit-pulse-helper.sh" | |
| "$agents_dir/scripts/coderabbit-task-creator-helper.sh" | |
| "$agents_dir/scripts/audit-task-creator-helper.sh" | |
| "$agents_dir/scripts/batch-cleanup-helper.sh" | |
| "$agents_dir/scripts/coordinator-helper.sh" | |
| "$agents_dir/scripts/finding-to-task-helper.sh" | |
| "$agents_dir/scripts/objective-runner-helper.sh" | |
| "$agents_dir/scripts/ralph-loop-helper.sh" | |
| "$agents_dir/scripts/stale-pr-helper.sh" | |
| "$agents_dir/scripts/audit-task-creator-helper.sh" | |
| "$agents_dir/scripts/batch-cleanup-helper.sh" | |
| "$agents_dir/scripts/coderabbit-pulse-helper.sh" | |
| "$agents_dir/scripts/coderabbit-task-creator-helper.sh" | |
| "$agents_dir/scripts/coordinator-helper.sh" | |
| "$agents_dir/scripts/finding-to-task-helper.sh" | |
| "$agents_dir/scripts/objective-runner-helper.sh" | |
| "$agents_dir/scripts/pattern-tracker-helper.sh" | |
| "$agents_dir/scripts/quality-loop-helper.sh" | |
| "$agents_dir/scripts/quality-sweep-helper.sh" | |
| "$agents_dir/scripts/ralph-loop-helper.sh" | |
| "$agents_dir/scripts/review-pulse-helper.sh" | |
| "$agents_dir/scripts/self-improve-helper.sh" | |
| "$agents_dir/scripts/stale-pr-helper.sh" |



Summary
deprecated_pathsarray incleanup_deprecated_paths()(setup-modules/migrations.sh)supervisor-helper.shandsupervisor/directoryaidevops update, these orphaned files will be cleaned up from~/.aidevops/agents/scripts/Problem
After scripts were archived upstream,
aidevops update(rsync) only adds/overwrites — it doesn't delete files removed from the source. Users who installed before the archival retain 14 orphaned scripts:pattern-tracker-helper.sh,quality-sweep-helper.sh,quality-loop-helper.sh,review-pulse-helper.sh,self-improve-helper.sh,coderabbit-pulse-helper.sh,coderabbit-task-creator-helper.sh,audit-task-creator-helper.sh,batch-cleanup-helper.sh,coordinator-helper.sh,finding-to-task-helper.sh,objective-runner-helper.sh,ralph-loop-helper.sh,stale-pr-helper.shFix
Added all 14 scripts to the existing
deprecated_pathsarray incleanup_deprecated_paths(), following the exact same pattern used for other deprecated paths in the function. The existing loop already handles removal and counting.Verification
shellcheck setup-modules/migrations.sh— 0 violationsCloses #5155
Summary by CodeRabbit