system-prompts-and-models-o.../salesflow-saas/backend/tests
Claude 7f57803b22
feat(dealix): D0 launch hardening — DLQ, PostHog, circuit breaker, pricing, runbook
Close 6 critical launch gates for Primitive Launch Completion:

- DLQ (Dead Letter Queue): Redis-backed failure capture with retry drain
  and admin endpoints (/admin/dlq/queues, /admin/dlq/{queue}/purge)
- PostHog client: zero-dependency HTTP funnel tracker with 16 event types
  (landing_view → deal_won → payment_succeeded)
- Circuit breaker: in-memory fault isolation for external integrations
  with registry and admin status endpoint (/admin/circuit-breakers)
- Pricing router: 3-tier plans (Starter 990/Growth 2490/Enterprise custom)
  with Moyasar invoice checkout and webhook handler
- Config: added POSTHOG_API_KEY, MOYASAR_SECRET_KEY, DLQ settings
- Wiring: PostHog + DLQ initialized in main.py lifespan, pricing router
  in API router
- RUNBOOK.md: 5 incident scenarios (service down, DB down, LLM down,
  DB restore, version rollback)
- LAUNCH_GATES.md: 33-gate checklist across 7 categories
- 20 tests: all passing (DLQ 7, PostHog 4, circuit breaker 5, pricing 4)

https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
2026-04-23 10:32:53 +00:00
..
security Phase 2 Execution Waves: 90-day plan + Verification Protocol scaffolding 2026-04-17 11:13:27 +00:00
conftest.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_affiliates_public.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_api_smoke.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_auth_rbac_api.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_autonomous_foundation_api.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
test_customer_onboarding_api.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_d0_launch_hardening.py feat(dealix): D0 launch hardening — DLQ, PostHog, circuit breaker, pricing, runbook 2026-04-23 10:32:53 +00:00
test_durable_flow_isolation.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_go_live_matrix.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_launch_readiness_scenarios.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
test_launch_staging_product_journey.py chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
test_marketing_hub.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_master_langgraph.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_new_subscriber_journey.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
test_openclaw_foundation.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_openclaw_safe_core.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
test_operations_api.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_sales_os_api.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_sla_phase25.py Dealix: OpenClaw safe core, SLA phase 2.5, full-ops UI 2026-04-08 23:31:02 +03:00
test_strategy_summary.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
test_value_proposition.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00