mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
DB timeline extraction (extract timeline --source db and extract --stale) now emits one deterministic fallback timeline row for pages with no explicit markdown timeline row, anchored on pages.effective_date — but ONLY when the date has real provenance (frontmatter event_date/date/ published or a dated filename). The mtime-derived 'fallback' provenance is skipped: computeEffectiveDate stamps it on nearly every imported page, so emitting a row for it would create one noise entry per timeline-less page brain-wide on the first extract run after upgrade. Rebased #2877 onto master (resolved getPage/listStalePagesForExtraction conflicts against the RLS scoped-read-transaction refactor) and added the provenance filter plus regression tests for the fallback/null provenance skip. Co-authored-by: ShintaroKawakami <ShintaroKawakami@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>