Trace: record Pi root context and compactions

Offen
#3,721 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go

Rechercherichtung

Start by reading the Pi provider baseline in issue #3704 and the broader requirements in #3637; this issue names no source files or tests. Trace how pinned Pi 1.3.0 transcripts and model metadata represent the selected root branch, resumed history, occupancy, and compactions. Done means deterministic regressions cover the listed transcript cases, schema and consumer compatibility and a live Pi session are validated, and only the measured Pi matrix cell is updated.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

trace-provider

Problem

Pi Trace evidence has session-wide token totals but not root-session context-window occupancy or native compaction events. The broader multi-provider request is #3637.

Scope

Pi root selected branch only. Add the minimum machine-readable context size, peak/final occupied tokens, and compaction count that native Pi 1.3.0 records can substantiate.

Acceptance criteria

  • Identify Pi's authoritative window size and per-turn occupancy from pinned transcript/model metadata; do not infer a denominator from a model name when Pi does not provide one.
  • Record root-session peak/final context and native compaction count with explicitly versioned evidence fields; percentages appear only with a verified window size.
  • Count selected-branch and resumed history exactly once; exclude abandoned branches and child sessions.
  • Cover empty, malformed, missing-window, and multi-compaction transcripts in deterministic regressions.
  • Validate the evidence schema/consumer compatibility and a live Pi session before updating only the measured Pi matrix cell.

Non-goals

  • Other providers or child-session context metrics.
  • The separate git_context.commit_start observation in #3637.
  • Estimating context size from cumulative session token totals.

Parent: #3637. Baseline Pi provider: #3704.

Vorherrschende Sprache
Go
Sterne
582
Forks
61
Ø Merge
12 Std. 47 Min.
Gemergte PRs (30 T.)
137

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus chainloop-dev/chainloop

Alle Issues in chainloop-dev/chainloop

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.