Trace: a rename inside an amend or a squash loses the AI line attribution
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by reading spec issue-3639 R-007 and the Trace README changes and tests in PR #3685; then trace how the push path matches file lines against the session ledger. Reproduce the amend-with-rename flow from the issue and compare it with the separate-rename and amend-only cases. Done means the amended commit is listed as session evidence and hello.txt retains 3 AI lines and 0 human lines, with coverage for the squash case.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A rename inside an amend or a squash of a session commit loses the AI line attribution. All the lines of the renamed file count as human.
Spec issue-3639 R-007 says: "Attribution MUST survive a file rename, amend, rebase, squash, and cherry-pick in the same clone. The CLI MUST match lines by content."
Steps to reproduce
- On a feature branch, an agent session writes
greeting.txtwith three lines, commits it, and pushes. - A human runs
git mv greeting.txt hello.txt, thengit commit --amend --no-edit, thengit push --force.
Expected
The stored session evidence lists the amended commit, and hello.txt has 3 AI lines and 0 human lines.
Actual
The evidence lists the amended commit, but hello.txt has 0 AI lines and 3 human lines.
Cause
The amended commit has no parent that holds greeting.txt, so git sees no rename: the commit creates hello.txt. The ledger of the session holds the line fingerprints under greeting.txt only. The push matches the lines of a file against the ledger of the same path and of the old paths of a rename, so no line of hello.txt matches. A squash that folds a rename into the session commit has the same result.
A rename in a separate commit keeps the AI lines, and an amend with no rename keeps them too.
Evidence
The end-to-end suite found this (spec issue-3635). The first version of the Renames and rewrites check in #3685 used this flow. #3685 documents the gap in the Trace README and tests the amend and the rename separately.
- Ngôn ngữ chính
- Go
- Star
- 582
- Fork
- 61
- Merge trung bình
- 12 giờ 47 phút
- Pull request đã merge (30 ngày)
- 137
Chuẩn bị môi trường
- Không có Dockerfile hay 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 chainloop-dev/chainloop
-
feature-parity trace-provider
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
chainloop-dev/chainloop#3802 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug trace-provider
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
chainloop-dev/chainloop#3803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(trace): support GitHub Copilot (CLI and VS Code) in Chainloop TraceCó thể đã có người làm @migmartri đã nhận hôm nay. Đang mởFeature spec trace-provider
chainloop-dev/chainloop#3800 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Allow enabling policy enforcement at the workflow contract levelCó thể đã có người làm @migmartri đã nhận 10 ngày trước. Đang mởcomponent/backend new-policy spec
chainloop-dev/chainloop#3762 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chainloop component/CLI performance trace-provider
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
chainloop-dev/chainloop#3756 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của chainloop-dev/chainloop
Issue tương tự
-
model:sonnet runtime:claude security size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FootprintAI/Containarium#3624 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Judgment-Pack/judgment-pack-runtime#367 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
pulseaiclub/phi#482 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug raised-by:desk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
medici-finance/assay#6102 ·
Maintainer thường phản hồi trong vòng 1 ngày