From 39efb5d9da8292844a9844e01d095702b11ecec4 Mon Sep 17 00:00:00 2001 From: kerry Date: Wed, 30 Sep 2026 23:15:34 +0000 Subject: [PATCH] test(code-quality): allow the bounded semantic cache prompt walkers in the recursion check Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/code_coverage_tests/recursive_detector.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/code_coverage_tests/recursive_detector.py b/tests/code_coverage_tests/recursive_detector.py index 659dc438f2d..e071e177f88 100644 --- a/tests/code_coverage_tests/recursive_detector.py +++ b/tests/code_coverage_tests/recursive_detector.py @@ -72,6 +72,10 @@ IGNORE_FUNCTIONS = [ "_string_leaves", # bounded by the nesting depth of a safe_json_structure output (a finite JSON tree, no cycles possible). "_replace_string_leaves", # bounded by the nesting depth of a safe_json_structure output (a finite JSON tree, no cycles possible). "_sort_processed_sets", # bounded by the nesting depth of the log-record extra it walks (a finite JSON tree, no cycles possible). + "_content_prompt", # bounded by the nesting depth of the request messages or input it walks (a finite JSON tree, no cycles possible). + "_responses_input_parts", # bounded by the nesting depth of the request messages or input it walks (a finite JSON tree, no cycles possible). + "_normalized", # bounded by the nesting depth of the request messages or input it walks (a finite JSON tree, no cycles possible). + "_call_ids", # bounded by the nesting depth of the request messages or input it walks (a finite JSON tree, no cycles possible). "scrub_json_strings", # max depth set (MAX_SCRUB_DEPTH); fails closed by returning "[Filtered]" for anything nested past the cap. ]