PROOF LIBRARY / Article
Grep is search, not evidence: why we built ProofGit
Exact text search is indispensable. It is also a poor substitute for provenance, freshness and a path from a model’s claim back to the lines that support it.
We kept getting answers that sounded located
ProofGit began as an internal irritation. We were using coding agents across a growing set of Blue Note Logic repositories. The agents were good at producing plausible explanations. They were less reliable at proving where those explanations came from.
An answer might name the right subsystem but cite no file. Another might find a familiar function on an old branch and describe it as the active path. A third would grep for the words in our question, miss a differently named implementation, and then fill the gap with a reasonable guess. The output read like repository knowledge. Too often it was repository-shaped prose.
Our previous name, BNLGit, marked the precursor: a Git-centred attempt to make source and generated understanding travel together. Dogfooding exposed the missing part. Search results needed an evidence chain that survived the model response.
A concrete failure
Suppose a reviewer asks, “Where can an agent publish a social post?” A text search for publish returns provider clients, migration comments, UI labels, tests, and perhaps an obsolete direct-publish path. The first result is not the answer. The largest file is not the answer. A generated summary saying “publishes social posts” is still not the answer unless it identifies the source lines and the version they describe.
In our own system, the important distinction is between drafting into a pending queue and the human approval path that can cause a public effect. Missing that boundary is not a cosmetic retrieval error; it changes the safety conclusion.
What grep does well
Grep is one of the best tools in engineering. When you know an identifier or literal string, exact search is fast, understandable and deterministic. ProofGit includes an exact-name lane for precisely that reason.
The problem appears when we ask grep to do jobs it was never designed to do:
- find code whose vocabulary differs from the question;
- distinguish a definition from dozens of callers;
- decide which matching file is architecturally relevant;
- establish that a generated explanation still matches the source;
- carry the commit and blob into the answer;
- explain why the hit was ranked and what was omitted.
Those are retrieval and provenance problems. A coding agent needs exact search, semantic and lexical discovery, freshness checks, and a compact evidence bundle.
The mechanism we built
ProofGit pairs a source repository with a Git repository of model-written summaries. Eligible files get structured summaries with typed facts and source anchors. The mirror is inspectable and versioned, so changes to understanding can be reviewed like other artifacts.
At query time, search can combine three lanes. Semantic retrieval looks for meaning when an embedding model is available. Lexical retrieval ranks the words used in summaries. Name lookup searches source for identifiers and can mark where a symbol is defined. Results are fused into a bounded response rather than dumping a repository into the model context.
Each result identifies how it was found. It can include the summary claim, the exact backing source lines, source path, commit SHA, blob SHA and a direct URL. A stale summary is excluded by default unless the caller explicitly asks for it.
This does not make every ranking correct. It makes the retrieval behaviour legible and the answer checkable.
Why this became a product
The internal version reduced a recurring tax: agents spent fewer turns rediscovering repository shape, and we spent less time asking “where did you get that?” More importantly, it changed the review conversation. Instead of debating whether a fluent explanation felt right, we could open the cited lines.
We also saw that the problem was portable. Every team with more than one service, more than one agent, or more than one release branch eventually faces the same questions:
- Which file answers this question now?
- Is the explanation about the current blob?
- Can the reviewer jump directly to the proof?
- What happens when the repository changes?
That is why the hosted product is ProofGit, while BNLGit remains its open-source foundation. The name reflects the value we care about: Git is the substrate; proof is the contract.
Evidence has limits
A citation can prove that a line exists at a commit. It cannot prove that the line is correct, safe or desirable. Model-written summaries can omit nuance. Generated facts need source anchors, but an anchor does not convert interpretation into certainty. Repositories can also be incomplete: runtime configuration, external services and operational state may live elsewhere.
ProofGit therefore presents repository evidence, not a compliance verdict. Tests, runtime telemetry, security review and human judgement remain part of engineering.
What a reviewer should demand
For a material repository claim, “I found a matching file” is not enough. The answer should name the repository and revision, identify the precise lines that support the statement and distinguish a source hit from a model-written explanation. If a summary is involved, its source object should still match the current blob. If the evidence is incomplete, the answer should describe the gap.
This standard changes the review conversation. Instead of debating whether the model sounds plausible, a reviewer can ask whether the cited code actually owns the behavior. A second search can examine callers, configuration or tests. The agent can revise the explanation without pretending the first result was authoritative.
It also creates a useful refusal condition. When retrieval cannot find current evidence, the system should say that it cannot substantiate the claim. That is not a product failure to hide. It is a boundary that protects the team from treating general model knowledge as repository fact.
How teams can evaluate repository answers
A practical evaluation set begins with real questions engineers already ask: where tenant isolation is enforced, which path publishes an event, how a migration is applied, or what owns a billing transition. For each question, a knowledgeable reviewer records the source files and lines that make an answer defensible.
Run the questions against the actual repository revision. Score whether retrieval surfaces the right area, whether the answer cites supporting lines, whether those lines are current and whether a reviewer can reach the conclusion without trusting hidden reasoning. Include questions with no answer in the repository; a reliable system must be able to expose missing evidence.
Do not collapse the result into one accuracy number too early. A missed file, a stale source, a wrong synthesis and an unsupported answer require different fixes. The purpose of evaluation is to improve the evidence path, not manufacture a headline benchmark.
The next action
Take a question for which your team already knows the answer. Ask it through ProofGit and score the response on four things: did it find the right file, identify the current source object, show the exact supporting lines, and make its limits visible? A familiar question is the fastest way to judge whether the evidence chain is useful before trusting it on an unfamiliar one.