feat: add secure OJBench alpha adapters - #4
Merged
Conversation
|
✅ Benchmark documentation has been automatically updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ojbench_pythonandojbench_cppalpha tasks with the official 232-problem language tracks and eight epochs for Pass@1/Pass@8Security boundary
The container drops all capabilities, restores only
SYS_PTRACEas required by DMOJ to supervise its child, usesno-new-privileges, disables networking, and bounds memory/PIDs. Generated programs remain under DMOJ's syscall and filesystem policies; the mounted/problemstree is not readable by submissions.A malicious Python submission attempting to read
/problems/NOI/loj-2083/init.ymlreceived DMOJIRrather than test content.Validation
pre-commit run --all-filespytest— 474 passed, 11 skippedloj-2083judging — Python and C++ wrong submissions returnedWAover 20 casesloj-3758became visible through the existing read-only bind mountAlpha gates
The complete 7.85 GB problem corpus has not yet been exercised across all custom validators, and no credentialed model Pass@1/Pass@8 run has been completed. Both registry IDs intentionally remain alpha until those broader validation gates pass.