feat: record AI-plan entitlements without inventing token ceilings

Add append-only plan entitlements (token, multiplier, or named plan).
Unknown capacity stays unknown and requires a plan label. Plan-month
reporting joins booked euros to entitlement without session logs.
This commit is contained in:
tegwick 2026-08-15 19:15:29 +02:00
parent 6d4a4f0032
commit 5f27958e7d
6 changed files with 589 additions and 1 deletions

View file

@ -27,6 +27,8 @@ uv run finhub ledger set-balance 12000
uv run finhub ledger import cloud tests/fixtures/cloud-costs.csv
uv run finhub ledger import ai-plan tests/fixtures/ai-plans.csv
uv run finhub ledger commitments
uv run finhub ledger set-entitlement --provider anthropic --plan claude-max --period 2026-08 --unit plan --plan-label "Max 20x" --source vendor-plan
uv run finhub ledger plan-month --period 2026-08
uv run finhub ledger summary
# CLI — scheduled evaluation (cron/systemd friendly)