mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
fix(coach): stop computing the plan review verdict nobody sees
The nightly plan review read a before/after window of the plan's metric and stored an English verdict in `outcomeEncrypted` for every plan. No screen and no route returned it; only the Coach snapshot read it, behind the `COACH_EXPERIMENT_VERDICT` flag that is off by default. The worker now only moves an active plan whose review fired to `reviewed`, which is what takes it out of the standing group. The flag, its snapshot block, the three eval cases for that block and the compose and env entries go with it. The Coach prompt keeps its experiment rules and now ties the read-back to the plan's progress line instead of the removed block. Existing stored outcomes stay in backups untouched. The plans page and the Coach reminders card printed the metric as a raw key in capitals (WEIGHT, BLOOD_PRESSURE) in every language. Both now show the measurement's name from the catalogue, through the plan metric resolver moved to `plan-metric.ts`; a key HealthLog does not read shows as written. The unused `coach.plans.proposalTitle` string goes.
This commit is contained in:
1 parent
b793be3f84
commit
926c427907
30 files changed
+236
-670
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 342,
|
||||
"total": 110828,
|
||||
"total": 110815,
|
||||
"entries": {
|
||||
"app/achievements/page.tsx :: AchievementsPage": 206,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 275,
|
||||
@@ -242,7 +242,7 @@
|
||||
"lib/ai/anthropic-client.ts :: generateCompletion": 294,
|
||||
"lib/ai/coach/cycle-snapshot.ts :: buildCycleSnapshotBlock": 202,
|
||||
"lib/ai/coach/glp1-snapshot.ts :: buildGlp1SnapshotBlock": 218,
|
||||
"lib/ai/coach/snapshot.ts :: buildCoachSnapshotImpl": 880,
|
||||
"lib/ai/coach/snapshot.ts :: buildCoachSnapshotImpl": 867,
|
||||
"lib/ai/coach/tools/loop.ts :: runCoachToolLoop": 438,
|
||||
"lib/ai/coach/turn/model.ts :: runTurnModel": 534,
|
||||
"lib/ai/coach/turn/pipeline.ts :: runTurn": 274,
|
||||
|
||||
Reference in new issue
Block a user