Spaces:
Running
Running
File size: 2,277 Bytes
0135a17 | 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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | # IMPLEMENTATION_PLAN.md β Bug Triage Build Plan
> **Deadline:** April 7, 2026, 11:59 PM IST
---
## Build Status
| Component | File | Status |
|-----------|------|--------|
| Typed models | `models.py` | Done |
| Bug dataset (15 reports) | `data/bugs.json` | Done |
| Task 1 grader | `graders/task1_grader.py` | Done |
| Task 2 grader | `graders/task2_grader.py` | Done |
| Task 3 grader | `graders/task3_grader.py` | Done |
| Environment | `server/environment.py` | Done |
| FastAPI server | `server/app.py` | Done |
| Client | `client.py` | Done |
| Baseline script | `baseline.py` | Done |
| Dockerfile | `server/Dockerfile` | Done |
| openenv.yaml | `openenv.yaml` | Done |
| requirements.txt | `requirements.txt` | Done |
| pyproject.toml | `pyproject.toml` | Done |
---
## Remaining: Test + Deploy
### Step 1 β Install dependencies
```bash
cd /Users/anks/Desktop/Meta-Pytorch-Hackathon
pip install -r bug_triage_env/requirements.txt
```
### Step 2 β Run server locally
```bash
uvicorn bug_triage_env.server.app:app --host 0.0.0.0 --port 8000 --reload
```
### Step 3 β Verify all endpoints
```bash
curl http://localhost:8000/health
curl http://localhost:8000/tasks
curl -X POST http://localhost:8000/reset -H "Content-Type: application/json" -d '{"task_id":"task_1"}'
```
### Step 4 β Run a full episode
```bash
# 1. Reset
EPISODE=$(curl -s -X POST http://localhost:8000/reset \
-H "Content-Type: application/json" \
-d '{"task_id":"task_1"}' | python3 -c "import sys,json; print(json.load(sys.stdin)['episode_id'])")
# 2. Step
curl -X POST http://localhost:8000/step \
-H "Content-Type: application/json" \
-d "{\"episode_id\":\"$EPISODE\",\"action\":{\"task_id\":\"task_1\",\"bug_type\":\"crash\"}}"
```
### Step 5 β Docker build + test
```bash
cd bug_triage_env
docker build -f server/Dockerfile -t bug-triage-env .
docker run -d -p 8000:8000 --name bug-triage-env bug-triage-env
curl http://localhost:8000/health
```
### Step 6 β Run baseline
```bash
export OPENAI_API_KEY="your-key"
python -m bug_triage_env.baseline --all-tasks --episodes 5
```
### Step 7 β Deploy to HF Spaces
```bash
openenv push --repo-id <hf-username>/bug-triage-env
```
### Step 8 β Submit
Paste HF Spaces URL before April 7, 11:59 PM IST.
|