This PR integrates and enhances compatibility for **Decision Engine (Euclid)** rule evaluation within Hyperswitch. It focuses on aligning the internal rule model with the newer `StaticRoutingAlgorithm::Advanced(Program)` structure and improves error parsing and output evaluation across the routing system.
To implement this **search_filter** feature, you'll need to modify these architectural layers:


**1. Core Business Logic**
   - `crates/router/src/core/errors.rs`
   - `crates/router/src/core/payments/routing/utils.rs`
   - `crates/router/src/core/routing.rs`

**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (4 changes)
- Extend existing types with new fields (7 changes)
- Add conditional logic for feature flags or filtering (3 changes)

**Detailed Identifier Changes:**


Commit 1ed2f210:
Files to modify:


**crates/router/src/core/errors.rs**
  Modify existing code

**crates/router/src/core/payments/routing/utils.rs**
  Modify existing code

**crates/router/src/core/routing.rs**
  Modify existing code
{"pr_number": 8346, "pr_title": "refactor: add compatibility for decision-engine rules", "merged_at": "2025-06-16T10:45:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/payments/routing/utils.rs", "crates/router/src/core/routing.rs"]}, "change_types": {"structs_added": 2, "functions_added": 4, "enums_added": 1, "fields_added": 7, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}