# Stage 38: Email Task Unit (aq38_email_task_unit / DB-UNIT-15)

Processes one parameterized email draft, triage, or follow-up per flat row with inline recipient context, suppression checks, and send-approval gating.

- Atomic micro-queue: `aq38_email_task_unit` (visibility: `effect_gated`)
- Backing database unit: `DB-UNIT-15` (`Thin Per-Site Identity, Surface Lenses & 3-Mode Delivery Core`)
- Database cell: `entities-db.teleon.dev` (`teleon_core.surface_lens_projections`, `teleon_core.adaptive_delivery_manifests`, `teleon_core.bot_and_contributor_lineage_index`)
- Claim row hydration: `single_self_contained_flat_task_row` (100% context inline, normalized writeback)
- Track 2 Sister queue (`SISTER-15`): `sq15-improve-delivery-queue.teleon.dev` (Tune inline/URI/stream byte cutoffs, semantic cache hit rates, and isolated surface lens presets.)
- Lanes: 1 Recipient Flat Row, Thread & Fact Context, Approval Gate

## Execution engines & AI Agent freedom contract

- **Deterministic (0 model calls)**: `three_mode_delivery_and_lens_projector_v1` (Suppression list, DKIM/SPF lint & template variable validator)
- **Hybrid (<=1 model call)**: `surface_onboarding_lens_calibrator_v1`
- **AI Agent & Bot Fleet (1..6 calls)**: `cross_surface_gap_and_ux_auditor_v1` (Context-grounded 1-to-1 email composer & thread triager)
  - Contract: **Instructions + Resources + Freedom to search for new resources and new ways not bound by instructions**

## Database invariants

- Each downstream website keeps an isolated identity database and cookie while sharing non-personal content-addressed supply.
- Delivery selects inline_answer (<=64 KiB), uri_manifest (<=8 MiB), or range_stream_206 (>8 MiB) deterministically.

## External & internal bot fleet actions

- Draft concise, plain-language emails grounded in verified recipient attributes
- Verify zero broken placeholders, zero AI-slop filler, and strict suppression compliance
- Stage outbound messages in draft_for_approval unless an explicit send grant is attached

## Sister self-tuning areas

- Tune inline payload vs URI manifest vs HTTP 206 stream thresholds per client harness (DIM-07)
- Add declarative surface lens presets for humanitarian SDG, ML competitions, and STEM domains (DIM-02, DIM-04)
- Optimize contributor and bot lineage index queries for real-time reuse visibility (DIM-01, DIM-06)
