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

@ -207,7 +207,7 @@ figure without double-counting the same euros.
```task
id: FIN-WP-0007-T03
status: todo
status: done
priority: high
state_hub_task_id: "51c1b86f-c137-4b5d-9719-cd2ae60fe857"
```
@ -226,6 +226,13 @@ invent a token ceiling.
Done when a plan month can be reported as booked euros + entitled
capacity (or explicit unknown) without reading session logs.
Completed 2026-08-15: `ledger set-entitlement` / `plan-month` record
append-only capacity (`token`, `multiplier`, or `plan`). Unknown
tokens require a plan label and never become zero. Revisions
supersede. Booked euros join entitlement on provider/account/plan/
period; a currency mismatch stays visible and is not treated as a
matched series. No session logs are read.
## Join State Hub session-token aggregates
```task