Evidence before
escalation.
An engineering direction for casino integrity teams, with executable reference examples and explicit integration gates.
What you can inspect today.
The public reference explorer executes deterministic JavaScript logic in your browser against abbreviated synthetic event records. It demonstrates selected account relationships, clock-bounded roulette reconciliation and blackjack visibility controls. Complete file downloads and server-generated assessment exports require technical access. It does not connect to a casino or provider, persist investigations or take action on player accounts.
The production programme proposes Python / FastAPI services, TypeScript / React investigation interfaces, PostgreSQL case records and durable event evidence. The browser reference is a testable explanation of selected semantics; it is not the production service architecture.
| Area | Current evidence | Next gate |
|---|---|---|
| Reference rules and JSON export | Executable synthetic examples | Review semantics with operator integrity owner |
| Provider / operator compatibility | Proposed contract only | Map and verify each authorised source |
| Detection effectiveness | No production accuracy result | Historical evaluation and shadow operation |
| Isolation and operational security | Engineering requirements | Implement and independently verify controls |
| Capacity and recovery | No production benchmark or SLA | Measure agreed workload and demonstrate restore |
Preserve the event.
Version the conclusion.
- Authenticate the source
Bind the tenant and permitted source scope to authenticated access. Do not derive tenancy from an event supplied by the client.
- Validate and commit
Validate the complete batch against the ingress contract and source semantics. Commit durable receipts before acknowledging new events. A transactional outbox links acknowledged intake to processing.
- Reconstruct context
Separate event time from receipt time. Correlate provider, game, round, player and payment references. Detect sequence gaps, retries and conflicting identities before evaluating a case.
- Evaluate with provenance
Store detector version, configuration, evidence references, quality limits and assessment revision. Late or corrected records produce a new revision while preserving earlier evidence.
- Review and measure
Give authorised analysts a source-linked case, explicit unknowns and typed outcomes. Account restrictions and payment decisions remain under operator control.
Stable identities.
Explicit source semantics.
POST /v1/event-batches is a proposed interface, not a live endpoint. The downloadable JSON Schema describes individual events inside a batch. Authentication, batch atomicity, receipt time, retry responses and source permissions are defined at the service boundary.
| Field | Purpose |
|---|---|
schema_version, event_type | Versioned envelope and event family |
event_id | Event identifier; conflicting reuse must fail |
source_system + source_event_id | Logical source identity for replay and duplicate handling |
occurred_at, time_quality | UTC source time and documented clock uncertainty / precision |
correlation | Typed player, session, round, provider, game, shoe and campaign references |
attributes, source_sequence | Event-specific facts and sequencing where supplied |
A retry with an equivalent logical event must not inflate case evidence. A conflicting body for an existing identity must be rejected. New records in a batch must remain atomic. The local reference checks essential record structure and replay semantics; it does not replace full server-side JSON Schema validation.
Provider corrections require an authenticated reconciliation process. In the browser example, a separate internal reconciliation reference identifies the superseded and replacement record. This metadata is outside the public ingress schema. The reference retains both records and recalculates the assessment.
Inspect the full individual-event schema →Different evidence.
Different conclusions.
Corroborated links create a review candidate.
The reference requires a shared device and tokenised payment reference, plus campaign claims with the expected terms version for both accounts. A shared network is contextual. This rule does not prove common ownership or a policy breach; source reliability, households and permitted payment relationships need investigation.
Use the complete possible timing interval.
Subtract authoritative closure time from accepted-wager time. Expand the gap by the combined uncertainty and precision bounds. Only an interval entirely beyond the agreed tolerance establishes a timing discrepancy. Overlap with closure or unknown clock quality leaves timing unresolved. A rejected wager does not establish late acceptance.
For example, a +420 ms gap with a ±600 ms bound produces an interval from −180 to +1,020 ms. That interval crosses closure, so the reference does not conclude that the wager was accepted late. Timing alone cannot establish player intent.
Do not let later information explain an earlier decision.
Require a verified shoe boundary and contiguous source coverage. Features use only cards dealt and revealed by the decision cut-off. Hidden and later cards are excluded. Missing coverage disables feature generation. Stake changes and counting-related patterns remain contextual; manipulation requires additional evidence.
Models must earn their operational role.
The proposed model layer can add cohort-aware anomaly prioritisation after the event pipeline and deterministic baseline are validated. Preserve dataset, feature, code and model versions. Evaluate on held-out periods and connected-entity groups, document uncertain labels and compare incremental value against the baseline.
An optional language model may summarise an already assembled case with supplied evidence references. It must not invent evidence or issue operational decisions. The public explorer uses no machine-learning model or language-model service.
Agree the tests
before the rollout.
- Isolation and access: verify authenticated tenant binding across APIs, workers, searches, caches and exports. Test role and object-level access, including negative cross-tenant cases.
- Replay and recovery: test duplicate and conflicting deliveries, out-of-order data, crash recovery, outbox resumption, restore and recalculation from retained evidence.
- Data lifecycle: agree deployment region, encryption, key management, retention, legal holds, controlled exports and deletion procedures for the actual operation.
- Detection usefulness: evaluate operator-reviewed cases, reviewed-alert precision, analyst time, data coverage and alert workload. Estimate population false-positive rates only with representative ground truth.
- Capacity and service levels: benchmark the agreed workload, latency distribution, failure recovery and cost profile before agreeing a production service level.
- Release security: map relevant OWASP ASVS requirements into a verification plan; review dependencies, secrets, attack surfaces, change approval and incident procedures. This is a planned validation framework, not an ASVS certification claim.
Verification reference: OWASP Application Security Verification Standard ↗
Start with one
defined integrity problem.
Bring the account, session and promotion sources for an initial linked-account pilot. For live-table work, also establish provider authority, acceptance semantics, clock quality and round or shoe coverage. Agree the integrity owner, review capacity and evidence needed to decide whether to proceed.
