checkpoint: dedup session-metadata mutation and test slice assertion
main·
Commit

Extract updateSessionMetadata, the read-modify-write-blob pattern shared by replaceSkillEvents and setCompactTranscriptStart, so both express only their field mutation. Reading from the entries blob (not an in-memory copy) is kept, so sequential finalize-path mutations still see each other's changes.
Generalize the test helper assertCodexSliceIsGamma into assertCompactSliceScoped (parameterized absent/present strings), used by both the Claude and Codex slice-scoping assertions.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 0aa2d57378e2
Checkpoints
Checkpoint 1