mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The per-metric insight assessments opened on the current value and read as a data readout, while the overview texts lead with the day's verdict and land the warm, motivating tone. Diagnosis (campaign insights-copy audit + verification): identical warm persona/contract fragments, but the per-metric USER prompt instructed number-first while the overview instructed verdict-first, and the opener-hint rotation was wired into briefing/scores/Coach but never the per-metric path (so the base prompt's 'do not open with the number' clause stayed dormant there). Rewrote the seven per-metric assessment user prompts (generic archetype + six bespoke: BP/weight/pulse/BMI/mood/compliance + overall) verdict-first in EN+DE — meaning first, the number right after as support; grounding, non-diagnostic framing, no-vendor and no-markdown all preserved (only clause order changed). Wired openerArchetypeHint into metric-status and the bespoke generators. Factored a shared openingShape contract into shared-contracts so overview/per-metric/scores can't drift again, with a coverage test. Lifted the three deterministic first-paint fallbacks to verdict-led. Prompt-contract regression tests added. No new model calls, token budget flat.
965 KiB
965 KiB