dwaynefernandes05 commited on
Commit
1b6193d
Β·
verified Β·
1 Parent(s): 48d7cc1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +39 -3
README.md CHANGED
@@ -1,10 +1,46 @@
1
  ---
2
- title: Fraud Rl Agent
3
  emoji: πŸ“ˆ
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
7
  pinned: false
8
  tags:
9
- - openenv
10
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Ecommerce Fraud Rl Agent
3
  emoji: πŸ“ˆ
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
7
  pinned: false
8
  tags:
9
+ - openenv
10
+ ---
11
+ # E-Commerce Return Fraud Agent
12
+
13
+ ## 🎯 Environment Description & Motivation
14
+ Rule-based fraud detection systems are rigid and easily bypassed by sophisticated actors, while traditional machine learning models lack the reasoning capabilities to handle missing data or nuanced edge cases. This OpenEnv environment simulates a real-world **E-Commerce Return Fraud Risk Assessment** desk. Agents must evaluate streaming transactional data and apply business logic to preserve Customer Lifetime Value (CLV) while aggressively halting return fraud.
15
+
16
+ This environment bridges the gap between static tabular data analysis and agentic reasoning, providing a benchmark for LLMs to demonstrate multi-step logical gating, boundary math, and null-value handling in a high-stakes financial context.
17
+
18
+ ## πŸ“Š Action and Observation Spaces
19
+
20
+ ### Observation Space
21
+ The environment emits a JSON state representing a user's transaction profile:
22
+ * `return_rate` (float | null): The historical percentage of items returned.
23
+ * `account_age_days` (int | null): The tenure of the customer account.
24
+ * `linked_accounts` (int | null): Number of known alternate accounts matching the user's hardware/IP.
25
+
26
+ ### Action Space
27
+ The agent must respond with a strictly formatted JSON object dictating the business action:
28
+ * `{"decision": "APPROVE"}`: Process the return normally.
29
+ * `{"decision": "REJECT"}`: Deny the return due to policy violation.
30
+ * `{"decision": "REVIEW"}`: Flag for human operator intervention (costs operational OPEX).
31
+
32
+ ## πŸ† Task Descriptions & Difficulty
33
+
34
+ 1. **Easy Task (Baseline Logic):** Tests basic rule adherence. Fraudulent behavior is obvious (e.g., extremely high return rates paired with brand-new accounts).
35
+ 2. **Medium Task (Missing Data & Paranoia):** Introduces `null` values into the data stream. Agents must safely route ambiguous cases to `REVIEW` without hallucinating or panicking on missing constraints.
36
+ 3. **Hard Task (Boundary Evasion):** Simulates real-world fraudsters intentionally aging their accounts or manipulating linked hardware profiles to sit exactly on the boundary of heuristic rules. Tests the model's mathematical precision and resistance to inherent bias against "perfect" `0.0` return rates.
37
+
38
+ ## πŸš€ Setup and Usage
39
+
40
+ **Local Installation:**
41
+ ```bash
42
+ git clone [https://huggingface.co/spaces/YOUR_USERNAME/fraud-rl-agent](https://huggingface.co/spaces/YOUR_USERNAME/fraud-rl-agent)
43
+ cd fraud-rl-agent
44
+ pip install uv
45
+ uv lock
46
+ pip install openenv-core python-dotenv openai pydantic