反馈归一化的开发者内存用于强化学习编码代理:一种安全门控MCP架构
Feedback-Normalized Developer Memory for Reinforcement-Learning Coding Agents: A Safety-Gated MCP Architecture
AI总结:
本文提出RL Developer Memory架构,通过归一化反馈和安全门控机制提升强化学习编码代理的内存管理,实验证明其在确定性任务中的有效性。
摘要:
大型语言模型(LLM)编码代理越来越多地在长时间软件工程过程中操作仓库、终端、测试和执行轨迹。持久化内存很有用,但静态向量存储或通用检索增强生成(RAG)无法满足强化学习(RL)代码开发的需求,因为小细节会影响Bellman目标、终端掩码、梯度流动或验证声明。本文提出RL Developer Memory,一种本地优先、基于模型上下文协议(MCP)的开发者内存架构。它将内存选择视为记录的上下文决策过程:issue_match对候选者进行排名并记录 telemetry,issue_feedback将原始标签映射到有界奖励,issue_record_resolution将验证的解决链接到之前的检索事件。一个确定性的排序器仍被部署,而一个基于上下文的老虎机残差策略在阴影模式下运行,并且只能通过保守的离策略评估(OPE)门影响canary行为。RL/控制内存需要理论到代码的元数据和审查门控治理。系统在确定性的200案例基准上进行了评估,包括RL算法错误、硬负样本、审查门控的RL/控制案例和低风险失败。在相同的提交比较中,确定性控制和完整的阴影/OPE均达到80.0%的预期决策准确率和100.0%的硬负样本压制;完整的配置增加了学习 telemetry 而不是准确率提升。静态验证通过了11/11的检查;动态集成通过了10/10的案例。证据报告的限制:主动学习策略部署和官方客户端MCP互操作性不支持,完整的配置延迟回归,且有40个残差非RL失败。贡献是具有明确声明边界的可审计内存控制架构,而非通用编码代理改进声明。
英文摘要:
Large language model (LLM) coding agents increasingly operate over repositories, terminals, tests, and execution traces across long software-engineering episodes. Persistent memory is useful, but static vector stores or generic retrieval-augmented generation (RAG) are insufficient for reinforcement-learning (RL) code development, where small details can alter Bellman targets, terminal masks, gradient flow, or validation claims. This paper presents RL Developer Memory, a local-first, Model Context Protocol (MCP)-native developer-memory architecture for RL coding agents. It treats memory selection as a logged contextual decision process: issue_match ranks candidates and records telemetry, issue_feedback maps raw labels to bounded rewards, and issue_record_resolution links verified resolutions to earlier retrieval events. A deterministic ranker remains deployed, while a contextual-bandit residual policy runs in shadow mode and can affect canary behavior only through conservative off-policy-evaluation (OPE) gates. RL/control memories require theory-to-code metadata and review-gated governance. The system is evaluated on a deterministic 200-case benchmark with RL algorithm bugs, hard negatives, review-gated RL/control cases, and low-risk failures. In the same-commit comparison, deterministic control and full shadow/OPE both achieve 80.0% expected-decision accuracy and 100.0% hard-negative suppression; the full configuration adds learning telemetry rather than accuracy gain. Static validation passed 11/11 checks; dynamic integration passed 10/10 cases. The evidence reports limits: active learned-policy deployment and official-client MCP interoperability are unsupported, live full-configuration latency regresses, and 40 residual non-RL failures remain. The contribution is an auditable memory-control architecture with explicit claim boundaries, not a universal coding-agent improvement claim.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。