The Bos wrapper ran check.py and every candidate process as UID 65534, so a candidate could read the grader copy through /proc/<checker>/cwd and pass without implementing anything. check.py now runs as root on a 0700 grader copy; its subprocesses drop to 65534 and only the work copy and mkdtemp scratch directories are handed over. An audit hook ends the check as UNVERIFIED if candidate code would run inside the checker. 36 tasks run hidden tests inside the candidate process (tests.py style and S500_a2_426889b9a968); they carry isolation-blocked.txt and always grade UNVERIFIED. The importer adds the marker for any extra root *.py. All 74 Bos tasks get the new verify.py and a version bump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
969 B
JSON
37 lines
969 B
JSON
{
|
|
"id": "S500_n2_155",
|
|
"version": "3",
|
|
"family": "motor-sensor-control",
|
|
"source": "bos-qiao/task_factory_500_20260914/envs/S500_n2_155",
|
|
"template": "template",
|
|
"verifier": "verify.py",
|
|
"candidate_files": [
|
|
"task.py"
|
|
],
|
|
"timeout_seconds": 120,
|
|
"fixtures": {
|
|
"gold": "PASS",
|
|
"template": "FAIL",
|
|
"noop": "FAIL",
|
|
"cheat": "FAIL",
|
|
"cheat_reversed_divider": "FAIL",
|
|
"valid_alternative": "PASS"
|
|
},
|
|
"grader_files": [
|
|
"check.py"
|
|
],
|
|
"bos": {
|
|
"source_qid": "new_n2_155_ntc_adc_calibration_domain",
|
|
"origin": "original_authored",
|
|
"image": "python@sha256:78387bc3881b8273120a12ebe6c1ab22b018ccc2c9adf565ae1ac9b536e184ea",
|
|
"budget_s": 600,
|
|
"fixture_scripts": {
|
|
"gold": "gold.sh",
|
|
"noop": "cheat_exit_zero.sh",
|
|
"cheat": "cheat_linear_celsius_interpolation.sh",
|
|
"cheat_reversed_divider": "cheat_reversed_divider.sh",
|
|
"valid_alternative": "valid_alternative.sh"
|
|
}
|
|
}
|
|
}
|