PROTHAM commited on
Commit
c70d39c
Β·
1 Parent(s): 3424779
Files changed (1) hide show
  1. README.md +24 -12
README.md CHANGED
@@ -29,11 +29,12 @@ Every step produces a real HTTP call. The grader is fully deterministic: no LLM,
29
  |---|---|
30
  | **Framework** | OpenEnv (openenv-core 0.2.3) |
31
  | **Tasks** | 4 difficulty levels β€” 12 tasks total |
32
- | **Max Steps per Episode** | Dynamic (5 for Easy/Medium, 10 for Hard/Expert) |
33
- | **Reward Range** | 0.0 – 1.0 |
34
- | **Grader** | Fully deterministic (no LLM), robust to negative reward hacking |
 
35
  | **Mock API** | Internal FastAPI router, same container |
36
- | **State Reset** | Secure `/_admin/reset` endpoint guarantees strict episode isolation |
37
  | **Port** | 7860 (HF Spaces) |
38
 
39
  ---
@@ -119,21 +120,32 @@ Advanced RL environment forcing pure systematic exploration and state tracking.
119
  ## Reward Function
120
 
121
  ```
122
- reward = schema_match_score Γ— attempt_bonus
123
  attempt_bonus = max(0.0, 1.0 βˆ’ (attempt / max_steps) Γ— 0.15)
 
 
 
124
  ```
125
 
126
  Agents are rewarded more for solving tasks in fewer steps. Partial credit is given at every step:
127
 
128
  | HTTP Status Received | Partial Reward | Meaning |
129
  |---|---|---|
130
- | 0 | 0.00 | Request never sent / connection error |
131
- | 401 / 403 / 404 | 0.05 | Hit the endpoint, auth failed |
132
- | 405 / 415 | 0.10 | Auth ok, wrong method or content-type |
133
- | 422 | 0.15 | Auth ok, body validation failed |
134
- | 429 | 0.20 | Hit endpoint, needs rate limit handling |
135
- | 200 (schema mismatch) | 0.25 | Right status, wrong response structure |
136
- | 200 (schema match) | 0.85–1.00 | Correct β€” higher reward for fewer attempts |
 
 
 
 
 
 
 
 
137
 
138
  ---
139
 
 
29
  |---|---|
30
  | **Framework** | OpenEnv (openenv-core 0.2.3) |
31
  | **Tasks** | 4 difficulty levels β€” 12 tasks total |
32
+ | **Max Steps per Episode** | Dynamic (10 by default) |
33
+ | **Reward Range** | 0.001 – 0.999 (Strictly bounded) |
34
+ | **Curriculum** | Supports automatic difficulty progression (`task_id: "auto"`) with exploration bonuses |
35
+ | **Grader** | Fully deterministic (no LLM), robust to negative reward hacking. Supports multi-step stateful evaluation. |
36
  | **Mock API** | Internal FastAPI router, same container |
37
+ | **State Reset** | Secure `/_admin/reset` injects completely dynamic schemas, tokens, and routes per episode! |
38
  | **Port** | 7860 (HF Spaces) |
39
 
40
  ---
 
120
  ## Reward Function
121
 
122
  ```
123
+ base_score = schema_match_score
124
  attempt_bonus = max(0.0, 1.0 βˆ’ (attempt / max_steps) Γ— 0.15)
125
+ exploration_bonus = 0.05 per successfully reached novel endpoint
126
+
127
+ reward = round(min(0.999, max(0.001, base_score Γ— attempt_bonus + exploration_bonus)), 4)
128
  ```
129
 
130
  Agents are rewarded more for solving tasks in fewer steps. Partial credit is given at every step:
131
 
132
  | HTTP Status Received | Partial Reward | Meaning |
133
  |---|---|---|
134
+ | 0 | 0.001 | Request never sent / connection error |
135
+ | 401 / 403 / 404 | ~0.05 | Hit the endpoint, auth failed |
136
+ | 405 / 415 | ~0.10 | Auth ok, wrong method or content-type |
137
+ | 422 | ~0.15 | Auth ok, body validation failed |
138
+ | 429 | ~0.20 | Hit endpoint, needs rate limit handling |
139
+ | 200 (schema mismatch) | ~0.25 | Right status, wrong response structure |
140
+ | 200 (schema match) | 0.85–0.999 | Correct β€” higher reward for fewer attempts |
141
+
142
+ ---
143
+
144
+ ## πŸš€ Advanced Environment Capabilities
145
+
146
+ * **Dynamic Data Generation**: To destroy brute-force LLM memorization, the `/_admin/reset` logic generates random `uuid`-based API tokens and randomly shifts required JSON key structures (e.g. `body["name"]` vs `body["dynamic_item_field"]`) at the start of every episode.
147
+ * **Exploration Bonus & Curriculum**: Agents receive a steady $+0.05$ reward for investigating new HTTP routes successfully. By specifying `task_id="auto"`, the RL environment tracks cross-episode metrics, automatically promoting the model's difficulty curriculum without external scaffolding!
148
+ * **Multi-Step Array Grading**: The deterministic grader processes tasks over multi-step state arrays. Tasks like `expert_stateful_chain` require sequenced POST & DELETE combos cleanly scored progressively.
149
 
150
  ---
151