Protected decisions

A protected decision is a decision of the project admin that no agent changes on its own, even when it looks wrong to it: a dependency not to introduce, an architecture not to simplify, something the product deliberately does not do. Each one says what is not done, why (in the words of the person who decided it), what it applies to (the files, or the commands) and what verifies it.

A protected decision does not live in a memory: it lives in Delminio, tied to the files it concerns. When an agent is about to modify one of those files, the decision reaches it at that moment, not at the start of the session where it would already be forgotten.

In the app they live under Decisions in the menu. Each one says, in large type, what is not done, and below it why and in whose words, whether it warns or blocks, what verifies it, the memory that explains it, and how many times in the last thirty days agents met it or were stopped by it. At the top are the numbers: how many are active, how many block, how many protect third-party data, and how many have no automatic check — the agent follows them, and no check verifies them.

Each decision also says when it fires: before an agent changes one of its files, before it runs one of its commands, at every commit that touches its files. That is the moment Delminio shows it to the agent, or stops it.

From there the admin withdraws one or, opening its card, changes the files and commands it applies to and whether it warns or blocks, always in their own words. A new decision is written by the agent, and so is its check, when it has one.

When an agent opens a memory that explains a decision, or names it by its code (for example L12), what the decision says arrives at the end of the memory: the code is no longer a number to guess.

Tip

A protected decision is useful where someone has already made the mistake, or where making it would be expensive. One for everything becomes noise, and nobody reads noise.

One that warns, or one that blocks

What it doesWhen to choose it
WarnsThe agent reads it before touching the fileThe decision needs to be remembered, not enforced
BlocksAt every commit that touches its files a check verifies it; if it is not respected, anyone who is not the admin stops and you receive an exception requestA mistake would be expensive, and a check can verify it

How one is created

Tell the agent, in your own words: “this is a protected decision”, or “this is a protected decision that blocks”. The agent records it in Delminio with your reason.

For a decision that blocks, the agent also writes the check: a script in the repository that verifies it and, when it is not respected, says in which file and line. Before handing it over as done, it tests it, and tells you in one line what it checks and what it does not.

Warning

On every machine the check must be accepted once by a person, from their own terminal: delminio accept shows it and asks for confirmation. Until someone accepts it, it does not run on that machine, and the commit says so. The same happens when the check changes. The acceptance holds for the repository and its worktrees. An agent cannot accept on your behalf.

A decision on a command

Some decisions live not in a file but in an action: “no agent pushes to the main branch”, “never deploy without me”. These can be protected too: instead of files you indicate the commands. If it warns, the agent receives the decision before running the command; if it blocks, the command itself is the violation, and anyone who is not the admin stops.

A decision that stops the admin too

Usually the admin goes past a decision that blocks with a warning: the decision is theirs, and correcting it if it is wrong is their job. But your agent works with your access, so it goes past too. When a decision must stop you and your agents as well — because the mistake it prevents is made by your own agent — say so: “this decision must stop me too”. In Decisions it carries the mark the admin too, and it can be turned on from there as well, opening its card.

From then on the admin stops like a member, and you grant the exception from the app, in the Waiting for you box of the Dashboard: your agent cannot grant it to itself. In the same way withdrawing or loosening it — turning it off, making it warn, removing files, commands or tools, limiting it to fewer repositories, changing or adding a check — is not done by the agent on its own: if you ask it, the change becomes a proposal, which reaches you as a single notification in Waiting for you and on the decision's card, with how it was and how it will be. Tap Approve and Delminio applies it; Reject, and it stays as it was. If the decision has changed in the meantime, the proposal no longer applies: ask again. Strengthening it — one more file, command or tool — the agent does at once.

A check before the command

Sometimes the command alone does not say whether the decision is broken. “Compose is started only from the main clone”: docker compose is fine from one folder and not from another. “Deploy only from the main branch”: the same command, from another branch, is the mistake. A decision like that, set only on the command, would speak at every docker compose, and a decision that always speaks is one people learn to skip.

So the decision carries a check before the command: a script in the repository that the agent writes for your case. Before every command the decision applies to, Delminio runs it on the computer of the person working and hands it the command and the folder it is about to run in. If the check says the command does not break the decision, the agent sees nothing. If it breaks it, the decision warns or blocks like the others, and brings along what the check said.

Tell the agent, for example: “this is a protected decision: compose only from the main clone”. It writes the check, tests it on a command it must stop and on one it must let through, and tells you in one line what it looks at and what it does not.

Warning

Like the commit check, this one runs on a computer only after a person has accepted it from a terminal of theirs, with delminio accept. Until someone accepts it, the command goes through, and the agent gets a warning saying so. If it does not start or does not answer in time, see What a protected decision does not do.

On third-party data there is no check before the command: data that has been read cannot be unread, and those commands always stop.

A decision on a tool

The agent does not work with commands only: it starts other agents, reads web pages, uses the tools of the MCP servers you connected. These can be protected too, by naming the tools instead of files or commands: “no agents without my approval” applies to Claude Code's Agent and to Codex's spawn_agent; “the CRM is read, not exported” applies to its server's tools, mcp__crm__*. Each CLI names its tools its own way: the agent writes the names of every CLI you use.

It works as on commands: if it warns, the agent receives the decision before using the tool; if it blocks, that use is the violation, and anyone who is not the admin stops. Here too the decision can carry its check before the command, which receives the tool and what the agent is asking of it and decides whether that use breaks the decision. A new decision on a tool reaches the agents within a minute.

A decision in one repository only

A decision applies in every repository in the space. Write one for your backend, “agents don't touch config/production.yml”, and it also stops every other project in the space that has a file with that name. To prevent that, list the repositories it applies in: up to 20, using the address git remote get-url origin gives. The ssh and https addresses of the same repository count as one. In the other repositories the decision doesn't fire, on files, commands, tools or commits.

You choose the repositories in the Decisions view, under “Applies only in these repositories”, or give them to your agent. If the field is left empty, the decision applies in all of them. Narrowing a decision that stops the admin too, protects third-party data or is a sign-off zone loosens it: if the agent asks, the change reaches you as a proposal to approve.

When Delminio can't tell which repository the agent is working in, because the repository has no remote or the computer runs a client older than 1.35.0, the decision applies as if it had no repositories. It stops more, never less.

If a repository changes address, for example when it moves to another organisation, and you update the remote in a clone that is already connected, Delminio notices at the next connection and also remembers the old address: the decisions and sign-off zones that name it keep applying. If the move happened without saying so, the Decisions view flags it at the top, with the address no repository in the space has any more and the decisions that name it: the admin picks which repository it has become, and pressing Link makes them apply again.

Where the check runs

Each computer, when an agent starts, tells Delminio which checks a person has accepted there. Opening a decision with a check, under Where the check runs, you see computer by computer where the decision is defended and where it waits for someone to run delminio accept. A computer that does not appear has not started an agent since this feature exists.

The project's hooks and Delminio's built-in safeguards

At the bottom of Decisions there are two cards. The project's hooks are the scripts in the repository's .delminio folder, which Delminio runs on the computer of the person working: when a session opens, in the “Where we are” of the closing, when the CLI shuts down. For each one you see on which computers it runs and where it is stopped, because it came from another person's commit and nobody there has accepted it yet (What Delminio installs).

Delminio's built-in safeguards are what Delminio stops by itself in every project, without anyone writing it: memories read or written as files instead of with its tool, a git add of everything in the memory repository, a command with a backtick the shell would run, a pkill -f that would catch the agent's shell. Next to each, how many times it stopped an agent in the last month. They do not change: they protect how Delminio itself works.

The ones you already have

A new space starts with three basic decisions, signed by Delminio, that warn and stop no one:

  • shared history is not rewritten: no forced push (--force, -f);
  • commit checks are not skipped: no --no-verify;
  • unsaved work is not thrown away: no reset --hard, clean -f, checkout or restore of everything, stash drop.

The agent receives them before running one of those commands. They are yours like the others: you withdraw them from Decisions, and if you want one that blocks you tell your agent. In a space that already existed they arrive among the new items from the update on the Dashboard: the admin adds them, or answers that they are not needed. The commands that depend on the project — pushing to the main branch, deleting a database, releasing — your agent asks you about in the first start.

Exceptions

When a decision that blocks stops a team member, the admin receives an exception request, with the code D and a number. You find it at the top of the Decisions item, in “Exceptions waiting for you”, and in the Dashboard, in the “Waiting for you” box; you grant it or deny it with a couple of words of reason, also by telling your agent (“grant D3: it is an urgent fix”). Once granted, the next commit passes, once.

Every exception stays in the Exceptions item of the menu, under Decisions, newest first: who was stopped and by which decision, what they wanted to do and why, who decided and in what words. At the top the counts — those waiting for you, granted, those that went through with a registered key (if a decision has any), denied, the stops nobody asked about — and tapping a count shows only those. A team member finds their own there.

When a decision that blocks fires on the admin's own commit, it passes with a warning: the decision is the admin's.

Your customers' data

There is one case where a protected decision applies to you as well: third-party data. If your agents work close to your customers' data — your management system, the production database, client folders, logs with emails and addresses —, whatever an agent reads reaches the provider of its model, and for that data you often have no processing agreement with them.

Tell your agent: "agents must not read the customer data that lives in…". With you it does three things: it finds the commands an agent would use to get there from here; it proposes a tool to use instead, a project script that answers what the work needs without showing the data (the customer by number, which fields are filled, logs without emails); and it records a third-party data decision on those commands. From then on:

  • those commands stop for you too, and the agent is given the tool to use instead;
  • if the work really needs that command, your agent asks you, with its reason in plain words: only then does the exception request reach you in Waiting for you, with who is asking, why, and what the decision protects (the exact command is collapsed below). A stop your agent does not ask you about does not disturb you: it usually took another way. You grant it from the app, in your own words, for that command and once. Your agent cannot grant it, not even with your token;
  • granting it opens Delminio, not your CLI: if the CLI asks for its own permission, or its automatic mode stops the command, the CLI decides, and the exception stays spent. If you want only Delminio to judge that command, tell the CLI with a narrow permission in the project (with Claude Code, in .claude/settings.json, for example Bash(psql produzione:*)). Committed, it applies to anyone who clones the repo: put it there only if Delminio is connected on every computer, or in the local settings, which are not committed;
  • if an agent works on that data with an API key covered by the provider's commercial terms, the decision can carry that key's fingerprint. Then only a run using that key goes through, with no request and no exception, and every pass stays in the register with the fingerprint;
  • withdrawing or loosening it — removing a command or a folder, adding a key that passes, turning it off — reaches you as a proposal to approve, as for the decisions that stop the admin too: the agent does not undo it on its own, not even with your token;
  • every request stays in the decision's register — who asked, the command, who granted it and why: ask your agent ("show me the register of L4") when you have to account for it.

A data folder is protected the same way: "agents do not read /srv/clients". It applies to the tools the agent reads files with and to the commands that name it, and the list of its files (file names can be people's names) stays out too. A search started from a folder higher up is not stopped — it would mean you could no longer search the project —: that is why customer data is best kept outside repositories.

When an exception is waiting for you, the notification reaches your phone: see The app on your phone.

Warning

It is a rule, not a wall: it stops an agent that forgets, not someone who rewrites the command on purpose, and it does not see data that some other command happens to print. The real wall is a system user that cannot reach that data at all; your agent will suggest it if your project allows it.

A sign-off zone

Where change sign-off is on, a decision on files can also say how many people sign a change to those files, and who. It stops nothing at commit time: the change shows up under Sign-offs, and it is signed from the app. You set it by opening the decision, in the “Sign-off zone” row.

What a protected decision does not do

It stops honest mistakes, not someone who wants to get around it: a commit run while skipping the checks, or a command rewritten in another form, gets through. Real branch protection lives on your git server (a protected branch), and a protected decision does not replace it. The check for a decision that blocks looks at what its script looks at: that is why the agent tells you what it checks and what it does not.

A broken check does not open a blocking decision. If the check does not start, or exits with an error, a member's commit or command stops, and the agent says why. The admin goes through with a warning, as with every blocking decision, except those that stop the admin too. If the check is slow: at commit it has 120 seconds, tests included, and then the commit stops; before a command it has the time the decision sets (5 seconds by default, up to 30), and then the command goes through, or stops if the decision says so. A warning decision never blocks. The decision's card counts the times its check did not start or did not answer.

Want to use it on your project?

Request an invitation Enterprise, on request →