AletheiaFact / AletheiaFact/aletheia

B2B-15 · Copilot metering: usage log, token accounting, quotas

オープン
#2,548 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
backlog server
主要言語
TypeScript
スター
55
フォーク
20
平均マージ
2日 6時間
マージ済み PR(30日)
2

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reading the LLM call sites named in copilot/copilot-chat.service.ts:317 and ai-task.service.ts:69-78, then map the remaining call sites and review the B2B-5 and B2B-8 dependencies. Done means usage is captured for every LLM call, UsageLog records exist, quotas are enforced, and seat/org aggregation plus the billing hook are covered.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
backend-api-design
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。