mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
feat(workouts): add the activity-insight evidence projection and prompt
The evidence block is a numbers-only server projection: zone seconds, the workout-window heart-rate shape, route climb and a same-sport 90-day own-history median. Free-text metadata never enters it, and the sport string is narrowed against the closed enum first, so the payload carries no text the user did not generate through a measured field. The prompt composes the shared assessment base and adds the session contract: device-attributed, own-history-comparative, effort acknowledged where the numbers show it, and no training prescriptions of any kind. Registered in the tone harness beside the assessment cards.
This commit is contained in:
1 parent
0dba15e902
commit
e53a8ce8a0
7 files changed
+515
No files matched your search
@@ -405,6 +405,17 @@ async function main() {
|
||||
),
|
||||
);
|
||||
|
||||
// ───── v1.31.0 WorkoutInsight."paragraphEncrypted" (Bytes) ─────
|
||||
// The per-workout Activity Insight paragraph. Not nullable — a row exists
|
||||
// only where a paragraph was generated — so every scanned row rotates.
|
||||
results.push(
|
||||
await rotateBytesColumn(
|
||||
"WorkoutInsight",
|
||||
"paragraphEncrypted",
|
||||
prisma.workoutInsight,
|
||||
),
|
||||
);
|
||||
|
||||
// ───── v1.18.1 clinical-spine notes (Bytes columns) ─────
|
||||
// "noteEncrypted" (LabResult / IllnessEpisode / IllnessDayLog) +
|
||||
// "contextEncrypted" (Biomarker). Mirror the CoachFact.factEncrypted block.
|
||||
|
||||
Reference in new issue
Block a user