Lore:将Git提交信息重新利用为AI编码代理的结构化知识协议
Lore: Repurposing Git Commit Messages as a Structured Knowledge Protocol for AI Coding Agents
AI总结:
本文提出Lore协议,通过Git trailers重构提交信息,生成包含约束、拒绝替代方案、代理指令和验证元数据的自包含决策记录,以解决AI编码代理在代码生产与消费中机构知识流失的问题。
摘要:
随着AI编码代理成为源代码的主要生产者和消费者,软件行业正面临机构知识的加速流失。每个提交捕获代码差异但丢弃了决策背后的推理——约束、被拒绝的替代方案和前瞻性的上下文。本文提出Lore,一种轻量级协议,通过Git原生trailer重构提交信息,生成自包含的决策记录,包含约束、拒绝替代方案、代理指令和验证元数据。Lore仅需Git基础设施,可通过独立CLI工具查询,并被任何能运行shell命令的代理发现。本文正式化了该协议,对比了五个竞争方案,对其最强反对意见进行了压力测试,并概述了实证验证路径。
英文摘要:
As AI coding agents become both primary producers and consumers of source code, the software industry faces an accelerating loss of institutional knowledge. Each commit captures a code diff but discards the reasoning behind it - the constraints, rejected alternatives, and forward-looking context that shaped the decision. I term this discarded reasoning the Decision Shadow. This paper proposes Lore, a lightweight protocol that restructures commit messages - using native git trailers - into self-contained decision records carrying constraints, rejected alternatives, agent directives, and verification metadata. Lore requires no infrastructure beyond git, is queryable via a standalone CLI tool, and is discoverable by any agent capable of running shell commands. The paper formalizes the protocol, compares it against five competing approaches, stress-tests it against its strongest objections, and outlines an empirical validation path.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。