mitai-jinkendo/docs/test-prompt-phase-0b.md
Lars 4f365e9a69
All checks were successful
Deploy Development / deploy (push) Successful in 52s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 15s
docs: Phase 0b Quick Test prompt (Option B)
Compact test prompt for validating calculation engine:
- Tests 25 key placeholders (scores, categories, metrics)
- Covers body, nutrition, activity, recovery calculations
- Documents expected behavior and known limitations
- Step-by-step testing instructions

Use this to validate Phase 0b before implementing JSON formatters.
2026-03-28 07:27:42 +01:00

2.1 KiB

Test-Prompt für Phase 0b - Goal-Aware Placeholders

Schnelltest-Prompt für Calculation Engine

Zweck: Validierung der 100+ Phase 0b Placeholders ohne JSON-Formatters

Test-Prompt (in Admin UI → KI-Prompts erstellen):

Du bist ein Fitness-Coach. Analysiere den Fortschritt:

## Gesamtfortschritt
- Goal Progress Score: {{goal_progress_score}}/100
- Body: {{body_progress_score}}/100
- Nutrition: {{nutrition_score}}/100
- Activity: {{activity_score}}/100
- Recovery: {{recovery_score}}/100

## Kategorie-Fortschritte
- Körper: {{focus_cat_körper_progress}}% (Prio: {{focus_cat_körper_weight}}%)
- Ernährung: {{focus_cat_ernährung_progress}}% (Prio: {{focus_cat_ernährung_weight}}%)
- Aktivität: {{focus_cat_aktivität_progress}}% (Prio: {{focus_cat_aktivität_weight}}%)

## Körper-Metriken
- Gewicht 7d: {{weight_7d_median}} kg
- FM Änderung 28d: {{fm_28d_change}} kg
- LBM Änderung 28d: {{lbm_28d_change}} kg
- Rekomposition: {{recomposition_quadrant}}

## Ernährung
- Energiebilanz: {{energy_balance_7d}} kcal/Tag
- Protein g/kg: {{protein_g_per_kg}}
- Protein Adequacy: {{protein_adequacy_28d}}/100

## Aktivität
- Minuten/Woche: {{training_minutes_week}}
- Qualität: {{quality_sessions_pct}}%
- Kraft-Balance: {{ability_balance_strength}}/100

## Recovery
- HRV vs Baseline: {{hrv_vs_baseline_pct}}%
- Schlaf 7d: {{sleep_avg_duration_7d}}h
- Schlafqualität: {{sleep_quality_7d}}/100

Gib 3 konkrete Empfehlungen basierend auf den schwächsten Scores.

Erwartetes Verhalten:

Alle Placeholders lösen auf (numerisch oder "nicht verfügbar") Keine Python Exceptions Scores haben Werte 0-100 oder "nicht verfügbar"

Test-Schritte:

  1. Admin → KI-Prompts → "Neu erstellen"
  2. Type: "base", Name: "Phase 0b Quick Test"
  3. Template einfügen
  4. "Test" Button → Profil wählen
  5. Debug-Viewer prüfen: "Unresolved Placeholders" sollte leer sein
  6. Wenn Errors: Console Log prüfen

Bekannte Limitierungen (aktuell):

  • JSON-Formatters (active_goals_json, etc.) → geben leere Arrays
  • Top Goal Name → "nicht verfügbar" (needs goal_utils extension)
  • Correlations → Placeholder-Werte (noch nicht echte Berechnungen)