Registry half of portal#64 phase A (portal half: portal#69, portal#70). API as agreed in the epic:
Trial terms v1.0 as committed MD/HTML/PDF (embedded, SHA-256 pinned and tested), public at /v1/legal/trial-terms, /v1/legal/trial-terms/1.0.{pdf,html,md}
Migration 0011 trial_offers: immutable offer snapshot (trigger, tested in the migrations test); only the state moves. No IP or fingerprint
POST /v1/trial-offers: validation, version check (409 version_mismatch), 409 email_taken, 429 within 10 min; receipt mail with a single-use 72 h link (hash only stored)
POST /v1/trial-offers/verify: activated / already_activated / 410 token_expired / 404 token_invalid. Activation = tenant (slug from the company name) + Keycloak user with the address verified (only UPDATE_PASSWORD) + trial_ends_at = contract time + 14 calendar days (Berlin) + audit chain + activation mail with the PDF attached
POST /v1/trial-offers/{id}/resend, GET /v1/tenants/{id}/contracts (trial / AVV / TOMs / SaaS; trial: null without an offer) and the accepted PDF
trial.extension_granted from the admin extension (old/new expiry, granted_by)
mail: attachments; registry mails in German
Tests: both stores, the whole flow, expiry/resend, slug collision, email taken at the click, Keycloak variant, the attachment bytes, DST-correct end date.
Registry half of portal#64 phase A (portal half: portal#69, portal#70). API as agreed in the epic:
- **Trial terms v1.0** as committed MD/HTML/PDF (embedded, SHA-256 pinned and tested), public at `/v1/legal/trial-terms`, `/v1/legal/trial-terms/1.0.{pdf,html,md}`
- **Migration 0011 `trial_offers`**: immutable offer snapshot (trigger, tested in the migrations test); only the state moves. No IP or fingerprint
- **`POST /v1/trial-offers`**: validation, version check (409 `version_mismatch`), 409 `email_taken`, 429 within 10 min; receipt mail with a single-use 72 h link (hash only stored)
- **`POST /v1/trial-offers/verify`**: activated / already_activated / 410 token_expired / 404 token_invalid. Activation = tenant (slug from the company name) + Keycloak user with the address verified (only UPDATE_PASSWORD) + `trial_ends_at` = contract time + 14 calendar days (Berlin) + audit chain + activation mail with the PDF attached
- **`POST /v1/trial-offers/{id}/resend`**, **`GET /v1/tenants/{id}/contracts`** (trial / AVV / TOMs / SaaS; `trial: null` without an offer) and the accepted PDF
- `trial.extension_granted` from the admin extension (old/new expiry, granted_by)
- mail: attachments; registry mails in German
Tests: both stores, the whole flow, expiry/resend, slug collision, email taken at the click, Keycloak variant, the attachment bytes, DST-correct end date.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
CODEOWNERS rules
requested review from Benjamin_Boenisch 2026-09-30 15:35:30 +00:00
The free trial follows the contract states of the epic: the customer's
binding offer (§ 2 Abs. 1 Testbedingungen) → receipt with confirmation link
(§ 312i Abs. 1 Nr. 3 BGB) → Breakpilot accepts by activating once the
address is confirmed: contract concluded, 14 calendar days start.
- Trial terms v1.0 ("Bedingungen für den kostenlosen Breakpilot-Testzugang",
Stand 1. Oktober 2026) as committed Markdown, HTML and PDF, embedded, with
pinned SHA-256; public at /v1/legal/trial-terms[/1.0.{pdf,html,md}], the
same bytes before the offer, in the activation mail and in the tenant's
Vertragsunterlagen.
- Migration 0011 trial_offers: the offer snapshot (company, address, person,
e-mail, terms id/version/sha256, 246c notice version, flow version,
language, offered_at) is immutable (trigger); only the state moves.
No IP address or browser fingerprint.
- POST /v1/trial-offers: validation, version check against what the portal
showed (409 version_mismatch), 409 email_taken, 429 within 10 minutes;
receipt mail with a single-use 72-hour link (only its hash is stored).
- POST /v1/trial-offers/verify: activated / already_activated / 410 expired
/ 404 invalid. Activation creates the tenant (slug from the company name),
the Keycloak account with the address already verified (only
UPDATE_PASSWORD), trial_ends_at = contract time + 14 calendar days in
Berlin time, the audit chain (offer_submitted, email_verified,
contract_accepted, activated) and the activation mail with the PDF.
- POST /v1/trial-offers/{id}/resend; GET /v1/tenants/{id}/contracts (trial,
AVV, TOMs, SaaS; trial null for tenants without an offer) and the exact
accepted PDF; trial.extension_granted event from the admin extension.
- mail: attachments (multipart/mixed); German-only registry mails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Registry half of portal#64 phase A (portal half: portal#69, portal#70). API as agreed in the epic:
/v1/legal/trial-terms,/v1/legal/trial-terms/1.0.{pdf,html,md}trial_offers: immutable offer snapshot (trigger, tested in the migrations test); only the state moves. No IP or fingerprintPOST /v1/trial-offers: validation, version check (409version_mismatch), 409email_taken, 429 within 10 min; receipt mail with a single-use 72 h link (hash only stored)POST /v1/trial-offers/verify: activated / already_activated / 410 token_expired / 404 token_invalid. Activation = tenant (slug from the company name) + Keycloak user with the address verified (only UPDATE_PASSWORD) +trial_ends_at= contract time + 14 calendar days (Berlin) + audit chain + activation mail with the PDF attachedPOST /v1/trial-offers/{id}/resend,GET /v1/tenants/{id}/contracts(trial / AVV / TOMs / SaaS;trial: nullwithout an offer) and the accepted PDFtrial.extension_grantedfrom the admin extension (old/new expiry, granted_by)Tests: both stores, the whole flow, expiry/resend, slug collision, email taken at the click, Keycloak variant, the attachment bytes, DST-correct end date.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
The free trial follows the contract states of the epic: the customer's binding offer (§ 2 Abs. 1 Testbedingungen) → receipt with confirmation link (§ 312i Abs. 1 Nr. 3 BGB) → Breakpilot accepts by activating once the address is confirmed: contract concluded, 14 calendar days start. - Trial terms v1.0 ("Bedingungen für den kostenlosen Breakpilot-Testzugang", Stand 1. Oktober 2026) as committed Markdown, HTML and PDF, embedded, with pinned SHA-256; public at /v1/legal/trial-terms[/1.0.{pdf,html,md}], the same bytes before the offer, in the activation mail and in the tenant's Vertragsunterlagen. - Migration 0011 trial_offers: the offer snapshot (company, address, person, e-mail, terms id/version/sha256, 246c notice version, flow version, language, offered_at) is immutable (trigger); only the state moves. No IP address or browser fingerprint. - POST /v1/trial-offers: validation, version check against what the portal showed (409 version_mismatch), 409 email_taken, 429 within 10 minutes; receipt mail with a single-use 72-hour link (only its hash is stored). - POST /v1/trial-offers/verify: activated / already_activated / 410 expired / 404 invalid. Activation creates the tenant (slug from the company name), the Keycloak account with the address already verified (only UPDATE_PASSWORD), trial_ends_at = contract time + 14 calendar days in Berlin time, the audit chain (offer_submitted, email_verified, contract_accepted, activated) and the activation mail with the PDF. - POST /v1/trial-offers/{id}/resend; GET /v1/tenants/{id}/contracts (trial, AVV, TOMs, SaaS; trial null for tenants without an offer) and the exact accepted PDF; trial.extension_granted event from the admin extension. - mail: attachments (multipart/mixed); German-only registry mails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB05a8ce1889to19c31278e5feat(trial): legally compliant trial signup — offer, confirmation, activation (portal#64 phase A)to feat(trial): legal trial signup: offer, confirmation, activation (portal#64 A)