From 190ffbe57bf9373b775d488b1562ce9b14a9ade3 Mon Sep 17 00:00:00 2001 From: yucheng Date: Sat, 31 Oct 2026 13:52:34 -0700 Subject: [PATCH] test(proxy): pin extraction state and fields out of a refused request's failure log --- tests/unit/proxy/test_common_request_processing.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/proxy/test_common_request_processing.py b/tests/unit/proxy/test_common_request_processing.py index b97a3693e22..26f0fd6727e 100644 --- a/tests/unit/proxy/test_common_request_processing.py +++ b/tests/unit/proxy/test_common_request_processing.py @@ -13350,6 +13350,15 @@ class TestUnroutableModelFailureLogHidesUnscannedContent: {"query": f"email {_RAW_EMAIL}", "instruction": f"email {_RAW_EMAIL}"}, id="rerank-query-and-instruction", ), + pytest.param( + { + "state": f"email {_RAW_EMAIL}", + "fields": { + "contact": {"type": "string", "instructions": f"email {_RAW_EMAIL}", "unit": _RAW_EMAIL} + }, + }, + id="extraction-state-and-fields", + ), ], ) async def test_failure_log_hides_every_field_a_skipped_guardrail_would_have_scanned(self, monkeypatch, body):