mirror metadata refs after EnsureMetadataBranch writes

main

Commit

pfleidi3mo ago

EnsureMetadataBranch advances the v1 branch from origin or creates a fresh orphan during setup, but the new committed-ref mirror was only updated by later hook-time writes. In v1.1 mode the mirror stayed unset between entire enable and the first session-end condensation, so every NewCommittedReadStore consumer (list/status/dispatch/rewind/ review) returned empty.

Mirror after each SetReference that advances the v1 branch, and thread ctx through the function so the mirror, the pre-existing Debug log, and SignCommitBestEffort share the caller's context.

Entire-Checkpoint: 928986401e8e

Checkpoints

Centralize Checkpoint Metadata Mirror Updates

CodexGPT-5.5
View session
Checkpoint 1

Prevent Unauthorized Metadata Ref Creation

Claude Code
View session
Checkpoint 1