# AMARKAL Platform — Complete Machine-Readable Technical & Product Specification (`v2.50.2`) - **Product Name:** AMARKAL Platform - **Website:** https://www.amarkal-platform.com/ - **Operator:** Alexey AAA Logistics LLC (United States) - **Category:** Global AI-Native Business Operating System / AI OS 3.0, AI Control Tower & FinOps, No-Code AI Agent Studio, Open A2A Protocol, Governed Legacy Portal RPA, 24/7 Voice AI, AI CFO, Vertical Autonomous Agents, Enterprise ERP, CRM, Document OCR, Hybrid RAG, BPMN, Helpdesk, HR/LMS, Offline Field Ops & Multi-Entity Finance - **Contact:** support@amarkal-platform.com · legal@amarkal-platform.com - **GitHub Repository:** https://github.com/alexeyalexandrov2026-tech/GORGONA-Booking-Platform_new - **A2A Agent Card:** https://www.amarkal-platform.com/.well-known/agent.json - **MCP Endpoint:** https://www.amarkal-platform.com/v1/mcp (JSON-RPC 2.0 HTTP, 32 unified governed tools, Bearer scoped API key) - **Open A2A Endpoint:** https://www.amarkal-platform.com/v1/a2a/tasks/send (Bearer scoped API key, FORCE RLS + Prompt-Injection Firewall) --- ## 1. Executive Summary & Positioning AMARKAL Platform unifies **30+ natively integrated operational, financial, AI OS 3.0, AI Governance/FinOps, No-Code Agent Studio, Governed Portal RPA Runbook Planner, Voice AI, AI CFO, HR/LMS, Helpdesk, BPMN, Offline-First, and compliance modules** across **39 US NAICS 2022 industries** and **10 international Global Core country localizations** inside a single multi-tenant **PostgreSQL 18** operating system (`186` deterministic migrations, `94` FastAPI routers, `103` static prerendered Next.js 16 / React 19 routes; OpenAPI schema & Swagger UI disabled in `staging`/`production`). Unlike legacy ERP suites (Odoo, Oracle NetSuite, SAP Business One, Zoho One, Monday.com) and point AI wrappers: 1. **0% Core Merchant Transaction Commission:** Businesses keep 100% of customer checkout, B2C Shop, and B2B invoice payments (direct Stripe US settlement via Cards, Apple Pay, Google Pay, US ACH, plus SEPA & UK Faster Payments). 2. **True Single-Schema Architecture & Complete AI OS 3.0:** Operations, Double-Entry Ledger (`FIN-01/02/03`), AI Control Tower & FinOps, No-Code AI Agent Studio + Remote MCP + Open A2A, Governed Legacy Portal RPA Runbook Planner, 24/7 Voice AI Receptionist & Freight Dispatch, AI CFO Cashflow & Anomaly Guard, 4 Prebuilt Vertical Autonomous Agents, Global Actionable AI Sidekick, Multimodal Document OCR & 3-Way PO Match, Unified Enterprise Hybrid RAG, MRP II, IoT EAM, Helpdesk SLA, Talent & LMS, Multi-Entity Consolidation, Visual BPMN, and Offline Sync run on one consistent PostgreSQL 18 database with `ENABLE + FORCE ROW LEVEL SECURITY` on 100% of tenant tables. 3. **Zero Vendor Lock-In, Default Platform LLM & 7 Enterprise BYOK Clouds:** 1-click full portable JSON and formula-safe RFC-4180 CSV export anytime; built-in platform Cloudflare Workers AI LLM and neural embeddings by default (with deterministic fallbacks when offline) plus optional tenant BYOK keys across Anthropic Claude, OpenAI, Google Gemini, Azure OpenAI, AWS Bedrock (PrivateLink), Google Cloud Vertex AI, and Self-Hosted Ollama/vLLM in per-tenant AES-256-GCM vaults; zero customer data used to train external AI models. 4. **Hard `$0.00` Human-in-the-Loop Financial & Portal Guardrail:** Real Smart Autonomy, Prebuilt Vertical Agents, Custom Studio Agents, and the Legacy Portal RPA Runbook Planner automate safe monitoring, validation, planning, and draft preparation while every payment, refund, Purchase Order release, payroll export, contract signature, and legacy external portal submission permanently requires explicit human sign-off in the persistent Approval Inbox. 5. **Truthful Readiness Scope:** Core booking, salon lifecycle, double-entry ledger, invoicing, warehouse, and workforce shifts are verified end-to-end; extended industry verticals (Transport, Construction, Rental, Property, Restaurant, Supply, Projects) are marked `technically_verified` on synthetic/PG18 test data with no live pilot or production approval claimed. --- ## 2. Enterprise AI Governance, Ecosystem & Governed Portal RPA (Wave 6 · `v2.48.0 – v2.50.0`) ### 2.1 AI Control Tower, FinOps Budget Caps, Prompt-Injection Firewall & Hallucination Guard (`/ai-control-tower/`, `v2.48.0`) - **Micro-Dollar FinOps Telemetry & Hard Caps (`gba.ai_finops_policies`, `gba.ai_telemetry_events`):** Tracks token spend, latency, acceptance rate, and estimated hours saved per feature area with enforceable daily/monthly USD caps (`hard_cap_enabled`) and data residency policies (`us_only`, `eu_only`, `global`). - **Dual AI Safety Guardrails:** Built-in EN/RU **Prompt-Injection Firewall** (`scan_prompt_injection`) blocking system-prompt overrides, secret exfiltration probes, and cross-tenant RLS escapes, plus a **Numeric Hallucination Grounding Verifier** (`verify_numeric_grounding`) comparing AI-generated `$`/`%` claims against live PostgreSQL ground truth. - **7 Enterprise BYOK Clouds & Tool #30:** Supports Anthropic Claude, OpenAI, Google Gemini, Microsoft Azure OpenAI, Amazon AWS Bedrock, Google Cloud Vertex AI, and Self-Hosted Ollama/vLLM; exposed via MCP Tool #30 (`get_ai_control_tower_finops`). ### 2.2 No-Code AI Agent Studio, Real Remote MCP Client & Open A2A Task Protocol (`/ai-studio/`, `v2.49.0`) - **No-Code Custom Agent Builder (`gba.ai_custom_agents`):** Lets tenants compose specialized agents with custom system prompts, explicit zero-wildcard governed tool allowlists (`SIDEKICK_TOOL_BY_NAME`), ABAC PII masking, daily token caps, 85/15 Marketplace publishing, and an interactive Dry-Run Sandbox gated by the Prompt-Injection Firewall. - **SSRF-Guarded Remote MCP Client (`gba.ai_remote_mcp_servers`):** Registers external HTTPS MCP servers (strictly blocking HTTP, localhost, RFC1918, and cloud metadata IPs) and executes real JSON-RPC 2.0 `tools/list` probes strictly outside PostgreSQL transactions. - **Open A2A Protocol (`POST /v1/a2a/tasks/send`, `GET /v1/a2a/tasks/{task_id}`, `gba.ai_a2a_tasks`):** Accepts partner Agent-to-Agent tasks authenticated by scoped `Bearer gorg_live_*` API keys under `FORCE RLS` and Prompt-Injection Firewall screening, routing any write intent to `input_required` in the Approval Inbox; exposed via MCP Tool #31 (`list_custom_studio_agents`). ### 2.3 Governed Legacy Portal RPA Runbook & Approval Planner (`/portal-rpa/`, `v2.50.0`) - **Pre-Execution Staging Boundary:** Validates, sanitizes, and stages structured payloads for 5 US legacy portal templates (`gba.ai_rpa_portal_playbooks`, `gba.ai_rpa_execution_runs`) across **DAT / Truckstop Freight Load Boards**, **US State DOT / IFTA Permits**, **US County Building & Construction Permits**, **Legacy Buyer AP / Vendor ERP Portals**, and **IRS EFTPS Tax Vouchers**. The AMARKAL API server does not run headless browser clicks against external portals; approved plans are handed off to an operator-managed runner or human operator. - **Defense-in-Depth Portal Safety:** SQL-enforced `CHECK (requires_human_approval = true)` ensures zero unapproved external portal submissions; enforces HTTPS-only SSRF validation, a **Credential & Secret Leak Guard** blocking raw passwords, US SSNs, card PANs, AWS keys, and PEM private keys alongside prompt-injection screening, deterministic 5-step execution DAGs with SHA-256 evidence hashes, Approval Inbox queueing, and MCP Tool #32 (`list_governed_portal_rpa_runs`). --- ## 3. Autonomous AI Operations & Vertical Intelligence (Wave 5 · `v2.45.0 – v2.47.0`) ### 3.1 24/7 Voice AI Receptionist & Freight Dispatch Check-Calls (`/voice-ai/`, `v2.45.0`) - **Two Built-In Vertical Voice Personas + Default Platform LLM:** Answers incoming customer pricing/booking inquiries 24/7 grounded in live PostgreSQL service catalogs (ServiceTitan AI alternative), AND runs inbound/outbound freight & cold-chain driver check-calls extracting `load_ref`, `eta_reported`, `dock_door`, `reefer_temp`, and automatic temperature excursion alarms (HappyRobot alternative). Uses platform Cloudflare Workers AI LLM by default (or tenant BYOK when configured) for intent classification & spoken reply synthesis strictly outside DB transactions, with deterministic safety overrides and rule fallback when offline. - **Production Telephony & Security:** Official Twilio `X-Twilio-Signature` HMAC-SHA1 verification, strictly XML-escaped TwiML (``, ``, `` warm transfer to live dispatcher, and `` Media Streams for Gemini Live / OpenAI Realtime), SHA-256 webhook token isolation (`gba.voice_webhook_hash`), mandatory PII redaction, Virtual PBX mirroring (`/inbox/`), and Tool #27 (`list_voice_ai_call_sessions`). ### 3.2 AI CFO (30/60/90-Day Predictive Cashflow, Live Anomaly Guard & Safe NL-to-BI) + Core Module AI (`/cfo-ai/`, `v2.46.0`) - **30/60/90-Day Predictive Cashflow Engine:** Models Base, Conservative, and Optimistic liquidity curves across live US Bank Feeds, probability-weighted AR/AP Aging, active Recurring Retainers, confirmed bookings, and trailing Payroll run rate — automatically surfacing Cash Crunch and Runway warnings. - **Live Financial Anomaly Guard (`gba.ai_cfo_anomaly_alerts`):** Detects duplicate bank debits (same merchant + amount within 5 days), PO 3-Way Match variances, overdue AR concentration (`>=35%`), unreconciled bank backlogs, and trailing margin compression; escalations route strictly to the `$0.00` HITL Approval Inbox. - **Safe Executive NL-to-BI & Embedded Core Module AI:** Routes EN/RU executive financial questions to 6 strictly allowlisted, parameterized read-only SQL templates (ZERO raw LLM SQL execution), adds Helpdesk AI Auto-Triage & KB/Hybrid RAG cited reply drafting (`/helpdesk/tickets/{id}/ai-triage`), upgrades BPMN `ai_compliance_check` to multi-factor 0–100 risk scoring, and exposes Tool #28 (`get_cfo_cashflow_and_anomalies`). ### 3.3 Prebuilt Vertical Autonomous Agents (`/ai-agents/`, `v2.47.0`) - Four turnkey operational agents across 39 NAICS sectors backed by `gba.ai_vertical_agent_configs` and `gba.ai_vertical_agent_runs` (`FORCE RLS`) and exposed via Tool #29 (`list_vertical_autonomous_agents`): 1. **Procurement Exception & MRP Restock Agent:** Scans MRP II BOM shortages & PO 3-Way Match variances -> drafts alternate restock POs in Approval Inbox. 2. **AR Cash-Collector Agent:** Audits overdue AR aging -> drafts personalized reminders with `0%`-commission Stripe payment link proposals. 3. **Construction RFI, EAM & Offline Field Agent:** Catches Offline-First sync conflicts & predictive EAM alerts -> drafts Construction RFI / field escalation tickets. 4. **Helpdesk SLA & 24/7 Voice Escalation Agent:** Guards P1/P2 SLA windows and urgent Voice AI calls -> drafts immediate supervisor coverage escalations. --- ## 4. AI OS 3.0 Foundation (Wave 4 · `v2.42.0 – v2.44.0`) ### 4.1 Global Actionable AI Sidekick, Streaming SSE, Approval Inbox & 32-Tool Native MCP (`v2.42.0`) - **Context-Aware Global Drawer (`⌘J` / `⌘K`):** Accessible from every management screen with real-time Server-Sent Events (SSE) token streaming, Web Speech voice input, multi-turn conversation memory persisted in `gba.ai_conversations` and `gba.ai_messages` under `FORCE RLS`, and inline clickable citations linking directly to live tenant records. - **Native BYOK Tool-Calling Loop & Unified 32-Tool MCP Server (`/v1/mcp`):** Shares one governed 32-tool catalog across the UI Sidekick, Custom Agent Studio, Open A2A, and external MCP agents (27 read/analysis/RAG/Voice/CFO/Agents/Control Tower/Studio/RPA tools + 5 write-intent Human-in-the-Loop draft tools) with zero LLM calls inside database transactions. - **Persistent Human-in-the-Loop Approval Inbox (`gba.ai_action_drafts`):** Database-level `CHECK (requires_human_approval = true OR amount_cents = 0)` prevents unapproved financial mutations. ### 4.2 Multimodal Document OCR & Auto-AP 3-Way PO Match (`v2.43.0`) - **4 High-ROI Document Pipelines (`/document-ai/`):** Supports Vendor Invoices (Auto-AP + live 3-Way Purchase Order Match against `gba.purchase_orders`), Freight BOL/PODs (SHA-256 delivery provenance), Construction Material Estimates, and ATS Recruiting Resumes. - **Defense-in-Depth Upload Security:** Enforces magic-byte file verification (PDF/PNG/JPEG/WebP), 5.5 MB upload cap, SHA-256 content fingerprinting, and active PDF exploit blocking (`/JavaScript`, `/JS`, `/Launch`, `/OpenAction`, `/RichMedia`, `/XFA`, `/EmbeddedFile`) before vision/PDF extraction. ### 4.3 Real Smart Autonomy Execution + Rollback & Unified Enterprise Hybrid RAG (`v2.44.0`) - **Real Smart Autonomy & Reversible Rollback:** Safe operational automations produce real persisted outcomes (overdue AR reminders queued into `gba.ai_action_drafts`, waitlist slot offers transitioning `gba.waitlist_entries` to `notified`) with genuine one-click rollback restoring prior entity status and rejecting linked drafts. - **Unified PG18 Enterprise Hybrid RAG (`gba.ai_knowledge_chunks` & `/ai-rag/*`):** Indexes 6 live tenant domains (Helpdesk KB articles, support tickets, service catalog, Purchase Orders, commercial quotes, and OCR documents) plus custom SOPs/tariffs with mandatory pre-index PII redaction. Combines PostgreSQL GIN BM25 full-text ranking (`ts_rank_cd`) with 64-dim Matryoshka L2-normalized neural embeddings via Cloudflare Workers AI (`@cf/qwen/qwen3-embedding-0.6b`, computed strictly outside DB transactions, with transparent deterministic hash fallback when offline) (`0.55` lexical + `0.45` semantic) directly exposed as Tool #26 (`search_enterprise_knowledge_rag`). --- ## 5. Enterprise ERP, Governance & Global Suites (Waves 1–3 · `v2.31.0 – v2.40.0`) ### 5.1 Matrix Access Control (ABAC), Field-Level PII Masking & Time-Window Guards (`v2.31.0`) - Enforces attribute-based policies beyond static RBAC: restrict staff to specific geographic regions/branches, dynamically mask PII fields (phone numbers, personal emails, tax IDs) on counterparties/clients, and limit write/contract actions to defined business-hour windows (e.g., 08:00–18:00 in tenant timezone) with owner self-lockout protection. ### 5.2 Multi-Entity Holding Consolidation & Automated Intercompany Mirror Trade (`v2.27.0` + `v2.32.0`) - Manage unlimited US and international subsidiaries under one holding group with automatic multi-currency FX translation to USD, Due To / Due From reconciliation, Non-Controlling Interest (NCI), automated **Intercompany Mirror Trade (SO ↔ PO)**, and **ASC 810 / IFRS 10** intra-group revenue/COGS & Unrealized Profit in Inventory (UPII) eliminations. ### 5.3 Low-Code / No-Code Visual BPMN Process & Approval Designer (`v2.33.0`) - Interactive visual DAG workflow builder with cycle detection (Kahn topological verification), zero `eval()`, conditional threshold branching (e.g., if contract value > `$50,000` → Legal Counsel → CFO → AI Compliance Check), live Dry-Run execution path highlighting, EN/RU prompt-to-BPMN generation, and OMG BPMN 2.0 XML export. ### 5.4 Omnichannel Helpdesk / Service Desk, Business-Hours SLA & Knowledge Base (`v2.34.0`) - Converts Email, Virtual PBX calls, SMS, WhatsApp, Web Chat, and B2B Client Portal threads into SLA-tracked tickets with 24/7 P1 timers, timezone-aware P2–P4 business-hours SLA clocks, round-robin queues, automated breach sweeps, KB deflection, and AI Auto-Triage + KB/RAG cited reply drafting. ### 5.5 Full-Cycle Talent Management (ATS, Onboarding, OKRs/KPIs, 360° Reviews & Corporate LMS) (`v2.35.0`) - ATS Recruiting & 1-click Hire-to-Onboard checklists, quarterly weighted OKRs/KPIs, multi-rater 360° competency reviews, and Corporate LMS courses with quiz grading and verifiable `AMK-CERT-*` credentials. ### 5.6 Offline-First Field Sync Engine & Installable PWA (`v2.36.0`) - Tenant-and-user-scoped IndexedDB Outbox (`tenantId::userId`), strict idempotency (`UNIQUE (tenant_id, client_mutation_id)`), optimistic-concurrency Conflict Resolver, automatic zero-remnant `purgeAllOfflineData()` on `signOut()`, and installable Progressive Web App (`/manifest.json`, service worker `amarkal-shell-v2`). Native mobile app packages are not bundled in this repository. ### 5.7 Global Core Multi-Region Accounting, E-Invoicing & Labor Law Packs (`v2.37.0`) - 10 global markets alongside US Core: Europe (`DE` SKR03/XRechnung, `FR` PCG/Factur-X, `GB` FRS 102/HMRC MTD), Middle East (`AE` FTA/WPS, `SA` ZATCA Fatoora Phase 2), Asia-Pacific (`SG` InvoiceNow, `IN` GST e-Invoice, `JP` Qualified Invoice), and Latin America (`MX` SAT CFDI 4.0, `BR` SEFAZ NF-e 4.0 & eSocial). ### 5.8 Monetizable App Store & Developer Billing Portal (`v2.28.0` + `v2.38.0`) - Clean Core extensibility via `amarkal-plugin.json` manifest sandbox, verifiable `AMK-LIC-*` license keys, and **85% Developer / 15% Marketplace Hosting** revenue sharing via Stripe Connect Express (core merchant transactions remain strictly **0% commission**). ### 5.9 AMARKAL Partner Academy, Integrator Certification & Deal Registration (`v2.29.0` + `v2.39.0`) - Silver (15%), Gold (22%), and Platinum (30%) recurring Year-1 partner commissions, proctored exam credentialing (`AMK-PARTNER-*`), a reviewed partner directory, and protected Deal Registration. ### 5.10 Internal Compliance Control Mapping (`v2.24.0` + `v2.40.0`) - Internal control mapping, not certified. AMARKAL holds no SOC 2 report, no ISO 27001 certificate and no PCI DSS attestation of its own, and offers no HIPAA BAA, so tenants must not store PHI. No external audit has been performed. - Traffic is encrypted with TLS 1.2 or higher. Uploaded files are not scanned for malware yet. - The module maps AMARKAL's own technical controls for the owner's internal review; it is not an attestation and must not be presented to customers as one.