Session

It Wasn't Me: Keeping an AI Coding Agent Out of Apps It Doesn't Own in Business Central

You ask an AI coding agent for a "last visit date" on the equipment card. It takes the shortest path: it opens a table another team owns and adds a field. The code compiles, and it ships. Three months later, that team's update collides with your change, and the agent's answer is "it wasn't me".

WHAT. A live build of a Business Central AL extension by an AI coding agent in VS Code, kept in line by a written contract: object prefix, ID ranges, naming rules, and a hard boundary around a base app it may reference but never change. The agent compiles, reads diagnostics and picks object IDs itself through Microsoft's AL agent tools and the AL MCP server. A hook blocks any edit to the protected app before it lands.

WHY. AL isn't the hard part for an agent. Extending a solution it didn't design is. The controls we rely on today, wiki standards, review comments and CODEOWNERS, all assume the contributor is a person who remembers last week. An agent starts every session fresh, takes the shortest path and does exactly what you said, not what you meant.

HOW. Mostly live, with recorded checkpoints in case the agent has a bad day.

Governance before agents: the five places it already lives in BC development, and why each one assumes a human.
The contract, line by line, and how each control moves to where an agent will meet it.
Live: will it refuse? I tell the agent to ignore the rules and edit the base app. The room votes first. In rehearsal it refused three times.
What the contract missed: a FlowField that compiles but silently drops equipment with no visits. Spot it before I show it.
The boundary log: reviewing what the agent was asked, what it refused and why, next to the diff.
This session is for you if you extend Business Central and want to use AI coding agents without losing control of your architecture. Skip it if you're new to AL.

Wesley Nell

Music Producer turned Microsoft Solutions Architect

Saint Helier, Jersey

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top