The entitlement check now always sends included_targets,
monthly_pruefungen and prueftag_cap for Prüfwerk, from one plan table
(Standard 5/100, Business 25/500, Enterprise null) resolved from the
CRA-CSA-CLD-STD/-BUS/-ENT SKUs, highest wins; no plan SKU counts as
Standard. The limits are a copy: the stored config is left as it is.
The workspace's monthly Prüftag cap lives in the new
tenant_product_settings table (0025), so recomputeEntitlements cannot
reset it. GET/PUT /v1/tenants/{id}/products/pruefwerk/settings takes
{"prueftag_cap": 0..10000 | null}; user tokens need IT_ADMIN, OWNER or
FINANCE, service clients their route group. A change is audited
(product_settings.changed, old/new). On Enterprise the cap is stored but
the check sends null.
prueftag.booked and target.extra go through POST /v1/usage/events as
they are; a test pins the dedup by idempotency key. No invoicing yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>