mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
phaseBFenceFacts appended at fence-max+1 with no DB seeding, so on a diverged page (stamped DB rows + missing fence at the resolved path — the same divergence class the writeFactsToFence fix handles) the post-rename UPDATE hit idx_facts_fence_key, the page failed, and the already-renamed fence disagreed with the DB while the row_num-NULL backlog persisted. Seed appended row_nums from MAX(fence max, DB max) per (source_id, slug), mirroring the fence-write fix. Repro test added. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>