system-prompts-and-models-o.../dealix/tests/unit
Dealix Builder 342bcf8ea5 feat(paid-beta): operational layer for first 499 SAR — playbook + workflow + board + scorecard + landing CTA
Move from GO_PRIVATE_BETA (technical readiness) to PAID_BETA_READY
(first revenue) — operational, not architectural.

Deliverables:
- docs/PAID_BETA_OPERATING_PLAYBOOK.md
  10-section Arabic playbook: gate to Paid Beta, 7-day day-by-day
  plan (Staging → Outreach → Demos → Diagnostic → Pilot Sale →
  Pilot Day1/Day2 → Proof+Upsell), weekly targets (50-70 messages /
  5-10 replies / 3-5 demos / 1+ payment), 8 hard operational rules,
  daily cadence, what NOT to add, Public Launch criteria.

- docs/FIRST_PILOT_DELIVERY_WORKFLOW.md
  48-hour Arabic Pilot delivery: T+0 intake (15 fields) → T+24
  Free Diagnostic (3 opportunities + 1 Arabic message + 1 risk + 1
  service recommendation) → T+48 Pilot 499 (10 opportunities + 7-day
  follow-up plan + Proof Pack) → T+7 final Proof Pack + 30min review +
  3 upgrade paths. Pilot success criteria + 8-row metrics table.

- docs/PRIVATE_BETA_OPERATING_BOARD.md
  15-column Sheet template (company, person, segment, source, channel,
  message_sent, reply_status, demo_booked, diagnostic_sent,
  pilot_offered, price, paid, proof_pack_sent, next_step, notes) +
  status flow + ICP distribution + 3-wave follow-up templates +
  daily routine + PDPL privacy rules + CSV header.

- landing/private-beta.html
  Pilot 499 SAR offer prominent at top (badge + hero CTA), dedicated
  3-card pricing section (Pilot 499 / Free Diagnostic / Growth OS
  Monthly 2,999), 7-day refund/case-study guarantee, mailto CTAs
  with prefilled subject + body, removed duplicate pricing block.

- scripts/paid_beta_daily_scorecard.py (274 lines)
  argparse with --messages, --replies, --demos, --pilots, --payments,
  --proof-packs, --as-of, --json. Computes reply_rate / demo_rate /
  pilot_rate / payment_rate, daily verdict (ON_TRACK / BEHIND /
  OFF_TRACK), weekly verdict (BLOCKERS / STRETCH_PENDING /
  WEEKLY_TARGETS_HIT), and rule-based next_actions in Arabic.
  Targets: 50-70 messages / 5-15 replies / 3-7 demos / 2-3 pilots /
  1-2 paid / 1+ proof pack per week.

- tests/unit/test_paid_beta_scorecard.py
  12 tests: zero-input, on-track day, tone-action trigger, payment
  → proof-pack action, full-week target hit, conversion rates,
  Arabic text rendering, JSON validity, CLI text/json modes,
  --as-of today/explicit.

Hard rules (unchanged):
- No live WhatsApp / Gmail / Calendar send without env flag + approval.
- No Moyasar API charge — manual invoice/payment-link only.
- No LinkedIn scraping / auto-DM — Lead Gen Forms + manual outreach.
- No cold WhatsApp without opt-in (PDPL hard-block).
- Every message passes safety_eval + saudi_tone_eval.
- Every action recorded in Action Ledger.

Validation:
- python -m compileall api auto_client_acquisition: clean.
- pytest tests/unit (excl. tenacity-dep tests): 950 passed, 2 skipped.
- python scripts/smoke_inprocess.py: SMOKE_INPROCESS_OK (8/8 endpoints).
- python scripts/paid_beta_daily_scorecard.py text + --json: both render
  correctly with Arabic + verdict + next_actions.
- tests/unit/test_positioning_lock.py: 10 passed (no prohibited
  phrases introduced in updated landing/private-beta.html).

Test count: 949 → 962 (+12 new, 1 prior already counted).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 18:39:36 +03:00
..
__init__.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_agent_observability.py feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
test_ai_model_router.py feat(dealix): py3.10/3.11 compat shim + 54 unit tests for business/innovation/ai 2026-05-01 14:50:04 +03:00
test_api_key_middleware.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_arabic_nlp.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_autonomous_service_operator.py feat(autonomous-revenue-os): Dealix becomes a Category — Autonomous Revenue Company OS — 26 modules + 47 endpoints + 81 tests 2026-05-01 17:50:32 +03:00
test_business_suite.py feat(dealix): py3.10/3.11 compat shim + 54 unit tests for business/innovation/ai 2026-05-01 14:50:04 +03:00
test_compliance_os.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_connector_catalog.py feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
test_copilot.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_customer_ops.py feat(positioning+customer-ops): Saudi Revenue Execution OS — 8 modules + 20 endpoints + 44 tests + 8 docs + 2 modes 2026-05-01 18:14:51 +03:00
test_customer_success.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_dealix_contracts.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_dealix_model_router.py feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
test_dealix_trust.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_dominance_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_ecosystem_webhooks.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_email_automation_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_full_os_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_growth_curator.py feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
test_growth_operator.py feat(growth-operator): Arabic Growth Operator — 10 modules + 16 endpoints + 50 tests 2026-05-01 15:33:11 +03:00
test_icp_matcher.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_innovation_suite.py feat(dealix): py3.10/3.11 compat shim + 54 unit tests for business/innovation/ai 2026-05-01 14:50:04 +03:00
test_intake.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_intelligence_layer.py feat(platform+intelligence): Growth Control Tower + Growth Neural Network — 20 modules + 25 endpoints + 60 tests 2026-05-01 16:05:12 +03:00
test_intelligence_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_launch_ops.py feat(launch+revenue): Private Beta Launch Ops + Revenue Launch — 14 modules + 29 endpoints + 56 tests + scripts/landing/docs 2026-05-01 17:28:08 +03:00
test_lead_scorer.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_market_radar.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_meeting_intelligence.py feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
test_model_router.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_orchestrator.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_paid_beta_scorecard.py feat(paid-beta): operational layer for first 499 SAR — playbook + workflow + board + scorecard + landing CTA 2026-05-01 18:39:36 +03:00
test_pain_extractor.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_pipelines_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_platform_services.py feat(platform+intelligence): Growth Control Tower + Growth Neural Network — 20 modules + 25 endpoints + 60 tests 2026-05-01 16:05:12 +03:00
test_positioning_lock.py feat(positioning+customer-ops): Saudi Revenue Execution OS — 8 modules + 20 endpoints + 44 tests + 8 docs + 2 modes 2026-05-01 18:14:51 +03:00
test_provider_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_research_agent_smoke.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_revenue_company_os.py feat(autonomous-revenue-os): Dealix becomes a Category — Autonomous Revenue Company OS — 26 modules + 47 endpoints + 81 tests 2026-05-01 17:50:32 +03:00
test_revenue_graph.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_revenue_launch.py feat(launch+revenue): Private Beta Launch Ops + Revenue Launch — 14 modules + 29 endpoints + 56 tests + scripts/landing/docs 2026-05-01 17:28:08 +03:00
test_revenue_memory.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_revenue_science.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_security_curator.py feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
test_sentiment.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_service_excellence.py feat(targeting+service+excellence): Saudi Targeting OS + Service Tower + Service Excellence — 38 modules + 62 endpoints + 105 tests 2026-05-01 17:11:00 +03:00
test_service_tower.py feat(targeting+service+excellence): Saudi Targeting OS + Service Tower + Service Excellence — 38 modules + 62 endpoints + 105 tests 2026-05-01 17:11:00 +03:00
test_smart_routing.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_targeting_os.py feat(targeting+service+excellence): Saudi Targeting OS + Service Tower + Service Excellence — 38 modules + 62 endpoints + 105 tests 2026-05-01 17:11:00 +03:00
test_vertical_os.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
test_webhook_signatures.py ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00