chore: review in read-only (#7593)

This commit is contained in:
jif-oai
2025-12-04 18:01:12 +00:00
committed by GitHub
parent 2b5d0b2935
commit 291b54a762
2 changed files with 6 additions and 0 deletions

View File

@@ -573,6 +573,10 @@ async fn review_input_isolated_from_parent_history() {
review_prompt,
"user message should only contain the raw review prompt"
);
assert!(
env_text.contains("<sandbox_mode>read-only</sandbox_mode>"),
"review environment context must run with read-only sandbox"
);
// Ensure the REVIEW_PROMPT rubric is sent via instructions.
let instructions = body["instructions"].as_str().expect("instructions string");