---
type: "post"
id: "replaying-merged-changes-how-we-test-whether-a-241a50"
slug: "replaying-merged-changes-how-we-test-whether-a-241a50"
title: "Replaying merged changes: how we test whether a knowledge base makes coding agents better"
description: "Grab describes a replay test for measuring whether service-specific knowledge improves coding-agent plans."
retrieval_nugget: "Grab describes a replay test for measuring whether service-specific knowledge improves coding-agent plans. It compares paired runs on 50 merged changes, using each shipped diff as an answer key. The method offers teams a way to evaluate context with historical work rather than relying on impressions, while its findings do not establish better code or production outcomes."
published_at: "2026-11-23"
updated_at: "2026-11-23"
record_date: "2026-11-23"
date_kind: "published_at"
topics: ["coding-agents"]
entities: ["Grab","Grab Bench"]
related_patterns: ["verification-bandwidth-is-the-scarce-resource"]
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better"
source_urls: ["https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:replaying-merged-changes-how-we-test-whether-a-241a50"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/replaying-merged-changes-how-we-test-whether-a-241a50/","markdown":"https://newruntime.com/posts/replaying-merged-changes-how-we-test-whether-a-241a50.md","json":"https://newruntime.com/posts/replaying-merged-changes-how-we-test-whether-a-241a50.json"}
markdown_url: "https://newruntime.com/posts/replaying-merged-changes-how-we-test-whether-a-241a50.md"
---

# Replaying merged changes: how we test whether a knowledge base makes coding agents better

## Retrieval answer

Grab describes a replay test for measuring whether service-specific knowledge improves coding-agent plans. It compares paired runs on 50 merged changes, using each shipped diff as an answer key. The method offers teams a way to evaluate context with historical work rather than relying on impressions, while its findings do not establish better code or production outcomes.

## Summary
Grab describes a replay test for measuring whether service-specific knowledge improves coding-agent plans. It compares paired runs on 50 merged changes, using each shipped diff as an answer key. The method offers teams a way to evaluate context with historical work rather than relying on impressions, while its findings do not establish better code or production outcomes.

## What happened
In its 23 November 2026 engineering article, Grab explains how it built a knowledge base for backend services and tested whether coding agents benefited from it. The knowledge base maps request flows through code, configuration values, potential impacts of a change, and the reasoning behind earlier decisions. Agents load the material through a skill; engineers can also read the structured files directly. Claims based on the knowledge base must cite a file and line.

The build process starts with non-LLM code analysis. Grab parses syntax trees to extract entry points, imports, configuration keys, and the actual call graph. LLM sub-agents then write summaries and flow documents from that structure, and a verifier checks each batch. The knowledge base lives in Git. When a merge request lands, an update job rebuilds affected files and flows and opens a knowledge-base merge request for service owners to approve. Each build records the commit it indexed.

To evaluate the context, Grab replayed 50 recent merge requests from one large, actively developed backend service across five agent stacks from three model providers. Each test uses the repository state immediately before a change was merged. Grab reconstructs a request from the merge-request title and description, retaining the need and expected outcome but stripping solution details such as paths, links, code, and implementation notes. The merged diff is kept outside the agent’s worktree and serves as the answer key.

Two agents receive the same request and pre-merge code with the same time budget. One plans using code alone; the other has one additional prompt line enabling the knowledge-base skill. They produce plans rather than code: which files to change, risks, verification steps, and confidence. An LLM grader scores each plan against the merged diff using a rubric worth up to eight points. Grab says the grader evaluates each plan separately, ties each point to the diff, and does not award points for confidence alone. Runs are repeated because agents are probabilistic; timeouts and missing plans are reported separately rather than scored as zero.

Grab reports that the knowledge base improved planning performance across all five stacks. On the stack it ran most often, plans improved on more than half the merge requests and tied on almost all of the rest; the number of full-mark plans nearly tripled. The weakest quarter rose from about half marks to about three quarters. Flow documents, impact maps, and live configuration values accounted for most of the lift in a one-stack layer test. Grab also uses replay as a gate for major knowledge-base changes: a lower score holds an update back for its owner to review, while routine merge-request updates continue.

## What the archive adds
New Runtime's earlier coverage on [agent teams and verified outcomes](https://newruntime.com/posts/do-agent-teams-pay-off-a-case-study-04444a/) argued that agent setups should be judged by task results relative to added cost and time. Grab adds a concrete historical replay method for testing whether context improves plans; it is a new evaluation detail on the broader question of verifying agent performance.

## Trend signal
This supports New Runtime's [verification-ownership shift](https://newruntime.com/shifts/verification-ownership/): “Agents produce code changes faster than teams can review them, making review and validation, not code writing, the main delivery bottleneck.” Grab makes one part of that validation operational by testing agent plans against merged work and holding back weaker major knowledge-base updates. It does not establish that review capacity is universally the bottleneck, but it demonstrates a practical way to make context changes auditable.

## Why now
Grab says its knowledge base updates as merge requests land and is expanding to include design documents and discussion threads. A resource that changes frequently can become stale or contradictory, so the team wanted a score to check changes before they become active. Replay ties that operational need to a source of historical examples the engineering team already has: merged work with reviewed outcomes.

## Connections to other events
Grab’s replay approach also meets the question raised in New Runtime's earlier [coding-agent benchmark coverage](https://newruntime.com/posts/swe-cowork-benchmarking-coding-agents-as-digital-employees-84b0b8/): how to evaluate agents on organizational work rather than abstract capability alone. The settings differ—Grab tests plans for a specific service, while SWE-CoWork examines organizational coding assignments—but both put task outcomes ahead of fluent answers.

## Why it matters
Teams often add repository instructions, summaries, and decision records to coding agents without knowing which additions help or whether they have become outdated. Grab’s method turns that uncertainty into a paired comparison: hold the task, code, agent, time budget, grader, and rubric constant, then change the context. Because the historical merge is the answer key, teams can check whether plans identify relevant code and intent rather than merely sounding plausible.

The method is particularly useful where work has a traceable outcome, such as merged changes, resolved incidents, or answered metrics questions. It also separates two questions that are easy to conflate: whether context helps an agent reason about a task, and whether the agent can implement that plan correctly. A replay test can guide context investment, but it cannot replace tests, code review, or evaluation of running software. Grab’s most portable recommendation is to begin with code-derived flow documents and impact maps, then add decisions and conventions as the update process matures.

## What happens next
- **Grab will extend replay-style evaluation to additional organizational knowledge domains.** (6 months, 65%). Watch for: a published account of the shared knowledge layer covering analytics, data science, or product.
- **More teams will use historical outcomes to gate major agent-context updates.** (12 months, 55%). Watch for: engineering teams reporting paired replay scores as part of context changes.

## Limits and uncertainty
Grab’s reported experiment covers plans, not whether generated code is correct, passes tests, or improves production outcomes. It uses 50 merge requests from a single backend service, so the results may not transfer to different repositories, task types, or teams. The article reports relative results and selected score changes, but does not state a full set of numeric average scores in its prose. An LLM grades plans against diffs; human review of the largest score changes and edge cases helps, but does not make grading fully independent. Grab says code-writing replays have also been run, but the results described here are limited to planning.

## Skill to build now
Choose roughly 50 meaningful merged changes from one service, and record the commit before each merge. For each task, retain the need and expected outcome while removing implementation details; compare plans from the same agent setup with and without the context. Use a fixed reviewer-facing rubric and grade against the merged change. Start with code-derived flow maps and impact maps, which Grab says carried most of the lift, then replay major updates before adopting them.

## Reader takeaway
A knowledge base for coding agents should earn its place with task evidence. Grab’s replay method uses past merged work to compare plans under controlled conditions and to test major context changes before they ship. Its results are promising for planning in one service, not proof that richer context automatically produces better working code.

## Open question
How well will replay scores predict whether context improves implementation quality and verification outcomes on other services?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Coding Agents](https://newruntime.com/topics/coding-agents.md): Explore the coding-agents topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
