Morten Sæther

← Blog

Specialists Beat Generalists: Agents for Liquid, Dataverse and Integrations

#36 · 20 October 2026

Why a general-purpose coding agent is the wrong tool for Liquid, and the afternoon that proved it

Post 35 gave the coordinator a team to delegate to. This post is about why that team is made of specialists rather than three copies of the same general-purpose agent with different names.

The short answer is that Power Pages has traps, the traps are specific, and a general agent doesn’t know them. The long answer took down every API on the Dev site for an afternoon.

The Liquid problem

Power Pages Liquid is not Shopify Liquid. It runs on DotLiquid, a .NET port with its own habits, and an agent that learned Liquid from the open web will be confidently wrong about several of them.

The date filter takes .NET format strings, not strftime. Pass it %d.%m.%Y and you get the literal text back. The replace and remove filters are regex-based, so a dot means something else. Server-side FetchXML doesn’t support attribute aliases, so the clever join returns nothing. And the one that matters most: on my site, tags inside a {% comment %} block were still parsed. A commented-out {% capture %} was live.

It’s all in the documentation. But a general agent asked to “fix the empty status column” doesn’t read the documentation. It writes the Liquid it knows.

The afternoon in question

I wrote one template in ppai that sets up global variables for every API endpoint: it parses the request, resolves the language, and works out what the signed-in contact can read and update. The router includes it before every entity template, so it’s the one file where a mistake costs the most.

A generic fix-it agent was asked to add a variable for the signed-in contact’s membership tier. It did, tidily: it left the old block in place, wrapped in a comment, with a note saying it could be removed later.

The old block contained a {% capture %}. The comment didn’t stop DotLiquid parsing it, the capture collided with the new variable, and the template threw on every request. Every list, form and API call on Dev returned an error page. It took a while to find, because the diff looked harmless and two review passes had read the comment block as a comment.

The rule about tags in comments had been written down months earlier. Nobody involved had read it that day.

What changed

Two things.

The first was a decision: all Liquid goes through the powerpages agent. Not the coordinator, not a fix-it agent, not me. Its definition carries the DotLiquid trap list, the comment rule is in there in bold, and the brief for any template change repeats it. If I want a status column fixed, I ask the agent that knows what a status column costs.

The second was a build guard. A script runs next to the other gates I built into ppai and fails the build if any web template has {% or {{ inside a comment block. It has caught the pattern again since, and it doesn’t have afternoons where it forgets.

The guard is the honest admission. A rule in a file is a rule an agent can skip. A rule in the build is not.

The other specialists

The same logic applied everywhere else.

The dataverse agent never guesses schema. It queries metadata before it writes a column name, because the alternative is a FetchXML query that returns zero rows for a reason nobody can see. The casting table has cast_deadline, so the application table obviously has cast_applicationdate, except it has cast_submittedon. A column name on one table is not evidence of anything on the other.

The integration agent owns Power Automate flows and calls to external services, starting with the flow that tells a caster a new application has arrived. It knows that a flow with a secret in a text variable is a deliberate choice in this project and not a finding.

The powerplatform agent owns solutions, deploy workflows and environment settings. It knows which solution a new table belongs in, and that a value written directly in an environment survives the next deployment profile.

Each of these is a list of things that went wrong once. That’s what a specialist is.

The principle

A general agent and a specialist have the same model underneath. The difference is the file they load before they start.

A specialist carries its own trap list, so the trap is caught by the agent writing the code rather than by the reviewer, or by the Dev site at four in the afternoon. Review still happens, but it’s the second line, and the first line should know the territory.

The cost is maintenance. Every time something new goes wrong, the right agent’s file gets a line.

Next: skills, or how to write the project rules down once and have every agent read them.