https-deeplearning-ai / https-deeplearning-ai/spec-build-lab

Recording: Claude Code transcript compaction can erase the /prepare-build announcement bookend

Aperta
#19 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
3
Fork
3
Merge medio
20h 23m
PR unite (30g)
6

Descrizione

Observed on run-08 (2026-09-07): the .session breadcrumb correctly pointed at the live transcript, but by extraction time the session had gone through context compaction and the transcript JSONL no longer contained the /prepare-build announcement text ("Run 08 — building in builds/run-08/") — the default opening bookend matched nothing and extract.py sliced from the start of the surviving transcript. The closing bookend (recent text) still matched. Recovered by re-running with --from="Spec fully absorbed", a phrase that survived compaction; the final log covers 138 turns of the build but has lost the allocation/checklist turns that preceded the compaction boundary.

Implication: the post-hoc recording design (CLAUDE.md "Recording is post-hoc") assumes the transcript retains raw turns for the whole build window. Long sessions violate that: compaction can drop any pre-boundary turn, including the opening bookend and early build activity.

Options to consider (next tooling pass):

  • /prepare-build writes the announcement text (or a unique token) into evals/run-NN/.session alongside the path, and extract.py falls back to slicing from the earliest surviving turn while WARNING loudly that the opening bookend was lost (today it says "no match — sliced from start" only in stdout).
  • Have /prepare-build note a timestamp at allocation; slice by timestamp rather than text.
  • Or extract eagerly (run /extract-build-log periodically during long builds) since re-runs are idempotent.

🤖 Generated with Claude Code

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia da extract.py e dal flusso di registrazione di /prepare-build, poi leggi le indicazioni in CLAUDE.md secondo cui la registrazione è post-hoc. Riproduci l’estrazione dopo la compattazione della trascrizione usando lo scenario run-08 e confronta le opzioni di boundary disponibili. Il lavoro è completato quando le sessioni lunghe non perdono più silenziosamente il contesto iniziale e l’estrazione segnala chiaramente quale boundary è stata usata quando manca il bookend originale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.