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

Abierto
#3,698 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
git, go
Área
devtools

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Go
Estrellas
582
Forks
61
Merge medio
12 h 47 min
PR fusionados (30 d)
137

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de chainloop-dev/chainloop

Todos los issues de chainloop-dev/chainloop

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.