Confident AI Failure Modes
Use this skill to walk someone through the Failure modes page of the
Confident AI web app. A failure mode is one recurring way their AI app
goes wrong, written up as a document: what is happening, how bad it is, the
traces that show it, a suggested fix, and a metric to keep watching it.
Everything here happens in the app. Name each button exactly as written, in
the order the user will meet it, and say where it is. If you are a coding
agent, you cannot do these steps for the user: explain them, then wait.
When This Skill Applies
- The user wants to know why their app is failing, or what to fix first.
- They are on the Failure modes page and ask what something there does.
- They want failure modes found for them on a schedule.
Prerequisites
- A project that receives traces. Without traces there is nothing to read.
- Something that marks a trace as having an issue: a failing metric, or a
classifier label that counts as failing. Generation reads only traces
with issues.
Workflow
- Open the page. In the column of icons down the left, pick Failure
modes. The list of failure modes is on the left; the open one's document
is on the right. With none yet, the list says "No failure modes yet".
- Generate. Press Generate from traces at the top of the list. A run
starts, shows its progress in the list, and adds failure modes as it writes
them. If the project is missing what a run needs, a dialog says what.
- Change what a run reads, if needed. Press the gear next to Generate
from traces and pick Generation settings. There the user chooses
traces, spans or threads (the button's last word follows this), the
Period, how many with issues to analyse, and, under More settings,
which failing labels and metrics count as an issue.
- Read a failure mode. Pick one in the list. Its document has:
- Properties: Severity, Status and what it applies to.
- Activity: what flagged it, and when it was first and last seen.
- Sub-patterns: narrower versions of the same failure.
- Suggested fix, How to monitor, what is happening, its impact, the
evidence, the sources and the hotspots.
- Decide on it. A failure mode an analysis suggested is Needs review.
Press Accept to keep tracking it, which makes it Tracked, or
Reject to drop it. Sub-patterns are accepted or rejected the same way.
- Start with the worst. Use Sort and Filter above the list to put
the highest severity or the most recently seen first.
- Keep it from changing. Lock document, in the toolbar above the
document, stops its severity and sub-patterns being edited. It reads
Unlock document while locked.
- Share it. Copy page, in the same toolbar, copies the document as
Markdown. Pasted into a coding agent, that is the brief for fixing the app.
- Run it on a schedule. Press the gear again and pick Automatic
generation. Turn on Generate automatically, then set how many new
traces with issues start a run and how often to check for them.
Other Controls
- New failure mode, at the top of the list, creates one by hand.
- The ⋯ menu on a failure mode has Regenerate document, which writes
the document again, and Delete.
- Connect GitHub, in the gear's menu, connects the repository with the
app's code so documents can point at the code behind a failure. It reads
Codebase once connected, and is not shown on self-hosted installs.
Core Principles
- Use the app's own words for every button and status. Do not rename them.
- Say where a control is before saying what it does.
- Never claim a run was started or a failure mode was changed. Only the user
does that, in the app.
- A failure mode describes the app's behaviour. Fixing it is separate work in
the user's own code; offer to help with that once they have the document.
Final Report
Tell the user:
- where the Failure modes page is and what the next button to press is;
- what they will see when the run finishes;
- that Copy page gives them a failure mode to hand to a coding agent.