What to build
When an advice seeker submits a new enquiry, the eligible counsellors receive the expected email through the tenant's supported mail setup. An intentionally disabled channel stays silent. Administrators can distinguish disabled notifications from missing or unusable mail setup and verify delivery before relying on it.
Blocked by: None of the other proposed tickets. A permitted, legally qualified Dev fixture with a working mail route is required for the positive live test; the current caritas-berlin AVV-grace exception has not been approved.
Parent: OpenResilienceInitiative/ORISO-Frontend#828
Existing work: OpenResilienceInitiative/ORISO-Frontend#869 is delivered notification-flow scope. OpenResilienceInitiative/ORISO-Frontend#1435 concerns the immediate in-app indicator and is related, not a substitute for received email. Existing platform SMTP restoration must be reused.
- A fresh advice seeker submits an enquiry through the normal Dev UI; each eligible intended counsellor receives one correlated email.
- No sender, unrelated counsellor or member of another tenant receives that email.
- Disabled tenant or recipient preferences produce no mail and are distinguishable from missing or invalid setup in operator diagnostics.
- Supported configured delivery uses the current approved platform or tenant route without invented defaults, broad switch activation or legal-state changes.
- New messages are readable using fresh accounts and rooms; proved usable accounts are annotated and added to Testmails Favorites.
Reviewer test plan
- Submit a fresh enquiry with enabled settings → the intended recipient receives the correct mail and Dev link.
- Repeat with disabled settings → no mail arrives and the outcome identifies intentional suppression.
- Use a controlled missing-setup test seam → the operator gets a diagnosable setup failure without exposing credentials.
Approved package specification
Reliable notification delivery — v2.0.11
Problem statement
The three requested Dev actions produced readable or accepted chat activity but no recipient notification email. The tested tenant deliberately disabled system notification mail. Durable reply handling misclassified that policy as temporary setup failure. Ordinary internal counsellor groups have no email producer, although the user expects mail for their new messages. Old accounts and rooms also obscure acceptance because their encryption history cannot be restored without backup keys.
Solution
Deliver each agreed notification only to its intended, currently authorized recipient. Preserve separate email and browser choices. Distinguish intentional suppression from unavailable setup and transport errors. Test the real product actions with fresh actors, correlate actual mailbox receipts, and keep browser announcements available independently. Build on the existing mail routing, durable event delivery and notification catalogue.
User stories
- As a counsellor, I want an email for an eligible new enquiry so I can respond without watching the Requests page continuously.
- As an advice seeker, I want an email for a new eligible counsellor reply so I can return to the conversation.
- As a counsellor in an ordinary internal group, I want an agreed email for another member's new message so I do not miss internal work.
- As a protected-supervision participant, I want its existing separate authorization and preference rules preserved so ordinary groups do not widen access to case feedback.
- As a user, I want email and browser settings to work independently so changing one does not silently disable the other.
- As a user who disabled notifications, I want that choice honored without repeated failed-send attempts.
- As an operator, I want missing mail setup identified separately from intentional suppression so I can correct the actual problem.
- As an advice seeker, I want notification subject, preview and contents to protect counselling privacy.
- As a tester, I want fresh usable identities and rooms so readable current messages and mailbox evidence establish acceptance.
- As Frank, I want proven accounts annotated and favorited for reuse rather than being silently deleted.
Implementation decisions
- Existing tenant system-email routing is the source of notification transport eligibility. The platform uses the current complete AdminSettings SMTP snapshot; tenant OWN routing remains isolated. No invented fallback credentials or provider defaults.
- An absent route because notifications are disabled is a terminal policy outcome. Missing or invalid configured setup remains a diagnosable, retriable outage where the existing durable-delivery contract requires retry. Recipient revalidation and event idempotency remain mandatory.
- Ordinary internal-chat recipients are other active authorized current counsellor participants of the same tenant. Exclude sender, departed or unrelated members, advice seekers and all other tenants. Use a dedicated explicit notification preference if no existing correctly scoped preference supports this event; record the occasion and role mapping before shipping. Do not repurpose supervision feedback.
- Internal email contains neutral notification copy and an authorized application link, never decrypted message text. Confirm event authenticity through the existing Matrix boundary and persist deduplication in the existing delivery mechanism where compatible.
- Preserve existing independent browser preferences, permission gating, device scope, focus and DND behavior. Web Notification API banners, retained in-app activity, and background push are distinct capabilities. This change does not decide retention governance or promise unimplemented push delivery.
- One named integration branch per affected Git repository, with isolated worker branches merged locally into it. UserService and Frontend delivery target dev. No merge into a protected integration branch or ticket closure by the agent.
Testing decisions
Frank confirmed the boundary: product event → eligible intended recipient → actual receipt, expected suppression, or diagnosable missing setup. Tests use existing public service/transport seams and existing real-browser/mailbox infrastructure; no repeated seam interview.
- Demonstrate red before green for terminal suppression and the ordinary-group producer through meaningful external behavior assertions.
- Verify route enable/disable, usable/missing setup, role and tenant isolation, recipient preferences, current membership and authorization, duplicate events and retry recovery.
- For each live positive case, use normal UI onboarding and message actions with fresh accounts and rooms; verify new-message decryption at both ends and a mailbox baseline followed by a uniquely correlated receipt.
- Test the required existing catalogue events using the existing E2E52 campaign and record PASS, FAIL, blocked, not implemented or not run per row. Rendered templates, accepted API calls and mapped channel descriptors are not receipts.
- Reuse Frontend1211 for distinct feed/banner/sound/email observations and browser-availability regressions. Keep mailbox/privacy tests and product receipt evidence separate from local unit/build/CI evidence.
Out of scope
Production, broad tenant-switch activation, changing or signing legal agreements, using the unapproved caritas-berlin grace exception, deleting shared users or mailboxes, silently changing retention, guaranteed background web push, general appointments previously deferred, and self-merging PRs.
Further notes
The user approved the proposed three new tickets by explicitly requesting implement-spec and all tickets built and tested. Existing parent is Frontend828; delivered Frontend869 scope is reference, not reopened work. Reuse E2E52 and Frontend1211. Positive Dev acceptance is subject to finding a permitted fixture; missing fixture approval does not prevent code and controlled local receipt tests.
Readiness, owner, release, priority and status must be read back after publication. Target v2.0.11, P1/High; implemented repair now In review (7 October). The repair ends with appropriate tests and reviewable PRs; human review, merge, deployment and real Dev receipt remain separate gates.
Implementation checkpoint — 7 October 2026
The existing enquiry delivery and tenant routing are verified in source and CI. The remaining acceptance step is one correlated new-enquiry receipt from a fresh advice seeker to an eligible counsellor.
UserService PR1376 is ready for human review, targets dev and has reviewers requested. Frontend PR1666, Docs PR184 and E2E PR81 provide the companion preference, contract and receipt campaign.
For developers — verified evidence and remaining acceptance gates:
UserService integration: d10843ef22feee6919d0f4db2ead952aa7286966
Local: 6,167 unit tests; 1,733 required integration tests; 69 focused controller tests PASS
Package and Spotless: PASS
Current-head CI: PASS, including MariaDB, Redis, contracts, integration and Docker
CI: https://github.com/OpenResilienceInitiative/ORISO-UserService/actions/runs/37689053836
Two independent review axes and final correction reviews: PASS, no unresolved findings
Frontend: 11,806 units; type/lint/build; 9 current locale/viewport browser+axe captures PASS
Frontend evidence: https://github.com/OpenResilienceInitiative/ORISO-Frontend/pull/1666#issuecomment-6046657784
E2E reader: 56 units and typecheck PASS; actual product receipts NOT_RUN
Docs: 92/92 translation pairs and production build PASS; publication not claimed
Human reviewers: shazia-k and Shirloin (E2E also retains Hassan9215); approval PENDING
CodeRabbit cap/rate-limit/skips and Cursor skipped run do not establish automated review
Dev merge and code rollout: NOT_DONE
Fresh enquiry/reply/internal receipts, both-end decryption, functional Favorites: NOT_RUN
Literal advice-seeker-to-advice-seeker case: NOT_RUN, role clarification pending
SMTP probes received: transport proof only
Existing/pending identities rejected; no new product users or passwords created
Broad required-event campaign: prepared, live rows NOT_RUN
Current review status — 7 October 2026
Implemented repair: In review, planned for v2.0.11, with human reviewers requested. Source/local checks and the applicable current-head CI pass. This status does not close the outstanding human approval, Dev deployment or received-notification acceptance.
Current release bookkeeping — 8 October 2026
New-enquiry email routing and received-mail acceptance remains unfinished as a release package. The full implementation is still an open draft and the fresh Dev notification acceptance is not complete. Frank approved carrying this remaining work into v2.0.12.
The earlier delivered notification-flow and transport work keeps its historical v2.0.11 attribution. Related merged tests or successful SMTP probes do not establish this whole requirement. No already-delivered parent or sibling is being reassigned.
For developers — verified planning fields and remaining delivery boundary:
Issue: https://github.com/OpenResilienceInitiative/ORISO-UserService/issues/1373
Implementation: https://github.com/OpenResilienceInitiative/ORISO-UserService/pull/1376
Implementation head at field update: f39ef4aac332f6728666ed704117b23f9129fc5d
Implementation state: OPEN DRAFT; base dev
Platform release: v2.0.11 -> v2.0.12 (remaining scope, explicitly approved by Frank)
Roadmap status: In review -> In progress
Source/test changes in this bookkeeping update: NONE
Whole-issue human approval / merge / deployment / fresh Dev acceptance: NOT CLAIMED
Earlier release-planning references above are historical; this dated section is current.
Next step: Complete the draft and its reviewer evidence, obtain normal human review, then perform the existing fresh-account receipt and deliberate-no-send checks after reviewed Dev delivery.
Current repair status — 21 October 2026
Frank asked his coding agent to repair this issue together with all verified findings in PR1376. The agent reports: Normal and direct enquiry mail now require a current eligible counsellor with an enabled identity. A nullable tenant-copy response no longer breaks message construction.
| Check |
Current result |
| Focused local behavior |
✅ 21 normal +17 direct supplier tests; actual local normal/direct receipts; positive-before-suppression controls; first-enquiry follow-up chain. |
| Strict local SMTP receiver |
✅11 receipt cases; plaintext and unauthenticated delivery refused |
| Final local combined-source gates |
✅7032unit;2193integration;586tenant;196MariaDB;11strictSMTP;formatting/packagePASS |
| PR and reviewers |
Open, non-Draft; Shazia, Shirloin and Hasan Baris requested |
| Human merge / Dev receipts |
💤 Still pending; local SMTP is not fresh-account Dev acceptance |
The existing parent Epic828 holds the shared repair and review ledger. This section supersedes earlier draft/head/status snapshots; historical release attribution is preserved.
For developers — current source boundary (skip if you only need status):
Normal local merge57508dd69 includes remotePR171968458 and Dev408d8da9a.
OriginalR1-R20 plus new17remotecomments/16topics retained; additional independent rejected-team readP1 repaired.
Latest targeted rejected-read gate:99PASS. Previous canonical unit/Spotless/jar checkpoint:7029PASS.
Final pushed SHA:6cb2ffa8e351659a90b6e5f65ca8755d76eb2dcc.
Every final local gate:zero failures/errors/skips. New-head GitHub CI:RUNNING; human review:PENDING.
No self-merge or Dev deployment recorded. Existing fresh-account product acceptance remains outstanding.
Next: complete new-head CI and human review, then verify product receipts after reviewed Dev delivery.
Live-test fixture — decided 21 October 2026
The caritas-berlin grace-period idea is gone: tenant 1's AVV renewal grace ended on 15 October, 12:00 Berlin time. No legal state will be changed for this test. Frank decided to use the one Dev tenant that already has a valid, genuinely signed current AVV.
For the tester — fixture and procedure (skip if you only need the decision):
Tenant: 45 "Invite E2E Traeger 20261007" (AVV VALID, signed 2026-10-07; platform SMTP active)
Steps: verify AVV + mail switch read-only -> enable system notification mail for tenant 45 only
-> provision one counsellor + an online agency in tenant 45 (Testmails self-service)
-> fresh advice seeker submits enquiry via Dev UI -> correlate mailbox receipt
-> repeat with switch off (expect intentional suppression) -> reset switch to its prior value
Not allowed: signing/confirming any AVV, republishing the AVV with a deadline, enabling mail for other tenants
Precondition: UserService #1376 merged and deployed to Dev (backend before frontend #1666)
Not measured yet today: tenant 45 mail switch state, existing counsellor/agency in tenant 45
Current board status — 22 October 2026
The implementation is open and non-Draft in UserService PR1376, against dev, with reviewers requested. Frank asked to correct this card from In progress to In review. The existing v2.0.13 release, High priority, implementer and acceptance checklist are retained.
Review changes remain open. This board correction does not claim a merge, deployment, current-head CI pass or fresh Dev email acceptance. The dated verification above remains evidence for its stated revision.