feat(pruefwerk): entry plan for one-off orders, granted by staff #150

Merged
sharang merged 2 commits from feat/einstieg-plan into main 2026-11-28 11:43:57 +00:00
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 c424e7b1d0 test(entry-offer): trial end does not restrict, subscription takes over
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 9m44s
ci / image (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:17:56 +01:00
Sharang ParnerkarandClaude Opus 5.5 03f59c3114 feat(pruefwerk): entry plan for one-off orders, granted by staff
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 8m36s
ci / image (pull_request) Skipped
Entry offers (CRA-Check, SBOM-Erstellung, CVE-Scan) are paid at booking
outside the ERP. Staff grant them with POST /v1/admin/tenants/{id}/entry-offer
(named staff member, audited, cloud only): Prüfwerk with source "entry",
SKU CRA-CSA-CLD-EIN, the order's included targets (1..10) and an end date
that is sent again at delivery (90 days after it).

- Plan "einstieg": no monthly quota and a Prüftag cap of 0 whatever the
  workspace saved, so only support scans (never counted) and change scans
  of the included targets run. Any subscription plan SKU wins over it; no
  plan SKU at all stays Standard, so trials and previews are unchanged.
- cap_applies is false on the entry plan, as on Enterprise.
- A trial workspace becomes active (no trial banner).
- recomputeEntitlements does not halt a workspace while an entry grant
  runs; once it has ended the old rule applies.
- Refused for a workspace that booked Prüfwerk (subscription, ERP or
  activation grant) or is neither trial nor active.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:09:25 +01:00