AletheiaFact / AletheiaFact/aletheia
B2B-15 · Copilot metering: usage log, token accounting, quotas
- Lenguaje dominante
- TypeScript
- Estrellas
- 55
- Forks
- 20
- Merge medio
- 2 d 6 h
- PR fusionados (30 d)
- 2
Descripción
Part of the B2B epic (Bloco 4 · item 4.1). Today there is **zero metering/quota/token accounting** on any LLM call (`ai-task/` queue, `copilot/copilot-chat.service.ts` — GPT-5-mini via LangChain).
## What
- [ ] `UsageLog` collection (userId / org / namespace / feature / tokens / cost)
- [ ] Capture `usage` from LangChain calls (`copilot-chat.service.ts:317`, `ai-task.service.ts:69-78`) — instrument **every** LLM call site
- [ ] Quota enforcement
- [ ] Aggregation per seat/org + billing hook
**Effort:** ~2–3 SP · **Depends on:** B2B-5, B2B-8
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.