Trace: a rename inside an amend or a squash loses the AI line attribution
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Go
- Sterne
- 582
- Forks
- 61
- Ø Merge
- 12 Std. 47 Min.
- Gemergte PRs (30 T.)
- 137
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus chainloop-dev/chainloop
-
feature-parity trace-provider
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
chainloop-dev/chainloop#3802 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug trace-provider
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
chainloop-dev/chainloop#3803 ·
Maintainer antworten meist innerhalb von 1 Tag
-
feat(trace): support GitHub Copilot (CLI and VS Code) in Chainloop TraceEvtl. vergeben @migmartri hat das heute übernommen. OffenFeature spec trace-provider
chainloop-dev/chainloop#3800 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Allow enabling policy enforcement at the workflow contract levelEvtl. vergeben @migmartri hat das vor 10 Tagen übernommen. Offencomponent/backend new-policy spec
chainloop-dev/chainloop#3762 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
chainloop component/CLI performance trace-provider
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 62/100
chainloop-dev/chainloop#3756 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in chainloop-dev/chainloop
Ähnliche Issues
-
model:sonnet runtime:claude security size:S
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
FootprintAI/Containarium#3624 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Judgment-Pack/judgment-pack-runtime#367 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
pulseaiclub/phi#482 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug raised-by:desk
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
medici-finance/assay#6102 ·
Maintainer antworten meist innerhalb von 1 Tag