diff --git a/CLAUDE.md b/CLAUDE.md index 2750d2a..0747dad 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -21,8 +21,9 @@ Teil der **Jinkendo**-App-Familie (人拳道). Domains: jinkendo.de / .com / .li backend/ ├── main.py # App-Setup + Router-Registration (~75 Zeilen) ├── db.py # PostgreSQL Connection Pool -├── auth.py # Hash, Verify, Sessions +├── auth.py # Hash, Verify, Sessions, Feature-Access-Control ├── models.py # Pydantic Models +├── feature_logger.py # Strukturiertes JSON-Logging (Phase 2) └── routers/ # 14 Router-Module auth · profiles · weight · circumference · caliper activity · nutrition · photos · insights · prompts @@ -57,9 +58,16 @@ frontend/src/ - PostgreSQL 16 · Modulare Router-Architektur - Membership-System: Tiers · Coupons · Access-Grants · Admin-UI - Export: CSV · JSON · ZIP +- **Feature-Enforcement Phase 2:** Non-blocking Monitoring + JSON-Logging + +### Feature-Enforcement Status (4-Phasen-Modell) +- ✅ **Phase 1:** Cleanup (Feature-Konsolidierung, Migration) +- ✅ **Phase 2:** Non-blocking Monitoring (JSON-Logs, alle 9 Router) +- 🔲 **Phase 3:** Frontend Display (Usage-Counter UI) +- 🔲 **Phase 4:** Enforcement (Blocking aktivieren) ### Offen v9c 🔲 -- Feature-Enforcement (Rollback 20.03.2026 – Redesign nötig) +- Feature-Enforcement Phase 3+4 (Frontend Display + Blocking) - Selbst-Registrierung + E-Mail-Verifizierung - Trial-System UI @@ -114,7 +122,11 @@ ai_usage – KI-Calls pro Tag pro Profil v9c neu (Membership): subscriptions · coupons · coupon_redemptions · features -tier_limits · user_restrictions · access_grants · user_activity_log +tier_limits · user_feature_restrictions · user_feature_usage +access_grants · user_activity_log + +Feature-Logging (Phase 2): +/app/logs/feature-usage.log # JSON-Format, alle Feature-Zugriffe Schema-Datei: backend/schema.sql ```