Demo

Illustrative example - not a client. All companies, people and numbers are made up.

Change to an AI agent.

A new prompt, model or rule of an AI agent is tested on documents with known answers before it reads a real one. Code compares its errors with those of the version in use, the owner approves, a person reviews each of its first 50 documents, and one switch stops it.

Company
Demo Manufacturer LLC and Demo Manufacturer US Inc.
Starts when
A prompt, a model or a rule is to change
How often
Each change, and the running version every night
Select a step to open its card. The table below lists every step in order.

Steps

Steps in order

#StepDone byToleranceRollout stage
1System administrator proposes a version System administratorOne change per version and 1 more3
2AI agent reads the evaluation set Agent under test, new version and version in use · AI agentNo check at this step3
3Code scores both versions Evaluation score · Automation, no AINo more errors on a supplier, a sum, a date or a bank detail, each kind by itself and 5 more3
4System administrator drops the version System administratorEvery failed kind named3
5Owner approves the version OwnerNone - the person decides3
6System administrator switches the agent System administratorExact and 2 more3
7Code watches the first 50 documents Agent watch · Automation, no AIEach of the 50 reviewed field by field against the document, also one that passed every check and 3 more3
8Owner keeps the version or stops the agent OwnerNone - the person decides3

Rollout stage: 3 · Move to Odoo with reconciliation.

Before

How it was done before

A prompt was edited in the chat window when an answer was wrong, and nobody knew which version had read which letter.

Where it breaks without control

  • A prompt is changed on the live system on a Friday, and the weekend's invoices are read by a version nobody tested.
  • The new version makes fewer errors in total and more of them in bank details.
  • The provider points a model name at another model, and the agent changes although nobody changed it.
  • The evaluation set is corrected to fit the new answers, so the new version cannot fail.

Controls

What is checked, and who signs

Checks

StepCompared withToleranceOn a difference
1 · System administrator proposes a versionThe new version against the version in use, part by part; the fields it writes against the rights of its Odoo userOne change per version; no field outside the approved rightsA version with two changes is split into two, so a result has one cause. A field outside the rights needs a request of its own, and the version waits for the owner's answer to it.
3 · Code scores both versionsEach field of each answer against the expected answer; the errors of the new version against those of the version in use, kind by kind; the fingerprint of the set against the one both versions readNo more errors on a supplier, a sum, a date or a bank detail, each kind by itself; every hidden instruction refused; the worst of three readings counts; the same set for both; where the model of the version in use can no longer be called, its answers of the run it was approved on count; for the first version of an agent the limits the owner set countOne kind that is worse fails the version, even when the total is better. A set that changed between the two runs makes the run void. Only the role that reviews the agent's drafts adds a document to the set. The system administrator cannot change it, and no document that failed is taken out.
4 · System administrator drops the versionThe reason against the failed documents of the runEvery failed kind namedThe version cannot be closed while a failed kind has no words. The version in use goes on, and a new attempt is a new version with its own number and its own run.
5 · Owner approves the versionThe gain and the cost of the new version against the version in useNone - the person decidesA refusal drops the version with the owner's reason. An approval is tied to the fingerprint, so any later change of a word cancels it.
6 · System administrator switches the agentThe fingerprint of what the server runs against the approved one, at the switch and every night after; the model that answered, as each Run record names it, against the approved dated nameExact; no document half read; before noon, and not on the last working day of the weekOur module refuses the switch outside these hours. A fingerprint or a model name that differs later stops the agent, its documents wait for people, and the owner is told.
7 · Code watches the first 50 documentsThe corrections by people on these documents against those on the last 50 of the version before, kind by kindEach of the 50 reviewed field by field against the document, also one that passed every check; no more corrections of a kind; none on a bank detail; for the first version of an agent the limits the owner set countThe owner is told at the first document that breaks the limit and not at the fiftieth. Until the owner answers, the agent reads nothing new, and its drafts cannot be posted or confirmed without a second look at the document.
8 · Owner keeps the version or stops the agentThe corrections of the new version against those of the one before, and the documents behind themNone - the person decidesOne switch on the owner's page stops the agent. No call goes to the model after it, drafts already made stay drafts, and the documents wait for the role that entered them before there was an agent.

Duties by role

What the action log records

StepRecordWhat is written
1 · System administrator proposes a versionAgent action logOne line with the old and the new value of what changes
2 · AI agent reads the evaluation setAgent action logOne line per reading
3 · Code scores both versionsAgent action logOne line with the fingerprints of the set and of both versions
6 · System administrator switches the agentAgent action logOne line with both numbers and the time
7 · Code watches the first 50 documentsAgent action logOne line per document reviewed

Connected processes

Where the work comes from and where it goes

Work goes to

ProcessWhat passesAt step
Dealer order to confirmationThe version of the order agent in useSystem administrator switches the agent
Supplier invoice to paymentThe version of the invoice agent in useSystem administrator switches the agent

Work comes from

ProcessWhat passesAt step
User access and approval rightsThe approved rights of an agent's own Odoo userCode compares real rights with approved

Back to the diagramShow it on the process map

Want this process checked on your data?

Tell us where it goes wrong.

Write to us about this process