# AI assistant change proposals

:::tip
User menu (the person icon in the top bar) → Pending approval

:::

**AI assistant change proposals** are changes in OmniMES prepared by an AI assistant (e.g. Claude or ChatGPT connected to OmniMES over MCP) or by an App Studio app opened in Claude that are **not applied right away**. They wait on the **Pending approval** screen until a person who is allowed to make the change reviews them. Only after that person approves a proposal does OmniMES save the change — with the approver’s permissions — and the decision goes to the [**Event log**](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ).

A change becomes a proposal when:

* an administrator set the AI assistant change mode to **As proposals for approval** (**General configuration** → **AI** tab → **AI assistants (MCP)**) — every write of the assistant then lands here instead of going straight into the system,
* an App Studio app runs in Claude (Claude Desktop, claude.ai) — in Claude an app does not write OmniMES data directly, it submits a change proposal instead.

Proposals let you use an AI assistant on production data without the risk of a change entering the system without human control.

## Who sees proposals and who approves them

The **Pending approval** screen is available to every signed-in user — it does not have to be granted in **Access permissions**. The list shows:

* **your proposals** — changes prepared by your AI assistant or by an app you opened in Claude,
* **proposals you can approve** — changes you are allowed to make in OmniMES (the same permissions as for the change on a regular screen, e.g. defect codes are changed by a group with the **Production setup** screen),
* proposals you have already decided on.

A superuser sees all proposals.

**Only a person whose permissions allow the change can approve or reject a proposal** — the author of the proposal follows the same rule. The AI assistant never approves or rejects proposals; a person does it in OmniMES.

A proposal can only be submitted by someone who is allowed to make the change — the assistant works with the permissions of the person it is connected as, so a proposal is not a way around permissions.


:::info
Approving applies the change with the **approver’s** permissions. If the approver is not allowed to make the change, OmniMES does not apply it and the proposal keeps waiting.

:::

## Counter in the top bar

When something is waiting for a decision — a proposal you can approve or one of your own — an inbox icon with the number of pending proposals appears in the top bar. Hover over it to see how many are waiting for your approval and how many of yours are waiting for others. Clicking the icon opens the **Pending approval** screen. The counter refreshes every minute; when nothing is waiting, the icon disappears.

## Proposal list

Above the list:

* **Status** — **Pending** (default), **Approved**, **Rejected**, **Expired**, **Failed** or **All statuses**,
* **My proposals only** — narrows the list to proposals you submitted,
* **Refresh** — loads the list again.

| Column | What it shows |
|--------|---------------|
| **Submitted** | date and time the proposal was submitted |
| **Proposed by** | the person whose permissions the assistant used; below it, the source — **AI assistant** (with the MCP tool name) or **App** (with the App Studio app name) |
| **Change** | a readable summary of the change and, below it, the operation: new record, record change, replacement or deletion (with its number) or another operation, and where in the system |
| **Status** | the proposal status; pending proposals you can approve are marked **You can approve** |
| **Deadline / decision** | for pending proposals — days left until expiry; for decided ones — who decided and when |

Click a row (or the eye icon) to open the proposal details.

## Details and decision

The details window shows:

* the status and the change summary,
* who proposed it, when and from where (AI assistant or app), the operation and the API request (method and path),
* the expiry date (pending) or the decision with its note (decided),
* **Change content** as a table of fields: **Field**, **Current** and **After the change** — for a change of an existing record OmniMES shows its current values (if you are allowed to read them) and highlights the changed values; for a new record — the fields and values of the new record; for a write of several records — each item separately,
* for an approved proposal — confirmation that it was applied, for a failed one — the message OmniMES rejected the write with.

Passwords, tokens and keys in the change content are hidden (`***`).

**How to approve or reject a proposal:**


1. Open a proposal with the **Pending** status marked **You can approve**.
2. Check the change content.
3. Optionally enter a **Decision note** (e.g. the reason for rejection) — the author and the assistant will see it.
4. Click **Approve and apply** or **Reject**.

Approving applies the change right away with your permissions. If OmniMES rejects the write (e.g. a required field is missing or the record no longer exists), the proposal becomes **Failed** and the details show the message. When the proposal is not yours and you are not allowed to make the change, the window only shows its content.

## Proposal statuses

| Status | Meaning |
|--------|---------|
| **Pending** | waiting for a decision by a person allowed to make the change |
| **Approved** | approved and applied — the change is in the system |
| **Rejected** | rejected; the reason is in the note |
| **Expired** | nobody decided within **7 days** — the change was not applied |
| **Failed** | approved, but OmniMES rejected the write — the message is in the details |

Decided proposals are kept for a year; their history stays in the Event log.

## Event log

Every step of a proposal writes an entry to the [**Event log**](https://docs.omnimes.com/doc/event-log-ueBZ9EBDuZ) (category **Configuration**, object type **AI change proposal**):

| Event | Who | What it contains |
|-------|-----|------------------|
| **AI assistant change proposal** | the author (source **AI assistant (MCP)**) | operation, path, change content, expiry date |
| **Change proposal approved** | the approver | author, approver, what was applied and with what result |
| **Change proposal rejected** | the person who rejected it | author, the person who rejected it, note |
| **Change proposal failed** | the approver | author, approver, the message OmniMES rejected the write with |
| **Change proposal expired** | System | the proposal expired after 7 days without a decision |

The change itself, applied after approval, appears in the log like any change made by the approver (e.g. **Defect code added**).

## AI assistant and proposal status

An AI assistant connected with a personal connection has the `zmiany_do_zatwierdzenia` tool — it lists your proposals and their status (pending, approved, rejected with a note, expired, failed with a message). Just ask e.g. “have my changes been approved yet?”. When the assistant submits a proposal, it replies that the change is waiting for approval in OmniMES.

## For App Studio app authors

In Claude an app does not write OmniMES data directly — **in Claude, a write = a proposal**:

* the `omni_api_propose` tool (in app code `omni.api.propose(method, path, body, summary)`) takes the same arguments as the `omni_api_write` write plus a short description for the approver; it returns the proposal number and a message to show the user,
* the `omni_proposal_status` tool returns the status of proposals submitted from the app,
* in OmniMES the app still writes with `omni_api_write`, confirmed in the **Confirm write** window — an app running in both places picks the tool by where it is open (in Claude: proposal, in OmniMES: write),
* the same rules apply as for writes: the viewer and the app author must be allowed to make the change, and changes on administrative routes and writes of several records at once are only possible in an admin-level app.

Add both tools to the app’s tool list in the App Studio (details: [**App Studio**](https://docs.omnimes.com/doc/app-studio-HcSnMRrXmH)).

## Limitations

* a proposal is valid for 7 days — then it expires and has to be submitted again,
* changes with a file (e.g. attachments) cannot be proposals — make them in OmniMES,
* changes to system settings, users, groups, permissions, tokens, the licence and backups cannot be proposals — the AI assistant does not make them in any mode,
* approving applies the change as it was proposed — if the record changed in the meantime, check the **Current** column before approving.

---

**Documents**

- [OmniPlatform](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omniplatform-7z9SIECi68)
- [Omnienergy](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnienergy-56aRDgnYFZ)
- [Omnimes](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/omnimes-eGDa0U5cyr)
- [FAQ](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/faq-IFQjCNYt1Q)
- [Cybersecurity & Compliance (CRA)](https://docs.omnimes.com/s/cb8b19e0-ec6d-4e1a-8690-b0ddd67ad1cd/doc/cybersecurity-compliance-cra-pPJBcC6sBf)