基于多智能体大语言模型系统的大规模功能标记自动清理:DoorDash的工业实践
Automating Feature Flag Cleanup at Scale with Multi-Agent LLM Systems: An Industrial Experience at DoorDash
AI总结:
本文针对DoorDash大规模功能标记清理难题,提出基于多智能体大语言模型的自动清理系统,经评估可高效生成工程师批准的拉取请求,验证了其大规模运营可行性并总结了相关开发经验。
摘要:
功能标记是用于渐进式功能发布、实验及紧急关闭开关的运行时配置机制。当功能完全发布后,对应的标记及其管控代码会成为技术债务,且可能因意外启用休眠代码路径而引发运营风险。在DoorDash,截至2026年5月,共有超过56000个功能标记分布于623个代码仓库,其中1659个当前已失效;内部估算手动清理每个标记需1至2小时。现有的基于规则的清理工具在DoorDash的代码库中效果不足。本文提出一种端到端的基于大语言模型的功能标记自动清理系统,该系统整合了使用MCP查询实时功能标记发布数据、Jira工单处理以及端到端拉取请求创建的功能。在针对50个失效标记的评估中,该系统成功生成了45个(占比90%)经工程师批准的标记删除拉取请求,证明了该系统在大规模场景下的运营可行性,每次清理的平均成本仅为4.79美元,耗时13.8分钟。我们基于成功率、每次清理的成本及时间指标评估了系统的质量和可靠性边界,此外还讨论了构建该系统时的经验教训,为开发类似多智能体系统提供实用指导。
英文摘要:
Feature flags are runtime configuration mechanisms used for gradual feature rollouts, experimentation, and kill switches. Once a feature is fully rolled out, the flag and its gated code become technical debt and can introduce operational risk through inadvertently enabling dormant code paths. At DoorDash, over 56,000 feature flags span 623 repositories, with 1,659 currently stale as of May 2026, with internal estimates of one to two hours per manual cleanup. Existing rule-based cleanup tools proved insufficient in DoorDash's codebases. Our contribution is an end-to-end automated LLM-based feature flag cleanup system that integrates querying live feature flag rollout data using MCP, Jira ticket processing, and end-to-end pull request creation. Our system successfully produced engineer-approved flag removal PRs for 45 (90%) of the 50 stale flags it was evaluated on, proving the system's operational viability at scale with each cleanup averaging only $4.79 and 13.8 minutes. We evaluated the system's quality and reliability boundary based on success rates, cost per cleanup and time metrics. Furthermore, we discuss our lessons learned when architecting this system, to provide practical guidance for developing similar multi-agent systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。