22 lines
1.7 KiB
Markdown
22 lines
1.7 KiB
Markdown
# Architecture
|
|||
|
|
|
||
|
|
The application is a deterministic Python command-line system. Humans and authorized AI agents use the same CLI; cron invokes that CLI for unattended work.
|
||
|
|
|
||
|
|
## Runtime boundaries
|
||
|
|
|
||
|
|
- Git contains application code, schemas, campaign Markdown, templates, documentation, and sanitized examples only.
|
||
|
|
- The email-list VM stores SQLite state, detailed receipts, logs, backups, private subscriber operations, and credentials outside Git.
|
||
|
|
- Postmark delivers email and provides current delivery suppressions.
|
||
|
|
- Ops Monitor receives Postmark events and exposes a separate authenticated, versioned read API for campaign summaries and apparent-non-opener selection.
|
||
|
|
|
||
|
|
## Initial runtime choices
|
||
|
|
|
||
|
|
- Sender: `PaddleNET <[email protected]>`; replies go to the same address.
|
||
|
|
- Postmark stream: `broadcast-list` for broadcasts and welcome email.
|
||
|
|
- A follow-up is limited to one authorized resend, due four days after the initial campaign.
|
||
|
|
- Host cron invokes the Dockerized CLI. The application does not expose a public HTTP port.
|
||
|
|
- SQLite data and daily backups remain on the VM; daily backups are retained for 14 days and copied off-host manually in v1.
|
||
|
|
|
||
|
|
Campaign Markdown is rendered into the versioned `templates/campaign.html` layout. It supplies PaddleNET's physical address and a visible Postmark-managed one-click unsubscribe link. The HTML and plain-text bodies must retain Postmark's `{{{ pm:unsubscribe }}}` placeholder; Postmark replaces it at send time and manages the resulting Broadcast Stream suppression.
|
||
|
|
|
||
|
|
Campaign Markdown and templates are included in the reviewed container image. A campaign authorization in the next stage will bind its source and template hashes to the deployed Git revision.
|