Spaces:
Sleeping
Sleeping
File size: 1,230 Bytes
dc8501a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | # How To Run (v2)
## 1. Setup
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
```
## 2. Start the environment
```bash
source .venv/bin/activate
uvicorn server.app:app --host 127.0.0.1 --port 8000
```
## 3. Manual API smoke test
```bash
curl -X POST http://127.0.0.1:8000/reset -H 'content-type: application/json' -d '{}'
curl -X POST http://127.0.0.1:8000/step -H 'content-type: application/json' -d '{"action":{"action_type":"query_deploys","service":"worker"}}'
```
## 4. Run inference
```bash
source .venv/bin/activate
export HF_TOKEN="your_hf_token"
export API_BASE_URL="https://router.huggingface.co/v1"
export MODEL_NAME="Qwen/Qwen2.5-72B-Instruct:novita"
export ENV_BASE_URL="http://127.0.0.1:8000"
python inference.py
```
## 5. Verification
```bash
source .venv/bin/activate
pytest unified_incident_env/tests -q
openenv validate .
```
## 6. Reward semantics
- queries reveal evidence but do not directly mint positive breadcrumb reward
- remediation actions change the world state
- `run_check` verifies recovery explicitly
- `declare_resolved` succeeds only after objective checks pass
Public benchmark score is deterministic and separate from the per-step training reward.
|