LiyaEngine Docs

Self-healing

Find what your AI keeps getting wrong, check a fix against the evidence, and apply it only with a person's approval.

Dashboard

An AI product fails in patterns: the same passage gives a wrong answer, the same agent keeps hitting its step limit, a stale memory note keeps steering replies. Self-healing finds those patterns by counting, drafts a fix, checks the fix against the evidence, and hands it to a person. It never changes your live configuration on its own.

It never deploys

The most self-healing can do without being asked is put a fix in as a draft. A draft goes live only when a person deploys it, under the project's release rules. There is no setting that deploys.

What it looks at

Runs that keep failing

An agent or workflow whose live version fails clearly more often than the one before it.

Passages that look wrong

Knowledge passages that corrections keep counting against. Three corrections flag a passage for review.

Memory notes that hurt

Notes in an agent's memory that appear to be steering answers the wrong way.

Findings and proposals

Findings are what the system noticed: the evidence, and, where one exists, a checked fix. For a flagged passage you can draft a revised wording from the corrections that flagged it and see it checked against the sources before anything changes.

Proposals are changes worth making, each with the evidence behind it: rolling an agent back to the version before, or raising an agent's step limit when it stops at the limit without looping. You stage a proposal, a person deploys it, and the result is measured afterwards like any other change.

What it can do on its own

Two switches let the overnight job stage a draft for you. Both default to off:

SettingWhat stage does
rollback_modeAn agent or workflow whose live version fails clearly more often than the one before gets the older version as its draft.
limit_modeAn agent that keeps stopping at its step or tool-call limit, and is not looping, gets the limit raised by half in its draft.

The job runs nightly at 03:30 UTC, stages at most three proposals a night, and never touches an agent or workflow that already has a draft. A separate, metered option samples a share of answers and checks them with a model, capped at a daily spend you set.

Giving it evidence

Nobody watches a conversation your application runs, so your application reports a wrong answer. POST /v1/corrections says which answer was wrong and what it should have said, and counts against the passages the answer most likely used. The member assistant tutorial shows it end to end.

In the dashboard

Open Self-healing. Findings lists what was noticed, with a checked fix where there is one. Proposals lists the changes worth making, with the evidence. Both are for supervisors and above.

On this page