system-prompts-and-models-o.../dealix/docs
Dealix Builder bcf545c22e feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch
Security Curator (4 modules) — جدار الحماية الأول
- secret_redactor: 11 patterns (GitHub PAT, OpenAI/Anthropic/Supabase/WhatsApp/Moyasar/Sentry/Google/AWS/private keys); never returns raw secret
- patch_firewall: blocks .env / credentials.json / RSA keys; scans added lines for secret patterns
- trace_redactor: masks phones (+966...) and emails for PII safety
- tool_output_sanitizer: cleans tool outputs before they hit ledger/Proof Pack/UI/observability

Growth Curator (5 modules) — التحسين الذاتي
- message_curator: grades Arabic messages (0..100), detects 8 risky phrases, suggests Saudi-tone skeleton
- playbook_curator: scores playbooks by outcome (accept/reply/meeting/deal); winner/promising/needs_work/archive
- mission_curator: scores completed missions; ship_it_widely/iterate/rework_or_retire
- skill_inventory: deterministic 23-skill catalog across 5 layers
- curator_report: weekly Arabic summary "ماذا تعلمنا هذا الأسبوع"

Meeting Intelligence (5 modules) — ذكاء الاجتماعات
- transcript_parser: accepts Google Meet entries OR plain "Speaker: text" format
- meeting_brief: 6-section pre-meeting brief in Arabic (objective/questions/objections/offer/next-step)
- objection_extractor: 8 categories (price/timing/authority/trust/integration/competitor/results/complexity)
- followup_builder: email + WhatsApp drafts; live_send_allowed=False always
- deal_risk: 0..100 score from objections + missing next-step + decision-maker absence + days-since-touch

Model Router (5 modules) — موجّه النماذج
- provider_registry: 7 providers (Claude Sonnet/Haiku, GPT-4-class, GPT-4o-mini, Gemini Pro, Azure OAI KSA-region, Local Qwen Arabic-tuned)
- task_router: 10 task types × routing decisions with reasons_ar
- cost_policy: bulk → low; output > 1500 tokens → high
- fallback_policy: high-sensitivity workloads prefer KSA-region/self-hosted FIRST
- usage_dashboard: deterministic demo of all task routes

Connector Catalog (3 modules) — كتالوج التكاملات
- 14 connectors (WhatsApp Cloud, Gmail, Calendar, Google Meet, Moyasar, LinkedIn Lead Forms, Google Business Profile, X API, Instagram, Sheets, CRM, Website Forms, Composio, MCP Gateway)
- Each has launch_phase (1-4), risk_level, allowed_actions, blocked_actions, Arabic risk dossier
- WhatsApp blocks cold_send_without_consent; Moyasar blocks store_card_number; MCP requires allowlist

Agent Observability (5 modules) — مراقبة الوكلاء + التقييمات
- trace_events: SHA256-hashes user/company IDs; sanitizes payload/output before logging
- safety_eval: 7 rules (guarantee, scarcity_fake, medical_claim, financial, regulatory, personal_data, urgency); 0..100 → safe/needs_review/blocked
- saudi_tone_eval: positive markers (هلا, لاحظت, يناسبك) vs negative (تحية طيبة وبعد, synergy, leverage); arabic_ratio bonus
- eval_pack: 5 curated cases with expected verdicts
- cost_tracker: per workflow/provider/task_type aggregation

Routers (6 new) — 30 endpoints
- /api/v1/security-curator/{demo, redact, inspect-diff, sanitize-output}
- /api/v1/growth-curator/{skills/inventory, messages/grade, messages/improve, messages/duplicates, missions/next, report/weekly, report/demo}
- /api/v1/meeting-intelligence/{brief, brief/demo, transcript/summarize, followup/draft, deal-risk}
- /api/v1/model-router/{providers, tasks, route, cost-class, usage/demo}
- /api/v1/connector-catalog/{catalog, summary, status, risks, {key}}
- /api/v1/agent-observability/{trace/build, safety/eval, tone/eval, evals/run}

Tests (6 new files, 76 tests)
- test_security_curator: 16 tests (PAT detect, key redact, env diff block, payload scan, trace mask)
- test_growth_curator: 16 tests (Arabic grade, risky phrases, dup detect, playbook scoring, mission recommend, weekly report)
- test_meeting_intelligence: 13 tests (transcript parse, brief sections, objection extract, followup drafts, deal risk)
- test_dealix_model_router: 11 tests (every task → ≥1 provider, KSA-region for high sensitivity, cost class, primary override)
- test_agent_observability: 12 tests (trace hashing, safety verdicts, tone scoring, eval pack)
- test_connector_catalog: 11 tests (≥12 connectors, every has risk/blocked actions, WA cold-send blocked, Moyasar card-storage blocked)

Docs (8 new + 1 updated)
- AGENT_SECURITY_CURATOR.md (Arabic)
- GROWTH_CURATOR_STRATEGY.md (Arabic)
- MEETING_INTELLIGENCE.md (Arabic)
- MODEL_PROVIDER_ROUTER.md (Arabic)
- CONNECTOR_CATALOG.md (Arabic)
- AGENT_OBSERVABILITY_EVALS.md (Arabic)
- PRIVATE_BETA_LAUNCH_TODAY.md (Arabic) — go-checklist + offer + risks
- DEMO_SCRIPT_12_MINUTES.md (Arabic) — minute-by-minute demo flow
- FIRST_20_OUTREACH_MESSAGES.md (Arabic) — 7 personas + 3 follow-ups, all under safety/tone evals
- DEALIX_100_PERCENT_LAUNCH_PLAN.md — added §34 Self-Improving Agent Platform + §35 Private Beta Launch

Landing
- landing/private-beta.html — Arabic RTL, dark theme, pricing, 11 demo endpoints, safety banner

Test results
- 76/76 new tests pass
- Full suite: 663 passed, 2 skipped (missing API keys, unrelated)
- 0 existing tests broken

Safety
- All 6 layers honor approval-first, draft-only, no-live-send
- Hash user/company IDs before any trace
- No secrets in logs/embeddings/traces (3-layer defense: redactor + sanitizer + firewall)
- Saudi tone eval rejects "تحية طيبة وبعد" + "synergy" auto-corporate language
- Safety eval blocks "ضمان 100%" + medical claims + fake urgency
- Connector Catalog: WhatsApp blocks cold-send, Moyasar blocks card storage, MCP requires allowlist

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 16:30:18 +03:00
..
ar ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
architecture ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
archive ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
blueprint ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
business ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
go-to-market ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
growth ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
launch ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
ops docs(ops): Railway existing-project checklist and troubleshooting 2026-05-01 14:36:09 +03:00
partners ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
playbooks ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
revenue ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
sales ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
sales-kit ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
AGENT_OBSERVABILITY_EVALS.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
AGENT_SECURITY_CURATOR.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
AI_MODEL_ROUTING_STRATEGY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
AI_OBSERVABILITY_AND_EVALS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
AI_STACK_DECISIONS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
API_REFERENCE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
ARABIC_GROWTH_OPERATOR_FULL_SPEC.md feat(growth-operator): Arabic Growth Operator — 10 modules + 16 endpoints + 50 tests 2026-05-01 15:33:11 +03:00
BETA_PRIVATE_GATES_CHECKLIST.md docs(ops): beta gates checklist, Railway bind, Actions env setup; dependabot dealix; SECURITY policy; verification log 2026-05-01 14:06:42 +03:00
BILLING_MOYASAR_RUNBOOK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
BILLING_RUNBOOK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
BUSINESS_MODEL.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
COMMERCIAL_LAUNCH_MASTER_PLAN.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
COMPETITIVE_POSITIONING.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
CONNECTOR_CATALOG.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
COST_OPTIMIZATION.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
CUSTOMER_JOURNEYS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DASHBOARD.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DATA_MAP.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DATA_RETENTION_POLICY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DEALIX_100_PERCENT_LAUNCH_PLAN.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
DEALIX_V3_AUTONOMOUS_REVENUE_OS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DEMO_SCRIPT_12_MINUTES.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
DEPLOY_CHECKLIST.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DPA_PILOT_TEMPLATE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
DRILL_PLAN.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
EMBEDDINGS_PIPELINE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
EVALS_RUNBOOK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
FIRST_20_OUTREACH_MESSAGES.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
GOOGLE_WORKSPACE_INTEGRATION.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
GROWTH_CURATOR_STRATEGY.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
GTM_PLAYBOOK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
INNOVATION_STRATEGY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
INTELLIGENCE_LAYER_STRATEGY.md feat(platform+intelligence): Growth Control Tower + Growth Neural Network — 20 modules + 25 endpoints + 60 tests 2026-05-01 16:05:12 +03:00
INVOICING_ZATCA_READINESS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
LAUNCH_DAY_RUNBOOK_AR.md docs(ops): beta gates checklist, Railway bind, Actions env setup; dependabot dealix; SECURITY policy; verification log 2026-05-01 14:06:42 +03:00
LAUNCH_DAY_VERIFICATION_LOG.md docs: note Dealix API CI green on GitHub 2026-05-01 14:08:59 +03:00
LAUNCH_GATES.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
LAUNCH_MASTER_RUNBOOK_AR.md feat(launch): legal pages + onboarding flow + error pages + master runbook 2026-05-01 15:06:41 +03:00
LAUNCH_READINESS_REPORT.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
LAUNCH_SCOPE_AND_NAMING.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
MARKET_RADAR_SIGNALS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
MEETING_INTELLIGENCE.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
MODEL_PROVIDER_ROUTER.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
MOYASAR_E2E_GUIDE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
MOYASAR_LIVE_CUTOVER.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
OBSERVABILITY_ENV.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
OFFER_LADDER.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
ON_CALL.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
ONBOARDING_FLOW.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PAID_BETA_SCORECARD.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PHASE2_PRIVATE_BETA_CHECKLIST.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PHASE_COMPLETION_TRACKER.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PLATFORM_SERVICES_STRATEGY.md feat(platform+intelligence): Growth Control Tower + Growth Neural Network — 20 modules + 25 endpoints + 60 tests 2026-05-01 16:05:12 +03:00
POST_MERGE_VERIFICATION.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
postman_collection.json ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PR125_BODY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PR125_FINAL_STABILIZATION_REPORT.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PR125_REVIEW_GUIDE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PRICING_STRATEGY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
pricing.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PRIVACY_PDPL_READINESS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PRIVATE_BETA_LAUNCH_TODAY.md feat(self-improving): Hermes-inspired Agent Platform — 6 layers + 30 endpoints + 76 tests + Private Beta launch 2026-05-01 16:30:18 +03:00
PRIVATE_BETA_RUNBOOK.md docs(ops): beta gates checklist, Railway bind, Actions env setup; dependabot dealix; SECURITY policy; verification log 2026-05-01 14:06:42 +03:00
PRODUCT_ROADMAP.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PUBLIC_LAUNCH_CHECKLIST.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PUBLIC_LAUNCH_GO_NO_GO_TRACKER.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
PUBLIC_LAUNCH_GO_NO_GO.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
RAILWAY_DEPLOY_GUIDE_AR.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
REFUND_POLICY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
RELATIONSHIP_OPERATOR_STRATEGY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
ROI_PROOF_PACK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SAMI_ACTION_ITEMS.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SECURITY_GUIDE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SECURITY_INCIDENT_PAT_EXPOSURE.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SECURITY_PDPL_CHECKLIST.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SECURITY_RUNBOOK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SLO.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
STAGING_DEPLOYMENT.md docs(ops): beta gates checklist, Railway bind, Actions env setup; dependabot dealix; SECURITY policy; verification log 2026-05-01 14:06:42 +03:00
SUPABASE_PROJECT_MEMORY_SETUP.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
SUPABASE_STAGING_RUNBOOK.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
VERTICAL_OS_STRATEGY.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
WHATSAPP_OPERATOR_FLOW.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00
WHATSAPP_PRODUCTION_CUTOVER.md ci(dealix): root GitHub workflows, ai-company track, full Dealix API tree 2026-05-01 14:03:52 +03:00