| title | Support Queue OpenEnv |
|---|---|
| emoji | 📨 |
| colorFrom | gray |
| colorTo | yellow |
| sdk | docker |
| pinned | false |
Support Queue OpenEnv is a deterministic customer-support benchmark for OpenEnv Round 1 style evaluation. It simulates three common support tasks and exposes standard reset, step, and state APIs.
- Round 1 deep validation: passed (submission #74)
- Freeze tag:
round1-submission74-validated - Runtime contract: score remains strictly within
(0, 1)and deterministic checks are enforced
ticket_triage: route a login-related ticket and provide a useful diagnostic responsereply_drafting: draft a policy-safe response for a refund requestescalation_resolution: escalate a billing dispute with a compliant handoff
envs/support_queue_env/: environment logic, models, and task registryenvs/support_queue_env/server/: FastAPI server and environment wrapperweb/index.html: browser testing dashboardinference.py: baseline inference entrypoint (required at repo root)tests/: contract, endpoint, and inference testsscripts/: preflight, evidence, and probing utilitiessubmission-artifacts/: generated evidence and audit snapshotsDockerfile: Hugging Face Space compatible runtime image
python -m venv .venv
& .\.venv\Scripts\Activate.ps1
pip install -e .[dev]Run all tests:
python -m pytest -qThe dashboard is served at /ui/ and provides manual testing for:
POST /ui-api/resetPOST /ui-api/stepGET /ui-api/state
The dashboard is local-only by default. It is disabled unless ENABLE_LOCAL_TEST_DASHBOARD=1, so HF Space runtime and baseline inference behavior remain unchanged.
Start locally:
$env:PYTHONPATH="envs;."
$env:ENABLE_LOCAL_TEST_DASHBOARD="1"
python -m uvicorn support_queue_env.server.app:app --host 127.0.0.1 --port 7860Open: http://127.0.0.1:7860/ui/
- Select a
TaskandSeed - Click
Load Example(optional) to prefill a tested scenario - Click
Resetto initialize task state - Click
Stepto evaluate a route/reply pair - Use
Stateto inspect step count and current environment state - Review reward and JSON response in the right-side log panel
Ticket triage - strong- route:
support - expected behavior: high score with login/recovery-focused wording
- route:
Reply drafting - policy safe- route:
support - expected behavior: good score with refund-policy-safe language
- route:
Escalation resolution - compliant handoff- route:
escalate - expected behavior: high score with explicit escalation + handoff context
- route:
Anti-shortcut check - repetitive spam- route:
support - expected behavior: lower score due to repetitive keyword stuffing
- route:
Use Run Example (Reset + Step) for one-click execution of the selected scenario.
The root inference.py uses OpenAI-compatible API settings:
API_BASE_URLMODEL_NAMEHF_TOKEN
Example:
$env:API_BASE_URL="https://router.huggingface.co/v1"
$env:MODEL_NAME="Qwen/Qwen2.5-72B-Instruct"
$env:HF_TOKEN="hf_your_token"
$env:PYTHONPATH="envs;."
python .\inference.pyLog output contract:
[START] task=<task_name> env=<benchmark> model=<model_name>
[STEP] step=<n> action=<action_str> reward=<0.00> done=<true|false> error=<msg|null>
[END] success=<true|false> score=<0.00-0.99> steps=<n> rewards=<r1,r2,...,rn>
Official demo entrypoint: inference.py
This script runs the benchmark tasks and prints [START], [STEP], and [END] logs in the expected format.
Quick demo run:
$env:API_BASE_URL="https://router.huggingface.co/v1"
$env:MODEL_NAME="Qwen/Qwen2.5-72B-Instruct"
$env:HF_TOKEN="hf_your_token"
$env:PYTHONPATH="envs;."
python .\inference.pyExpected result:
- Script completes without crash
[END]is always emitted- Per-task scores remain strictly in
(0, 1)
- Public GitHub repository: https://github.com/sagar-grv/meta-rl
- Deployed Hugging Face Space demo: https://huggingface.co/spaces/sagar-grv/anything_you_want
- Environment implementation:
envs/support_queue_env/ - Requirements file:
requirements.txt - Demo script:
inference.py - Documentation:
README.md
Local preflight:
$env:PYTHONPATH="envs;."
python .\scripts\submission_pipeline.py preflight --base-url http://127.0.0.1:7860Strict live evidence pack:
$env:PYTHONPATH="envs;."
$env:HF_SPACE_ID="sagar-grv/anything_you_want"
$env:SPACE_BASE_URL="https://sagar-grv-anything-you-want.hf.space"
$env:EXPECTED_SPACE_SHA="<commit-sha>"
$env:HF_TOKEN="<hf-token>"
python .\scripts\submission_evidence.py --strict --output .\submission-evidence.mdThe Docker image serves on port 7860 and is compatible with Hugging Face Spaces.