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
The diagram goes on to the side. Drag it, or use the two buttons.
Steps
Steps in order
| # | Step | Done by | Tolerance | Rollout stage |
|---|---|---|---|---|
| 1 | System administrator proposes a version Selected | System administrator | One change per version and 1 more | 3 |
| 2 | AI agent reads the evaluation set Selected | Agent under test, new version and version in use · AI agent | No check at this step | 3 |
| 3 | Code scores both versions Selected | Evaluation score · Automation, no AI | No more errors on a supplier, a sum, a date or a bank detail, each kind by itself and 5 more | 3 |
| 4 | System administrator drops the version Selected | System administrator | Every failed kind named | 3 |
| 5 | Owner approves the version Selected | Owner | None - the person decides | 3 |
| 6 | System administrator switches the agent Selected | System administrator | Exact and 2 more | 3 |
| 7 | Code watches the first 50 documents Selected | Agent watch · Automation, no AI | Each of the 50 reviewed field by field against the document, also one that passed every check and 3 more | 3 |
| 8 | Owner keeps the version or stops the agent Selected | Owner | None - the person decides | 3 |
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
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · System administrator proposes a version | The new version against the version in use, part by part; the fields it writes against the rights of its Odoo user | One change per version; no field outside the approved rights | A 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 versions | Each 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 read | No 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 count | One 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 version | The reason against the failed documents of the run | Every failed kind named | The 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 version | The gain and the cost of the new version against the version in use | None - the person decides | A 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 agent | The 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 name | Exact; no document half read; before noon, and not on the last working day of the week | Our 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 documents | The corrections by people on these documents against those on the last 50 of the version before, kind by kind | Each 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 count | The 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 agent | The corrections of the new version against those of the one before, and the documents behind them | None - the person decides | One 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
| Step | Record | What is written |
|---|---|---|
| 1 · System administrator proposes a version | Agent action log | One line with the old and the new value of what changes |
| 2 · AI agent reads the evaluation set | Agent action log | One line per reading |
| 3 · Code scores both versions | Agent action log | One line with the fingerprints of the set and of both versions |
| 6 · System administrator switches the agent | Agent action log | One line with both numbers and the time |
| 7 · Code watches the first 50 documents | Agent action log | One line per document reviewed |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Dealer order to confirmation | The version of the order agent in use | System administrator switches the agent |
| Supplier invoice to payment | The version of the invoice agent in use | System administrator switches the agent |
Work comes from
| Process | What passes | At step |
|---|---|---|
| User access and approval rights | The approved rights of an agent's own Odoo user | Code compares real rights with approved |
Want this process checked on your data?
Tell us where it goes wrong.