feat: reporting-allocate AI-plan cost across work

Split a booked AI-plan fact across workplans or repos using measured
tokens, measured+estimated tokens, session counts, or an even split.
Unmeasured remainder stays a residual. The record is not resource-control
AllocationEvidence and does not create booked spend.
This commit is contained in:
tegwick 2026-08-15 19:35:43 +02:00
parent 8916f3c4d0
commit efd1b31001
10 changed files with 646 additions and 3 deletions

View file

@ -31,6 +31,8 @@ uv run finhub ledger set-entitlement --provider anthropic --plan claude-max --pe
uv run finhub ledger plan-month --period 2026-08
uv run finhub ledger ingest-session-tokens tests/fixtures/session-tokens-2026-08.json
uv run finhub ledger session-tokens --period 2026-08
uv run finhub ledger allocate-plan --fact FACT --method measured_token_share
uv run finhub ledger plan-allocations
uv run finhub ledger summary
# CLI — scheduled evaluation (cron/systemd friendly)