dup-task-scan.sh (G-052) cannot distinguish a half-staged rename from a real duplicate, and its message misdirects the fix
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 67/100
Hướng nghiên cứu
Start with dup-task-scan.sh, especially the index scan and duplicate-message logic around lines 29, 43–46, and 52–57; compare its results with git diff --cached --name-status for the half-staged and genuine-duplicate cases. Keep detection intact, distinguish the recoverable half-staged move in the message, and verify that it suggests git add -A .tasks/ while genuine duplicates retain the current message.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
dup-task-scan.sh (gate G-052) correctly refuses a half-staged task move, but its refusal
message cannot distinguish that case from a genuine duplicate — and the remedy it implies
is wrong for the common one.
Confirmed by running the script in both directions
- Fully staged rename (
git mv): one path in the index → exit 0, allowed. Correct. - New path added, old path's deletion not staged: both paths in the index → exit 1,
refused withDuplicate task IDs detected (G-052).
The second case is a true positive on a partially staged index, not a false positive on
a rename. (A downstream task's own title asserted the opposite; running the script settled
it the other way.)
Why the message misdirects
dup-task-scan.sh:29 reads git ls-files --cached; :43-46 intersects task IDs across
active/ and completed/; :52-57 prints only path names. It never consults
git diff --cached --name-status, where a staged rename appears as R and a real orphan
does not — so the one signal that separates a recoverable half-staged move from a permanent
active+completed duplicate is available at the moment the gate runs and unused.
An operator reading "Duplicate task IDs detected" next to two paths reaches for deletion.
The actual fix in the common case is git add -A .tasks/.
Suggested fix
Do not loosen the detection — it is correct. Read git diff --cached --name-status,
and when the pair appears as a rename or as an unstaged deletion of the old path, say so:
name the half-staged case and print git add -A .tasks/ as the remedy. Keep the current
message for the genuine orphan.
Filed from project 1409-sprind under its observation-inbox triage task. The downstream
root-cause analysis already existed and recorded "reported, not patched"; re-measurement
during triage found it had never actually been filed, which is itself the reason this
issue exists.
- Ngôn ngữ chính
- Shell
- Star
- 16
- Fork
- 6
- Merge trung bình
- 6 giờ 24 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DimitriGeelen/agentic-engineering-framework
-
area:doctor bug severity:low status:accepted triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DimitriGeelen/agentic-engineering-framework#100 · 3 bình luận ·
-
area:doctor bug severity:medium status:accepted triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#97 · 3 bình luận ·
-
area:context bug severity:low status:accepted triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#96 · 3 bình luận ·
-
area:cli bug severity:medium status:accepted triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DimitriGeelen/agentic-engineering-framework#95 · 3 bình luận ·
-
area:watchtower bug severity:low status:released triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#94 · 4 bình luận ·
Tất cả issue của DimitriGeelen/agentic-engineering-framework
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mattpocock/skills#1307 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
melodic-software/claude-code-plugins#8537 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vladmandic/sdnext#5161 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
severity: low
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 89/100
luainkernel/lunatik#1980 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
go: new version 1.27.3Đang mởout-of-date
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
CachyOS/CachyOS-PKGBUILDS#2022 ·
Maintainer thường phản hồi trong vòng 1 ngày