AlgoVesta › Glossary › Policy wall

Platform & Security

Policy wall

A policy wall is a set of trading rules that a server checks on every order before it reaches an exchange or broker, so that an AI assistant or an automated signal can only trade inside limits the account owner wrote in advance.

Why it matters

When a language model can call trading tools, the dangerous moment is not a bad answer but a bad order. Instructions written into a prompt can be ignored, misread or overridden by text the model happens to read, such as a web page or a Telegram message. A limit only protects an account if it is enforced somewhere the model cannot reach and cannot negotiate with.

How AlgoVesta handles it

Your rules are compiled once into JSON, validated against a fixed schema and evaluated on the server, deterministically, on every order the MCP connection sends. The model never evaluates them and has no way to relax them. A violation is a hard reject with an audit entry, and a policy that fails schema validation cannot be activated at all. The rule types include maximum risk per trade, maximum order size, maximum daily loss, maximum open positions, a personal leverage cap, venue scope, a symbol allow list and block list, and allowed sides. Two rules sit outside the configurable policy and always apply: every order needs a stop-loss, and on the forex path every order needs both a stop-loss and a take-profit. Closing a position reduces risk, so the policy wall never blocks a close.

In practice

See how AlgoVesta automates this