Documentation · English and Portuguese · Open source
Language: English

All docs Release checklist

Project

Release checklist

Every delivery path is proven on its own before a release that changes it: one channel, a real run, nothing else in the loop. Three layers run without any vendor account (the test suite, the contract sweep and the local end-to-end harness); what they cannot prove needs the owner's real accounts. Tracking issue: #21.

How each check runs

Every check has two steps:

  1. Preview, offline. herald notify preview --sample --channel <type> prints the exact requests the channel would send, with the network disabled. Credentials only need to be set.
  2. Live send. herald notify send --sample --channel <type> delivers the bundled sample briefing for real through the same notifier code, prints -> ok or -> failed per delivery and exits 1 when one fails. Add --alert to send the failed-run alert instead.

--channel picks every notifier of that type in the config, enabled or not, and nothing else. If your config has two notifiers of one type (two webhooks, say), use a copy with only the one under test. Subscribers come from the store, never from samples: run live sends with a throwaway --data-dir so only the configured operator chat (chat_id, room_id, topic) is reached, and add a test subscriber there when the channel mails a list (email). Never point a live check at the production data/.

The commands below assume the real .env loaded and a throwaway data directory. The bundled sample has 3 stories; for the size checks, copy a long real day in (the run data holds no credentials, and subscribers.db stays behind):

D="$(mktemp -d)"
cp -r data/briefings data/herald.db "$D"/   # optional: then add --date YYYY-MM-DD to a send

Connector status

Connector Tests with a fake Vendor contract Long six-language sweep Local end-to-end Status
Email over SMTP test_email.py, test_notify.py raw headers asserted n/a (SMTP) Mailpit, six languages local e2e pass; fixed #139, #140
Email through Resend test_email.py (FakeResend) resend.json yes none (API only) contract-only
Telegram channel test_notify.py, test_preview.py telegram.json yes none contract-only; live 2026-11-30
Telegram bot test_bot.py (FakeBotAPI) telegram.json n/a none contract-only
WhatsApp Cloud API test_whatsapp.py whatsapp.json yes, template and text none contract-only
Slack test_chat.py slack.json yes none contract-only; fixed #141
Discord test_chat.py discord.json yes none contract-only; fixed #141
Microsoft Teams test_teams.py teams.json yes none contract-only
Google Chat test_google_chat.py google_chat.json yes none contract-only
Matrix test_matrix.py matrix.json yes Conduit: briefing and alert local e2e pass
ntfy test_push.py ntfy.json yes self-hosted ntfy: briefing, alert, click link local e2e pass
Pushover test_push.py pushover.json yes none contract-only
Webhook (HMAC, Standard Webhooks, bearer) test_webhook.py, test_integration_docs.py docs/schemas/herald-event-v1.json yes, full and with a 64 KiB cap herald dev sink: briefing, run.failed, wrong credential refused local e2e pass

"Contract-only" means every request Herald builds is checked against the vendor's documented API, but no vendor server has answered it in this release: the live check below is the proof.

Contract sweep (in the test suite)

tests/test_connector_contracts.py runs herald notify preview for every vendor channel with a long briefing in the six output languages (tests/long_briefing.py: 60 stories in 24 sections plus a calendar, 63-72 KB of Markdown per language, built with the real renderer and seeded with brackets, &, <, >, a 300-character URL and an emoji). Every recorded request must pass the channel's contract in tests/contracts/ (or the published event schema) and the vendor's size limit, and for the channels that carry the whole briefing the messages of each language together must hold all 60 stories. It runs in the Docker gate and in CI.

What one long language turns into: Telegram 18-21 messages, Discord 37-41, WhatsApp text 17-19, Matrix 6 events, Teams 4 cards, Google Chat 3-4 messages, Slack 1 message of about 26 blocks (75 KB), email 1 message (HTML cut to whole sections under 100 KB), push channels and the WhatsApp template 1 short message.

Covered by the local harness

scripts/e2e-local.sh <channel|all> starts local stand-ins from docker-compose.e2e.yml (Mailpit, a Conduit Matrix homeserver, a self-hosted ntfy server and three herald dev sink receivers), then, one channel at a time with a config holding only that notifier (scripts/e2e/<channel>.json) and a fresh data volume, runs herald notify send --sample (and --alert where the channel sends alerts) in the runtime image and checks the delivery through the stand-in's own API. It prints PASS/FAIL per channel and exits non-zero on a failure. It needs Docker, curl and openssl, generates fresh webhook credentials per run, opens ports on 127.0.0.1 only and removes everything afterwards (E2E_KEEP=1 keeps the stand-ins up to look around; docker compose -p herald-e2e down -v removes them later). It is opt-in and never runs in CI.

Channel Stand-in Asserted through
email (SMTP) Mailpit one subscriber per language: subject in that language, text and HTML parts, <html lang>, a literal List-Unsubscribe: <https://...> and one-click List-Unsubscribe-Post in the raw headers (scripts/e2e/check_email.py)
matrix Conduit (bot user and room registered by the script) GET /rooms/{room}/messages: m.text with an org.matrix.custom.html formatted_body, the sample headline, then the alert
ntfy self-hosted ntfy GET /<topic>/json?poll=1: the top headline, the click link to the day's page, then the alert
webhook-hmac herald dev sink --secret briefing.published and run.failed envelopes saved by the sink, which validates them against the schema; a wrong secret is refused with 401
webhook-standard-webhooks herald dev sink --standard-webhooks-secret same, with Standard Webhooks signing
webhook-bearer herald dev sink --token same, with Authorization: Bearer
  • [ ] scripts/e2e-local.sh all prints PASS for every channel on the release commit.

The harness proves Herald's side of each protocol. It does not replace the real-account checks below for hosted services (ntfy.sh, a public homeserver, a real SMTP provider).

Live checks, by launch importance

Each item: what account you need, what to configure, what to run, what to look for. Run the preview first; it must print -> ok for every language before anything goes out.

  • [ ] Email through a real provider (Resend with a verified domain, or your SMTP provider).
    • Account: the provider, a sending (sub)domain with SPF, DKIM and DMARC (email.md), a Gmail inbox and one more (Outlook or Apple Mail).
    • Configure: a config copy with only the email block: transport, from on that domain and an https:// unsubscribe_base_url you control; RESEND_API_KEY or SMTP_* in .env.
    • Run:
      uv run herald --config config.email.json notify preview --sample --channel email
      uv run herald --config config.email.json --data-dir "$D" subscribers add you@gmail.com --lang pt-BR --confirmed
      uv run herald --config config.email.json --data-dir "$D" notify send --sample --channel email
      uv run herald --config config.email.json --data-dir "$D" notify send --date YYYY-MM-DD --channel email
      
    • Look for: Gmail's Unsubscribe button next to the sender (one-click: pressing it must reach your endpoint as a POST with List-Unsubscribe=One-Click); Show original says SPF, DKIM and DMARC PASS; on the long day no "[Message clipped]", and the email ends with the "N of M sections (cut to fit the size limit)" note and a link to the full page (with site.enabled and site.base_url); light and dark mode both readable. Send once to mail-tester.com.
  • [x] Telegram channel: validated for 0.1.0-beta on 2026-11-30. Re-check with a long day:
    uv run herald --data-dir "$D" notify send --date YYYY-MM-DD --channel telegram
    
    Look for: about 20 messages per language, in order, links as text links, no "can't parse entities" error. Telegram allows about 20 messages a minute in a group: in a group chat the run waits on retry_after instead of failing.
  • [ ] Telegram bot (needs a second Telegram account as the subscriber).
    • Configure: "subscribers": true on the telegram block; run uv run herald --data-dir "$D" bot telegram in one terminal.
    • Run, from the second account in a private chat: /start, press confirm, /lang en, /follow br, /today, /export; then, from your terminal, uv run herald --data-dir "$D" notify send --sample --channel telegram; finally /stop, /start again and /delete.
    • Look for: replies in the chosen language; /today arrives whole in several messages; the notify send reaches the subscriber in English; uv run herald --data-dir "$D" subscribers list shows the chat after confirm and nothing after /delete.
  • [ ] WhatsApp (Cloud API). Start early: template approval takes Meta a while.
    • Account: a Meta Business app with WhatsApp, the test number (or a real one) and your phone verified as a recipient; a System User token; the herald_daily template approved in pt_BR (and en_US) with exactly five variables (channels.md).
    • Configure: WHATSAPP_PHONE_NUMBER_ID, WHATSAPP_TOKEN, your number in recipients.
    • Run:
      uv run herald notify preview --sample --channel whatsapp
      uv run herald --data-dir "$D" notify send --sample --channel whatsapp
      
    • Look for: the template with the date, the story count and three headlines, in the right language. Error 132000 or 132001 means the template's variables or language do not match. Then send the bot a message from your phone and, within 24 hours, try "mode": "text" with a long day: about 18 messages, in order.
  • [ ] OpenBot webhook push (Standard Webhooks), per integrations/openbot.md:
    uv run herald --config config.openbot.json notify preview --sample --channel webhook
    uv run herald --config config.openbot.json --data-dir "$D" notify send --sample --channel webhook
    uv run herald --config config.openbot.json --data-dir "$D" notify send --sample --alert --channel webhook
    
    Look for: the routine fires once per event and verifies the signature; a long day stays under OpenBot's 64 KiB cap with max_body_bytes (truncated markdown body).
  • [x] OpenBot via MCP: validated for 0.1.0-beta on 2026-11-30 (see integrations/openbot.md). Re-check: uv run herald-mcp --http, then ask the OpenBot agent for herald_briefing.
  • [ ] Hermes webhook push, per integrations/hermes.md: the same three commands with config.hermes.json (a copy with only the Hermes webhook).
  • [ ] Generic webhook against a request bin and each remaining recipe in integrations/: the same commands with that recipe's config copy.
  • [ ] Slack (a workspace where you can add an app with an incoming webhook in a test channel).
    uv run herald notify preview --sample --channel slack
    uv run herald --data-dir "$D" notify send --sample --channel slack
    uv run herald --data-dir "$D" notify send --date YYYY-MM-DD --channel slack
    
    Look for: one message per language with bold section titles and links as labels. The long day is the open question: Slack documents 3,000 characters per block and 50 blocks per message, but no total size, and a long day is one message of about 26 blocks. If Slack answers invalid_blocks, msg_too_long or similar, open an issue with the reply.
  • [ ] Discord (a test server where you can create a channel webhook).
    uv run herald notify preview --sample --channel discord
    uv run herald --data-dir "$D" notify send --date YYYY-MM-DD --channel discord
    
    Look for: 20 to 40 messages per language, in order, without link previews and without pinging anyone; -> ok even when Discord rate-limits (the run pauses and resends).
  • [ ] Microsoft Teams (a team where you can add the "Post to a channel when a webhook request is received" workflow).
    uv run herald notify preview --sample --channel teams
    uv run herald --data-dir "$D" notify send --date YYYY-MM-DD --channel teams
    
    Look for: a few cards in order with bold section titles and working links; the flow's run history shows every run succeeded.
  • [ ] Google Chat (a Google Workspace account whose admin allows webhooks, and a space).
    uv run herald notify preview --sample --channel google_chat
    uv run herald --data-dir "$D" notify send --date YYYY-MM-DD --channel google_chat
    uv run herald --data-dir "$D" notify send --sample --alert --channel google_chat
    
    Look for: every message of the day, and the alert, in one thread herald-<date>; cards with section titles and links.
  • [ ] ntfy on ntfy.sh (the ntfy app on your phone, subscribed to a long random topic).
    uv run herald --data-dir "$D" notify send --sample --channel ntfy
    uv run herald --data-dir "$D" notify send --sample --alert --channel ntfy
    
    Look for: the push with the date, story count and three headlines; with site.base_url, tapping it opens the day's page; the alert arrives with high priority.
  • [ ] Pushover (an application token and your user key).
    uv run herald notify preview --sample --channel pushover
    uv run herald --data-dir "$D" notify send --sample --channel pushover
    
    Look for: the same short push, the page link (with site.base_url), the alert at high priority with --alert.
  • [ ] Matrix on a public homeserver (a bot account and an unencrypted room it has joined).
    uv run herald --data-dir "$D" notify send --date YYYY-MM-DD --channel matrix
    
    Look for: Element renders headings, bold and links; a long day is about 6 events, in order.

Other release checks

  • [ ] Static site and feeds on GitHub Pages: the pages workflow publishes; open the day's page and validate the RSS, Atom and JSON Feed URLs.
  • [ ] Failure alert, forced. First per channel (--alert above), then a real failed run:
    uv run herald notify preview --sample --alert
    # a real failure: an invalid AI key makes scoring fail and the run sends the alert
    ANTHROPIC_API_KEY=invalid HERALD_AI_PROVIDER=anthropic uv run herald --data-dir "$D" run --hours 6
    
  • [ ] Docker image from GHCR on a clean machine (no checkout, only a config and .env). The first command must print herald <version> for the tag you pulled:
    docker run --rm ghcr.io/felipebossolani/herald:<version> --version
    docker run --rm --env-file .env -v "$PWD/config.json:/app/config.json:ro" \
      ghcr.io/felipebossolani/herald:<version> notify preview --sample --channel telegram
    docker run --rm --env-file .env -v "$PWD/config.json:/app/config.json:ro" \
      -v herald-check:/app/data ghcr.io/felipebossolani/herald:<version> run
    docker volume rm herald-check
    
  • [ ] Credentials rotated before the public launch.