Search papers, labs, and topics across Lattice.
The paper introduces Lore, a protocol that repurposes Git commit messages into structured decision records using Git trailers, capturing the reasoning behind code changes. Lore aims to mitigate the loss of institutional knowledge as AI coding agents increasingly produce code, by preserving constraints, rejected alternatives, and context within commit messages. A CLI tool enables querying these structured commit messages, making the decision-making process behind code changes accessible to AI agents.
Stop throwing away valuable context: Lore lets you turn ordinary Git commits into structured knowledge troves for AI coding agents, capturing the "Decision Shadow" behind every code change.
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.