Checkpoints v2: write compact transcript file + metadata#828
Merged
computermode merged 22 commits intomainfrom Apr 2, 2026
Merged
Checkpoints v2: write compact transcript file + metadata#828computermode merged 22 commits intomainfrom
computermode merged 22 commits intomainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Entire-Checkpoint: 62d2f1146e6b
…lePaths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Entire-Checkpoint: 1069dd0fb5b4
Add three tests covering compact transcript write behavior: - WriteCommittedMain writes transcript.jsonl and transcript_hash.txt - WriteCommittedMain gracefully skips when CompactTranscript is nil - UpdateCommitted writes compact transcript on update path Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Entire-Checkpoint: aacaa6dbe559
Add writeCompactTranscriptHash helper and integrate compact transcript writing into both writeMainSessionToSubdirectory and updateCommittedMain. When CompactTranscript bytes are provided, transcript.jsonl and transcript_hash.txt are written alongside metadata.json and prompt.txt on the /main ref. When nil, these files are simply not written. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Entire-Checkpoint: 5ea183e58cf7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Entire-Checkpoint: c7d57cdafde9
Entire-Checkpoint: adc5a19c0d26
Entire-Checkpoint: 15a4d30c12f0
… finalization Entire-Checkpoint: 3660294efee6
…nscript support Entire-Checkpoint: dd0331b980df
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for writing a compact transcript.jsonl (Entire Transcript Format) and its hash to the v2 checkpoints /main ref during dual-write, so /main can carry lightweight transcript data while /full/current continues to store the raw transcript.
Changes:
- Generate and attach a compact transcript during condensation and stop-time finalization when v2 checkpoints are enabled.
- Persist
transcript.jsonl+transcript_hash.txtto v2/main, and expose their paths inSessionFilePaths. - Extend unit/integration tests to validate the compact transcript artifacts on v2 refs.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/entire/cli/strategy/manual_commit_hooks.go | Generates compact transcript during stop-time finalization for v2 /main. |
| cmd/entire/cli/strategy/manual_commit_condensation.go | Adds compact transcript generation helper and wires it into condensation writes. |
| cmd/entire/cli/paths/paths.go | Introduces constants for compact transcript filename + hash filename. |
| cmd/entire/cli/integration_test/v2_dual_write_test.go | Verifies compact transcript + hash exist on v2 /main in integration flows. |
| cmd/entire/cli/checkpoint/v2_store_test.go | Adds unit tests for writing/updating compact transcript and hash on v2 /main. |
| cmd/entire/cli/checkpoint/v2_committed.go | Implements writing compact transcript + hash on /main and updates related comments. |
| cmd/entire/cli/checkpoint/checkpoint.go | Extends checkpoint option structs and SessionFilePaths to include compact transcript paths. |
pfleidi
reviewed
Apr 1, 2026
Entire-Checkpoint: 2825b73fd581
Entire-Checkpoint: 08ca2b2f664d
…io/cli into write-transcript-main-ref
Contributor
Author
|
bugbot review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
pfleidi
previously approved these changes
Apr 1, 2026
Entire-Checkpoint: bb38bf58960b
This reverts commit 5dd2fdc.
pfleidi
previously approved these changes
Apr 1, 2026
Entire-Checkpoint: ec7fb071a301
…io/cli into write-transcript-main-ref
pfleidi
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Writes the
transcript.jsonlfile torefs/entire/checkpoints/v2/mainwhen the v2 checkpoints setting is enabled.Tested locally:
Note
Medium Risk
Changes v2 checkpoint persistence semantics by adding new artifacts (
transcript.jsonl+ hash) to the permanent/mainref and updating stop-time finalization to rewrite them, which could affect consumers that read v2 metadata paths or expect transcripts only under/full/current. Logic is guarded by the v2 setting and includes redaction/skip-on-error behavior, but it touches core checkpoint storage/update flows.Overview
Adds support for writing a compact, redacted transcript artifact to v2 checkpoints:
transcript.jsonlplustranscript_hash.txtare now stored onrefs/entire/checkpoints/v2/mainalongside metadata/prompts, while rawfull.jsonlremains onrefs/entire/checkpoints/v2/full/current.Extends checkpoint write/update options with
CompactTranscript, updates v2/mainwrite +UpdateCommittedto create/replace these blobs and keep rootmetadata.jsonsession paths in sync (withtranscript/content_hashnow optional). Manual-commit condensation and stop-time finalization now generate the compact format (with secret redaction) when v2 is enabled, and tests/integration assertions are updated to validate the new files and redaction behavior.Written by Cursor Bugbot for commit caf0f33. Configure here.