File size: 990 Bytes
b83572f 741e28a b83572f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | """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."
)
|