During onboarding, a client provides his tax jurisdictions, residence, risk profile and the rest of his records. A product is defined by its terms, such as the rate on a fixed deposit or the strike and expiry of an option. And the contract layer sets which products may be held by which client, in which jurisdiction, under which classification. The contract layer is largely defined by the regulator.

Client data, product terms and the contract layer are all given, not inferred. All three change over time: a client moves to another country, the rate on a fixed deposit is adjusted, a new restriction enters the contract layer. But none of it is computed. Each has an owner, a source and a date, independent of any AI system.

From these three types of data, the bank builds the chain it has always built. The client goes into a segment: retail, affluent, high net worth, ultra high net worth, corporate. Client, segment and classification give a risk group — an affluent client who qualifies as an accredited investor does not have the risk profile of one who does not, and the two do not belong in the same risk group. Client, segment and risk group set the boundaries of what this client is eligible to hold. The contract layer then narrows those boundaries further, because of his residence and the jurisdictions he falls under.

None of that is inference, and none of it is new. It is the sequence the bank already runs, with staff, under change control and four-eyes, and it has been running that way for a long time.

Staff have always run this chain as daily routine, so nobody ever funded a project to formalise it. It was never written down in a form a machine could follow, so the layers underneath it were never consolidated. They only work when each one is clean: one definition of a client attribute, one description of a product, one authority on what may be held by whom. Most estates are not like that, and a rules engine cannot be built on data that contradict each other. The order is not negotiable: clean the data and structure it, then the rules engine becomes possible, and only then does applying an AI model become sensible. If the data are not cleaned and structured first, the AI model receives the whole estate exactly as it stands. In that case, the output cannot be rated good or bad, because there is nothing to rate it against.

Once the client has been placed in a segment and a risk group, the AI agent can propose a portfolio.

With, for example, 5 segments and 7 risk groups, there are 35 independent agents, one for each combination, each of them small and with a narrow scope. Each agent sees the same world on every call: its own segment, its own risk group, its own product universe — an agent that takes affluent clients who are not accredited investors is never shown a product that only an accredited investor may hold, because such a product is not in its universe at all. There is no single affluent agent. There are 7, one for each risk group.

Each agent is built for its own client group, defined by segment and risk group. Within these constraints, it delivers a probabilistic answer: a portfolio built for the individual client, not for an average of clients who resemble him. The agents do not communicate with each other. No agent reads another's output, so there is no chain along which an error can travel. That is risk containment by architecture: an error stays in the agent where it was made.

The design adapts easily, in both directions. A new segment adds 7 agents, a new risk group adds 5; when the bank stops serving a segment, its agents are retired. When the bank withdraws from a jurisdiction, no agent changes at all — only the contract layer is adjusted. That holds as long as an agent's product universe is limited only by what defines the agent — its segment, its risk group, and the classification that placed the client in that risk group — because none of that changes from one client to the next. It may never be limited by what varies within that population.

The tempting alternative is to strip out the products this particular client may not hold before the agent chooses, so that it cannot propose something forbidden. That would be the wrong approach. An agent that would face a different set of choices for every jurisdiction would be a different system for every jurisdiction, and every one of them would need its own validation, its own monitoring and its own entry in the inventory. That is where the count would explode. The constraint belongs on the output, not on the input.

So the agent proposes, and then the proposal is tested against the contract layer. Is every product in it permitted for this client, given his residence and the jurisdictions he falls under? That is a yes or a no. It needs no judgement, no labels and no ground truth, and it is answered against data the agent never saw.

If everything complies, the portfolio is valid — which is not the same as good. Valid means only that it is allowed. Whether it suits this client, his goals and his time horizon, is a judgement the check does not make: it rests with the client or his advisor.

If one product does not comply, the agent proposes again; each attempt is a new draw and gives a different portfolio. The agent gets n attempts, and n is set by the bank. Only if none of the n draws passes the check does the case go to the desk, where a member of staff finishes the portfolio. The bank may also let the agent use several draws. If there are several valid proposals, a Monte Carlo simulation can be used to propose the portfolio with the best performance outlook.

Until now, desk staff checked, before anything was executed, whether the transaction was permitted for this client: pass or fail, built into the process. When automated systems begin answering clients directly, that control has to be built in as well, and in this design it is. Every proposal is checked against the contract layer, and only what fails goes to the desk staff. The bank knows exactly how many cases the desk receives. The desk is not a fallback: it is a control.

The design also produces its own measurement, without any extra monitoring system. Two numbers: the share of portfolios completed by hand at the desk, and the share of cases in which the agent's first draw fails the check. The first number tells the bank how much work the desk has. The second number tells it whether the cases reaching the agents still resemble those they were trained on.

The first number is the handoff rate: the share of portfolios completed by hand, because none of the n draws passed the check. That is what the desk is staffed for. It depends on n, which the bank sets.

The second number is the first-attempt failure rate: how often the agent's first draw fails. It does not depend on n. So when it rises, the cases the agents receive no longer resemble those they were trained on. That is drift, and the remedy is retraining.

Every agent produces these two numbers, and they are read over time. A rising first-attempt failure rate shows drift at that agent, and only that agent is retrained. A handoff rate that stays high shows how much desk capacity its segment and risk group needs.

How far a rate may rise before something happens, and what then happens, is decided by governance, which carries the result, not by the team that built the system.

Some failures are not a defect. They are the price of the agent's flexibility: the agent searches where fixed rules cannot, so not every draw passes. In return, the agent is fast, takes a considerable amount of work off the desk, and is not bound to working hours.

Checking the output has a second advantage, and it matters most to banks with clients in many jurisdictions. A deterministic system would need each jurisdiction built into its own logic. A probabilistic agent does not: it proposes without knowing the client's jurisdiction, and the verification against the contract layer decides whether the proposal is accepted or rejected. The agents are therefore the same everywhere; what differs from one jurisdiction to the next is only the contract layer, the rules on which products which clients may hold there. A bank can start in one jurisdiction, with that jurisdiction's rules brought together in one place, and add the next by adding its rules; as long as the products stay the same, not a single agent is rebuilt. So the bank does not have to change everything at once.

What this means for the bank

This design makes it straightforward to answer the regulator. Its rules are in the contract layer: which products may be offered to which client, and in which jurisdiction. Because every proposal is checked against it, the bank can show for any portfolio which rules it was tested against and whether it passed. When a regulator changes a rule, the bank updates the contract layer, and where needed the rules engine, and the new rule applies from the next proposal on. The agents change only when the products change: a product added, altered or withdrawn means retraining the agents that offer it. If a withdrawn product is missed, the check rejects it every time the agent proposes it, and that agent's first-attempt failure rate shows it. And whoever supplies the agents, the contract layer stays with the bank, and so does the responsibility for the result.