mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
Takeover of #2286, rebased onto master so #1586's cycle-source scoping is preserved (refs keep the cycleSourceId threading; the original branch's rewritten collectChildPutPageSlugs hardcoded source_id 'default'). - DiscoveredTranscript carries transcriptSource, derived from the <corpus>/<source>/<date>/<id>.md layout; null for ad-hoc inputs. - Transcript date inference now prefers the '| First message |' row in the transcript's '## Metadata' table (stable across mtime-restamping re-syncs), with the filename-regex date as fallback — implementing the cascade #2286 promised but didn't ship. - The synthesize orchestrator stamps deterministic frontmatter (transcript_id, transcript_hash, transcript_source, chunk, date) through the existing #2569 stampDreamProvenance jsonb funnel — no second putPage write; reverseWriteRefs re-reads the row so DB and disk stay lockstep. Subagents retain authority over type/title/tags/body. Co-authored-by: brettdavies <brettdavies@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>