feat(pruefwerk): entry plan sends extra_targets 0 #151

Merged
sharang merged 1 commits from feat/entry-no-extra-targets into main 2026-11-28 18:28:57 +00:00
Owner

The entry plan refuses extra targets (Sharang's decision, 28 Nov 2026).

  • pruefwerkLimits sends extra_targets: 0 for the entry plan (CRA-CSA-CLD-EIN) only, next to included_targets, monthly_pruefungen: 0 and prueftag_cap: 0.
  • Standard, Business and Enterprise send no extra_targets: extras stay allowed and billed. A key left in a grant's config is dropped, so the plan decides.
  • openapi: documented on the entitlement limits.

Contract agreed with the Prüfwerk session: a missing or null key means no cap (today's behaviour). With included_targets set, Prüfwerk refuses a new active target beyond included_targets + extra_targets with 409 target_limit.

Rollout: either order is safe (platform/pruefwerk #1079 is the other side). A Prüfwerk without #1079 ignores the key, and #1079 changes nothing until the registry sends it. The cap holds once both are on prod.

Tests: TestPruefwerkLimitsEntry checks extra_targets 0 on every entry case and its absence on the paid plans and on no plan.

🤖 Generated with Claude Code

The entry plan refuses extra targets (Sharang's decision, 28 Nov 2026). - `pruefwerkLimits` sends `extra_targets: 0` for the entry plan (`CRA-CSA-CLD-EIN`) only, next to `included_targets`, `monthly_pruefungen: 0` and `prueftag_cap: 0`. - Standard, Business and Enterprise send no `extra_targets`: extras stay allowed and billed. A key left in a grant's config is dropped, so the plan decides. - openapi: documented on the entitlement limits. Contract agreed with the Prüfwerk session: a missing or null key means no cap (today's behaviour). With `included_targets` set, Prüfwerk refuses a new active target beyond `included_targets + extra_targets` with 409 `target_limit`. **Rollout:** either order is safe (platform/pruefwerk #1079 is the other side). A Prüfwerk without #1079 ignores the key, and #1079 changes nothing until the registry sends it. The cap holds once both are on prod. Tests: `TestPruefwerkLimitsEntry` checks extra_targets 0 on every entry case and its absence on the paid plans and on no plan. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-11-28 13:59:27 +00:00
feat(pruefwerk): entry plan sends extra_targets 0
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 8m22s
ci / image (pull_request) Skipped
2fcfaaff02
The entry plan (CRA-CSA-CLD-EIN) refuses targets beyond the included ones:
the entitlement check now sends extra_targets 0 for it, which Prüfwerk
turns into 409 target_limit when a target would be added. Standard,
Business and Enterprise send no extra_targets, so extras stay allowed and
billed; a key left in a grant's config is dropped, the plan decides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit 0e6cb3954a into main 2026-11-28 18:28:57 +00:00
sharang deleted branch feat/entry-no-extra-targets 2026-11-28 18:28:57 +00:00
Sign in to join this conversation.