Skip to content

Approvals ​

This page shows you how to review what an agent proposed, how to approve or discard it, and what Sensora keeps on record.

An agent that works through the MCP tools cannot start a rule running. It leaves one of two things for you to approve:

The agent...What is savedWhat you see in the Rules list
writes a new rule, or changes the steps of a paused ruleA paused rule, with a backtest stored as evidenceThe tag Created by agent · paused until you turn it on or Changed by agent · paused until you turn it on
changes the steps of a rule that is onA proposal beside the rule. The rule keeps running as it isThe tag Change proposed by agent

A backtest replays a rule over the stored readings and reports how often it would have fired. Sensora runs it over the last 7 days when the agent saves. See Test a rule.

Approve a rule that an agent wrote ​

Turning the rule on is the approval.

  1. Open Rules and select the name of the rule. The strip above the canvas shows the description that the agent wrote and the stored backtest.

    A rule written by an agent, with the agent's description and the stored backtest above the canvas

  2. Review each step on the canvas. To try the rule, select Test run.

  3. In the Rule panel on the right, switch Paused after saving on. It now reads On after saving.

  4. Select Save. The rule starts running, and Sensora records your approval.

You can also switch the rule on in the Rules or Alerts list. Sensora then first shows the stored backtest in a dialog. Approve and turn on starts the rule and records your approval. Review it first opens the rule.

If no backtest could be stored, the page says so. Replay the rule from Test run before you turn it on.

To reject the rule, leave it paused, or select Delete rule in the menu at the end of its row in the Rules list.

Approve or discard a change to a running rule ​

  1. Open the rule. The proposal is at the top of the page.

    A rule page with an agent's proposed change: what would change, the backtest, and the buttons "Approve change" and "Discard"

  2. Read What would change. It lists each step that is added, removed or changed, with the old and the new value.

  3. Read the backtest line. It says how the proposed rule did against the stored readings when the agent proposed it.

  4. Choose one:

    • Approve change saves the proposal as the next version of the rule. A rule that is on now runs the new version. Sensora runs the backtest again and records it with your approval.
    • Discard removes the proposal. The rule is unchanged.

After you approve, you can go back: open History and restore the earlier version.

A few rules apply to proposals:

  • A rule has one open proposal. If the agent proposes again, the new proposal replaces the old one.
  • You approve exactly the proposal you read. If the agent replaced it in the meantime, nothing is approved.
  • If someone saves the rule after the agent proposed, the proposal is out of date. Approving it would undo that save, so you can only discard it. Ask the agent to propose the change again.
  • If the proposed rule cannot run yet, for example because it notifies a channel that is not set up, the page lists what to fix. The proposal is kept.

What an agent can change without approval ​

Two changes take effect at once, because they do not change what a rule does:

  • A new name or description, sent without new steps.
  • Pausing a rule. An agent cannot pause the system rule "Store telemetry".

What is stored with each version ​

Every save of a rule's name, description or steps is a version. Open a rule and select History.

The Version history dialog with two versions by an agent, each with its backtest result and approval

StoredMeaning
Version number and timeWhen the version was saved
Who saved itby a person or by an agent
SummaryFor example "Created", "Edited" or "Change proposed by an agent, approved"
BacktestThe result of the backtest that was stored when an agent saved the version. A version that you save in the editor has none
Approval"Approved from the dashboard" or "Approved from the API with an admin key", and when

The Logs of the rule also record each proposal, approval and discard.

Sensora has no user accounts, so the record never names a person.

Approval follows the steps ​

What you approve is the steps of a rule: the trigger, the conditions, the actions and how they are connected.

  • If you rename an agent's rule, edit its description or move steps on the canvas, the rule still waits for approval.
  • If you change a step in the editor and save, the new version is yours. It does not wait for approval.
  • Restoring a version from History keeps the rule on or off as it is now. If the rule is on and you restore a version that an agent wrote and nobody approved, that version starts running and the restore is recorded as your approval.

Who can approve ​

WhoCan approve
A person in the dashboardYes
A script with an Admin API keyYes. It is recorded as approved with an admin key
A script with a Write keyNo. The answer is status 403 with the error needs_a_person. A Write key can discard a proposal and can pause a rule
A script with an Agent or Read keyNo. The answer is status 403 with the error forbidden
An agent over MCP, with any keyNo. No tool turns a rule on or approves a proposal

On an open instance, anyone on the network can approve

A new instance has no dashboard password and no API keys. Every HTTP request is then treated like the dashboard. Any program that can reach the instance can turn a rule on with one HTTP call, and the record says "dashboard". The MCP tools still cannot. Approval is a step that only you can take when the instance is locked: set a dashboard password and give agents an Agent key. See Security and Connect an agent.

A script with an Admin key uses the rule endpoints in the HTTP API reference.

Sensora is open source under the Apache 2.0 license.