Abstract
Software applications expose extensive business functionality, yet the visual structureof their user interfaces remains largely static. Adapting even a minor layout detail to an
individual workflow typically requires a developer to edit interface code, which makes
the interface slow to change and keeps non-technical users dependent on a development
cycle for adjustments they could otherwise describe in a single sentence. Large language
models open a path around this rigidity, since a user could state an intended change in
natural language and have a model carry it out. Granting a model access to interface
code carries risk, however, because generated code is prone to structural errors and
hallucinations, and an unchecked change can break the layout or interfere with business
logic. The open question is therefore not whether a model can edit a layout, but how
much freedom it can be given before reliability and safety erode.
This thesis designs and evaluates a system that lets end-users reshape UI layouts through
natural language while keeping the application safe and stable. The approach rests
on two ideas. The first is a four-step pipeline that separates user interaction, AI in
terpretation, guardrail enforcement, and rendering, so that every proposed change is
validated before it reaches the screen and the renderer never touches the data model.
The second is a five-level guardrail taxonomy that treats the model’s autonomy as a
tunable parameter, graduating it from a schema-validated configuration, through con
strained code-mutation tools, statically checked code generation, and secondary-model
validation, to unrestricted compilation. Each level is realized as a working system in
a production-representative React and .NET application and compared on a common
benchmark of natural-language requests under a single model.
The comparison shows that tightening the guardrail does not by itself increase safety or
correctness. No level admitted an unsafe change, and the strongest balance of capability
and safety is reached not at the most restrictive level but where the model writes open
code that a second model validates before it runs. The study closes on the finding that
the more telling cost of a restrictive level is the developer effort its hand-written contract
demands, an effort the open-code levels avoid.
| Date of Award | 2026 |
|---|---|
| Original language | English (American) |
| Awarding Institution |
|
| Supervisor | Erik Pitzer (Supervisor) |
Studyprogram
- Software Engineering
Cite this
- Standard