https-deeplearning-ai / https-deeplearning-ai/spec-build-lab
Recording: Claude Code transcript compaction can erase the /prepare-build announcement bookend
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 3
- フォーク
- 3
- 平均マージ
- 20時間 23分
- マージ済み PR(30日)
- 6
説明
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-buildwrites the announcement text (or a unique token) intoevals/run-NN/.sessionalongside the path, andextract.pyfalls 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-buildnote a timestamp at allocation; slice by timestamp rather than text. - Or extract eagerly (run
/extract-build-logperiodically during long builds) since re-runs are idempotent.
🤖 Generated with Claude Code
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
extract.py と /prepare-build の記録フローから始め、次に、記録は post-hoc で行われるという CLAUDE.md の指針を読んでください。run-08 シナリオを使って transcript の compaction 後の抽出を再現し、利用可能な boundary の選択肢を比較してください。長時間のセッションで冒頭のコンテキストが暗黙に失われなくなり、元の bookend がない場合にどの boundary が使われたかを抽出処理が明確に報告すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100