# RetrieX Diagnostics/Regression Hotfix

Patch-only hotfix for the diagnostics/regression tooling.

## Fixed

- `commerce_query.patterns.history_context` is now validated as a regex fragment, not as a full delimited regex.
- `commerce_query.patterns.filter_search_tokens` is now validated as a normal token list, not as a list of regex patterns.
- The regression check for the Shopware query optimizer prompt no longer expects a JSON instruction. The current stable prompt intentionally asks for a plain keyword search query, so the check now validates the actual output instruction.

## Not changed

- No retrieval logic changed.
- No prompt wording changed.
- No shop/search/runtime logic changed.
- No YAML config changed.

## After applying

Clear Symfony cache, then run:

```bash
php bin/console mto:agent:config:validate
php bin/console mto:agent:regression:test
```
