Files
Heimdall/skills/notification-delivery-acceptance/SKILL.md
T
arnaud.dartois 636154572b
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 19m19s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 6m13s
Heimdall Gitea / Build and scan agent image (push) Successful in 14m44s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m48s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m9s
Heimdall Gitea / CI policy (push) Successful in 10s
Complete remaining Heimdall features and acceptance
Merge pull request #138

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-06 11:14:49 +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, PIPE-10/FEAT-05 in todo.md, 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.