Implement API usage logging and the cost tracking dashboard #44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
AI analysis costs money per photo, and a large family collection means a lot of photos.
The spec includes an
APIUsageLogand calls for dashboard cost tracking with limitwarnings. Discovering the cost after the fact is the problem this prevents.
Scope
API usage logging and a cost dashboard with budget warnings.
Implementation notes
APIUsageLogper the spec's data model — this table does not exist yet andneeds a migration.
it belonged to.
finish the remaining unanalyzed collection. The projection is the genuinely useful
number — it answers "what will finishing this cost me?" before the money is spent.
arrives at 100% of budget arrives too late to act on.
dashboard and the enforcement path read the same numbers.
showing a misleading zero.
Done when
APIUsageLogexists and records every AI call with token counts and costReferences
docs/circa-spec.mdsection 8 (APIUsageLog), Phase 4Depends on: #3 (AI analysis job handler).