t2060: fix(task-complete-helper): move completed entries from Ready/Backlog to Done#18806
t2060: fix(task-complete-helper): move completed entries from Ready/Backlog to Done#18806marcusquinn merged 1 commit intomainfrom
Conversation
…arking - Replace in-place sed in complete_task() with two-pass awk extract-and-move: Pass 1 extracts the task block (parent + indented subtasks) with [x] transformation Pass 2 inserts the block at top of ## Done section, removing from original location - Add ## Done presence check before backup (fail-fast, no orphaned .bak files) - Add in_done_section verification after move (belt-and-braces correctness check) - Fix commit_and_push() to skip commit when nothing was staged (idempotent calls) - New test harness tests/test-task-complete-move.sh with 17 assertions covering all 7 edge cases: single-line, open subtask guard, complete subtask block, idempotent Done, In Progress → Done, missing Done header, block boundary - Retroactive cleanup: moved 562 completed entries (4 from Ready, 558 from Backlog) to ## Done. Total [x] count unchanged (806). Zero [x] entries remain in Ready/Backlog. Resolves #18746
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report SonarCloud: 0 bugs, 0 vulnerabilities, 231 code smells Tue Apr 14 02:39:05 UTC 2026: Code review monitoring started 📈 Current Quality Metrics
Generated on: Tue Apr 14 02:39:07 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
Up to standards ✅🟢 Issues
|
Worker Implementation SummaryTask: t2060 — fix(task-complete-helper): move completed entries from What was implemented
Test harness (
Retroactive cleanup (
Verification resultsAll CI checks passed. Merge blocked by: branch protection requires at least 1 approving review. Awaiting maintainer approval. |
marcusquinn
left a comment
There was a problem hiding this comment.
Auto-approved by pulse — collaborator PR (author: @alex-solovyev). All pre-merge checks passed.
Worker Implementation SummaryTask: t2060 — fix(task-complete-helper): move completed entries from What was implemented
Test harness (
Retroactive cleanup (
Verification resultsAll CI checks passed. Merge blocked by: branch protection requires at least 1 approving review. Awaiting maintainer approval. Merged via PR #18806 to main. aidevops.sh v3.8.18 spent 16m on this as a headless bash routine. |
TODO.md auto-completion blockedThe Run this locally to complete the audit trail: ~/.aidevops/agents/scripts/task-complete-helper.sh t2060 --pr 18806 --testing-level self-assessedThis is a known limitation on personal-account classic branch protection — |



Summary
sedsubstitution incomplete_task()with a two-pass awk extract-and-move: block is extracted from its current section, transformed ([ ]→[x], proof-log appended), and inserted at the top of## Done.## Doneis absent — no partial writes.commit_and_push()to skip the git commit when nothing was staged (idempotent/already-complete case now exits 0 as documented).tests/test-task-complete-move.sh(17 assertions, 7 edge cases).## Ready, 558 from## Backlog) to## Done. Total[x]count unchanged at 806.Files Changed
EDIT: .agents/scripts/task-complete-helper.sh—complete_task()lines 344-378 +commit_and_push()no-op guardNEW: .agents/scripts/tests/test-task-complete-move.sh— regression harnessEDIT: TODO.md— retroactive move of 562 completed entriesVerification
Resolves #18746