Tools

How Uno Platform developers keep AI-written .NET code trustworthy

Uno Platform's Matt Mattei explains how he checks code that AI agents write for .NET and Uno Platform apps. He combines written specs, runtime checks, lint hooks and change-cost probes. The post gives working .NET developers a concrete review checklist for agent-written features.

Uno Platform Blog Matt Mattei
Published
Reading time
9 min read
agent run #13
agent run #13
Go to original platform.uno

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Key points

  • Write a spec before each feature and settle assumptions in an Unresolved Questions section.
  • Verify loading, empty, error and recovery states in the running app, including that a double click saves once.
  • Compare the agent's assumed business rules, such as discount and tax order, against the actual product requirement.
  • Report build, test and lint results for each change, and explain any check that could not run.
  • When a rule is repeated as text in several places, add a check so the copies cannot drift apart.
  • Mark workarounds with a comment that names the gotcha and the condition for removing it.

The author judges AI-written code by two questions: how far can I trust this feature today, and how easily can someone change it tomorrow? Every feature starts with a spec that lists open questions, and loading, error and retry behavior is defined up front. A separate QA agent then tries failure scenarios in the running app. A lint hook reports convention breaks, such as platform branches inside models or blocking waits on tasks, along with suggested fixes.

The main lesson is that passing tests are not enough. If an agent makes a wrong assumption, code and tests can agree with each other while both contradict the product. The author asks for evidence per change, requires a completeness report before anything is called done, and waits for approval before adding dependencies or changing public APIs. The post links to the rules and skills he uses.

Real-world use

  • Having an agent build a form in an Uno Platform app, then checking save, validation and error recovery in the running app.
  • Reviewing agent-written ViewModels in a shared MAUI or Uno codebase against platform-neutrality rules.
  • Estimating which files and tests a validation rule change would touch before the work starts.

Why it matters

When an agent builds a .NET feature, compiling is not enough: you need evidence for the rules, failure paths and future change cost. This makes the decisions the agent made silently visible during review.

This summary was generated by the agent from the original post on Uno Platform Blog. The full text and all rights belong to its author and publisher. Go to original

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message