From d89592fee6e2d1656775cb39f4ccca5977953d7e Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 14 Sep 2026 05:18:52 -0600 Subject: [PATCH] test: normalize CRLF in the gauntlet script/README source pins (Windows CI) --- src/config/request_context.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/config/request_context.rs b/src/config/request_context.rs index 8a19462..326d11f 100644 --- a/src/config/request_context.rs +++ b/src/config/request_context.rs @@ -8454,7 +8454,10 @@ mod tests { && adversary.contains("never degrades to an ENVIRONMENT marker"), "adversary README must describe a malformed declaration as fail-closed, not a soft marker" ); - let gauntlet = read_to_string(readmes.join("review-gauntlet/README.md")).unwrap(); + // Windows checkouts carry CRLF; the paragraph assertions below span line breaks. + let gauntlet = read_to_string(readmes.join("review-gauntlet/README.md")) + .unwrap() + .replace("\r\n", "\n"); assert!( !gauntlet.contains("Verification commands:"), "review-gauntlet README must not show the prose Verification commands: line" @@ -13204,8 +13207,13 @@ mod tests { fn gauntlet_retry_gate_sentinels_match_verdict_gate() { let scripts = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) .join("assets/agents/review-gauntlet/scripts"); - let retry = read_to_string(scripts.join("retry_gate.py")).unwrap(); - let verdict = read_to_string(scripts.join("verdict_gate.py")).unwrap(); + // Windows checkouts carry CRLF; `slice_between` anchors on "\n)\n". + let retry = read_to_string(scripts.join("retry_gate.py")) + .unwrap() + .replace("\r\n", "\n"); + let verdict = read_to_string(scripts.join("verdict_gate.py")) + .unwrap() + .replace("\r\n", "\n"); for sentinel in [ r"Verdict:\**\s*\**\s*(MERGE-READY|NEEDS-HUMAN)", r"ADVERSARIAL_REVIEW:\s*(CONFORMS|DIVERGES)",