From 4f36032bafe9db028dc739d3cd728489f56e1871 Mon Sep 17 00:00:00 2001 From: Vadym Samoilenko Date: Fri, 24 Apr 2026 18:09:39 +0100 Subject: [PATCH] vault backup: 2026-04-24 18:09:39 --- 01 Projects/semblance/Semblance.md | 10 ++++++++-- 99 Daily/2026-04-24.md | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/01 Projects/semblance/Semblance.md b/01 Projects/semblance/Semblance.md index fc918b3..2073ada 100644 --- a/01 Projects/semblance/Semblance.md +++ b/01 Projects/semblance/Semblance.md @@ -9,8 +9,8 @@ url: server: GCP (same issue as Mod Comms — 30s LB timeout) tags: [oliver, ai, synthetic-personas, focus-group, insights, gcp, socketio] created: 2026-04-14 -last_commit: 2026-03-30 -commits: 109 +last_commit: 2026-04-24 +commits: 110 --- ## Overview @@ -72,6 +72,7 @@ cd backend && python run.py # Starts on port 5137 ## Timeline / Git History | Date | Change | |------|--------| +| 2026-04-24 | Add LLM usage tracking infrastructure (Phases A-C) | | 2026-03-30 | Fix: task result not stored in useTaskPolling (false 'no personas' error) | | 2026-03-23 | Fix AI autonomous mode: cross-loop WebSocket emit + polling fallback | | 2026-03-23 | Allow document uploads (PDF, DOCX, TXT) as focus group assets | @@ -80,6 +81,10 @@ cd backend && python run.py # Starts on port 5137 | 2026-03-23 | Fix naive vs aware datetime crash + stuck AI mode | ## Sessions +### 2026-04-24 – Check if user management and token +**Asked:** Check if user management and token usage tracking with cost breakdown by project/user exists, and create an implementation plan if missing. +**Done:** Verified 70/70 tests passing and confirmed usage infrastructure foundation exists; provided implementation plan outline with model requirements pending pricing details. + ### 2026-04-24 – Check if the codebase has user **Asked:** Check if the codebase has user management and token cost tracking by project/user, and create an implementation plan if missing. **Done:** Analyzed codebase structure and identified missing token cost tracking; created implementation plan requiring cost configuration for supported models. @@ -99,6 +104,7 @@ cd backend && python run.py # Starts on port 5137 ## Change Log | Date | Requested | Changed | Files | |------|-----------|---------|-------| +| 2026-04-24 | Usage tracking system | LLMCallContext, cost breakdown by project/user, admin dashboard | backend/tests/test_usage_infrastructure.py, llm_service.py, conftest.py | | 2026-04-24 | Token cost tracking | Add cost config per model, create Usage and Project models, add cost calculation to LLM service | models.py, llm_service.py, CLAUDE.md | | 2026-04-24 | Token cost tracking system | Add tiktoken dependency, create user management module, implement cost tracking by project and user | requirements.txt, CLAUDE.md | | 2026-04-24 | CLAUDE.md enhancement | Fixed wiki path, added npm run dev command, clarified ASGI architecture and async Motor/PyMongo distinction | CLAUDE.md | diff --git a/99 Daily/2026-04-24.md b/99 Daily/2026-04-24.md index 15acef4..caadaa8 100644 --- a/99 Daily/2026-04-24.md +++ b/99 Daily/2026-04-24.md @@ -302,3 +302,6 @@ tags: [daily] - 18:05 | `cinema-studio-pro-kling` - **Asked:** Fix generation failures for Veo and Kling API errors and push changes to git. - **Done:** Committed and pushed all changes to git, then updated Obsidian wiki in parallel. +- 18:08 | `semblance` + - **Asked:** Check if user management and token usage tracking with cost breakdown by project/user exists, and create an implementation plan if missing. + - **Done:** Verified 70/70 tests passing and confirmed usage infrastructure foundation exists; provided implementation plan outline with model requirements pending pricing details.