RevLogiXenv / openenv.yaml
AdityaProCoder
docs: clarify benchmark, scoring modes, and remove legacy scaffold
0486aaa
Raw History Blame Contribute Delete
3 kB
spec_version: 1
name: RevLogiXenv_v0
version: 0.2.0
description: RevLogiXenv: OpenEnv-compatible reverse-logistics environment for e-commerce returns triage
type: space
runtime: fastapi
app: server.app:app
port: 8000
metadata:
domain: reverse_logistics
difficulty_levels:
- easy
- medium
- hard
tags:
- openenv
- reinforcement-learning
- logistics
- fraud-detection
- decision-making
tasks:
easy:
description: "Moderate decision complexity - corresponds to previous medium difficulty"
num_items: 20
fraud_enabled: false
noise_level: medium
delay_type: fixed_3
scoring:
type: margin
range: [0.01, 0.99]
medium:
description: "High uncertainty - corresponds to previous hard difficulty"
num_items: 30
fraud_enabled: true
noise_level: hard
delay_type: variable
scoring:
type: margin
range: [0.01, 0.99]
hard:
description: "Extreme uncertainty + adversarial noise - new extra-hard difficulty"
num_items: 40
fraud_enabled: true
noise_level: extra_hard
delay_type: variable
scoring:
type: composite
range: [0.01, 0.99]
weights:
margin: 0.6
fraud_f1: 0.4
action_space:
type: structured
model: ReturnsAction
fields:
action:
type: enum
values:
- resell_full
- resell_discount_15
- resell_discount_30
- resell_discount_50
- refurbish
- dispose
- flag_fraud
- inspect
- wait
observation_space:
type: structured
model: ReturnsObservation
fields:
- current_item
- remaining_items
- pending_resolution_count
- running_ledger
- last_three_resolutions
- reward_detail
- done
- reward
- metadata
state_space:
type: structured
model: ReturnsState
fields:
- episode_id
- step_count
- task
- episode_clock
- total_ledger
- item_queue_size
- pending_queue_size
- resolution_history_size
- total_processed
- total_flagged_fraud
- metadata
reward:
type: shaped
model: Reward
range: [0.01, 0.99]
notes:
- Per-step reward is shaped from raw economics and bounded to [0.01, 0.99].
- Hard-task final grading combines margin and fraud F1.
scoring:
reward_range: [0.01, 0.99]
success_threshold: 0.5
# Inference-mode score: mean of per-step shaped rewards, clamped to (0.01, 0.99).
# The hackathon Phase 2 validator derives the task score from the rewards list
# emitted by inference.py, so this must match what inference.py computes.
score_formula: mean(step_rewards)
# Grader-mode score (Python API via Grader class):
# easy/medium: final_score = oracle_margin_score (oracle-normalized profit)
# hard: final_score = 0.6 * oracle_margin_score + 0.4 * fraud_f1
# These two scoring modes target different use cases (hackathon validation vs
# local Python-based evaluation) and are intentionally kept separate.