Files
Heimdall/skills/notification-delivery-acceptance/SKILL.md
T
arnaud.dartois d12e16c6e5
Heimdall Gitea / Detect CI scope (push) Successful in 17s
Heimdall Gitea / Build and tests (push) Successful in 25m35s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 15m3s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 27m31s
Heimdall Gitea / Build and scan agent image (push) Successful in 16m55s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 39s
Heimdall Gitea / CI policy (push) Successful in 1s
docs: migrate work tracking to Gitea issues (#170)
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>
2026-11-06 14:11:28 +01:00

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. AppSettingReader must 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, and email.usessl.
  • ntfy reads ntfy.baseurl and ntfy.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

  1. Run AppSettingReaderTests, notification service/outbox tests, and the PostgreSQL outbox integration tests.
  2. 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.
  3. Bootstrap a synthetic Admin and save SMTP/ntfy settings through /api/settings, matching UI key names. Call /api/settings/ntfy/test and /api/settings/email/test; verify ntfy returns success and Mailpit stores the synthetic recipient message.
  4. 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 all or broad prune commands.
  5. 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.