From 00a1ba3c8f7fc9e72b6e778728438bac3d1338b0 Mon Sep 17 00:00:00 2001 From: Justin King Date: Tue, 6 Oct 2026 16:14:23 -0700 Subject: [PATCH] Deprecate recursive planning PiperOrigin-RevId: 994691472 --- eval/public/cel_options.h | 6 ++++++ runtime/runtime_options.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/eval/public/cel_options.h b/eval/public/cel_options.h index 32474e761..d9ebaab13 100644 --- a/eval/public/cel_options.h +++ b/eval/public/cel_options.h @@ -188,12 +188,18 @@ struct InterpreterOptions { // -1 means unbounded. // 0 means disabled (using a heap-based stack machine instead), which is the // default. + ABSL_DEPRECATED( + "The ability to enable recursive planning is being removed in the " + "near future") int max_recursion_depth = 0; // Enable tracing support for recursively planned programs. // // Unlike the stack machine implementation, supporting tracing can affect // performance whether or not tracing is requested for a given evaluation. + ABSL_DEPRECATED( + "The ability to enable recursive planning is being removed in the " + "near future") bool enable_recursive_tracing = false; // Enable fast implementations for some CEL standard functions. diff --git a/runtime/runtime_options.h b/runtime/runtime_options.h index bc6275afb..74ad8ecb7 100644 --- a/runtime/runtime_options.h +++ b/runtime/runtime_options.h @@ -156,12 +156,18 @@ struct RuntimeOptions { // -1 means unbounded. // 0 means disabled (using a heap-based stack machine instead), which is the // default. + ABSL_DEPRECATED( + "The ability to enable recursive planning is being removed in the " + "near future") int max_recursion_depth = 0; // Enable tracing support for recursively planned programs. // // Unlike the stack machine implementation, supporting tracing can affect // performance whether or not tracing is requested for a given evaluation. + ABSL_DEPRECATED( + "The ability to enable recursive planning is being removed in the " + "near future") bool enable_recursive_tracing = false; // Enable fast implementations for some CEL standard functions.