# apCampaign

apCampaign is a standalone WordPress campaign studio for campaign planning, block and raw HTML authoring, campaign intelligence, spam scoring, preflight checks, send queues, tracking, suppression, and mailer handoff.

## Product Boundary

- Works on plain WordPress without apCRM, apMailer, apAI, or PubMotor.
- Uses `design_json` as the source of truth for block campaigns.
- Uses raw/imported HTML as the source of truth for raw HTML campaigns.
- Treats rendered HTML as a cache or send snapshot, not the editable truth.
- Keeps spam scoring, campaign intelligence, and preflight as shared services used by every composer mode.
- Uses apMailer when present for provider routing and credentials; falls back to WordPress mail evidence otherwise.

## Private Data Rule

No private ArtistPro, MMR, SBO, or customer tenant campaign data may ship, seed, train, benchmark, demonstrate, or power public apCampaign behavior.

Campaign Intelligence works on first use with built-in rules and deliverability heuristics. Historical Performance Intelligence uses only the customer-owned campaign history imported by that customer or generated inside that customer install.

## Block Editor Rule

The sidebar must edit only the selected block model. It must not own campaign truth, mutate other blocks implicitly, or make browser DOM state authoritative.

The required flow is:

1. Sidebar control changes selected block model.
2. `design_json` updates.
3. PHP renderer produces preview/send HTML.
4. Snapshot records frozen rendered output for review, preflight, queueing, and tracking.

## Current State

Version 1.0 includes the standalone Campaign Studio, visual and raw HTML
composers, reusable templates, Word document importing, campaign intelligence,
spam scoring, preflight, audience and suppression storage, tracking,
retargeting, and optional apLists and apMailer integration.

Live sending remains deliberately gated until an audience, a passing preflight,
and a configured transport are present. The plugin never invents a destination
or silently bypasses suppression controls.
