Skip to Content
NeoRun

Safety levels per server

Four levels decide what an agent may do on a server without a person. Some things never run without one.

Each server has a safety level, which NeoRun's API and MCP tools call its policy tier. It decides what the agent may do on that server without asking you. Only an owner or admin changes it. New servers start at guarded.

LevelThe agent may, without a personMeant for
ask_firstInspect, read logs, plan, rehearse. Every change waits for a personNew servers for the first session, production databases
guardedEverything in ask_first, plus deploy and roll back its own appsThe default
trustedEverything in guarded, plus low-risk server changes for its own appsOpt-in
autonomousEverything in guarded, plus any server change that passed rehearsal and its checksOpt-in, throwaway servers

In guarded, a deploy or rollback runs by itself only when the plan can be undone and none of its steps is on the never-automatic list below. An agent can still ask for a person on any of them.

What is built today

trusted is not built yet. The low-risk server changes it is meant for (a site for its own app, renewing TLS) are not implemented, so trusted behaves like guarded.

autonomous is narrow on purpose. It applies a server change without a person only when the server is at that level, the change is reversible and rehearsable, none of the never-automatic risks applies, the agent did not ask for a person, and there is something to verify. In practice that means new files and packages that start no service and open no port. Anything that adds a service, opens a listener, touches proxy or firewall configuration, or modifies what NeoRun did not create waits for a person at every level.

Never automatic, at any level

These always wait for a person, whatever the level:

  • SSH access and users. Files such as /etc/ssh/, authorized_keys, sudoers, PAM, the user and group databases.
  • Opening a port to the world. Firewall configuration, proxy and web server configuration, a new service that may listen, a new public listener.
  • Deleting data. Removing volumes or files in data locations such as /var/lib/, /srv/, /home/, /var/www/ and /opt/.
  • Changing things NeoRun did not create. A modified or removed file, package or unit that NeoRun did not add.
  • Anything that cannot be undone. A change without a known undo is marked irreversible and needs a person who acknowledges it.

Restoring a snapshot over data an app has written since counts as deleting data, even though NeoRun keeps that data aside. Only undoing a deployment that never finished may restore without a person, and only when nothing else could write meanwhile.

What cannot be allowed at all

Some changes are refused for everyone, at every level, because they cannot be rehearsed: kernel and kernel modules, the server's own network configuration, mounts and other reboot-time configuration. See Rehearsal on a copy.

Earned autonomy

Promoting a server automatically after a number of clean runs per kind of change is a later feature, not part of the first version.

Edit this page on GitHub

On this page