Spaces:
Sleeping
Sleeping
|
Download PROBLEM_DAY_PLAYBOOK.md from arywk-40/code-review-env: direct link, hf CLI and curl.
- Browser
- Download file 5.2 kB
-
https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/PROBLEM_DAY_PLAYBOOK.md
- Command line
-
hf download hf://spaces/arywk-40/code-review-env/PROBLEM_DAY_PLAYBOOK.md
-
curl -L -o PROBLEM_DAY_PLAYBOOK.md https://huggingface.co/spaces/arywk-40/code-review-env/resolve/main/PROBLEM_DAY_PLAYBOOK.md
5.2 kB
Problem Day Playbook
This repo is intentionally split into:
- invariant infrastructure we can finish before the problem statement
- domain-specific logic we swap once the task is revealed
The goal is to make problem-day work mostly a focused domain integration, not a full-stack rebuild.
What Is Already Stable
These pieces should stay mostly unchanged across domains:
- app.py: FastAPI API surface, HTTP endpoints, WebSocket endpoint, session handling
- Dockerfile: container runtime and HF Spaces packaging
- inference.py: root inference entrypoint using
OpenAI(...) - scripts/validate.py: submission validation checks
- tests/test_api.py: API contract coverage
- openenv.yaml: metadata shell and endpoint manifest
What Must Change When The Problem Drops
These are the main swap surfaces:
- environment/tasks.py
- environment/graders.py
- environment/reward.py
- environment/models.py if the action or observation schema changes materially
- README.md
- openenv.yaml
- inference.py only if the prompting/action parsing needs domain-specific behavior
Core OpenEnv Principles To Preserve
Based on the OpenEnv docs you shared, the final environment should keep these properties:
- Type-safe
Observation,Action, andRewardmodels - Clean
reset(),step(action), andstate()environment lifecycle - Container-first deployment with reproducible runtime behavior
- Clear client/server separation
- Session isolation per HTTP session or WebSocket connection
- Minimal assumptions in the transport layer so the domain logic stays swappable
Problem-Day Sequence
- Read the official task statement carefully and identify:
- the real-world task
- the unit of work
- what the agent can observe
- what the agent can do
- what success looks like
- Rewrite the domain schema in environment/models.py:
- observation fields
- action parameters
- any domain metadata
- Replace the task registry in environment/tasks.py:
- add at least 3 tasks
- easy, medium, hard progression
- realistic descriptions
- Implement deterministic graders in environment/graders.py:
- score range
[0.0, 1.0] - no randomness
- partial credit where appropriate
- score range
- Rewrite reward shaping in environment/reward.py:
- progress signals every step
- penalties for wasteful or invalid actions
- keep normalization bounded
- Update prompting or fallback behavior in inference.py
- Update metadata and docs:
- Run final checks:
python -m pytest -qpython scripts/validate.py
Domain Design Checklist
Before we call a domain “done”, it should pass this smell test:
- Is this something a human actually does?
- Are the observations realistic enough for an agent to reason over?
- Are the actions explicit and constrained?
- Do the easy, medium, and hard tasks differ meaningfully?
- Does the grader reward real progress rather than a single shortcut?
- Could a generic strong LLM attempt this sensibly from the observation?
Submission Gates
We should assume the validator will care about all of the following:
- the Space deploys and responds
/healthreturns200/reset,/step,/state,/tasks,/graderbehave correctlyopenenv.yamlis present and coherent- the Dockerfile builds
- root inference.py exists and runs without crashing
- at least 3 tasks exist
- graders return non-constant, bounded scores
Nice-To-Have But Not Blockers
- richer WebSocket client examples
- stronger baseline prompting
- CI
- benchmark scripts
- sample notebooks
These help polish, but the core win on problem day is a strong domain layer plus reliable validation.
Judge Optimization
Use PROBLEM_DAY_SCORECARD.md to compare candidate domain interpretations and to sanity-check the final build against the actual judging weights:
- real-world utility:
30% - task & grader quality:
25% - environment design:
20% - code quality & spec compliance:
15% - creativity & novelty:
10%