Problem
Sber runs a GigaChat-based agent for ATM incidents. It walks standard operating procedures (SOPs), which are decision trees, to pick an action such as closing a ticket or sending a reboot command. Experts wrote hints for hard tree nodes by hand. As procedures multiplied and processes changed, maintaining hints took more effort and reduced the benefit of automation. Hints also piled up, duplicated each other and partly conflicted.
Example from the article: for the question "Was further work required to fix the incident's problem?", the agent has to compare the incident with completed tickets. Without strict hints the model starts to generalize. In hard cases one question has up to 19 hints.
Solution in brief
A second agent loop improves the production agent. It reruns failed cases, finds the cause of each error, writes or edits a hint, and accepts the change only if the case is fixed and reference cases still pass. A deduplication pass merges similar hints so the rule set stays small.
Questions this case answers
- How to improve the reasoning logic of a production LLM agent from expert-labeled failures when hand-written hints no longer scale with the number of procedures
- How to accept an automatically generated prompt change only if it fixes failing cases without regressions on correct ones
- How to keep the expert hints of an LLM agent up to date when procedures and scenarios keep growing and changing?
- How to improve an LLM agent's decision logic automatically from labeled failure cases?
Tools and methods
- Schema Guided Reasoning (SGR) with structured output — fixed reasoning steps and a field
insert_rulesfor hints - Analyzer and Evolver agents — find root causes, then create or edit hints
- Regression test on reference cases — gate for every hint change
- LLM deduplication of hints — merges semantically close hints
- CatBoost classifier with LLM fallback — picks the SOP
- GigaChat, Pydantic — agent model and output schemas
Google or a one-time email code. No password.