Track 2: Return-Risk Scorer & Autonomous Adaptive Defense

Autonomous, Self-Evolving
RTO & COD Fraud Defense

Self-evolving AI that discovers, verifies, and deploys Python AST fraud rules in under 2 minutes—stopping courier RTO losses and protecting razor-thin e-commerce margins without manual rule engineering.

Net Profit Saved+246% Recovery
+₹25,193.68

₹22,734 validation rebound + ₹2,458 held-out test profit

Auto-Decision Rate<10ms SLA
97.99%

2,588 of 2,641 orders auto-decided with zero online LLM lag

Review Queue Risk1.52x Lift
47.17%

High fraud concentration for human analysts; zero cherry-picking

Held-Out PrecisionHurdle Cleared
37.25%

Exceeds 22.26% break-even hurdle on isolated Days 76–89 test split

Interactive Closed-Loop Architecture

Closed-Loop Autonomous Architecture (Fully Expanded Vertical Flow)

Scroll vertically to follow the full defense lifecycle. Pan horizontally to inspect full outer loops. Click any stage for a clear plain-language breakdown.

100%
↻ if promoted / updates serving ensembleAtomic version bump & serving snapshot (Click)✕ syntax fail → dropped; Gen re-runs ⓘ✕ if regression > 5%prune; digest → next-round Gen ⓘ
1. New Order StreamCLICK DETAILS

Live Checkout Transaction Telemetry

<10ms Scoring SLA · 17 Extracted Order Signals
stream
2. Frozen Serving EnsembleLOCKED PRODUCTION

Validated Python AST Rule Weights Snapshot

Zero Online LLM Dependency · Sub-millisecond Execution
score (<10ms)
3. 3-Way Decision RouterCLICK DETAILS
Zero Cherry-Picking
AUTO_APPROVE (T<0.35)
MANUAL_REVIEW
AUTO_BLOCK (T≥0.70)
log actions
4. Outcome Logged & Maturation5-DAY WINDOW

Physical Delivery vs RTO Courier Labels

Settlement Window · Verified Ground Truth Ingestion
mature courier ground truth5. Autonomous Adaptation Trigger Layer (Continuous Sentinels)
Spike MonitorSliding Binomial Z-Score
Z > 2.50σ Anomaly Alert
Drift DetectorPopulation Stability (PSI)
PSI > 0.25 Distribution Shift
Residual MinerFalse-Negative Cluster Isolation
Chi-Square p < 0.01 Guard
1. Mature Orders (5d+)Ground Truth
2. Miss ClusteringHDBSCAN
3. Fisher's Exact Testp < 0.01
4. Cooldown Check3 Rounds
5. Defense AgendaTargeted Brief
feeds agenda into Generator ▾6. Core Multi-Agent Evolution Loop & Safety Verification Gates
1. Generator AgentLLM SYNTHESIS

Synthesizes candidate Python AST boolean rules from agenda & reflections

Gemini / Claude · Guarded grammar · Zero eval()
candidate AST
2. Evaluator AgentSANDBOX EXEC

Executes AST in memory sandbox; computes precision, recall, INR savings

Net Savings = (TP × ₹250) - (FP × Margin Loss)
valid AST
3. Reflector AgentCAUSAL DIAGNOSIS

Diagnoses false positives & directly synthesizes a mutated child rule via its own LLM call

Self-Reflective Mutation · Failure digest persists to Notepad
mutated child → Evaluator (re-scored)
4. Selector & PrunerPARETO FRONTIER

Greedy forward selection: prunes collinear rules and builds ensemble

Multi-Objective Optimization · Collinearity Guard
pareto ensemble candidate
5. Gate 1: Pre-Drift RegressionSAFETY GATE

Tests against historical training data (Days 0–55). Enforces ≤5% regression

Zero-Tolerance Baseline Protection
regression < 5% [PASS]
6. Gate 2: Held-Out ValidationSAFETY GATE

Single-touch evaluation on physically isolated validation split (Days 56–75)

Prevents Data Snooping & Cherry-Picking
validation split [PASS]
7. Decoy Guard & AST AuditSECURITY AUDIT

Honeypot perturbation audit + zero circularity / decoy feature leakage

Zero Unauthorized Imports · Sandboxed Runtime
all gates verified [PASS]
8. Promoted Champion RulePROMOTED LIVE

Promoted to Production Registry · Serving Weights Updated

Shadow Deployment → Canary Testing → Live Serving Snapshot (Node 2)
System Integrity & Rigor

Data Protection & Leakage Safeguards

Physical Table Segregation

`orders_train` (Days 0–55), `orders_validation` (Days 56–75), and `orders_held_out_test` (Days 76–89) reside in physically isolated SQL tables to prevent data leakage during rule evolution.

Sandboxed AST Execution

All candidate rules execute in a restricted Python Abstract Syntax Tree (AST) evaluator without filesystem, network, `eval()`, or `exec()` access, guaranteeing zero arbitrary code execution.

Locked Single-Touch Test Split

The 2,641 held-out test orders (Days 76–89) are evaluated exactly once at Gate 2 verification. No training iteration, feedback reflector, or hyperparameter search ever accesses test data.

Decoy Features Audit

Random decoy columns (`device_model_name`, `app_theme_color`) with zero causal link are injected into training. Gate audits immediately reject any rule referencing decoys.

22.26% Break-Even Hurdle

Every rule must exceed the mathematical break-even precision hurdle (₹250 logistics vs 15% customer insult cost = 22.26% minimum precision) to ensure positive merchant unit economics.

3-Round Mining Cooldown

Residual mining clusters enforce a mandatory 3-round cooldown per feature combination to avoid cycling or over-mutating on transient single-day false-negative spikes.

Storyline & Lifecycle

How Aegis Evolved: Genesis to Production Proof

Click through the 4 phases below to trace how the engine adapted to concept drift and verified its performance.

Rounds 1–3 · Initial GenesisDays 0–55 · Pre-Drift Training

Genesis Baseline

₹24,312.15
Initial Training Net Savings

The Generator & Reflector agents analyzed early baseline fraud patterns (simple device reuse and low-value impulse orders) to create a verified 3-rule ensemble without seeing any future drift.