Manuscript Offprint

arXiv:2608.24271

Observability and Fault Injection for LLM-Based Multi-Agent Systems in Software Engineering

Zahra Seyedghorban, Egor Klimov, Arie van Deursen, Annibale Panichella, Burcu Kulahcioglu Ozkan

Zahra Seyedghorban*, Egor Klimov†, Arie van Deursen*, Annibale Panichella*, Burcu Kulahcioglu Ozkan*

*Delft University of Technology, The Netherlands

{z.seyedghorban, arie.vandeursen, a.panichella, b.ozkan}@tudelft.nl

†JetBrains Research, The Netherlands

egor.klimov@jetbrains.com

Abstract—Large Language Model-based multi-agent systems are increasingly explored for software engineering tasks, but they remain difficult to inspect, debug, and evaluate under controlled failures. We present llmmas-otel, a lightweight and framework-agnostic tool that combines OpenTelemetry-based distributed tracing with fault injection for LLM-based multi-agent systems in software engineering workflows. The tool instruments agent executions with trace-aligned telemetry across workflow phases, agent steps, inter-agent communication, tool calls, and LLM invocations, and supports targeted fault injection at selected interaction points. This makes it possible to compare baseline and faulty executions in a reproducible way and inspect the effects through aligned traces and run artifacts. We describe the motivation, architecture, implementation, current capabilities, and initial validation of the tool on a minimal demo workflow and a real LLM-based multi-agent system for software development.

Index Terms—LLM-based multi-agent systems, software engineering, observability, fault injection, tracing, debugging, Open-Telemetry

I. INTRODUCTION

Large Language Model-based multi-agent systems (LLM-MAS) are increasingly explored for software engineering (SE) tasks such as planning, coding, reviewing, and testing. Instead of relying on a single model call, the work is distributed across multiple specialized agents that communicate, coordinate, and use external tools to complete a task [1], [2]. This makes LLM-based multi-agent systems attractive for complex software engineering workflows, but in practice they still fail frequently and are hard to debug in a principled way [3], [4]. Recent empirical studies report high failure rates across popular MAS frameworks (including SE-oriented ones) [3].

When these systems fail, the cause is not always obvious. A final incorrect output may come from a much earlier problem, such as a missed constraint, a weak handoff between agents, a tool error, or a model response that quietly pushes the workflow off track. Recent work has shown that failures in multi-agent LLM systems are frequent and varied, including inter-agent misalignment and missing or incomplete verification [3], [5]. The difficulty is not only that the workflows are multi-step and distributed across agents, but also that they are stochastic: the same task can unfold differently across runs. As a result, simple logs or final success rates are often not enough to understand what happened or to compare normal and faulty executions in a principled way.

Multi-agent system behavior can be systematically tracked using distributed tracing [6]. A distributed trace captures an entire execution workflow as a single continuous chain, relying on context propagation to link operations together. A trace typically starts from the initial system invocation, such as a user prompt to a planning agent. As the execution context propagates through the system, every distinct operation is recorded as a span. Each span represents a specific part of the execution and contains attributes that provide semantic details about what occurred. OpenTelemetry [7] is a vendor-agnostic open standard for observability that defines the conventions for generating and collecting telemetry data, while also providing the SDKs to implement them. To ensure these semantic details are consistent across different instrumentation libraries, OpenTelemetry relies on standard semantic conventions.

Existing work helps us observe that LLM-based multi-agent systems fail, but practitioners still lack a reusable engineering layer for two things: (1) capturing executions in a structured, comparable form across workflow phases, agents, tool calls, and LLM calls, and (2) injecting controlled faults at those same interaction boundaries to study how local perturbations propagate. This paper presents llmmas-otel, a lightweight and framework-agnostic tool that addresses this gap through two tightly connected capabilities: observability and fault injection.

A key design choice in llmmas-otel is to work around an existing LLM-based multi-agent system rather than replacing them. Instead of proposing yet another agent framework, llmmas-otel provides instrumentation and injection points that can be integrated into an existing workflow with limited code changes. We report initial validation on both a demo workflow and an existing LLM-MAS. The intended users of llmmas-otel are researchers and developers who already have an LLM-based multi-agent workflow and want to inspect its execution or stress-test it under controlled perturbations. In summary, this paper makes the following contributions:

• We present llmmas-otel, a reusable tool for ob-

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Published version: https://doi.org/10.1109/ICST69053.2026.00037

Figure

Fig. 1. High-level input/output view of llmmas-otel. The framework wraps an existing LLM-based multi-agent system, optionally applies configured faults, and produces aligned artifacts for analysis.

servability and fault injection in LLM-based multi-agent systems for software engineering.

• We describe a trace model that captures runs across workflow segments, agent steps, communication events, tool invocations, and LLM calls in a consistent and framework-agnostic way.

• We provide an initial validation of the tool on a minimal demo workflow and a real LLM-based multi-agent system setting.

The rest of the paper is organized as follows. Section II presents llmmas-otel, including its overall design and its observability and fault injection layers. Section III reports the current validation results. Section IV discusses related work and the novelty of the tool. Section V outlines current limitations and directions for future work. Finally, Sections VI and VII discuss tool availability and conclude the paper.