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

@ -24,6 +24,8 @@ uv run finhub runway --balance 12000 --monthly-burn 2100,2200,2000
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 set-price --client acme --application portal --instance prod-01 --period 2026-07 --amount 100 --source agreement-2026-01
uv run finhub ledger margins
uv run finhub ledger allocations