Files
0c00029b0c fix(extract): derive timeline entries from real-provenance effective dates (takeover of #2877)
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>
2026-07-21 14:57:32 -07:00
..