Start
How Cortad audits your AI
How Cortad learns your personas, what an automated audit does with your app, what every reply is asked, and what your coding agent gets back and cannot change.
Cortad audits the AI in your app as an independent third party. Before a change ships, an automated audit plays simulated users against your app on your own machine, with its real prompts, tools, retrieval and database. Once your live app is connected, every session is asked the same behavioral questions. Each audit finding shows the conversations behind it and the line of code it comes from, and your coding agent is one way to act on it.
Personas
A persona is what Cortad has learned about a group of your users who come to your app for the same thing. Cortad learns it from your users' messages: the ones you bring in during setup, then each new one from your live app.
Each persona carries:
- Who its users are, in your app's own terms, such as grade, country and subject for a tutor.
- What they want to do, and how they behave: how much they write, and how often they push back or ask for a person.
- How well your app serves them, and what goes wrong for them, with the conversations behind it.
A persona whose users misuse your app is kept and marked as misuse.
What it analyzes in your code
- Rules: sentences your prompts already state, such as "Never state a refund policy the product does not publish." Each one keeps its file and line.
- Journeys: what people use your product to do, such as a billing question or help with homework.
- Endpoints: each place your app's AI answers.
Before your personas exist, the first automated audit's users are written from these. Your coding agent lists any of them with status.
What an automated audit does
A simulated user written from a persona is a new person who behaves the way that persona's users behave. It is not a replay: each one has a new conversation with your app through your real endpoints, signed in the way a user is. Your app answers with its own model, on its own key.
Where the AI in your app is not a chat, an automated audit can instead build a copy of your app's data from its seed, plant problems whose answers Cortad knows, and score what your app finds.
Every reply is asked behavioral questions: your app's own rules, its journeys, and a set of engineering standards. Each answer is about what that reply did for that user, and says whether code or a model decided it. A question that only describes behavior is counted, never called failed.
What comes back
For each persona: how many of its simulated users achieved their goal, what your app did well with them, where it gave way, and the conversations that show each. Then your app's habits across personas. Last, where each problem comes from in your code, with the file and line.
Read the behavior shows one persona and how to read it.
Your coding agent runs the tests and cannot edit them
Your coding agent can start an automated audit and read its findings. Cortad stores the conversations and the questions, out of your coding agent's reach.
Some conversations are saved to test a fix. Your coding agent never reads them, and a fix is graded on those too.
The same questions in production
Once your live app is connected, with the Node SDK, the Python SDK or one signed request from any language, and Cortad is analyzing its message text, each user is placed in a persona and their conversations are asked the same questions. That is how a change made here is checked against real users.
Updated