Lauriola, Luigi
(2026)
a runtime guardrail framework for secure and governable ai agents.
[Laurea magistrale], Università di Bologna, Corso di Studio in
Ingegneria informatica [LM-DM270]
Documenti full-text disponibili:
![[thumbnail of Thesis]](https://amslaurea.unibo.it/style/images/fileicons/application_pdf.png) |
Documento PDF (Thesis)
Disponibile con Licenza: Salvo eventuali più ampie autorizzazioni dell'autore, la tesi può essere liberamente consultata e può essere effettuato il salvataggio e la stampa di una copia per fini strettamente personali di studio, di ricerca e di insegnamento, con espresso divieto di qualunque utilizzo direttamente o indirettamente commerciale. Ogni altro diritto sul materiale è riservato
Download (2MB)
|
Abstract
Software systems increasingly delegate tasks to components based on large language models (LLMs), especially agents that maintain context, use tools, and act over multiple steps. Deployed agents must satisfy behavioural requirements, often expressed as natural-language constraints. However, these constraints are not enforced deterministically. An agent might deviate from them while still producing a fluent, plausible response rather than a conventional software failure. Monitoring the agent's observable behaviour makes such deviations visible.
This thesis presents a monitoring framework to assess whether LLM-based agents comply with user-specified natural-language constraints. The architecture separates the monitored agent from a dedicated evaluation layer, allowing the agent to operate unmodified. This layer uses three LLM-based judges from different model families to independently assess the agent’s responses. Their evaluations are retained during execution and combined into a synthesis report. An observability layer records all information required for post-session inspection. The framework is implemented using the Google Agent Development Kit (ADK) for orchestration and LangSmith for tracing.
The framework is evaluated through a controlled proof-of-concept experiment. Results demonstrate that the three judges consistently assign lower scores to non-compliant responses and explicitly identify behavioural violations. The recorded execution successfully preserves the data needed to inspect the assessments for each evaluated turn. These findings validate the monitoring approach and motivate further investigation with richer behavioural constraints, diverse agent and judge configurations, and stronger audit mechanisms.
Abstract
Software systems increasingly delegate tasks to components based on large language models (LLMs), especially agents that maintain context, use tools, and act over multiple steps. Deployed agents must satisfy behavioural requirements, often expressed as natural-language constraints. However, these constraints are not enforced deterministically. An agent might deviate from them while still producing a fluent, plausible response rather than a conventional software failure. Monitoring the agent's observable behaviour makes such deviations visible.
This thesis presents a monitoring framework to assess whether LLM-based agents comply with user-specified natural-language constraints. The architecture separates the monitored agent from a dedicated evaluation layer, allowing the agent to operate unmodified. This layer uses three LLM-based judges from different model families to independently assess the agent’s responses. Their evaluations are retained during execution and combined into a synthesis report. An observability layer records all information required for post-session inspection. The framework is implemented using the Google Agent Development Kit (ADK) for orchestration and LangSmith for tracing.
The framework is evaluated through a controlled proof-of-concept experiment. Results demonstrate that the three judges consistently assign lower scores to non-compliant responses and explicitly identify behavioural violations. The recorded execution successfully preserves the data needed to inspect the assessments for each evaluated turn. These findings validate the monitoring approach and motivate further investigation with richer behavioural constraints, diverse agent and judge configurations, and stronger audit mechanisms.
Tipologia del documento
Tesi di laurea
(Laurea magistrale)
Autore della tesi
Lauriola, Luigi
Relatore della tesi
Correlatore della tesi
Scuola
Corso di studio
Indirizzo
CURRICULUM INGEGNERIA INFORMATICA
Ordinamento Cds
DM270
Parole chiave
Large Language Models (LLMs), AI Agents, Runtime Monitoring, AI Guardrails, Observability
Data di discussione della Tesi
6 Ottobre 2026
URI
Altri metadati
Tipologia del documento
Tesi di laurea
(NON SPECIFICATO)
Autore della tesi
Lauriola, Luigi
Relatore della tesi
Correlatore della tesi
Scuola
Corso di studio
Indirizzo
CURRICULUM INGEGNERIA INFORMATICA
Ordinamento Cds
DM270
Parole chiave
Large Language Models (LLMs), AI Agents, Runtime Monitoring, AI Guardrails, Observability
Data di discussione della Tesi
6 Ottobre 2026
URI
Statistica sui download
Gestione del documento: