Spaces:
Sleeping
Sleeping
|
Download .github/copilot-instructions.md from coderMayank69/Synapse_Code_Auditor: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/spaces/coderMayank69/Synapse_Code_Auditor/resolve/main/.github/copilot-instructions.md
- Command line
-
hf download hf://spaces/coderMayank69/Synapse_Code_Auditor/.github/copilot-instructions.md
-
curl -L -o copilot-instructions.md https://huggingface.co/spaces/coderMayank69/Synapse_Code_Auditor/resolve/main/.github/copilot-instructions.md
1.05 kB
Project Guidelines
Code Style
- Use Python 3.11 and type hints for all public functions.
- Keep request/response schemas in Pydantic models under app/models.py.
- Keep grading deterministic; avoid non-deterministic scoring logic.
Architecture
- FastAPI entrypoint is app/main.py.
- Core environment logic is app/env.py with reset, step, and state methods.
- Task definitions live in app/tasks.py.
- Deterministic reward logic lives in app/grader.py.
Build and Test
- Install dependencies: pip install -r requirements.txt
- Run API server: uvicorn app.main:app --host 0.0.0.0 --port 8000
- Validate OpenEnv manifest: openenv validate
- Run baseline script: python app/inference.py
- Build and run container:
- docker build -t synapse-code-auditor .
- docker run --rm -p 8000:8000 synapse-code-auditor
Conventions
- Environment episodes are single-step for scoring consistency.
- Reward must remain within 0.0 to 1.0 with partial credit support.
- API schema compatibility for endpoints /reset, /step, and /state is required.