Skip to content

Allow Trial review fixes while protecting grading inputs - #1348

Merged
JacobStephens2 merged 5 commits into
mainfrom
issue-1341
Oct 25, 2026
Merged

JacobStephens2 merged 5 commits into
mainfrom
issue-1341

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Trial prepares repository
  capture protected inputs + reviewed Git objects and ancestry
  save private repository copy when checks are declared
  run review → allow fixes, commits, local-origin pushes and reports
  verify protected state → grade reports and prepared code

Closes #1341

Evidence

  • Before: review_commits_and_repository_reports_are_graded_for_both_sessions failed with repository_changed; session_edits_cannot_pass_checks_on_the_prepared_repository let edited code pass a check.
    After: both regressions pass. An Experiment CLI regression confirms both suites' reports reach model grading after committing a fix.
  • Each behavioral review finding was reproduced with its exact command, fixed, and retained as regression coverage. All 15 Trial execution tests and both corrected Experiment fixtures pass.
  • 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.
  • Timed local selection: /usr/bin/time -p scripts/affected-tests main ran for 1245.81 seconds including compilation, then stopped at the existing partial_muse_and_opencode_messages_are_not_success fixture with an OpenCode prompt-delivery broken pipe. That exact test passed on rerun; the entire cargo test --test skill file also passed (16 passed, 1 ignored). No source changes followed this transient failure.
  • CI on the exact head passed the full Rust suite, formatting, Clippy, site, Console and macOS gate. Linux/macOS release builds also passed. Reused that successful full-suite result rather than repeating the same full suite.

Test seams: Trial execution (Execution::run) with scripted external Arms and real Git repositories; Experiment CLI with the existing fake Harness.

Review

  • Standards: 1 finding, fixed (shared Python Git helper).
  • Spec: 3 findings, fixed (symlink input contents, effective Git ancestry, existing fixtures).
  • Both axes read all 12 changed files. Unread changed files: none. Generated-output exclusions: none.

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

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.
@JacobStephens2
JacobStephens2 merged commit 0ffaaa1 into main Oct 25, 2026
@JacobStephens2
JacobStephens2 deleted the issue-1341 branch October 25, 2026 20:14
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A Trial whose review session commits its fix is always void

1 participant