Repository navigation
Own code Grader execution in one lifecycle - #1286
Merged
Merged
Conversation
This was referenced Oct 25, 2026
Merged
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
Code Graders own packet preparation, snapshotting, supervised checks and failure classification through one operation returning completed Check records.
Closes #1285
Evidence
Seams under test: the Experiment CLI (saved private Scores, interruption/resume, repository/report confinement and cleanup), the Trial CLI (shared Reports), and the existing Model Grader Experiment regressions (redaction).
After: one
code_grader::execute(repository, reports, checks, timeout, caps)operation returns completed Check records. Its private implementation retains the packet and launcher evidence through supervised process cleanup. The ordered-check test and new timeout, interruption/resume, special-file and Git confinement regressions pass through the Experiment command.cargo test --test experiments --test trial -- --nocapture: 78 Experiment tests and 25 Trial tests passed; two fixture subprocess entry points intentionally ignored.cargo check --all-targets,cargo fmt --check, andcargo clippy --all-targets -- -D warnings: passed./usr/bin/time -p scripts/affected-tests main: passed againstmainatf298420d30f7535cd04fd1af5031751514f8271d; selectedcargo nextest run, with 2,818 passed, 60 skipped and zero failures across 63 binaries. Wall time: 1,628.96 seconds (27m09s), including 1m54s compilation; test execution: 1,512.926 seconds. Eight existing integration/recovery tests were reported slow. Timings include this host's load and cache state.88cfe834: Linux tests, macOS gate, site and Console tests, both platform artifact builds and the release-smoke gate. Conditional full macOS/release-publishing jobs were skipped by CI policy.Merge Danger
Door: two-way
Blast Radius: Graders
Retained Check, Reports and Score formats stay compatible.
Unaddressed findings
Standards
None. Independent review returned zero findings.
Spec
None. Independent review returned zero findings.
Both reviewers read all ten changed files, including supporting code and standards. Unread changed files: none. Generated-output exclusions: none. Full reports with each axis's final files-read list are retained in the Session artifacts at
.thirdshift-review-q5jPbt/standards.mdand.thirdshift-review-q5jPbt/spec.md.Security
None unaddressed. Focused security review of the
f298420d30f7535cd04fd1af5031751514f8271d...HEADdiff (guidance mode, no findings fixed, no code changed by this review).copy_repositorymoved byte-identical fromsrc/evals/experiment/grading.rstosrc/sandbox/code_grader.rs; reportblindmoved identical (visibility only) fromsrc/evals/experiment/model_grader.rstosrc/trial/reports.rs; sandbox launch, confined Git origin rewrite,--clearenvenvironment, launcher-owned startup-status check, and the interruption → OOM → startup → ordinary-check classification order are unchanged. The only production caller already passed caps, so requiring&Capsdrops only the standalone-testNonepath.sandbox::code_grader_git_rewrite_stays_inside_its_snapshot(now covers both.git-directory and.git/configsymlinks through the Experiment command),sandbox::code_graders_cannot_read_arm_labels_from_mountinfo,sandbox::code_graders_see_reports_and_repository_but_no_trial_logs_or_arm_paths,sandbox::code_grader_exec_failure_voids_trial,code_graders::snapshot_preserves_files_directories_and_symlinks_but_skips_special_files, plus timeout/interruption cleanup and 12 model-grader blinding regressions and 25 Trial tests.SECURITY.mdor threat model found; reviewed against the skill's resource/file-handling, access-control, data-isolation, and chained-trust-boundary classes. No introduced finding had a failing proof-of-concept, so nothing was fixed here.Built with codex · gpt-6.1-sol · xhigh
Security review outcome
No unaddressed introduced findings.