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.

Fully AI Auditable & Transparent
Native Core Gamification
Typed Command Engine
100% Immutable Audit Log

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.

Awaiting
Truth
Click Here
Siloed
PAM
Click Here
3rd Party
Promo
Click Here
Isolated
Ledger
Click Here
Disjointed
Support
System Status
Domains Unified: 0/4

WARNING: Architecture fragmented. Audit trails are disjointed and AI lacks domain context. Click nodes to absorb into the OLTP canonical store.

Systems Unified: 0 / 4

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.

Command Bus & Public/Internal APIsThe absolute only door into the system. All platform mutations must pass through strict, typed commands. No manual database overrides or backdoor vendor writes. Total operational control.
Policy Engine & Approval FlowMathematical risk evaluation. Automatically checks every typed command against your jurisdiction rules. High-value withdrawals explicitly route to the Approval Flow for four-eyes human sign-off.
Append-Only Audit LogCryptographic-level compliance. Every action, AI decision, and override is permanently logged (actor, command, policy result) with a 5-year retention. Inspector roles can read; nobody can edit.
Unified Domain ArchitectureIdentity & Access, Tenant/Brand, Wallet & Ledger, KYC & Risk, Games, Content & Promotions, and Support. All managed natively under one roof, completely eliminating fragmented data silos.

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

Unified Mission EngineTrigger achievements and rewards based strictly on Command Bus events.
Real-Time Sweeps LeaderboardsQueries the canonical PostgreSQL store without third-party latency.
Automated Prize DropsRandomized sweeps distribution executed securely via the outbox queue.

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.

01

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.

02

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.

03

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.

04

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.

05

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.

Ready to own your iGaming platform?