checkpoint: tier the read surface into CheckpointReader / SessionReader

main

Commit

Soph3mo ago

Mirror the write-side session/checkpoint split on reads: replace the mixed PersistentReader/PersistentListReader with CheckpointReader { Read, List } (checkpoint-level) SessionReader { ReadSession{Content,Metadata,Prompts,MetadataAndPrompts} } (session-level) and compose PersistentStore = CheckpointReader + SessionReader + Writer.

Helpers now take the minimal tier they need (ReadCheckpoint: CheckpointReader, ReadLatestSessionContent: SessionReader); callers and stubs updated. Also drops a now-dead type assertion in readSessionMetadataForExport (SessionReader guarantees ReadSessionMetadata). No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 8e1b3d190167

Checkpoints

Review Checkpoint Commit f16b7101

CodexGPT-5.5
View session
Checkpoint 1

Review GitStore Temporary Store Split

CodexGPT-5.5
View session
Checkpoint 1

Review InitialAttribution Rename Commit

CodexGPT-5.5
View session
Checkpoint 1

Review Checkpoint Committed Types Rename

CodexGPT-5.5
View session
Checkpoint 1

Review Persistent Reads Collapse Commit

CodexGPT-5.5
View session
Checkpoint 1

Review Checkpoint Write API Changes

CodexGPT-5.5
View session
Checkpoint 1

Review Ephemeral Vocabulary Renaming Changes

CodexGPT-5.5
View session
Checkpoint 1

Review Checkpoint Ephemeral Reads/Lists Collapse

CodexGPT-5.5
View session
Checkpoint 1

Review Ephemeral Writes Unification Commit

CodexGPT-5.5
View session
Checkpoint 1

Code Review for Stores Architecture Reshape

CodexGPT-5.5
View session
Checkpoint 1

Review Checkpoint Store Rename Refactoring

CodexGPT-5.5
View session
Checkpoint 1

Review Checkpoint Vocabulary Commit

CodexGPT-5.5
View session
Checkpoint 1

Review Checkpoint API Extraction Changes

CodexGPT-5.5
View session
Checkpoint 1