arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10133cs.SEcs.AI
收藏

AgentTrace: 一种面向智能体系统的结构化日志框架用于可观测性

AgentTrace: A Structured Logging Framework for Agent System Observability

Adam AlSayyad, Kelvin Yuxiang Huang, Richik Pal

AI总结:

AgentTrace是一种面向智能体系统的结构化日志框架,旨在通过动态可观测性和遥测功能提升智能体的安全性和可追溯性。

摘要:

尽管由大型语言模型(LLMs)驱动的自主智能体能力不断增强,但其在高风险领域中的应用仍受到限制。一个关键障碍是安全问题:LLM智能体本质上非确定性行为使得传统静态审计方法难以满足软件保证需求。现有安全方法,如代理级输入过滤和模型玻璃箱技术,无法提供足够的透明度或可追溯性,无法深入智能体推理、状态变化或环境交互过程。在本研究中,我们引入了AgentTrace,一种动态可观测性和遥测框架,旨在填补这一空白。AgentTrace在运行时对智能体进行最小开销的仪器化,捕获跨三个表面的丰富结构化日志流:操作、认知和上下文。与传统日志系统不同,AgentTrace强调连续、可 introspect 的追踪捕获,不仅用于调试或基准测试,还作为智能体安全、责任和实时监控的基础层。我们的研究展示了AgentTrace如何能够实现更可靠的智能体部署、细粒度风险分析和知情的信任校准,从而解决迄今为止限制LLM智能体在敏感环境中的应用的关键问题。

英文摘要:

Despite the growing capabilities of autonomous agents powered by large language models (LLMs), their adoption in high-stakes domains remains limited. A key barrier is security: the inherently nondeterministic behavior of LLM agents defies static auditing approaches that have historically underpinned software assurance. Existing security methods, such as proxy-level input filtering and model glassboxing, fail to provide sufficient transparency or traceability into agent reasoning, state changes, or environmental interactions. In this work, we introduce AgentTrace, a dynamic observability and telemetry framework designed to fill this gap. AgentTrace instruments agents at runtime with minimal overhead, capturing a rich stream of structured logs across three surfaces: operational, cognitive, and contextual. Unlike traditional logging systems, AgentTrace emphasizes continuous, introspectable trace capture, designed not just for debugging or benchmarking, but as a foundational layer for agent security, accountability, and real-time monitoring. Our research highlights how AgentTrace can enable more reliable agent deployment, fine-grained risk analysis, and informed trust calibration, thereby addressing critical concerns that have so far limited the use of LLM agents in sensitive environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑