Files
automation-based-email-list…/tasks/2026-08-14-production-build-and-skill-handoff.md
2026-08-15 15:05:39 -06:00

5.6 KiB

PaddleNET Email-List Production Build and Skill Handoff

Date: 2026-08-14

Outcome

The PaddleNET email-list system is operational for controlled, human-authorized campaign delivery. Production integration, delivery webhooks, and visible Postmark-managed unsubscribe links were verified with one-recipient test campaigns. No production subscriber list, cron job, welcome workflow, or automated follow-up is enabled.

Completed application and integration work

  • Built the Python CLI, SQLite runtime, private JSONL subscriber operations, campaign validation and rendering, campaign authorization, suppression reconciliation, backup creation, Postmark REST adapter, and Ops Monitor telemetry adapter.
  • Deployed the email application to 10.0.0.10 at /srv/email-list-system.
  • Deployed the Ops Monitor telemetry companion to 10.0.0.20:8000.
  • Configured the public Postmark webhook path: https://telemetry.example.com/postmark.
  • Configured the existing Cloudflare Tunnel and Caddy tunnel-ingress handler so that telemetry.example.com forwards to Ops Monitor.
  • Configured Postmark Broadcast Message Stream broadcast-list for PaddleNET delivery.
  • Confirmed the production .env uses the Postmark REST adapter and separate private telemetry credentials. SMTP is not used.
  • Corrected the Caddy routing requirement: the hostname handler must be inside Caddy's http://:8080 tunnel-ingress block, not only in a separate HTTPS site block.
  • Corrected the Docker runtime configuration rule: EMAIL_LIST_HOST_DATA_DIR must remain in the complete private .env, or Docker uses an empty named-volume fallback instead of the private SQLite runtime directory.

Production verification performed

  • Docker build, runtime initialization, health check, and Postmark suppression dry run passed on the email VM.
  • The Ops Monitor authenticated telemetry route was verified from the email VM.
  • A one-recipient delivery verification was accepted by Postmark and produced a Delivery webhook event in Ops Monitor.
  • The first verification exposed a footer defect: it displayed a static unsubscribe sentence without a link.
  • Commit <reviewed-commit> replaced that sentence with Postmark's {{{ pm:unsubscribe }}} placeholder in both HTML and plain-text messages and added a regression test.
  • The local container suite passed: 12 tests.
  • A second one-recipient verification confirmed the visible, clickable Postmark-managed unsubscribe link and its delivery webhook.

Documentation and workflow updates

  • Commit 3c6d9bd documented the verified production baseline, private .env requirements, Git deployment procedure, Caddy/Tunnel route requirement, and remaining release gates.
  • The parent PaddleNET README now describes the operational email system and its production flow.
  • The human-facing content source is C:\projects\paddlenet-forge\paddlenet-hub\platform-updates.
  • The exact delivery artifact is a reviewed campaign Markdown file in campaigns/drafts/ within this repository. It is committed, deployed, and bound to the campaign authorization before a send.

Production skills

Commit 92dab17 added and validated three skill artifacts based on the Prompt, Skill, And Self-Improving Agent Design Template v0.3.1:

  • skills/email-list-add-subscriber/SKILL.md: add one consented subscriber via a private JSONL operation, dry run, and deterministic import.
  • skills/email-list-remove-subscriber/SKILL.md: remove one address via a private JSONL unsubscribe operation, dry run, and deterministic import.
  • skills/email-list-operator/SKILL.md: create a Hub-derived campaign draft, obtain review and explicit approval, deploy the reviewed revision, send safely, and record one authorized four-day apparent-non-opener follow-up.

All three skills passed the template validator. They never permit direct SQLite changes, Git storage of subscriber data, suppression bypasses, or unapproved sends.

Current operating rules

  1. Add or remove individual subscribers through an authorized Codex prompt. The operator writes a private runtime JSONL operation, dry-runs it, then applies it. Do not put subscriber data in Git or PaddleNET Hub.
  2. Create editorial updates in PaddleNET Hub first. The operator creates the reviewed, versioned campaign Markdown delivery artifact from that source.
  3. A human must review the rendered campaign and give an exact send-and-follow-up directive before authorization or delivery.
  4. Before every live send: validate and preview the campaign, confirm the deployed Git revision and complete private .env, run a suppression dry run, record authorization, review the recipient-count dry run, then send.
  5. The system creates a backup and private sanitized receipt for a live send. Confirm the Delivery webhook in Ops Monitor.
  6. A follow-up schedule may be recorded for four days later, but no unattended follow-up will execute until host cron is separately reviewed and installed.

Deferred work

  • Replace templates/welcome.md with approved PaddleNET welcome copy before enabling welcome processing.
  • Review and import the initial real subscriber list using --no-welcome.
  • Review and install host cron for subscriber operations, welcome processing, suppression reconciliation, backup retention, and due follow-ups.
  • Design a separate authenticated intake before allowing a dedicated email address to add or remove subscribers.
  • Before every code release on the VM, pull with the documented HTTPS Gitea token, set EMAIL_LIST_GIT_COMMIT to the pulled revision in private .env, rebuild, and run the documented verification checks.

References

  • docs/operational-baseline.md
  • docs/deployment.md
  • docs/release-checklist.md
  • docs/git-deployment-access.md
  • docs/ai-operator.md