<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ryan's Dev Notes]]></title><description><![CDATA[Notes on building business apps with .NET, Blazor and low-code tools, and on keeping the work of AI coding agents checkable. Written by a developer at Codeer.]]></description><link>https://andrew-ryan.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 13:26:40 GMT</lastBuildDate><atom:link href="https://andrew-ryan.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Reviewing an AI coding agent's changes: three checks]]></title><description><![CDATA[Three checks for changes an AI coding agent makes: read the diff, run a whole-project check, run the tests. Examples from a Blazor low-code app.]]></description><link>https://andrew-ryan.hashnode.dev/reviewing-an-ai-coding-agent-s-changes-three-checks</link><guid isPermaLink="true">https://andrew-ryan.hashnode.dev/reviewing-an-ai-coding-agent-s-changes-three-checks</guid><category><![CDATA[AI]]></category><category><![CDATA[code review]]></category><category><![CDATA[Testing]]></category><category><![CDATA[dotnet]]></category><category><![CDATA[Blazor]]></category><dc:creator><![CDATA[Ryan Andrew]]></dc:creator><pubDate>Fri, 20 Nov 2026 03:09:55 GMT</pubDate><content:encoded><![CDATA[<p>When an AI coding agent changes an app, a person still answers for the result. That person needs a way to know the change is right without re-reading everything it touched.</p>
<p>Three checks do that job here: the diff, a whole-project check, and tests. Between them they have caught two mistakes that the diff alone didn't show.</p>
<h2>Background</h2>
<p>The examples come from a business app built with Codeer.LowCode.Blazor (CLB), a low-code library for Blazor made by Codeer, where I work. Every screen is a JSON design file with small C#-style scripts next to it. All of it sits in git, and the agent edits those files directly.</p>
<p>None of the steps depend on that setup. Each one below says what it relies on, so the same thing can be looked for in another stack.</p>
<h2>1. Read the diff, and expect it to be small</h2>
<p>This one only works if a small request produces a small change.</p>
<p>Take one request: a read-only history list had an unused column on the right edge, a header nobody needed over its button column, and a button that sat off-centre. The agent's change was seven lines in three files: one page setting removed, one label blanked, and five lines of CSS.</p>
<p>Two questions cover it. Did the agent touch anything that wasn't asked for? Does every changed line map to a sentence in the request? At that size it's a quick read. If a small request comes back as a big diff, that is the first thing to ask the agent about.</p>
<h2>2. Let a machine check that everything still fits together</h2>
<p>This needs a check that covers the whole project and not just the files that changed. In most stacks that's the compiler or the type checker, plus whatever validates the configuration.</p>
<p>In this project the scripts are interpreted when the app runs, so there's no compiler pass. The Designer's command-line design check does that job. It loads every design file, checks the scripts for syntax, references and types, and confirms that every database column a screen maps to really exists.</p>
<p>Here is what it caught. The agent took a layout element off a card, and the changed files looked fine. The check reported two lines in a script that still referred to that element by name. Those lines weren't part of the change, so they weren't in the diff. The agent fixed both and the check came back clean. Nothing had been run yet.</p>
<p>The diff only showed what the agent touched, and the problem was in a file it hadn't.</p>
<h2>3. Test the behaviour</h2>
<p>This step depends on tests being cheap enough to write for small changes too.</p>
<p>Here, part of that comes from generated page objects. The Designer can produce Selenium classes for the screens, with typed access to each field, built on the Codeer.LowCode.Blazor.SeleniumDrivers package. They come from the same JSON the agent just edited. Where they aren't used, every field still carries its name in the page, so a test can find it directly. Either way a test reads a lot like the request: open the record, add a card, type a title, save, check the card is there. If a stack doesn't provide this, a page-object layer kept by hand does the same job.</p>
<p>That's what caught the second mistake. A larger change passed the diff and passed the design check. Then a test failed on something nobody had asked about: a page that reported unsaved changes the moment it opened. The agent's script was writing values back into fields that already held them, and a field that exists only for display was being counted as a change. A couple of guards and one setting fixed it, and that test now runs with the rest.</p>
<p>Neither the diff nor the design check would have shown that. It only appears when the page actually runs.</p>
<p>Tests only cover what they exercise, so when a mistake does get through, it gets a test of its own.</p>
<h2>Why three steps and not one</h2>
<p>The three steps cover different things. The diff shows that the agent did what was asked and nothing more. The whole-project check shows that the files still fit together, which a diff can't. The tests show that the screen behaves.</p>
<p>All of this works because the structure the agent edits is small and regular. A screen has one shape, a field is a setting with a type, and scripts stay short because loading, saving and validation belong to the framework. With so little room to improvise, there is less to review.</p>
<p>That part carries over to any tool. Give an agent a structure whose output can be checked mechanically, and then check it every time.</p>
<hr />
<p><em>Examples from CLB 1.3.66; checked against 1.3.68 and the official documentation on 2026-11-16. Disclosure: I work at Codeer, the company behind Codeer.LowCode.Blazor. This post was drafted with AI assistance; the workflow and the examples are from my own project, and I checked every claim against the product and its documentation.</em></p>
]]></content:encoded></item></channel></rss>