trace: support advanced Git index semantics for same-call attribution

オープン
#3,698 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
git, go
領域
devtools

調査の方向性

Start by reading the implementation and lifecycle tests for same-call Git attribution, then inspect the existing normal-index behavior described in PR #3631. Add coverage for temporary indexes, intent-to-add entries, conflict resolution, replacement refs, and the temporary-index race path; the acceptance criteria define the expected results. Done means the listed cases pass and attribution matches only content newly staged by the committing Bash call.

索引モデルが issue の本文から書いたものです。

説明

bug chainloop component/CLI trace-provider

Context

Follow-up to #3625 and PR #3631. This scope was intentionally deferred while narrowing the PR to the normal-index foreground Claude Bash case, following maintainer review.

Scope

Support same-call attribution when Git does not use the repository's normal stage-0 index:

Expected behavior

The pre-call and commit-time snapshots use the index Git is actually committing. Only content newly staged by that Bash call is attributed, and special index states cannot add or omit session attribution incorrectly.

Acceptance criteria

  • A same-call git commit --only <path> receives the correct session trailer.
  • Pre-existing normal-index content is not claimed by a temporary-index commit.
  • Intent-to-add paths do not receive attribution unless committed.
  • Resolving an unmerged path changes the index signature even when stage 0 reuses an existing blob.
  • Indexed blob reads remain exact in repositories with refs/replace/*.
  • Race-enabled lifecycle tests cover the temporary-index commit path.
主要言語
Go
スター
582
フォーク
61
平均マージ
12時間 47分
マージ済み PR(30日)
137

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

chainloop-dev/chainloop のほかの issue

chainloop-dev/chainloop の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。