Repository navigation
Allow Trial review fixes while protecting grading inputs - #1348
Merged
Merged
Conversation
The post-session integrity read follows input symlinks, including the issue file. A FIFO blocks that read, and a device such as /dev/zero never ends. Both sit in the supervisor, outside the Trial memory cap and timeout. Open the target nonblocking and hash only a regular file, so a swapped FIFO or device voids the Trial instead of stalling grading.
The pass-through launcher shares the temp directory that holds the pre-session repository copy. A review session can edit that copy and make code checks pass against code the session wrote. Seal the copy with a digest taken before the session, and void a successful Trial when the copy no longer matches. Symlinks are not followed, and a FIFO or device cannot block the comparison.
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
Closes #1341
Evidence
review_commits_and_repository_reports_are_graded_for_both_sessionsfailed withrepository_changed;session_edits_cannot_pass_checks_on_the_prepared_repositorylet edited code pass a check.After: both regressions pass. An Experiment CLI regression confirms both suites' reports reach model grading after committing a fix.
cargo fmt --check,cargo clippy --all-targets -- -D warnings, all 50 site tests, all 15 Trial execution tests, and the full Experiment file (81 passed, 1 ignored) passed./usr/bin/time -p scripts/affected-tests mainran for 1245.81 seconds including compilation, then stopped at the existingpartial_muse_and_opencode_messages_are_not_successfixture with an OpenCode prompt-delivery broken pipe. That exact test passed on rerun; the entirecargo test --test skillfile also passed (16 passed, 1 ignored). No source changes followed this transient failure.Test seams: Trial execution (
Execution::run) with scripted external Arms and real Git repositories; Experiment CLI with the existing fake Harness.Review
Unaddressed findings
Standards
None.
Spec
None.
Security
None.
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Revert restores the previous Trial integrity policy; no stored data migration.
Blast Radius: Evals
Review work may change ordinary repository state. Inputs and reviewed commits remain protected, and checks grade a private copy captured before the session.
Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh