3.9 KiB
name, description
| name | description |
|---|---|
| email-list-remove-subscriber | Remove one email address from the PaddleNET email list through the private, idempotent JSONL inbox and deterministic CLI. Use when a human asks to unsubscribe or suppress a specific address. Do not use for Postmark-managed click unsubscribes, campaign sending, or direct database changes. |
Remove PaddleNET Subscriber
Skill Shape
service: one private subscriber-removal operation.
Contract
Apply one explicitly requested unsubscribe through the deterministic CLI. Validate before mutation, preserve the removal even when the address is unknown locally, and never send email or change a Postmark subscription directly.
Requires
- One valid email address.
- Human instruction to remove this exact address.
- A reason when available; otherwise record
human removal request. - Authorized access to the production email VM and its Docker CLI.
Ensures
- One private
unsubscribeJSONL operation with a new operation ID and UTC request time. - A completed dry run before any mutation.
- A sanitized CLI result and private receipt for a completed import.
- No direct SQLite change, campaign send, welcome run, Postmark API call, or Git commit.
Inputs
- Email address.
- Optional reason, such as
recipient-request,manual-cleanup, orhuman removal request.
State Scope
project: write one private operation file under/srv/email-list-system/runtime/inbox/and let the CLI update private SQLite state.
Workflow
Phase 1: Confirm the request
- Confirm the exact address and capture the available removal reason.
- Normalize and validate the address through the CLI path; do not guess corrections.
- Explain only if needed that a local removal prevents later system sends immediately; Postmark click unsubscribes remain managed by Postmark and synchronize separately.
Phase 2: Plan the private operation
- Run
email-list system check --jsonon the email VM. - Create one private JSONL record with
schema_version: "1.0", a new uniqueoperation_id,operation: "unsubscribe", the address, reason, andrequested_atin UTC. - Run
subscriber import <private-file> --dry-run --json. - Inspect the planned result without exposing other subscriber data.
Phase 3: Apply and report
- Run
subscriber import <private-file> --jsononly after the dry run is valid. - Inspect the JSON result and private receipt path.
- Report only a sanitized status: removed, already applied, or removed as an unknown-address suppression.
Validation
Before finishing, confirm all of the following:
- The operation is
unsubscribe, has a unique ID, and has a UTC request time. - The dry run completed before the live import.
- The live result is
unsubscribed,suppressed_unknown_address, oralready_applied. - No campaign, welcome, direct SQLite, or Postmark API command was called.
- The final report contains no token, raw receipt, or additional subscriber data.
Edge Cases
- Unknown address: retain a local unsubscribed record and report the safe suppression outcome.
- Replayed operation ID: report
already_applied; do not create a duplicate. - Invalid address: stop before creating a private operation.
- Postmark click unsubscribe: do not duplicate it manually unless the human separately requests a local removal; Postmark suppression reconciliation handles provider state.
Anti-Patterns
Do not reactivate a suppressed address, edit SQLite, commit private data, delete subscriber history, send a confirmation message, or use a campaign command.
Ratchet Rules
Turn each recurring removal failure into a durable guardrail: a required-input rule, JSONL fixture, validation check, STOP gate, or documented anti-pattern. Rerun the dry-run path after changing the skill.
Run Receipt
Record privately: skill name, operation ID, reason category, command results, receipt path, validation outcome, and unresolved risk. Give the human only a sanitized completion summary.