mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
The period narrative was written straight to storage with no post-generation check and no corrective retry, unlike Comprehensive Insights. A populated context could still yield causal phrasing or a number absent from the context block. Add a validator that flags causal language (EN/DE) and any number not in the structured context; on a trip, retry once with a corrective suffix, then write nothing (the last good row stays) rather than persist an ungrounded or causal story.