mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-29 19:01:39 +00:00
collectChildPutPageSlugs paired each slug to a jobId first-seen over an unordered result set. When two children collide on a final slug, the pages row holds the LAST put_page write, so the provenance stamp (transcript_id/transcript_source/date) could attribute an arbitrary other transcript. ORDER BY id + last-writer-wins aligns the stamp with the surviving content; pinned by a collision test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>