Refs #169 ## Changements - Remplace `todo.md` par les issues Gitea comme source de suivi; crée un skill dédié au format de ticket, aux labels, aux maquettes, à la liaison PR et à la clôture. - Met à jour les skills et guides qui pointaient vers le backlog supprimé. - Ajuste le plan CI et ajoute un test ciblé pour s’assurer que la suppression de `todo.md` ne devient pas un changement documentaire ignoré. ## Vérifications - `python3 scripts/ci/test_ci.py TestPlanTests` — 4 tests réussis. - `git diff --check` — réussi. - Aucun test .NET exécuté; le plan CI déclenche les suites pertinentes sur cette PR. La tentative de créer la taxonomie de labels dans Gitea a expiré côté API; le skill documente les règles, mais les labels doivent encore être créés et appliqués lorsque l’écriture API sera disponible. Reviewed-on: #170 Co-authored-by: Arnaud Dartois <admin@tordais.cc>
3.0 KiB
name, description
| name | description |
|---|---|
| notification-delivery-acceptance | Validate Heimdall's global SMTP and ntfy settings, test actions, and notification delivery without external providers. |
Heimdall notification delivery acceptance
Read AGENTS.md, the PIPE-10/FEAT-05 Gitea issue, skills/heimdall-dotnet/SKILL.md, and skills/compose-disposable-recipe/SKILL.md before changing notification delivery.
Configuration contract
- Settings created through the UI are stored with lowercase keys.
AppSettingReadermust normalize requested keys before its exact EF query; callers use mixed-case literals for legacy reasons. - SMTP reads
email.smtphost,email.smtpport,email.username,email.password,email.fromaddress,email.fromname, andemail.usessl. - ntfy reads
ntfy.baseurlandntfy.token; test messages use the same configured service and should fail visibly when it rejects or cannot be reached. - Keep SMTP/ntfy secrets out of responses and logs. Outbox delivery remains at-least-once; a provider acceptance followed by a lost DB acknowledgement can duplicate a notification.
Required simulated validation
- Run
AppSettingReaderTests, notification service/outbox tests, and the PostgreSQL outbox integration tests. - Use a disposable Compose project from the changed Central source with PostgreSQL, an isolated ntfy service and Mailpit. Generate database/JWT credentials, use an internal project-only network and no published ports, explicitly empty the Sentry DSN, and keep real SMTP/ntfy credentials out of the environment.
- Bootstrap a synthetic Admin and save SMTP/ntfy settings through
/api/settings, matching UI key names. Call/api/settings/ntfy/testand/api/settings/email/test; verify ntfy returns success and Mailpit stores the synthetic recipient message. - Install an EXIT cleanup trap before build/start. Tear down only the project with volumes/orphans, verify zero project containers/volumes/networks, then remove/verify absence of the exact source-built Central image tag even on failure. Retain shared ntfy/Mailpit/PostgreSQL/Python base images, preserve test exit status, report cleanup failures, and never use
--rmi allor broad prune commands. - Report local service acceptance separately from delivery to a real SMTP relay, hosted ntfy server, or user device.
Current local evidence
On 5 November 2026, AppSettingReaderTests passed 9/9. The first disposable provider run showed ntfy success but SMTP failure: the UI stored lowercase keys while EmailService queried mixed-case values. AppSettingReader.GetAsync now lowercases trimmed keys; tests cover the SMTP and AI URL callers. The source-built isolated project hmd-notify-mock-1793882996-2efa06 then passed both Admin settings/API test routes, ntfy HTTP 2xx, and SMTP test delivery captured in Mailpit. No ports were published and the bridge was internal. Cleanup verified zero containers/volumes/networks and removed/verified absence of the exact Central image tag. Real external delivery remains unvalidated.