Skip to main content

Standing agents — configuring them

Permissions​

PermissionWhat it allowsGranted to
agent.readSee agents, their mandates and the run ledgerManager, Sales, Warehouse, Accounting
agent.manageSet agents up, change what they may do aloneManager
agent.runStart a run nowManager

An agent needs an assistant connected (Settings → Integrations, AI completion). Without one a run fails at once and records why.

Settings​

  • Agent budget (agents.monthly_budget_units, 2,000,000 tokens) — all agents together, per calendar month. A run that would start over it records "over budget" and does not call the model; one that runs out partway stops.
  • Price per million tokens (agents.price_per_million_units, 5.00) — what the ledger shows each run as costing, in the company's currency. Nothing is charged by this setting; set it to what your AI provider bills you.
  • Turns per run (agents.max_turns, 8) — the default for a new agent.
  • Without a rule, agents… (agents.default_autonomy, guarded) — on the Agents screen. Do what can be undone: an agent drafts, plans and queues work alone — draft orders and transfers, counts, replenishment and warehouse tasks, pick-list order, resending webhooks — and proposes anything that moves stock on the books, commits money or reaches somebody outside. Ask about everything: every change is proposed until a rule says otherwise. A rule on a tool beats this setting — but a rule is not the last word either: money is always proposed, even under never; never refuses everything else; and a tool that checks its calls (below) proposes a call it escalates even under a rule that lets it act alone.

The role an agent acts as​

An agent acts with the permissions of one role, chosen under Acts with the permissions of when you open it on the Agents screen. It is either a built-in role (Manager, Sales, Warehouse, Accounting, Read only) or one of your company's own roles from Settings → Roles, listed under Your company's roles by name.

Suppliers, purchase orders, receiving costs and supplier part numbers are on no built-in role but Administrator. Two built-in agents need them:

AgentStarts asNeeds, beyond that role
Chase late purchase ordersManagerpurchase_order.read, purchase_order.manage
Rebalance stock between sitesWarehousevendor_item.read

So in a new company they cannot do their work as they start. Make (or use) a role of your own holding that work — for example Manager plus purchasing, as the demo company's Manager and buying is — and set the agent to act as it. The agent then gets exactly that role's permissions, as a person holding it would, and anything that reads the seeded role (an approval routed to Manager, say) sees the role it falls back to.

What is checked, and when:

  • When the agent is saved — set up from a template, or changed — the role, and for a company role the built-in role it falls back to, may grant nothing the person saving it lacks. A company role falling back to Administrator is not offered and is refused. Whoever saves the agent becomes accountable for it.
  • Every time it runs, a company role is read as it is now. If it has been retired, the run is refused and the run's error says so; nothing runs as the built-in role instead. If it has since been given something the agent's accountable person does not hold — an administrator widened it — the run is refused, naming what. Open the agent and save it as somebody who holds that, or choose a narrower role.
  • Switching an agent off is never refused, whatever its role, and does not make you accountable for it.
  • A role of another company is never accepted.

Retiring a company role is not refused because an agent acts as it (only because people hold it): check the Agents screen first, where such an agent shows as A retired role.

The guardrails​

  • An agent's role may not grant anything the person setting it up does not hold, and may not be administrator. That holds for your company's own roles too (above).
  • Its tools are an allow-list; anything else it asks for is refused.
  • A tool that moves money cannot be made automatic — the setting is refused. The screen shows a tag in place of the choice. A never rule on one, which only the API can write, changes nothing: the agent still proposes it. Take the tool off the agent's list to keep it from asking.
  • Some tools are always proposed, because a person always decides them. They cannot be made automatic either: the screen offers only propose and never for them, with a help tip saying why. Never does refuse these — the agent stops asking — and setting propose again takes it off.
  • Some tools check each call before it may run alone (a help tip beside the choice says so). Do it alone still applies, but a call that reaches something a person should decide — for example, filing an item where a live tax or price rule depends on the collection — is proposed, and the proposal says why. A call the check cannot work out is proposed too: it fails safe. The order is: a never rule first, then the check, then alone (with its limit) or the company default.
  • An agent never takes stock out of quality, quarantine, damaged or returns onto a shelf. It proposes, and the person who approves is the one who releases it — with stock.release.
  • A limit on "do it alone" is checked against what the call says it will do (bins to count, units to move). A tool that does not say cannot be shown to be within a limit, so it is proposed.
  • Its proposals land in the ordinary approvals queue, deduplicated, so an hourly agent does not raise the same proposal every hour. Each says which agent raised it and why it was not done alone.

The catalogue steward​

Keep the catalogue tidy (catalogue_steward) is offered when Inventory is on. It runs daily from 04:00 company time, acts as a Manager, and is given the catalogue's reads (health, the classifier's backlog, items, collections, brands, tags) and its changes (filing, retiring, classifying again, creating, updating, grouping brands into families, changing category, merging). The person who sets it up needs everything Manager holds — among it item.manage, collection.manage, collection.merge, brand.manage and brand.merge.

It ships two rules, and only two:

ToolRuleWhat still makes it propose
Filing items (inventory.file_items)Do it alone, up to 200 items a callThe call changes an item's tax category; a live tax, price or putaway rule names the collection, brand or tag the item enters or leaves; the order line's licence check would read a different regulated category
Retiring a brand, collection or tag (inventory.retire_catalogue_node)Do it aloneA live rule still names it. Anything filed under it refuses the retire outright

Everything else it holds proposes:

  • Merges, changes of category and grouping a brand under a family (inventory.move_brand) are always proposed — no rule can make them automatic, the screen offers only propose and never. A move changes which family's price rules and minimum advertised price reach everything under the brand, and the proposal names them.
  • Creating a brand, collection or tag, updating a brand or collection, and classifying again (inventory.classify_items) ship no rule. They are not tools that can be undone by cancelling, so under either company default they propose. A do it alone rule — for the steward, or for every agent — lets them run alone, and creating and updating still check each call. Classifying again is held back on purpose: it calls the AI provider once per item and, like classifying on create, may file what it is sure of.

Which rules count depends on the apps that are on. With Tax off, a tax rule naming a brand decides nothing, so a filing it would have stopped runs alone; with Sales off, the same goes for price rules. The licence check counts only with Sales and Customers on.

To narrow it: set filing to propose (every filing goes to Approvals), lower the limit, or set never on a tool to stop the steward asking. Taking a tool off its list stops it seeing the tool at all.

The steward files what the classifier suggests, so the classifier's settings shape what it finds: Suggest on new items (inventory.classify_on_create) and How sure before filing alone (inventory.classify_auto_threshold), in Inventory. With the first off, classifying again suggests but files nothing alone, so an approved "classify again" only adds to the backlog the steward files from.