The TwinSweep Architecture
TwinSweep.
Next Generation Of The
Sweepstakes.
Stop renting fragmented sweepstakes infrastructure. TwinSweep is the ultimate operator-owned platform, powered by an autonomous AI workforce and a native gamification engine. Command your entire ecosystem, automate your risk, and secure 100% of your revenue.
Build Your Source of Truth
Most operators run on stitched-together fragments. Click the red nodes below to collapse them into a unified TwinSweep core.
Truth
PAM
Promo
Ledger
Support
WARNING: Architecture fragmented. Audit trails are disjointed and AI lacks domain context. Click nodes to absorb into the OLTP canonical store.
Truth Unified
One audit story. One risk model. The system is stabilized, auditable, and ready for extreme operational scale.
The Tiers of Truth
The Anatomy of TwinSweep.
We architecturally separated exactly who writes data, where the truth lives, and how it ships. Every operational component is rigidly isolated to ensure bulletproof compliance, enable native AI integration, and permanently prevent vendor lock-in.
platform-core
The Canonical OLTP Store & Single Owner of Business Truth
The TwinSweep platform-core is the indisputable owner of your operation. It dictates exactly where data lives and who can write to it. Powered by PostgreSQL + Prisma as the canonical store. If a player action, wallet balance, KYC flag, or promotion is not explicitly recorded in the platform-core, it does not exist.
ai-tool-gateway
AI Chat & Agent Runtime
Your AI co-pilot lives here. It utilizes Sessions, Tools, Structured outputs, and Capability dispatch.
The gateway ensures agents act on the platform via the exact same typed contracts as humans. AI operates purely as an auditable actor, never a domain owner.
integration-workers
Asynchronous Processes
Handles Jobs, Retries, Callbacks, Reconciliation, and Imports/Exports.
External systems (KYC providers, game aggregators) are not sources of truth. Workers consume outbox queues and bring results back as new typed commands.
backoffice
Operator Control Plane
Where your team actually works: Operations, Approvals, Evidence review, and AI collaboration. It never reaches around the core; it strictly issues and reads typed commands.
project-ops
Operational Facade
Manages Environments, Smoke gates, Release markers, and Rollbacks.
Release safety is guaranteed by the core's typed-command discipline, making deployment and operational scaling incredibly reliable.
Content & Promotions Domain
Gamification Reimagined
Native Engagement.
Zero Bolt-Ons.
Why rely on disjointed, third-party gamification tools when promotional logic belongs natively in your core? TwinSweep integrates the Content & Promotions domain directly into the single source of truth.
Because tournaments, drops, and missions interact directly with the unified Dual-Wallet and Policy Engine, rewards are instant, fraud-proof, and fully auditable.
AI-Driven Bonusing: The AI Chat Agent Runtime evaluates player sessions in real-time and triggers tailored retention bonuses directly through the Policy Engine.
The Laws of TwinSweep
The 5 Ironclad Rules.
These invariants dictate how the architecture is shaped. They are not gentle guidelines; they are hard technical boundaries built to guarantee the absolute integrity of the platform.
The 5-Step Integrity Flow
Every state change—whether flagging a player or sending a sweepstakes bonus—moves through five unbreakable steps: Draft → Policy → Approve → Execute → Audit. There is no bypass.
All mutations go through typed commands.
No write-from-anywhere. The Command Bus is the only door. This ensures your audit trail is always flawless and complete.
Approval and risk models belong to the core.
Workers, AI, and the backoffice can only suggest. The platform-core makes the final mathematical decision based strictly on your rules.
Fully AI Auditable & Transparent.
Your AI Chat Agent operates as an auditable actor. Its drafted actions, decisions, and tool calls are fully transparent and logged precisely like a human manager.
Workers are not a source of business truth.
A payment callback or imported KYC file doesn't blindly update your database. It becomes a new typed command that must pass policy evaluation.
All actions leave evidence.
Every decision, view, or override is timestamped, attributed, and tied to a policy citation in an immutable log. The ultimate regulator defense.
Why We Engineered This Shape
Most iGaming admin platforms are hastily stitched together from a PAM, a CRM, a KYC tool, a payments console, and a reporting layer—each desperately claiming to own a slice of your business truth.
That patchwork works at a small scale. It fails spectacularly at audit scale. When a regulator asks one question, your team spends weeks assembling answers from five disjointed logs.
The Trade-Off
Every new domain capability is a strict platform-core change with deep policy and audit semantics, rather than a quick, unstructured admin tweak.
The Ultimate Benefit
We collapsed business truth into one platform-core. You get one audit story, one risk model, and one place to reason about correctness. It is the only architecture that makes autonomous AI and multi-tier compliance safely possible.
Ready to Own Your Sweepstakes Future?
Deploy a platform built on cryptographic-level operational truth. End the fragmented audit trails and start retaining 100% of your revenue.