attach: route review-attach metadata guard through Primary

main

Commit

pfleidi3mo ago

checkpointHasSessionMetadata is a write-side defense-in-depth check that asks whether the next write would overwrite a session slot. Reading via refs.Read can miss a slot that exists on Primary, letting the guard pass and the write reuse the slot silently. Bind the read to Primary.

Also tighten three nearby docstrings to drop version-specific examples and caller references.

Entire-Checkpoint: 3f6a0ffedf11

Checkpoints

Streamline Checkpoint Version Mirroring with refs.Primary

Claude Code
View session
Checkpoint 1