sqy201x's picture
Add files using upload-large-folder tool
778ecca verified
Raw
History Blame Contribute Delete
990 Bytes
"""Stub solution module — agents must overwrite this file.
Code-task bundles (HumanEval, MBPP, LiveCodeBench, ...) ship the
canonical upstream solution at `solution/_reference.py` and this
stub at `solution/solution.py`. The pytest verifier imports from
`solution.solution`, so any attempt to run the tests against this
stub fails loudly with NotImplementedError instead of silently
passing on a pre-shipped answer.
- Non-oracle agents: must overwrite `solution.py` with their own
attempt (the file the pytest tests import from).
- OracleAgent: `solve.sh` (written by `oracle_copy_reference_solve_script`)
copies `_reference.py` over `solution.py` before the verifier runs,
so oracle smoke trials still pass.
"""
def __getattr__(name: str):
raise NotImplementedError(
f"solution.solution.{name!r} not implemented — the agent must "
f"replace this file with a real solution. Oracle agents do "
f"this via solve.sh, which copies _reference.py."
)