What happened
Counsellors still receive four legacy MailService templates even though the ORISO designs and real request facts are ready for review. This change sends those four occasions as ORISO subject, HTML and text through the tenant's selected PLATFORM or OWN route. It checks that the recipient, request, branding and links all belong to the same tenant. Unrelated MailService mail keeps its existing path.
What to review
The change covers new enquiries, direct enquiries, assignments and the daily digest. A failed or incomplete send does not retry through the old MailService or another tenant's server. Other recipients in the batch can still be attempted. The German formal/informal choice is supplied for assignment and digest as well as the two enquiry types.
Current state
The four sender occasions now incorporate the current seven-language release gate, configured-brand fix and neutral automatic-mail producer copy. The source branches are integrated without losing prototype-per-dispatch isolation or tenant/recipient/URL checks. Missing configuration fails with safe named hints; it does not use the legacy sender as a fallback.
For developers — exact integration and local verification:
Head: 3f2150f06f334047f194f1a1256f9b23dd585aab
Merged feature heads: #1291 2c27bc26e, #1316 5a5ad46ac, #1315 76a7f8a47.
Preserved history; no dev merge or force push.
Conflicts resolved: CTS workflow comment/pin; supervisor content + tenant-delivery assertions;
shared brand resolver + notification tenant/URL validation; facade imports/constructor preserving ObjectProviders.
Full Java 21 unit suite: 5,197 tests across 546 reports, zero failures/errors/skips.
Spotless, package -DskipTests and git diff --check: pass.
Current-head GitHub CI: all 12 named workflow checks succeeded at 2026-09-29 21:38 UTC readback.
Human reviews and prerequisite merges remain open. This is not deployed or received-mail proof. The distinct automatic inquiry-accepted renderer/sender is now ready in #1318, with meaningful local MIME tests and package checks passed; generic free-text and operational error mail remain upstream. The permanent TAKEOVER sender and corrected seven-language copy are ready in UserService #1317 and Frontend #1592. #1317 current-head CI is green; #1592 browser/copy findings are being addressed during source integration. The existing asker reply sender #1299 is being integrated, while consultant Matrix delivery and protected-feedback semantics remain open. These source states do not prove any new received Dev notification.
Build order
The current sender branch includes several prerequisite source branches. Their reviews still matter, but their source does not need to be merged again one PR at a time. Named human approval must cover the actual integrated PR and every included component. No PR is approved for self-merge.
- Shared SMTP is already merged through CTS US-M22 — actuator health details exposed to unauthenticated callers #164 and UserService Restore Admin Settings SMTP for platform mail senders #1310. Review and deploy TenantService #280, including its mode prerequisite chore(ci): check UserService validation against dev #278, before accepting OWN delivery.
- Review this integrated sender scope, then handover #1317 and neutral automatic delivery #1318. Their sibling source must be reconciled into a coherent UserService image; do not assume all ten existing mail occasions are covered by these seven. Existing asker reply #1299 is being adapted; consultant message and protected-exchange feedback remain separate open sender gaps.
- Deploy the coherent Frontend content/routes and Helm locale/branding settings after review. The combined source retains seven-language handover/neutral content, unsubscribe routes, explicit Dev translation opt-in and the fresh-install brand guard.
- Read back actual Dev revisions, then collect PLATFORM/OWN and missing-OWN behavior, received subjects/HTML/text, links and all seven variants. Stage remains a later operator gate.
For reviewers — included source provenance (skip if you only need the status):
#1297 contains exact current heads: #1291 2c27bc26e, #1316 5a5ad46ac, #1315 76a7f8a47,
#1283 and #1289 1d8ace86. #1295 has no absent unique non-merge source; #1298 footer patch is equivalent.
#1267 CTS pin is already present: merged CTS #164 commit fd06f72.
TenantService #280 d47baaa8 contains #278 7cbb527d; runtime deployment remains required.
Frontend #1592 + #1590 contain #1568; #1572 contains #1571. Combined generated artifacts are being reconciled.
Helm #390 + #391 are being combined, preserving locale gate/rollout and explicit fresh-install branding.
These ancestry facts remove duplicate source gates, not human review or named merge approval.
TenantService contract CI pin e68b087 is older than #280 and does not prove the new runtime purposes are deployed.
For developers — branch, contract and test details:
Base: dev
Head: 3f2150f06
Refs OpenResilienceInitiative/ORISO-UserService#1296
Parent: OpenResilienceInitiative/ORISO-Frontend#869; epic #828.
This branch includes #1283/#1295 source and the patch-equivalent #1298 footer fix. Human approval must cover that included scope; use the integrated build order above rather than redundant source merges.
The four exact OWN relay purposes are NEW_ENQUIRY, DIRECT_ENQUIRY, ENQUIRY_ASSIGNED and DAILY_ENQUIRY_DIGEST (TenantService #280).
Selective seam: MailService.sendEmailNotification dispatches only those four templates to NotificationMailSender. sendErrorEmailNotification and unrelated templates stay upstream.
Local command: JAVA_HOME=$(/usr/libexec/java_home -v 21) PATH="$(/usr/libexec/java_home -v 21)/bin:$PATH" ./mvnw -q test
Reviewer test plan
- On Dev, trigger a new and a direct enquiry for two different tenants. Each counsellor receives only their own tenant's details, with a readable HTML and plain-text part.
- Assign an enquiry to a German informal counsellor. The subject and body use the informal wording and the link opens that tenant's app.
- Run the daily digest with multiple tenants. Each recipient sees only their own count and oldest age, with the correct tenant sender and links.
- Switch one tenant between PLATFORM and complete OWN SMTP. The mail arrives from the selected server and sender in each mode.
- Make OWN incomplete or remove its tenant URL. No replacement mail is sent from the platform server; a safe configuration hint appears in the service log without a recipient address or case text.
- Trigger an unrelated free-text mail and a deletion error mail. Their existing delivery path still works.
- Follow a received notification footer link while signed out after Frontend fix(direct-links): the server obeys the chat, audio and video switches from Admin #1571/fix(erstantwort): never state who reads along unless a centre said so #1572 deploy. The matching email preference remains selected after login.