Skip to content

Deliverability Guardian, Signal Stack & pilot-safety hardening#2

Merged
tsj2003 merged 1 commit into
mainfrom
feat/deliverability-guardian-and-pilot-hardening
Jul 16, 2026
Merged

Deliverability Guardian, Signal Stack & pilot-safety hardening#2
tsj2003 merged 1 commit into
mainfrom
feat/deliverability-guardian-and-pilot-hardening

Conversation

@tsj2003

@tsj2003 tsj2003 commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

Turns Attainly's wedge (deliverability-safe, human-approved, auditable AI outbound) into working code, and closes the security/reliability gaps a pilot would hit.

Security & tenant safety

  • Dashboard/outbox APIs derive tenant from the JWT (removed X-Tenant-ID header trust)
  • JWT secret + credential encryption fail closed on placeholder secrets
  • Per-IP auth rate limiting; legacy console secure-by-default; EngineRuntime tenant-scope guard

Deliverability (the differentiator)

  • Deliverability Guardian — pre-send spam + AI-fingerprint risk scoring; forces human approval on high-risk drafts
  • Bounce detection → auto-pause; events-based mailbox health on the dispatch path
  • Daily send-cap enforcement; ESP matching (Gmail→Gmail) wired into the router; DKIM preflight warning

Signal Stack + AI

  • SignalStackPolicy — account-grouped, freshness-gated, evidence-preserving intent→prospect
  • Real token-based LLM cost accounting; optional OpenAI LLM critic; certifi TLS for Gemini

Onboarding

  • "3-minute setup": paste a website → auto-drafted campaign (SSRF-guarded, JWT + rate-limited)

Tests

15+ new test files; full backend suite green (411 passed).

Notes

  • No secrets included (audited). Internal strategy docs intentionally kept out of this PR.

🤖 Generated with Claude Code

Security & tenant safety:
- Dashboard/outbox APIs derive tenant from the JWT (remove X-Tenant-ID trust)
- JWT + credential encryption fail closed on placeholder secrets
- Per-IP auth rate limiting; legacy console secure-by-default
- EngineRuntime tenant-scope guard (no accidental all-tenant sweeps)

Deliverability (the wedge):
- Deliverability Guardian: pre-send spam + AI-fingerprint risk scoring; forces
  human approval on high-risk drafts even past the trust-ramp
- Bounce detection -> auto-pause; events-based mailbox health on the dispatch path
- Daily send-cap enforcement; ESP matching (Gmail->Gmail) wired into the router
- DKIM preflight warning

Signal Stack + AI:
- SignalStackPolicy: account-grouped, freshness-gated, evidence-preserving
  intent -> prospect pipeline
- Real token-based LLM cost accounting (usageMetadata); certifi TLS for Gemini
- Optional OpenAI LLM critic for the Guardian

Onboarding:
- "3-minute setup": paste a website -> auto-drafted campaign (SSRF-guarded,
  JWT + rate-limited)

15+ new test files; full backend suite green (411 tests).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tsj2003
tsj2003 merged commit 7a5c12d into main Jul 16, 2026
6 of 7 checks passed
@tsj2003
tsj2003 deleted the feat/deliverability-guardian-and-pilot-hardening branch July 16, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant