added
This commit is contained in:
1 parent
eac3d5dc45
commit
2a2b00733b
83 files changed
+4840
No files matched your search
@@ -0,0 +1,87 @@
|
||||
---
|
||||
name: email-list-remove-subscriber
|
||||
description: 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 `unsubscribe` JSONL 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`, or `human 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
|
||||
|
||||
1. Confirm the exact address and capture the available removal reason.
|
||||
2. Normalize and validate the address through the CLI path; do not guess corrections.
|
||||
3. 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
|
||||
|
||||
1. Run `email-list system check --json` on the email VM.
|
||||
2. Create one private JSONL record with `schema_version: "1.0"`, a new unique `operation_id`, `operation: "unsubscribe"`, the address, reason, and `requested_at` in UTC.
|
||||
3. Run `subscriber import <private-file> --dry-run --json`.
|
||||
4. Inspect the planned result without exposing other subscriber data.
|
||||
|
||||
### Phase 3: Apply and report
|
||||
|
||||
1. Run `subscriber import <private-file> --json` only after the dry run is valid.
|
||||
2. Inspect the JSON result and private receipt path.
|
||||
3. Report only a sanitized status: removed, already applied, or removed as an unknown-address suppression.
|
||||
|
||||
## Validation
|
||||
|
||||
Before finishing, confirm all of the following:
|
||||
|
||||
1. The operation is `unsubscribe`, has a unique ID, and has a UTC request time.
|
||||
2. The dry run completed before the live import.
|
||||
3. The live result is `unsubscribed`, `suppressed_unknown_address`, or `already_applied`.
|
||||
4. No campaign, welcome, direct SQLite, or Postmark API command was called.
|
||||
5. 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.
|
||||
Reference in new issue
Block a user