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

Aberta
#3,698 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
54/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
git, go
Domínio
devtools

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
Go
Estrelas
582
Forks
61
Merge médio
12h 47min
PRs com merge (30d)
137

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de chainloop-dev/chainloop

Todas as issues de chainloop-dev/chainloop

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.