为智能体系统设计12个可复用的非功能需求模式,提升系统可靠性。
From Goals to Aspects, Revisited: An NFR Pattern Language for Agentic AI Systems
- 从i*目标模型出发,用面向切面编程提取跨功能关注点。
- 发现4个智能体特有模式:沙箱隔离、提示注入检测等。
- 适合构建高可靠智能体系统的研发团队参考使用。
智能体AI系统存在安全、可观测性、成本管理、容错性等跨功能关注点,当前实现中缺乏有效模块化,导致大量AI项目难以上线。本文重新审视并扩展2004年提出的“目标到方面”方法,将其应用于智能体AI领域。提出包含12个可复用模式的模式语言,覆盖安全、可靠性、可观测性、成本管理四类非功能需求,每个模式通过Rust的AOP框架将i*目标模型映射为具体切面实现。其中4个模式针对传统AOP文献缺失的智能体特有关注点:工具作用域沙箱、提示注入检测、令牌预算管理、动作审计追踪。扩展V图模型以刻画任务同时服务于功能目标与非功能软目标的关系。通过分析开源自主智能体框架的案例研究验证该模式语言的有效性,证明目标驱动的切面发现能系统性识别并模块化跨功能关注点。该模式语言为早期识别跨功能需求提供了系统化工程方法,助力构建可靠智能体AI系统。
原文摘要 · Abstract (English)
Agentic AI systems exhibit numerous crosscutting concerns -- security, observability, cost management, fault tolerance -- that are poorly modularized in current implementations, contributing to the high failure rate of AI projects in reaching production. The goals-to-aspects methodology proposed at RE 2004 demonstrated that aspects can be systematically discovered from i* goal models by identifying non-functional soft-goals that crosscut functional goals. This paper revisits and extends that methodology to the agentic AI domain. We present a pattern language of 12 reusable patterns organized across four NFR categories (security, reliability, observability, cost management), each mapping an i* goal model to a concrete aspect implementation using an AOP framework for Rust. Four patterns address agent-specific crosscutting concerns absent from traditional AOP literature: tool-scope sandboxing, prompt injection detection, token budget management, and action audit trails. We extend the V-graph model to capture how agent tasks simultaneously contribute to functional goals and non-functional soft-goals. We validate the pattern language through a case study analyzing an open-source autonomous agent framework, demonstrating how goal-driven aspect discovery systematically identifies and modularizes crosscutting concerns. The pattern language offers a principled approach for engineering reliable agentic AI systems through early identification of crosscutting concerns.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。