<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Grab Tech</title>
    <description>Grab&apos;s Engineering team solves critical transportation challenges and makes transport freedom a reality for 620 million people in Southeast Asia.
</description>
    <link>https://engineering.grab.com/</link>
    <atom:link href="https://engineering.grab.com/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Tue, 24 Nov 2026 10:27:51 +0800</pubDate>
    <lastBuildDate>Tue, 24 Nov 2026 10:27:51 +0800</lastBuildDate>
    <generator>Jekyll v4.4.1</generator>
    
      <item>
        <title>Part 1: Simulation-first AI experimentation for ads at Grab</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Ads delivery at Grab is increasingly an artificial intelligence (AI) decisioning problem. Every ad opportunity requires the system to infer user intent, predict engagement, balance advertiser returns, platform revenue, and user engagement, respect campaign budgets, and decide which ads should appear in a highly constrained product surface. As our ads systems become more complex, the range of bidding, ranking, and pacing strategies we need to evaluate grows with them. To continue improving quickly and safely, our approach to experimentation had to evolve: test more hypotheses offline, filter them against business and user guardrails, and reserve live traffic for the most promising ideas.&lt;/p&gt;

&lt;p&gt;Live A/B tests remain the gold standard for testing changes, but they consume real traffic, take time to gather clear signals, and expose users and advertisers’ budgets to unproven ideas. At Grab, we built an offline ads simulator to evaluate AI-driven bidding, ranking, and pacing strategies before they reach production. The simulator lets us replay historical ad opportunities, test alternative decision logic, measure business and user guardrails, and send a smaller, better-vetted set of configurations into live experiments, so each live test starts from an informed position rather than an open search.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is a two-post series. A second post covers how we extended this environment to train and validate generative bidders.&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;how-an-ad-auction-works&quot;&gt;How an ad auction works&lt;/h2&gt;

&lt;p&gt;A simplified ad auction begins when a consumer action creates an ad opportunity: a user opens a food listing page or searches for a cuisine. The system gathers eligible ad candidates from merchant campaigns and evaluates them against the current context.&lt;/p&gt;

&lt;p&gt;Each campaign decides how much to bid, drawing on its own configuration, its delivery state, and an estimate of how the user is likely to respond. The auction then ranks candidates, selects winners, and displays them. After the user sees or interacts with the ad, the campaign budget and performance metrics are updated.&lt;/p&gt;

&lt;p&gt;This is a sequential decision-making problem. A decision made at noon can affect how much budget remains in the evening. For example, bidding too aggressively early in the day may exhaust a campaign’s budget and prevent it from competing for better opportunities later. A simulator is therefore useful because it evaluates how decisions compound over time, rather than assessing each auction in isolation.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/part-1-ads-simulation/figure-1.png&quot; alt=&quot;Workflow diagram of an ad auction from opportunity to budget update&quot; style=&quot;width:50%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1. Workflow of an ad auction.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h2 id=&quot;the-simulation-first-experimentation-workflow&quot;&gt;The simulation-first experimentation workflow&lt;/h2&gt;

&lt;h3 id=&quot;why-we-built-an-ads-simulator&quot;&gt;Why we built an ads simulator&lt;/h3&gt;

&lt;p&gt;When improving our ads system, we often begin with several candidate changes (hypotheses). A candidate is a proposed version of the system that we want to evaluate. There could be different parameter configurations for the current setup, a change to an existing component such as ranking or pacing, or an entirely new component such as a bidder.&lt;/p&gt;

&lt;p&gt;Each candidate represents a “what if” question:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;What would happen to Return on Ad Spend (ROAS) if we paced campaigns more aggressively throughout the day?&lt;/li&gt;
  &lt;li&gt;What would happen to conversions if we change the balance between ads and organic content?&lt;/li&gt;
  &lt;li&gt;What would happen to ad spend if we use a new type of bidder for our ad campaigns?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Historically, we answered such questions using offline analysis, domain intuition, and A/B tests. These approaches work well for incremental changes, but become limiting when the search space grows. A single parameter can require many possible values. A policy can vary by time of day, city, campaign type, or other contextual features. A machine learning (ML) model can propose strategies that have never appeared in historical logs.&lt;/p&gt;

&lt;p&gt;Live experimentation can also be noisy when metrics are strongly affected by daily traffic conditions. The same parameter configuration could look better or worse depending on the day on which it is tested. Testing a large candidate space in production would consume substantial traffic, take considerable time, and expose users and advertisers’ budgets to unproven changes. These changes expose the business to risks, and can be mitigated by the use of our simulator.&lt;/p&gt;

&lt;p&gt;The simulator allows us to evaluate these candidates first by replaying them across historical days, placements, and traffic conditions. Candidates that perform well only in a narrow slice can be filtered out, while those that remain stable and satisfy business and user guardrails can be shortlisted for live testing. The corresponding configuration or system change can progress to a focused A/B test.&lt;/p&gt;

&lt;p&gt;The simulator does not replace live A/B tests. It improves the hypotheses that go into them, so each live experiment starts from a more informed position.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/part-1-ads-simulation/figure-2.png&quot; alt=&quot;Diagram of the simulation-first experimentation workflow&quot; style=&quot;width:50%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 2. Simulation-first experimentation workflow.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h3 id=&quot;what-the-simulator-replays&quot;&gt;What the simulator replays&lt;/h3&gt;

&lt;p&gt;The simulator replays historical opportunities using the campaign, traffic, and contextual data observed in production. A data preparation step transforms these records into a consistent replay dataset.&lt;/p&gt;

&lt;p&gt;For each opportunity, the simulation engine applies the candidate bidding and ranking strategy, determines which ads would be shown, and probabilistically generates downstream user responses from calibrated engagement models. It then updates campaign state before processing the next opportunity. This sequential replay captures how each decision affects later auctions and records the resulting campaign, advertiser, and platform metrics.&lt;/p&gt;

&lt;p&gt;The system is modular by design. Each component (sampling, bidding, ranking, pricing, and metrics) is independently configurable. A team can swap out a bidding strategy without touching the ranking logic, or test a new metric without rerunning the pipeline from scratch. This makes it straightforward to keep the simulator in step with production as new features are built and existing ones evolve.&lt;/p&gt;

&lt;h3 id=&quot;making-the-simulator-trustworthy-as-an-ai-evaluation-system&quot;&gt;Making the simulator trustworthy as an AI evaluation system&lt;/h3&gt;

&lt;p&gt;For AI-driven ads systems, a simulator is useful only if teams can trust its signals enough to make experimentation decisions. We treat simulator fidelity as an engineering requirement, not an assumption. The goal is not to predict every live outcome precisely, but to make offline comparisons meaningful enough to decide which model, policy, or strategy should move into live testing.&lt;/p&gt;

&lt;p&gt;We validate this through regular fidelity checks across two levels. The first is mechanism level: each deterministic component is validated against production logic to ensure the simulator applies the same rules in the same order. The second is outcome level: we aggregate metrics from production against simulator outputs with production configurations. Key metrics are compared across equivalent traffic slices to confirm distributions align. Where gaps appear, they are investigated and the relevant component is updated before the simulator is used to evaluate new candidates.&lt;/p&gt;

&lt;p&gt;These checks run regularly, not just at setup. As production systems evolve, they reveal where the simulator has diverged and which components need updating. This continuous validation keeps offline comparisons representative of current production behavior.&lt;/p&gt;

&lt;h2 id=&quot;use-case-1-evaluating-ranking-and-relevance-tradeoffs-with-mix-ranking&quot;&gt;Use case 1: Evaluating ranking and relevance tradeoffs with mix-ranking&lt;/h2&gt;

&lt;p&gt;When ads and organic candidates are ranked together, position affects user engagement, campaign spend, and advertiser outcomes. Organic candidates are non-paid results ranked by relevance, shown in the same placement as ads. Mix-ranking controls this tradeoff by deciding the final order shown to the user.&lt;/p&gt;

&lt;p&gt;In this use case, the simulator replays historical requests with both ad and organic candidates available in the same placement context. The main parameter we evaluate, referred to here as alpha, adjusts the balance between ad and organic candidates in the final ordering. By running the same historical traffic across different alpha values, we can compare how the ranking changes before testing any candidate in production.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/part-1-ads-simulation/figure-3.png&quot; alt=&quot;Illustrative chart of configuration exploration with normalized synthetic axes&quot; style=&quot;width:80%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 3. Illustrative configuration exploration. Axes are normalized; values are synthetic.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Ad and organic candidates are scored through their respective production scoring paths, which the simulator reproduces. Candidates are evaluated against guardrail criteria with business and engagement outcomes validated in downstream A/B experiments.&lt;/p&gt;

&lt;p&gt;The simulator records the ad and organic winner mix by minute and placement, which helps explain whether a candidate improves ranking outcomes through better signal blending or simply by shifting surface area away from organic content. The output is a smaller set of alpha values for live A/B testing. Simulation narrowed the alpha parameter search space to a handful of values that held up across traffic conditions; these became the inputs to a more focused live A/B test, reducing experimentation iteration and increasing the velocity of improvement of our ads ecosystem.&lt;/p&gt;

&lt;h2 id=&quot;use-case-2-evaluating-sequential-decision-policies-with-budget-pacing&quot;&gt;Use case 2: Evaluating sequential decision policies with budget pacing&lt;/h2&gt;

&lt;p&gt;Budget pacing is a sequential decision problem. A campaign that spends too quickly may exhaust its budget before later opportunities arrive. A campaign that spends too slowly may miss useful demand and finish underdelivered. The pacing policy has to manage this over the full day while preserving advertiser returns and avoiding unnecessary spend degradation.&lt;/p&gt;

&lt;p&gt;The baseline pacing policy in production is a Proportional-Integral-Derivative (PID) controller, a standard feedback approach. It modulates how aggressively a campaign competes based on its delivery and how it is tracking against its target over the course of the day. PID controllers are well-suited to auction environments because they react continuously to feedback without requiring a model of the underlying system. In practice, however, they are difficult to tune: the controller exposes several parameters governing how strongly and how quickly it responds to deviations, and the right values are workload dependent. A misconfigured controller can overshoot, oscillate, or converge too slowly to be useful.&lt;/p&gt;

&lt;p&gt;We used the simulator to evaluate an alternative based on Primal-Dual Adaptive Pacing (PDAP). PDAP is an optimization-based approach that treats the campaign budget as a constrained resource and continuously adjusts bid pressure to track the target spend curve. In practice, it tracks a single internal pressure signal and translates it into an adjustment on how aggressively the campaign competes, tightening when the campaign runs ahead of plan and loosening when it falls behind. PDAP has fewer free parameters than PID, which makes it a practical candidate to evaluate: if it can match or improve on PID’s tracking behavior, it would reduce the tuning burden without sacrificing control quality.&lt;/p&gt;

&lt;p&gt;The simulator lets us compare PID and PDAP under the same historical campaign conditions before either change touches live traffic. For each replay, the simulator advances campaign state over time, applies the active pacing policy, resolves resulting auctions, simulates downstream user response, and records campaign and platform metrics.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/part-1-ads-simulation/figure-4.png&quot; alt=&quot;Line chart comparing simulator pacing runs against allocation target fulfilment gap&quot; style=&quot;width:80%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 4. Campaign fulfilment tracking: effect of pacing parameters. Illustrative simulator runs.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Candidates are evaluated on business and engagement outcomes, and filtered by guardrails covering delivery, engagement, and how well it utilizes planned budget targets over the day. The simulator records fine-grained delivery and engagement traces, which makes it easier to inspect why a candidate behaves differently from the PID baseline. To mitigate risk, we filter out candidates exhibiting performance regressions on any guardrail, as well as unrealistic parameter configurations. Given the absence of a production baseline for this bidder, this pre-filtering step is essential to ensure operational stability before live testing. The candidates that remained showed comparable spend tracking to PID with fewer parameters to tune, reducing configuration burden, and moved into a focused live A/B test against the PID baseline.&lt;/p&gt;

&lt;h2 id=&quot;what-we-learned&quot;&gt;What we learned&lt;/h2&gt;

&lt;p&gt;Building the simulator taught us that it needs to be treated as a product, not a one-off analysis tool. A useful simulator needs reliable data preparation, clear configuration, repeatable runs, comparable metrics, and easy ways to inspect results. Without those, teams can run simulations but struggle to trust or act on them.&lt;/p&gt;

&lt;p&gt;Fidelity is a moving target. A simulator can reproduce known auction mechanics faithfully and still be wrong when tested in a new regime. Mix-ranking required improvements to how organic candidates are modeled; without accurate organic behavior, the simulated blend between ads and organic results diverged from production. Budget pacing exposed how sensitive the pacing controller is to spend-signal timing. In the simulation, the controller used idealized, timely spend signals, while real-world deployments may involve variations in data freshness and availability. A controller tuned against perfect information can over-correct on stale numbers, and the feedback loop that looks stable offline can drift or spike live. Each new use case is likely to surface a different gap.&lt;/p&gt;

&lt;p&gt;The most important lesson is that simulation and live experimentation are complements, not substitutes. Offline replay is fast, repeatable, and safe. Live experiments provide ground truth. When live results diverge from simulated ones, the gap is informative: it points to exactly where the simulator needs to improve. Over time, that feedback loop is what makes the simulator more useful, not just more used. Those lessons shaped what the team focused on next.&lt;/p&gt;

&lt;h2 id=&quot;where-we-are-heading&quot;&gt;Where we are heading&lt;/h2&gt;

&lt;p&gt;From the start, the goal was not just to replicate auction mechanics, but to build an environment where AI systems can be evaluated, compared, and improved before they touch live traffic. The use cases here, mix-ranking and budget pacing, represent the first layer of that: establishing a reliable baseline for offline evaluation.&lt;/p&gt;

&lt;p&gt;The near-term focus is making the simulator easier to use: better tooling for parameter sweeps, clearer observability into why a simulation produced a given result, and support for a wider range of auction modes and pacing strategies.&lt;/p&gt;

&lt;p&gt;The next layer is applying this environment to more complex AI systems. A follow-up post covers how we extended the simulator to train and validate generative bidders, where the model does not just react to the current state but proposes future pacing actions. That work builds directly on the evaluation infrastructure described here.&lt;/p&gt;

&lt;p&gt;Simulation does not replace live tests. It reduces the candidate space, filters unsafe configurations, and gives live experiments better starting points. The shift is as much about process as it is about technology: moving simulation earlier in the workflow changes how teams approach risk and iteration. The use cases here show that the pattern works. The next step is extending it.&lt;/p&gt;

&lt;p&gt;&lt;small class=&quot;credits&quot;&gt;
We gratefully acknowledge Allen Lin and Jianning Zhang from Grab’s DNA Data Science team for sharing valuable insights into Grab’s advertising systems and data, and for helping validate the simulator’s fidelity. We also thank Ruike Zhang, Richard Ryu, Padarn George Wilson, and Weilun Wu for their support and guidance throughout this work.
&lt;/small&gt;&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://www.grab.careers/en/&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Mon, 23 Nov 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/part-1-ads-simulation-blogpost</link>
        <guid isPermaLink="true">https://engineering.grab.com/part-1-ads-simulation-blogpost</guid>
        
        <category>Artificial Intelligence</category>
        
        <category>Advertising</category>
        
        <category>Simulation</category>
        
        <category>Experimentation</category>
        
        <category>Engineering</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>Replaying merged changes: how we test whether a knowledge base makes coding agents better</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Every session, you get a new teammate: a coding agent. It reads code faster than you and has seen more of it than your whole team put together. What it does not have is any memory of how your service got this way.&lt;/p&gt;

&lt;p&gt;It can see what the code does. It cannot see why a limit lives in configuration, which nightly job breaks if you touch a shared client, or what an old review thread settled. So it asks, or it guesses.&lt;/p&gt;

&lt;p&gt;We built a knowledge base to fill that gap. For each backend service, it maps how requests move through the code, what a change could break, which configuration values the code runs with, and why the team made the calls it did. Agents load it before they touch a service.&lt;/p&gt;

&lt;p&gt;The harder part was knowing whether it helped. A plan that reads well can still be wrong, and every agent session starts from scratch, so you cannot watch an agent improve the way you watch a new hire settle in. We found the answer key in our Git history.&lt;/p&gt;

&lt;h2 id=&quot;why-context-is-hard-to-judge&quot;&gt;Why context is hard to judge&lt;/h2&gt;

&lt;p&gt;It is easy to keep adding context, and every new file feels like progress. Each one also takes up some of the agent’s attention, can contradict something else it was told, and starts going stale the day it lands. More context can leave an agent worse and more expensive at the same time.&lt;/p&gt;

&lt;p&gt;We wanted a number for three reasons:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Opinions do not add up.&lt;/strong&gt; Ask an engineer or a large language model (LLM) whether a piece of context is useful and you will get an opinion. Ten opinions will not tell you which of ten additions helped.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Public benchmarks measure something else.&lt;/strong&gt; They test models on public repositories, which the models may have seen in training. &lt;a href=&quot;https://engineering.grab.com/grab-bench-evaluating-ai&quot;&gt;Grab Bench&lt;/a&gt; tests models and agents on Grab-shaped work. We wanted to hold the model fixed, change only the context, and measure the effect on our own code.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Our knowledge base updates itself.&lt;/strong&gt; It changes whenever a merge request (MR) lands, and we are adding design documents and discussion threads as sources. Anything that rewrites itself that often needs a check before each update goes live, and a check needs a score.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;what-the-knowledge-base-holds&quot;&gt;What the knowledge base holds&lt;/h2&gt;

&lt;p&gt;For each backend service, an offline build reads the code and writes a set of structured files. Agents pull them in through a skill, a packaged set of instructions they load when a task needs it, and engineers read the same files directly. Any factual claim an agent makes from them has to cite a file and line.&lt;/p&gt;

&lt;p&gt;We build it in two passes. The first is plain code analysis with no LLM involved. It parses the service into syntax trees and extracts entry points, imports, configuration keys, and the actual call graph. Only then do LLM sub-agents write summaries and flow documents on top of that structure, and a verifier checks each batch before the build accepts it. The model is describing a call graph we handed it, so it never has to guess one.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/figure-1a.png&quot; alt=&quot;Table of knowledge base layers and how agents use each one&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1a. Layers in a service knowledge base and how agents use them.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/figure-1b.png&quot; alt=&quot;Diagram of how a service knowledge base is built and kept current&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1b. How a service knowledge base is built and kept current.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Two details matter for the evaluation. The knowledge base lives in Git, so every change to it is a reviewed diff. When MRs merge, an update job rebuilds only the files and flows they touched and opens a knowledge MR for the service owners to approve. Every build also records the commit it indexed, which gives the test a clean cutoff.&lt;/p&gt;

&lt;p&gt;The first build indexes the whole service, and later updates rebuild only what changed. We use this approach across a growing number of our backend services.&lt;/p&gt;

&lt;h2 id=&quot;every-merged-change-is-an-exam-with-an-answer-key&quot;&gt;Every merged change is an exam with an answer key&lt;/h2&gt;

&lt;p&gt;Every merged MR is a solved problem. Someone wrote it, someone reviewed it, and it shipped. Rewind the repository to the commit just before the merge, give an agent the same request with the solution stripped out, and the merged diff becomes the answer key. Traders do something similar with backtesting. Before trusting a strategy with real money, they run it against history, where every outcome is already known.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/figure-2.png&quot; alt=&quot;Diagram of the replay loop comparing two agents with and without the knowledge base&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 2. The replay loop. Both agents start from the same request and the same pre-merge code. Only one line in their prompts differs.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Each run has six steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Select.&lt;/strong&gt; Take recent MRs that changed the service and merged after the knowledge base snapshot.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Scrub the request.&lt;/strong&gt; Rebuild the request from the MR title and the text that states the need and the expected outcome. Strip file paths, links, code, and anything that describes the solution.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Rewind.&lt;/strong&gt; Create an isolated Git worktree at the exact pre-merge commit.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Plan twice.&lt;/strong&gt; Run two identical agents on the same code with the same time budget. Agent A plans from the code alone. Agent B’s prompt has one extra line that turns on the knowledge base skill.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Grade.&lt;/strong&gt; An LLM grader scores each plan against the merged diff on a fixed rubric.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Pair.&lt;/strong&gt; Compare the two scores for each MR, then aggregate across the set.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;for mr in select_mrs(service, merged_after=kb_snapshot_date):
    ask = scrub(mr.title, mr.description)        # need and outcome only
    repo = worktree_at(mr.parent_commit)         # the code as it was before the merge
    answer_key = mr.diff                         # never shown to the agents

    plan_a = agent.plan(ask, repo)                             # code only
    plan_b = agent.plan(ask, repo, skills=[knowledge_base])    # the only difference

    for variant, plan in ((&quot;a&quot;, plan_a), (&quot;b&quot;, plan_b)):
        record(mr, variant, grader.score(plan, answer_key, rubric))

report(paired_means(), better_tied_worse(), largest_movers())
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;The following is illustrative pseudocode. The function and variable names are simplified.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The agents write a plan, not code. A plan lists which files to change and how, the risks, how to verify the change, and how confident the agent is. We stopped at the plan on purpose. Writing a change takes two skills: working out what it needs, and then writing it correctly. The knowledge base is there to help with the first, and a plan shows that part directly, without the model’s coding ability moving the score. Code has many right answers, and two correct implementations rarely match line for line, so diffing an agent’s code against the merged code would penalise valid alternatives. Plans are also quick to produce, so we can rerun a full 50-MR sweep with both variants whenever something changes.&lt;/p&gt;

&lt;p&gt;A good plan still is not working code. It can be implemented badly, and some mistakes only show up when the code runs. We have also run the replay with agents writing code, but the results here cover plans only.&lt;/p&gt;

&lt;h2 id=&quot;making-the-test-fair&quot;&gt;Making the test fair&lt;/h2&gt;

&lt;p&gt;It is easy to build a replay test that looks fine and measures nothing. Five decisions keep ours honest.&lt;/p&gt;

&lt;h3 id=&quot;grade-against-what-shipped&quot;&gt;Grade against what shipped&lt;/h3&gt;

&lt;p&gt;Plans do not come with tests, so an LLM grades them, and LLM graders are easy to impress. A fluent, confident plan can score well while missing the point entirely. Our grader always has the merged diff in front of it, and every point it gives has to trace back to that diff. A plan that sounds right but misses what shipped scores low.&lt;/p&gt;

&lt;h3 id=&quot;keep-the-answer-out-of-the-exam&quot;&gt;Keep the answer out of the exam&lt;/h3&gt;

&lt;p&gt;A test like this fails quietly when the answer leaks in. We close four paths:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Through the knowledge base.&lt;/strong&gt; A knowledge base built after an MR merged may already describe that change. We only replay MRs that merged after the snapshot, so the knowledge always predates the answer.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Through the request.&lt;/strong&gt; MR descriptions often spell out the solution. The scrubber keeps the need and the expected outcome, and strips file paths, links, code, function names, and sections like “implementation” or “changes made”. If nothing usable is left, a separate LLM call rewrites the request with one rule: describe the need and the outcome, never the approach.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Through the repository.&lt;/strong&gt; Agents work in a worktree at the pre-merge commit and are told not to look up the MR, its diff, or later history. The answer keys live outside the worktree.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Through the grader.&lt;/strong&gt; Each grader sees one plan and the diff. It never sees the other variant’s plan, so it cannot grade on a curve.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is what the scrub does to a made-up MR:&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/table-1.png&quot; alt=&quot;Example of scrubbing an MR request before and after&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Table 1. Example scrub of a made-up MR request. Illustrative only.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h3 id=&quot;choose-changes-worth-planning&quot;&gt;Choose changes worth planning&lt;/h3&gt;

&lt;p&gt;Some MRs have nothing to plan, and a set full of them drifts towards ties. The selector skips reverts, dependency bumps, test-only changes, file moves, MRs that mostly touch code outside the service, and single-file changes under about 15 lines. What is left is work an engineer would have to think through.&lt;/p&gt;

&lt;h3 id=&quot;use-a-rubric-a-reviewer-would-recognise&quot;&gt;Use a rubric a reviewer would recognise&lt;/h3&gt;

&lt;p&gt;Each plan can earn up to 8 points across five dimensions, based on what a human reviewer checks:&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/table-2.png&quot; alt=&quot;Rubric dimensions and maximum points for grading plans&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Table 2. Rubric dimensions and maximum points.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Three rules shape the scores:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Every point traces to the diff.&lt;/strong&gt; Confidence on its own earns nothing.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Open decisions are capped.&lt;/strong&gt; The failure we saw most often was an agent handing a core decision back to a human. A plan that does that scores at most 1 on each of the first two dimensions.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Scoring is award-only.&lt;/strong&gt; Correct extra scope costs nothing, and wrong scope earns nothing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The grader explains every score with references to the plan and the diff, and we read the biggest score changes and the edge cases ourselves.&lt;/p&gt;

&lt;h3 id=&quot;change-one-thing-then-repeat&quot;&gt;Change one thing, then repeat&lt;/h3&gt;

&lt;p&gt;The two agent prompts differ by a single line. The MR, the code, the request, the time budget, the grader, and the rubric all stay the same, so any change in score comes from the knowledge base.&lt;/p&gt;

&lt;p&gt;The same setup works for other comparisons. Swap the model or the agent harness instead, and the same MRs and grader measure that. Our first sweep ran five agent stacks from three model providers, each with and without the knowledge base, so the scores also compare across stacks.&lt;/p&gt;

&lt;p&gt;Agents are probabilistic, so a single run is just one sample. We average repeat runs for each MR and variant before pairing them. Timeouts and missing plans are reported separately and never count as zero.&lt;/p&gt;

&lt;h2 id=&quot;one-change-two-plans&quot;&gt;One change, two plans&lt;/h2&gt;

&lt;p&gt;Here is how the two plans differed on the made-up refund request. The details are invented, but the pattern is the one we saw most. Without the knowledge base, the agent hands settled questions back to the reviewer. With it, the agent answers them and says where each answer came from.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/table-3.png&quot; alt=&quot;Side-by-side comparison of plans with and without the knowledge base&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Table 3. Side-by-side plans for a made-up refund request. Illustrative only.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;That is a reason the code cannot give. A decision record, distilled from earlier MRs, explains why limits live in configuration: on-call engineers can raise them during an incident without a deploy. The code shows where the limit is read. Only the record says why, and the plan cited it.&lt;/p&gt;

&lt;h2 id=&quot;what-we-found&quot;&gt;What we found&lt;/h2&gt;

&lt;p&gt;We replayed 50 recent MRs from a large, actively developed backend service, across five agent stacks from three model providers.&lt;/p&gt;

&lt;p&gt;Planning performance improved across the board, with knowledge quality outweighing model tier. With the knowledge base, every stack beat the strongest stack without it, including the budget-tier and previous-generation models. Stronger baselines gained less. If you are choosing between a bigger model and better context, it comes down to cost.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/figure-3.png&quot; alt=&quot;Bar chart of average plan scores with and without the knowledge base across agent stacks&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 3. Average plan score out of 8 for each agent stack, with and without the knowledge base, across 50 MRs.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Most of the gain came from knowledge built from the code.&lt;/strong&gt; On one stack, we added the layers one at a time. Flow documents, impact maps, and live configuration values delivered most of the lift, and decisions, glossary, and conventions added the rest. Flow documents and impact maps contain nothing the code does not already say. What they save is the searching and guessing the agent would otherwise repeat on every task, along with the variance that comes with it.&lt;/p&gt;

&lt;p&gt;If you build one thing, start with flow documents and impact maps. They come straight from the code, so you can compute and check them, and they carried most of the lift in our runs. Add decisions and conventions once updates from merged MRs are flowing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Most plans improved, and the weakest improved most.&lt;/strong&gt; On the stack we ran most often, the knowledge base made plans better on more than half the MRs and tied on almost all the rest. The number of plans with full marks nearly tripled. The weakest quarter went from about half marks to about three quarters.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/figure-4.png&quot; alt=&quot;Chart of average score per rubric dimension with and without the knowledge base&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 4. Average score per rubric dimension as a share of its maximum, with and without the knowledge base, across 50 MRs on one agent stack.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;The biggest jumps were in “Found the right code”, “Understood the intent”, and “Was honest about uncertainty”, each up by more than a fifth of its range. With knowledge, agents found the code the change needed, understood why it changed, and only claimed confidence they could back up. “Saw the risks” and “Planned verification” were already at or near full marks, so there was little room to move.&lt;/p&gt;

&lt;h2 id=&quot;every-knowledge-update-takes-the-same-exam&quot;&gt;Every knowledge update takes the same exam&lt;/h2&gt;

&lt;p&gt;The replay also protects the knowledge base itself. When it changes in a big way, such as a new source, a new format, or auto-learned context, we replay the same MRs against the current version and the updated one. If the score holds, the update ships. If it drops, the update waits, and its owner gets the list of MRs that got worse. Routine updates from merged MRs keep flowing as usual.&lt;/p&gt;

&lt;p&gt;A weaker update gets caught here, before any agent plans with it. We hold knowledge to the same bar as code: it has to pass its tests.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/coding-agents-better/figure-5.png&quot; alt=&quot;Diagram of the knowledge update gate using replay scores&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 5. The knowledge update gate. A material update replays the same MRs, and the score decides whether it ships.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h2 id=&quot;what-we-learned&quot;&gt;What we learned&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;The use case picks the evaluation.&lt;/strong&gt; MR planning comes with an answer key in every merged change, so that is what we evaluated. Other kinds of knowledge will need answer keys of their own.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Known structure beats guessed structure.&lt;/strong&gt; Let LLMs describe structure, not discover it. In our experiments agents did better when they searched a link graph we built from the code than one whose links an LLM had guessed. Chunked similarity search also had trouble working out the order of events and which information was current.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-comes-next&quot;&gt;What comes next&lt;/h2&gt;

&lt;p&gt;The replay idea works for any finished piece of work with a recorded outcome, like a resolved incident or an answered metrics question. We are building a shared knowledge layer across engineering, analytics, data science, and product, and each part will have to earn its place the same way.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;A service’s merge history is a record of solved problems with the solutions attached. Replaying it turned our knowledge base from something we believed in into something we can measure, and every major update now has to pass the same test before it ships. If you are building context for coding agents, you can start the same way: pick 50 merged changes, rewind, and grade the plans against what shipped.&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://www.grab.careers/en/&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Mon, 23 Nov 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better</link>
        <guid isPermaLink="true">https://engineering.grab.com/replaying-merged-changes-knowledge-base-coding-agents-better</guid>
        
        <category>Artificial Intelligence</category>
        
        <category>Knowledge Base</category>
        
        <category>Coding Agents</category>
        
        <category>Evaluation</category>
        
        <category>Engineering</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;In the blog &lt;a href=&quot;https://engineering.grab.com/from-firefighting-to-building&quot;&gt;From firefighting to building&lt;/a&gt;, we described the agents our Analytics Data Warehouse (ADW) team built to take routine work off data engineers. Scarlet was the Enhancement Agent in that post. It read a ticket, wrote the change, and opened a merge request (MR) for an engineer to review. A routine enhancement dropped from about a day to one or two hours.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/scarlet/figure-1.png&quot; alt=&quot;&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1. A pipeline change without Scarlet.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Then other teams asked for it, and four limits became clear:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;One team only:&lt;/strong&gt; Scarlet’s repository and conventions lived in a single system prompt sent on every request. A second team meant forking the bot.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;No proof the data was right:&lt;/strong&gt; Scarlet could run a change in a test environment, but nothing checked whether the output data was correct. That hour of manual validation still fell to a person, and it was the step most often skipped.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Shared access:&lt;/strong&gt; Early versions of Scarlet did not tie each action to the permissions of the person who requested it.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Slack only:&lt;/strong&gt; Every request needed someone to type it into a thread.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This post is about closing those gaps. We rebuilt Scarlet around a short core prompt and a library of skills: Markdown documents, one per capability or per team, loaded only when a request needs them. The prompt shrank about 25 times, and teams now review that knowledge like code. Scarlet also tests the data its changes produce, runs under the asker’s own permissions, and takes work from Jira tickets and other agents.&lt;/p&gt;

&lt;p&gt;Since this version reached production in May 2026, the repositories Scarlet ships to have grown about four times, weekly usage has roughly tripled, and the merge rate has climbed from about half to more than four in five. The merge still belongs to a person.&lt;/p&gt;

&lt;h2 id=&quot;what-scarlet-does&quot;&gt;What Scarlet does&lt;/h2&gt;

&lt;p&gt;To recap our initial blog: an engineer pastes a ticket into a Slack thread, Scarlet finds the repository and pipeline, checks the catalog, writes the change, and opens an MR for a human to review. That loop has not changed. Neither has the boundary: Scarlet has no merge or approve call, so merging stays with people.&lt;/p&gt;

&lt;p&gt;Everything around that loop has changed.&lt;/p&gt;

&lt;p&gt;In the thread:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A plain-language description is enough. No ticket needed.&lt;/li&gt;
  &lt;li&gt;Scarlet posts a plan before it touches a file.&lt;/li&gt;
  &lt;li&gt;A live plan card shows each tool call as in progress, complete, or failed, with a cancel button.&lt;/li&gt;
  &lt;li&gt;Follow-ups keep the earlier context, so “add one more column” needs no repetition.&lt;/li&gt;
  &lt;li&gt;Attached files load as reference material, never as instructions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the MR: a structured description, a bot label, and the requester tagged and assigned. If the branch already has an open MR, Scarlet updates it instead of opening another.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/scarlet/figure-2.png&quot; alt=&quot;&quot; style=&quot;width:60%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 2. Scarlet&apos;s live plan card during a pipeline build.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Scarlet now also works with the data catalog and the data quality platform, and handles far more scheduler actions than before. On each of them it follows one rule: show what it is about to do, then wait for a yes.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Catalog and data quality changes:&lt;/strong&gt; Scarlet posts the exact update it will write and waits for approval.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Scheduler actions:&lt;/strong&gt; Scarlet spells out which host, which directed acyclic graph (DAG), which run, and what it will do, then waits for approval.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Read-only requests:&lt;/strong&gt; no approval needed.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Data contracts:&lt;/strong&gt; Scarlet will not create one for a table whose quality checks are failing. A data contract tells downstream users the table is safe to depend on, and a table with failing checks is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Scarlet also answers questions about the data, such as how many rows landed yesterday. It runs those queries as the person asking and returns only aggregates, never per-person rows, under a hard cap that holds even if the model ignores its instructions.&lt;/p&gt;

&lt;h2 id=&quot;how-the-agent-plans-and-acts&quot;&gt;How the agent plans and acts&lt;/h2&gt;

&lt;p&gt;A request passes through four layers:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Slack carries the conversation and progress updates.&lt;/li&gt;
  &lt;li&gt;A reasoning loop picks the next action.&lt;/li&gt;
  &lt;li&gt;The skill library supplies the instructions for the current team and workflow.&lt;/li&gt;
  &lt;li&gt;An action layer reaches Jira, GitLab, Airflow, Google Docs and Sheets, and our internal data platforms.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/scarlet/figure-3.png&quot; alt=&quot;&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 3. How a Slack message becomes a merge request.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;The first post described streamlining more than thirty verbose tool descriptions. Scarlet now goes further. Each internal platform sits behind a Model Context Protocol (MCP) bridge with two tools, one to list operations and one to call them, and schemas load only when needed. A platform with dozens of operations adds nothing to a request that never touches it.&lt;/p&gt;

&lt;p&gt;Scarlet has two identities, split by what it touches:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Data platforms (catalog, data quality, jobs, scheduler): Scarlet has no credentials of its own. Each operation runs as the requesting user through a short-lived token from their sign-in, so anything they cannot touch fails for Scarlet too.&lt;/li&gt;
  &lt;li&gt;Source control: operations run as the Scarlet bot, so a machine-authored MR is easy to spot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a user asked how its access worked, Scarlet summed it up: “I can only do what you can do. I’m an accelerator for your own permissions, not a bypass around them.”&lt;/p&gt;

&lt;p&gt;Every reply ends with a footer linking to its full trace, so a reviewer can see exactly what Scarlet did and why.&lt;/p&gt;

&lt;h2 id=&quot;the-skill-library&quot;&gt;The skill library&lt;/h2&gt;

&lt;p&gt;Scarlet’s core prompt contains no workflow detail. It tells the model to load the relevant skills before acting. Skills describe how to do the work, and tools do it.&lt;/p&gt;

&lt;p&gt;Each skill is a Markdown document that defines one capability or one team’s conventions, plus the skills it depends on. The table certification skill, for example, pulls in the catalog and data quality skills it relies on.&lt;/p&gt;

&lt;p&gt;The library has four kinds of skill:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Platform skills cover common operations, such as reading tickets, finding tables, and opening MRs.&lt;/li&gt;
  &lt;li&gt;Routing skills work out which team and repository a request belongs to.&lt;/li&gt;
  &lt;li&gt;Repository skills record a team’s repository, schema ownership, scheduler, labels, and conventions.&lt;/li&gt;
  &lt;li&gt;Workflow skills run end-to-end tasks: building pipelines, rewiring sources, certifying tables, validating data changes, and reviewing MRs.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/scarlet/figure-4.png&quot; alt=&quot;&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 4. Skill resolution.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;A skill goes through the same life cycle as code:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;An author writes or changes a skill and opens an MR. Scarlet can draft this MR itself.&lt;/li&gt;
  &lt;li&gt;Reviewers approve it the way they review code.&lt;/li&gt;
  &lt;li&gt;A pipeline validates the skill and publishes an immutable bundle.&lt;/li&gt;
  &lt;li&gt;At startup, Scarlet activates one bundle version and writes that version into its prompt, so every answer traces back to the exact instructions that produced it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A new team joins by adding one repository skill. The library has roughly tripled since July. Much of that growth is team skills, and several of them were written by the teams that use them.&lt;/p&gt;

&lt;h2 id=&quot;validating-the-data&quot;&gt;Validating the data&lt;/h2&gt;

&lt;p&gt;Continuous integration (CI) proves that the code runs. It cannot prove that the data is right: a join that silently drops rows, a column that is suddenly half null, or a swap that overwrites yesterday’s output all pass CI. Manual checks were easy to deprioritize, because they take longer and typically require familiarity with both Structured Query Language (SQL) and the tables involved.&lt;/p&gt;

&lt;p&gt;Scarlet now tests the data as part of the change. This job used to belong to a separate validation bot, and we folded it into Scarlet. The flow:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;During CI, our data platform runs the candidate change in an isolated environment and publishes a manifest linking the commit to the table it produced.&lt;/li&gt;
  &lt;li&gt;Scarlet reads the manifest, so it has real candidate output before anyone reviews the MR.&lt;/li&gt;
  &lt;li&gt;From the change, Scarlet works out what to compare: the target table, the changed columns, and the table’s keys and partitions.&lt;/li&gt;
  &lt;li&gt;It runs its checks against the current production table.&lt;/li&gt;
  &lt;li&gt;It posts a verdict of pass, fail, or inconclusive, with evidence for every check, bound to the exact commit it tested.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The checks:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Schema and type differences.&lt;/li&gt;
  &lt;li&gt;Row counts.&lt;/li&gt;
  &lt;li&gt;Duplicates and key reconciliation.&lt;/li&gt;
  &lt;li&gt;Null rates and column profiles.&lt;/li&gt;
  &lt;li&gt;Numeric statistics such as minimum, maximum, mean, and spread.&lt;/li&gt;
  &lt;li&gt;Row-level differences between the two outputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The rules:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;The kind of change sets the mandatory checks, and requesters can add their own scenarios in the ticket.&lt;/li&gt;
  &lt;li&gt;Inconclusive counts as a failure.&lt;/li&gt;
  &lt;li&gt;If the change moves after testing, the verdict expires and the checks run again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Automated checks can make MR validation and table comparisons less time-consuming than manual review.&lt;/p&gt;

&lt;p&gt;We are extending the same flow past the merge. Scarlet will watch the first production run after an MR merges, rerun its checks against the live output, and, if they fail, raise a revert MR for a human to approve.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/scarlet/figure-5.png&quot; alt=&quot;&quot; style=&quot;width:80%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 5. Testing a change&apos;s data.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h2 id=&quot;beyond-slack&quot;&gt;Beyond Slack&lt;/h2&gt;

&lt;p&gt;Not every request starts with a Slack message anymore. There are three ways in:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Slack thread: the flow described above.&lt;/li&gt;
  &lt;li&gt;Jira label: within about five minutes of a ticket being labeled for Scarlet, it picks the ticket up, starts a thread in its channel, tags the assignee, and works the ticket through to the MR.&lt;/li&gt;
  &lt;li&gt;Command line and run application programming interface (API): engineers use Scarlet from a terminal, and coding assistants such as Codex and Cursor call it as a tool. The agent, its skills, and every credential stay on the server, and sign-in pauses work as they do in Slack.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;seeing-it-in-action&quot;&gt;Seeing it in action&lt;/h2&gt;

&lt;p&gt;The first post walked through a single column change for our own team. These three cases show new kinds of work and new teams.&lt;/p&gt;

&lt;h3 id=&quot;our-own-first-pipelines&quot;&gt;Our own first pipelines&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Ask:&lt;/strong&gt; onboard a new finance source system into the data lake, which needed many similar pipelines. An engineer described the task in a single message.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;What Scarlet did:&lt;/strong&gt; read the source schema from the catalog, generated the transformation, DAG, and dependency files, and opened an MR within 30 seconds of the go-ahead. CI passed about five minutes later.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Result:&lt;/strong&gt; every pipeline that week passed CI on the first attempt, and almost all of the generated code shipped without rework. We estimate the work took around 6% of the engineer time it would have taken by hand.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;the-first-merge-request-outside-our-team&quot;&gt;The first merge request outside our team&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Ask:&lt;/strong&gt; an analytics engineer on a commerce team, in their first week with Scarlet, wanted five fields added to a clickstream table.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;What Scarlet did:&lt;/strong&gt; opened the MR, then its own review pass flagged that the field names broke the upstream team’s convention. The engineer picked the convention, and Scarlet updated the MR and the ticket.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Result:&lt;/strong&gt; a reviewer merged it the next day.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;a-team-onboarded-mid-request&quot;&gt;A team onboarded mid-request&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Ask:&lt;/strong&gt; an engineer on a lending analytics team, using Scarlet for the first time, wanted a scheduled job changed for a team Scarlet had never been set up for.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;What Scarlet did:&lt;/strong&gt; when the engineer typed “onboard my team to Scarlet”, it drafted the team’s skill as an MR. After a single sign-in, it updated the job under the engineer’s identity and ran its post-change checks.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Result:&lt;/strong&gt; the skill MR merged the next day, and the job change went through under the engineer’s own permissions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;lessons-from-production&quot;&gt;Lessons from production&lt;/h2&gt;

&lt;h3 id=&quot;templates-for-predictable-structure&quot;&gt;Templates for predictable structure&lt;/h3&gt;

&lt;p&gt;What happened: during one migration, Scarlet produced a large MR that passed CI and failed at runtime. The model had guessed part of the job configuration.&lt;/p&gt;

&lt;p&gt;What we changed:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Deterministic scaffolds for predictable structures. They run the platform’s own code generator and validate the output against a contract.&lt;/li&gt;
  &lt;li&gt;A Slack wizard for teams that prefer forms. It never calls the model and captures all the necessary details as required.&lt;/li&gt;
  &lt;li&gt;A validate, lint, fix loop for generated SQL and configuration. It stops after a few failed attempts and asks a human.&lt;/li&gt;
  &lt;li&gt;The model keeps only the work that needs judgment: mapping columns, writing transformations, explaining failures.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;sign-in-as-a-pause&quot;&gt;Sign-in as a pause&lt;/h3&gt;

&lt;p&gt;What happened: when Scarlet acts as the user, some platforms need that user to sign in first. At first, hitting one of those mid-run ended the workflow, and replaying the request lost the progress.&lt;/p&gt;

&lt;p&gt;What we changed: sign-in is now a pause. The run checkpoints at a LangGraph interrupt, and the sign-in callback resumes it from that point while the same plan card keeps updating.&lt;/p&gt;

&lt;h3 id=&quot;measuring-without-reading-conversations&quot;&gt;Measuring without reading conversations&lt;/h3&gt;

&lt;p&gt;What happened: the first post’s feedback loop ran on reviewers rating each answer in Slack. Scarlet’s output is an MR reviewed in GitLab, so that loop did not carry over, and after launch we could not say who used Scarlet, for what, or how often it succeeded.&lt;/p&gt;

&lt;p&gt;What we changed: a recorder that captures metadata from the tool stream (requester, source, skills, tools, duration, outcome, intent) without storing conversations. Request text is opt-in, and anything that looks like a credential is redacted. The figures below come from it.&lt;/p&gt;

&lt;h2 id=&quot;impact&quot;&gt;Impact&lt;/h2&gt;

&lt;p&gt;These figures come from the usage events Scarlet records.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/scarlet/figure-6.png&quot; alt=&quot;&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 6. Weekly usage and merge rate, May to September 2026.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Weekly usage held steady from July to mid-August, then climbed. In the week of 7 September it reached about three times the usual request volume from about twice as many users, and the following week held near twice the usual level.&lt;/li&gt;
  &lt;li&gt;The share of monthly users who came back for a second week rose from about 42% in July to 56% in August and stayed above 50% in September. The top user’s share fell from nearly half of all requests to under 10%.&lt;/li&gt;
  &lt;li&gt;Repositories with a Scarlet MR grew about fourfold from May to September, and monthly MRs opened grew more than fourfold from June to September. The merge rate rose from about 50% in May to over 85% in September. Early September alone produced more merged code than the whole of August.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The mix of requests changed as the skill library grew:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Table discovery grew fastest, more than six times from July to September, as new teams explored the catalog before asking for changes.&lt;/li&gt;
  &lt;li&gt;By September about half of all requests were questions about the data, not changes. Answering under the asker’s own permissions turned out to matter as much as the merge boundary.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;current-limits&quot;&gt;Current limits&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Long threads degrade answer quality, and a very large request can exceed a single model turn. Starting a new thread helps once older context stops being useful.&lt;/li&gt;
  &lt;li&gt;Coverage gaps: schema and freshness checks only, certification for production tables only, and source rewires stop for a human when fewer than about 70% of columns can be mapped.&lt;/li&gt;
  &lt;li&gt;Data testing covers code-pipeline changes. Batch-job changes still need an isolated test environment first.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The biggest open problem is uncertainty. When repository conventions do not settle a configuration choice, Scarlet sometimes proceeds without asking. The next step is to make that rule explicit in the skills and check it with regression tests on every release.&lt;/p&gt;

&lt;h2 id=&quot;takeaways&quot;&gt;Takeaways&lt;/h2&gt;

&lt;p&gt;Slack made the work visible. The skill library made it maintainable: a new repository no longer needs a new agent, and teams review the files that hold their conventions. If you are building something similar, keep the model for the judgment calls and write every convention down as a file someone can review.&lt;/p&gt;

&lt;h2 id=&quot;whats-next&quot;&gt;What’s next&lt;/h2&gt;

&lt;p&gt;The first post drew the line at anything that changes production: those actions wait for a human. With CI and data validation now in place, we think that line can move for routine work. Now that requests can start from tickets or other agents, every Scarlet MR will pass through one risk-based approval gate:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;CI passes.&lt;/li&gt;
  &lt;li&gt;Scarlet’s data validation returns pass. A fail or inconclusive verdict goes to a human.&lt;/li&gt;
  &lt;li&gt;The change is routine. New pipelines, rewired sources, and data contract changes always go to a human.&lt;/li&gt;
  &lt;li&gt;A change that passes all three checks could move through review faster, with an engineer still making the final call to merge.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://www.grab.careers/en/&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Mon, 23 Nov 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/how-grab-built-scarlet-blog</link>
        <guid isPermaLink="true">https://engineering.grab.com/how-grab-built-scarlet-blog</guid>
        
        <category>AI</category>
        
        <category>Artificial Intelligence</category>
        
        <category>Analytics</category>
        
        <category>Database</category>
        
        <category>Automation</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>How a shared merchant data service can degrade gracefully</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;When a cache becomes unreliable, a shared read service can struggle in ways that spread to the systems that depend on it. We saw this pattern in our merchant data service (MDS). Cache reads began timing out, fallback requests increased database pressure, and service availability degraded.&lt;/p&gt;

&lt;p&gt;The trigger was localized; the broader impact came from how each layer responded, passing more work downstream instead of containing the failure.&lt;/p&gt;

&lt;p&gt;That amplification follows a predictable pattern, and a few design changes help MDS degrade instead of collapse. The central lesson is simple: a fallback is not a safety net unless its work is bounded.&lt;/p&gt;

&lt;h2 id=&quot;the-merchant-data-service-and-its-cache&quot;&gt;The merchant data service and its cache&lt;/h2&gt;

&lt;p&gt;MDS is a shared read service for merchant information. Many client applications use it for questions such as “Is this outlet open?”, “Does this merchant accept orders manually?”, and “What are this merchant’s settings?”. It supports a range of product and operational workflows and handles high-volume, read-heavy traffic. Because merchant data generally changes less frequently than it is read, MDS uses a cache-aside design:&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/degrade-merchant-data/figure-1.png&quot; alt=&quot;Diagram of the cache-aside read path for the merchant data service&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1. The cache-aside read path. The database is the source of truth; the cache serves most reads.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;In normal operation, this works well. The database sees only cache misses, which are a small fraction of traffic. The design depends on one assumption that is rarely written down: that cache failures look like cache misses only occasionally. Without bulkheads, the service is like an undivided ship where a small hull breach (a minor cache glitch) lets water flood unchecked into every compartment, quickly sinking the whole vessel under a sudden wave of database requests it was never built to carry.&lt;/p&gt;

&lt;h2 id=&quot;anatomy-of-a-cascading-failure&quot;&gt;Anatomy of a cascading failure&lt;/h2&gt;

&lt;p&gt;A cache disruption caused reads to time out and fall back to the database. As fallback demand rose, database errors and connection pressure increased; callers then saw more failures, and service availability dropped.&lt;/p&gt;

&lt;p&gt;This followed a sequence that the &lt;a href=&quot;https://sre.google/sre-book/addressing-cascading-failures/&quot;&gt;Google SRE book&lt;/a&gt; describes as a cascading failure: a local fault triggers a response that increases load, which causes more faults. When cache reads slow or fail, each miss adds database work. As the database slows, callers time out. Retries then add more load to the already degraded path, turning a local cache problem into a feedback loop.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/degrade-merchant-data/figure-2.png&quot; alt=&quot;Diagram of how a cache problem can increase downstream load&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 2. A cache problem can increase downstream load and widen service degradation.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Recovery took longer because retries and connection pressure kept adding load while the cache and database tiers were constrained. Temporary mitigations reduced symptoms, but the system needed restored headroom and lower incoming pressure before it could recover. Those actions addressed the immediate disruption, not the underlying risk: a cache failure could still send excessive, unprioritized work to shared dependencies.&lt;/p&gt;

&lt;p&gt;Short-term client and request-path changes reduced exposure to the immediate trigger. The core vulnerability remained: a dependency failure could still flood shared resources with unbounded, unprioritized work.&lt;/p&gt;

&lt;h2 id=&quot;the-questions-the-redesign-had-to-answer&quot;&gt;The questions the redesign had to answer&lt;/h2&gt;

&lt;p&gt;The cascade exposed three gaps: cache errors followed the same path as normal misses; fallback work had no firm admission bound; and callers with different business impact competed for shared capacity. Those gaps left the redesign with five questions.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Which requests should survive when capacity is scarce?&lt;/li&gt;
  &lt;li&gt;How much cache-fallback traffic may reach each database?&lt;/li&gt;
  &lt;li&gt;How do we stop one workload class from exhausting resources used by another?&lt;/li&gt;
  &lt;li&gt;Do all clients need real-time data, or can their use cases tolerate a bounded delay in seeing updates?&lt;/li&gt;
  &lt;li&gt;Can callers use a recently observed value when fresh data is temporarily unavailable?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These five questions point to a clear objective: preserve interactive reads while shedding work that can wait. Our core design principles include:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Keep interactive reads available for as long as capacity allows.&lt;/li&gt;
  &lt;li&gt;Shed background and batch work before user-facing work.&lt;/li&gt;
  &lt;li&gt;Bound database work caused by cache failures.&lt;/li&gt;
  &lt;li&gt;Fail fast when a dependency is saturated instead of building an unbounded queue.&lt;/li&gt;
  &lt;li&gt;Serve stale data only on approved read paths with explicit freshness limits.&lt;/li&gt;
  &lt;li&gt;Give on-call engineers scoped controls that do not require a deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Five mechanisms put these principles into practice, starting at the database boundary and working outward to the client application.&lt;/p&gt;

&lt;h3 id=&quot;step-1-know-who-is-calling-and-how-much-it-matters&quot;&gt;Step 1: Know who is calling and how much it matters&lt;/h3&gt;

&lt;p&gt;Prioritizing work requires knowing a request’s relative impact. Instead of relying on caller-supplied labels, MDS derives a request class from authentication. The table below shows the categorization of incoming traffic by operational criticality.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Class&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Meaning&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;P0 (Critical)&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Interactive reads with direct user impact, such as the consumer app’s API&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;P1 (Standard)&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Routine production reads&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;P2 (Deferrable)&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Background, batch, and unclassified work that can wait&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Clients without an explicit policy receive the lowest-priority class by default. The default stops new or unclassified callers from claiming scarce capacity; promotion requires a reviewed policy change, not a code change. Downstream controls use the same class so the database limiter, circuit breakers, cache connections, and traffic controls make consistent decisions.&lt;/p&gt;

&lt;h3 id=&quot;step-2-put-a-budget-in-front-of-the-database&quot;&gt;Step 2: Put a budget in front of the database&lt;/h3&gt;

&lt;p&gt;The key change is an admission controller immediately before the database on the cache-fallback path. Each fallback query must acquire capacity from a shared token budget before running. If capacity is unavailable, the request is rejected promptly instead of joining a queue for an already saturated database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Separate budgets for distinct workload roles.&lt;/strong&gt; Independent limits protect different database workloads so that pressure in one area does not consume all capacity available to another. The overall budget is coordinated across service instances and managed through runtime configuration.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost reflects query shape and priority.&lt;/strong&gt; Each fallback consumes capacity according to the work it is expected to perform. Lower-priority work carries a higher relative cost than interactive point lookups. The cost relationship is illustrative, not a production setting. The table below displays illustrative token costs. In production, these values are set through runtime configuration.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Query type&lt;/th&gt;
      &lt;th&gt;Base cost&lt;/th&gt;
      &lt;th&gt;P0 total&lt;/th&gt;
      &lt;th&gt;P1 total&lt;/th&gt;
      &lt;th&gt;P2 total&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Point lookup by ID&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Indexed find or range seek&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Under contention, a more expensive lower-priority query uses its share faster than a point lookup from an interactive caller. Weighting gives higher-impact work a better chance to proceed, but it does not reserve capacity. If interactive demand itself exceeds the shared limit, some interactive requests may be rejected too. A shared weighted budget avoids leaving capacity idle when one class has less demand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;P2 (deferrable) requests do not use the fallback during cache errors.&lt;/strong&gt; When a cache read fails because of a dependency error, not an ordinary miss or invalid data, the P2 class is rejected before reaching the database limiter. Rejecting P2 early preserves more database budget for interactive and routine work during a broad cache disruption.&lt;/p&gt;

&lt;h3 id=&quot;step-3-bulkheads-for-connections-and-failure-signals&quot;&gt;Step 3: Bulkheads for connections and failure signals&lt;/h3&gt;

&lt;p&gt;Admission control limits &lt;em&gt;how much&lt;/em&gt; work reaches the database. Bulkheads limit &lt;em&gt;who can starve whom&lt;/em&gt; along the way. The name comes from the watertight compartments in a ship’s hull: a breach floods one compartment, not the ship.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Separate cache connection pools by request class.&lt;/strong&gt; MDS routes requests through independent pools based on their relative impact. Slow background reads can exhaust their own pool without consuming connections needed by interactive traffic. Separate pools help most when slow operations hold connections longer and pool exhaustion could turn slowness into failure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Separate circuit breakers by request class.&lt;/strong&gt; Failures in lower-priority traffic do not automatically block interactive work; each class is evaluated against its own observed errors. A shared dependency failure can still affect every class.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/degrade-merchant-data/figure-3.png&quot; alt=&quot;Diagram of bulkhead architecture for a shared read service&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 3. Bulkhead architecture of a shared read service.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Together, these controls help contain localized cache faults and noisy workloads. Bulkheads reduce interference while capacity remains; they cannot preserve service if the underlying database is unavailable.&lt;/p&gt;

&lt;h3 id=&quot;step-4-give-responders-a-scoped-control&quot;&gt;Step 4: Give responders a scoped control&lt;/h3&gt;

&lt;p&gt;Automatic controls address anticipated failure modes, but incidents can reveal new scenarios. A useful response is the ability to reduce traffic from a particular client or workload without waiting for a code release.&lt;/p&gt;

&lt;p&gt;MDS supports scoped traffic controls managed through centrally controlled runtime configuration. Rules can target progressively broader scopes. The patterns below are illustrative:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Scope pattern&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Targeted request group&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;client:endpoint&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;A particular client and operation&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;criticality:endpoint&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;A request class accessing a particular operation&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;criticality:&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;An entire request class&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Matching policies can be applied gradually by percentage instead of as an all-or-nothing block. Throttled requests receive a standard unavailable response. Health checks remain exempt so health-based routing can continue. Responders can adjust the scope and level of protection during an incident without a code deployment.&lt;/p&gt;

&lt;h3 id=&quot;step-5-move-safe-degradation-closer-to-callers&quot;&gt;Step 5: Move safe degradation closer to callers&lt;/h3&gt;

&lt;p&gt;Everything so far protects MDS from load. Callers can also amplify failures: retries and synchronized cache expiry may add pressure while MDS is recovering. Server-side shedding can turn excess traffic away, but a rejected request is still a failed request for the user behind it.&lt;/p&gt;

&lt;p&gt;For some relatively stable fields, a recent value may be preferable to an error. More time-sensitive data may require stricter freshness limits or must always be read fresh. The MDS client software development kit (SDK) now includes an opt-in cache that lets approved read paths make this trade explicitly, with a bounded freshness policy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every cached value carries its own freshness window.&lt;/strong&gt; The SDK stores freshness metadata alongside each value, including when it was stored and the boundaries for fresh and approved-stale use. Cache retention covers only that bounded window, while the SDK decides whether the value may be served. Keeping the metadata with the value makes the same policy work across supported cache backends.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/degrade-merchant-data/figure-4.png&quot; alt=&quot;Diagram of the SDK reusing known values and serving approved stale data&quot; style=&quot;width:80%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 4. SDK reuses known values and serves approved stale data.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h2 id=&quot;what-the-tests-and-production-data-showed&quot;&gt;What the tests and production data showed&lt;/h2&gt;

&lt;h3 id=&quot;admission-control-limits-database-fallback&quot;&gt;Admission control limits database fallback&lt;/h3&gt;

&lt;p&gt;In controlled load tests, admission control rejected excess fallback work before it reached the database. The limiter kept database work within its configured budget as offered load increased, trading some request success for lower database saturation.&lt;/p&gt;

&lt;p&gt;Under heavy offered load in these tests, average database central processing unit (CPU) use was lower with the limiter than without it.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/degrade-merchant-data/figure-5.png&quot; alt=&quot;Chart of database load under increasing offered traffic in a controlled test&quot; style=&quot;width:90%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 5. Database load under increasing offered traffic in a controlled test.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h3 id=&quot;priority-controls-shed-lower-priority-work-first&quot;&gt;Priority controls shed lower-priority work first&lt;/h3&gt;

&lt;p&gt;Tests showed that the controls shed work by priority rather than rejecting all callers equally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Isolated circuits.&lt;/strong&gt; Lower-priority work gave way first, while interactive reads remained subject to their own limits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Database admission control.&lt;/strong&gt; A shared weighted budget can give higher-impact work more opportunity to proceed, but it does not reserve capacity. Interactive requests can still fail when the shared dependency is exhausted.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/degrade-merchant-data/figure-6.png&quot; alt=&quot;Chart of priority-based request handling under increasing load&quot; style=&quot;width:90%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 6. Priority-based request handling under increasing load.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h3 id=&quot;the-sdk-cache-reduced-repeated-reads&quot;&gt;The SDK cache reduced repeated reads&lt;/h3&gt;

&lt;p&gt;In the read paths that adopted it, client-side caching reduced the number of requests reaching MDS at peak. Reads served from the cache returned faster than those that needed a network call, and caching eased load on the cache tier and the application. When fresh reads were temporarily unavailable, clients could fall back to approved stale values instead of failing.&lt;/p&gt;

&lt;h2 id=&quot;what-we-learned&quot;&gt;What we learned&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Every fallback needs a bound.&lt;/strong&gt; The cache-to-database fallback was designed as a safety net and behaved like an amplifier. A fallback without a budget spreads failure instead of containing it. The same applies to stale data: it is safe only inside an approved freshness window.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Isolation must follow impact, not topology.&lt;/strong&gt; Physical separation alone was insufficient when callers still shared the same controls. Isolating by workload impact lets the service choose which work is most likely to survive.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Latency and queues are failure signals.&lt;/strong&gt; Incidents can begin with rising latency before visible errors emerge. Timed-out work still consumes capacity, and a retry against a saturated dependency is extra load, not recovery.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Test the controls together.&lt;/strong&gt; Circuit breakers, limiters, retries, cache expiry, and stale serving interact, and failures often come from how they combine. Testing them together under realistic overload reveals interactions that testing one at a time can miss.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;what-comes-next&quot;&gt;What comes next&lt;/h2&gt;

&lt;p&gt;These controls currently focus on MDS and its client SDK. Looking ahead, we are exploring ways to improve coordination across layers, align admission decisions with current capacity, manage retry budgets end to end, and carry server-validated request priority to downstream dependencies.&lt;/p&gt;

&lt;h2 id=&quot;closing-thoughts&quot;&gt;Closing thoughts&lt;/h2&gt;

&lt;p&gt;A shared service cannot make its dependencies infallible. Cache systems can fail, and databases can run out of headroom. What the service controls is how much work it sends toward a failing dependency, whose work goes first, and what callers do when an answer is delayed. By bounding fallback work, isolating callers by impact, rejecting excess demand early, and serving stale data only on approved paths, MDS is better able to contain cache disruptions without turning them into broader service unavailability.&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://www.grab.careers/en/&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Wed, 18 Nov 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/shared-merchant-data-service</link>
        <guid isPermaLink="true">https://engineering.grab.com/shared-merchant-data-service</guid>
        
        <category>Resilience</category>
        
        <category>Caching</category>
        
        <category>Merchant Data</category>
        
        <category>Backend</category>
        
        <category>Engineering</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>App stability at scale with a layered defense</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Artificial intelligence (AI) coding assistants have changed how fast we can ship. They have not changed how mobile users experience a crash. That gap is the pressure every mobile stability program now operates under.&lt;/p&gt;

&lt;p&gt;The Grab superapp, which millions of users across Southeast Asia use to book rides, order food, and more, operates at a large scale. On Android alone, it spans &lt;strong&gt;millions of lines of code&lt;/strong&gt;, with &lt;strong&gt;many engineers&lt;/strong&gt; shipping code into every release on a &lt;strong&gt;weekly release cycle&lt;/strong&gt;. Maintaining app stability is not just a technical goal; it is a product commitment to those users. With the rise of AI coding assistance, the volume of change in every release has grown, and so has the number of ways a single change can break something in an already large codebase.&lt;/p&gt;

&lt;p&gt;At this scale, crashes leaking into production are an ongoing risk. A high volume of merge requests lands every week across &lt;strong&gt;many product teams&lt;/strong&gt;, many shipping features behind flags that are switched on independently of releases. Any one of those changes can introduce a crash. Most of the time, the stack trace points straight to the responsible change and team. The hard cases are the exceptions: crashes without a usable stack trace, such as native crashes without debug symbols, where finding the cause means cross-referencing release timelines, flag rollouts, and session metadata.&lt;/p&gt;

&lt;p&gt;The cost of a crash is also steeper on mobile than on the web. A web fix can go live in minutes; a mobile crash that ships stays on users’ devices. With more than 100 million downloads on Google Play as of October 2026, not every user has auto-update enabled, and until a force update reaches them, some will run a broken version for months. Meanwhile, the crash degrades their experience, drags down the crash-free session rate, and can hurt the app’s ranking on Google Play. If it is severe enough to need a hotfix, the team also has to prepare an out-of-cycle build, pulling time away from planned work.&lt;/p&gt;

&lt;p&gt;We keep the Grab superapp stable with a set of layered practices. Data points and tooling examples come from Android. The Grab iOS app follows the same strategy with platform-equivalent tooling (SwiftLint in place of Android Lint), and both apps share one release pipeline for Grab Early Access (GEA), our early access build, as well as staged rollout, production monitoring, and crash triage.&lt;/p&gt;

&lt;h2 id=&quot;a-layered-defense-for-app-stability&quot;&gt;A layered defense for app stability&lt;/h2&gt;

&lt;p&gt;Our strategy is rooted in a &lt;strong&gt;shift-left mindset&lt;/strong&gt;: the earlier we catch a crash, the cheaper and less disruptive it is to fix. A crash caught by a lint rule costs nothing. A crash caught in GEA takes an engineer fewer hours to fix. A crash that reaches production costs user trust. That is why we invest most heavily in prevention: the goal is to stop crashes before they reach production, not to fix them there.&lt;/p&gt;

&lt;p&gt;The system is a series of filters, each anchored to a specific phase of the feature development lifecycle, so the right check runs at the right time, and a crash that slips past one layer has another waiting downstream.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/app-stablity/figure-1.png&quot; alt=&quot;&quot; style=&quot;width:100%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;The colors mark the three phases on the stability side: &lt;strong&gt;prevention&lt;/strong&gt; (pre-merge through pre-prod), the &lt;strong&gt;release gate&lt;/strong&gt; (staged rollout and feature flags), and &lt;strong&gt;response&lt;/strong&gt; (post-release).&lt;/p&gt;

&lt;h3 id=&quot;prevention-our-primary-line-of-defense&quot;&gt;Prevention: Our primary line of defense&lt;/h3&gt;

&lt;h4 id=&quot;lint-checks-stopping-crashes-at-the-code-level&quot;&gt;Lint checks: Stopping crashes at the code level&lt;/h4&gt;

&lt;p&gt;Lint is the cheapest layer we have: static analysis that flags unsafe patterns, application programming interface (API) misuse, and likely crashes before the code ever runs. We use &lt;strong&gt;Android Lint&lt;/strong&gt; on Android and &lt;strong&gt;SwiftLint&lt;/strong&gt; on iOS. Both run in continuous integration (CI) on every merge request, and high-severity findings are merge blockers. Pre-existing issues never block a merge request: on Android, a lint baseline records them, and on iOS, SwiftLint reports only on the lines a merge request changes. Either way, a merge request fails only on the findings it introduces.&lt;/p&gt;

&lt;p&gt;Our rules come from three sources:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Platform rules.&lt;/strong&gt; Built-in checks cover well-known dangerous patterns, such as incorrect API usage and threading mistakes, and form the foundation for every build.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Community rules.&lt;/strong&gt; Open-source rule sets cover third-party libraries and patterns the built-in checks miss. We adopt the ones relevant to our stack.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Custom rules.&lt;/strong&gt; Both Android Lint and SwiftLint support custom rules, and we have built our own on both platforms. When a post-mortem or crash investigation traces a production crash to a specific code pattern, we write a rule that blocks that pattern from coming back.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Custom rules matter more as AI-assisted coding grows. An assistant can write code that looks right in general without knowing which patterns have crashed our app before. Custom rules turn those lessons into checks that apply equally to hand-written and AI-generated code.&lt;/p&gt;

&lt;p&gt;Lint routinely blocks merge requests carrying Fatal issues: the kind that typically crash the app immediately or stop it from running.&lt;/p&gt;

&lt;h4 id=&quot;testing-strategy-multiple-layers-of-confidence&quot;&gt;Testing strategy: Multiple layers of confidence&lt;/h4&gt;

&lt;p&gt;Lint catches unsafe patterns statically, but it cannot run the code. Tests are where we catch crashes and regressions that only appear at runtime. No single test type covers everything, so we apply multiple complementary layers:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Layer&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Focus&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Unit tests&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Business logic correctness at the function and class level&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;User interface (UI) component tests&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Rendering and interaction behavior of individual UI components&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;End-to-end (E2E) automation tests&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Integrity of critical user journeys&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;&lt;strong&gt;Quality assurance (QA) manual testing&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Real-device exploratory testing for new features and significant code changes&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Each layer targets a different class of crash risk. Unit tests block logic errors before they merge. UI component tests catch crashes tied to rendering or state mismatches; like unit tests, they run pre-merge on every merge request, so a rendering regression is blocked before it lands. E2E automation covers the flows with the highest business impact and runs on a per-team schedule and on every release train. QA manual testing focuses on new features and significant code changes, plus a full regression pass on every release, catching the edge cases that automation misses on real devices.&lt;/p&gt;

&lt;h4 id=&quot;grab-early-access-gea-a-one-week-pre-production-gate&quot;&gt;Grab Early Access (GEA): A one-week pre-production gate&lt;/h4&gt;

&lt;p&gt;Even with strong lint rules and test coverage, some crashes only surface under real-world conditions. GEA is an early build app by Grab. GEA builds are actively monitored for crashes, and any new crash surfaced during the GEA window automatically creates a ticket assigned to the responsible team. Issues reported by internal users, including functional defects and feature breakage, are ticketed the same way. Teams are required to resolve all blocking GEA issues before the release proceeds to production. GEA’s user base is large enough to expose real-world edge cases that automated tests miss, but small enough that issues are contained before reaching production users. GEA is a mandatory quality gate on every release cycle.&lt;/p&gt;

&lt;p&gt;A crash that only a handful of internal users see in GEA would, at production scale, translate into a substantial spike in the crash rate, extra support load, and potentially a hotfix. Catching these crashes before they ever reach production users makes GEA one of our most important stability gates.&lt;/p&gt;

&lt;p&gt;The impact adds up. Across both platforms, GEA catches new crashes every month, and each is fixed before the release reaches production. Each of them could otherwise have reached production users, including the long tail of users who do not auto-update and would have kept hitting them for months.&lt;/p&gt;

&lt;h3 id=&quot;the-release-gate-staged-rollout-and-feature-flags&quot;&gt;The release gate: Staged rollout and feature flags&lt;/h3&gt;

&lt;p&gt;Prevention keeps crashes out of the build. But the moment a release enters production, it meets something neither lint rules nor GEA can fully replicate: the full diversity of the real world, with thousands of device models, operating system (OS) versions, carrier configurations, and usage patterns that no internal test environment can mirror. So we treat the release boundary as its own critical checkpoint, a release gate between a validated build and full user exposure. Two mechanisms operate at this gate: &lt;strong&gt;staged rollout monitoring&lt;/strong&gt; to limit the blast radius of the release itself, and &lt;strong&gt;feature flags&lt;/strong&gt; to decouple feature activation from deployment.&lt;/p&gt;

&lt;h4 id=&quot;staged-rollout-monitoring&quot;&gt;Staged rollout monitoring&lt;/h4&gt;

&lt;p&gt;We do not ship to all users at once. Every release follows a &lt;strong&gt;staged rollout&lt;/strong&gt; over the course of a week, starting with a small percentage of users and expanding in steps to the full user base. Each increment gives the monitoring system time to accumulate meaningful signal before the next expansion. During this window, we run a dedicated monitor that tracks the crash rate of the new version in isolation, separately from the baseline of all active versions. The separation matters: a regression in the new release can be masked in aggregate metrics if the older, stable versions dominate the user base.&lt;/p&gt;

&lt;p&gt;If the new release shows an abnormal crash rate at any point during rollout, an &lt;strong&gt;automated system pauses the release&lt;/strong&gt; before it expands further. The rollout does not resume until the responsible team has reviewed the issue and explicitly approved continuation. The pause gives us a hard stopping point: a regression introduced by the new release is contained to the fraction of users who received it, instead of compounding across the full install base.&lt;/p&gt;

&lt;p&gt;In recent months, several Android rollouts were paused for on-call review. Most resumed after investigation: either the signal turned out to be noise, or the crash sat behind a feature flag that could be turned off without a new build. A small number stayed halted at the first stage until a hotfix shipped. We tune the monitor to be sensitive on purpose: a paused rollout takes an engineer a few hours to fix, while a missed regression can cost weeks. In one of the halted cases, only a small number of users hit the new crash before the halt, and the rest of the user base never saw it. Without the automated halt, the rollout would have kept expanding on schedule, taking the crash to the full user base.&lt;/p&gt;

&lt;h4 id=&quot;feature-flags-controlled-activation-with-an-instant-kill-switch&quot;&gt;Feature flags: Controlled activation with an instant kill switch&lt;/h4&gt;

&lt;p&gt;Even when a release ships cleanly, the features inside it are gated independently. All significant new features ship behind &lt;strong&gt;feature flags&lt;/strong&gt;, decoupling deployment from activation. Flags let us roll out a feature gradually, monitor crash rates at each increment, and, critically, &lt;strong&gt;disable a feature instantly&lt;/strong&gt; if its crash rate exceeds a defined threshold, without waiting for the next release cycle. For a team shipping weekly, the kill switch is what makes fast iteration safe, and it is also our first lever when something does reach production.&lt;/p&gt;

&lt;h3 id=&quot;response-when-prevention-falls-short&quot;&gt;Response: When prevention falls short&lt;/h3&gt;

&lt;p&gt;No prevention layer is perfect. Crashes can still reach production: a misconfigured remote flag opens an unexpected code path, an OS update from a device manufacturer changes system behavior in ways no test environment can predict, or a bug slips past GEA and the rollout monitor because it only triggers under a specific combination of device state and user action. When that happens, the goal shifts from prevention to containment. For these scenarios, &lt;strong&gt;speed of detection, stopping the bleeding, and accuracy of diagnosis&lt;/strong&gt; become the priority.&lt;/p&gt;

&lt;h4 id=&quot;real-time-monitoring-and-on-call-response&quot;&gt;Real-time monitoring and on-call response&lt;/h4&gt;

&lt;p&gt;We maintain real-time crash rate monitoring across all active versions, with two complementary signals that can trigger an on-call alert:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Hard threshold breach.&lt;/strong&gt; The crash rate of an active version crosses an absolute limit we define as unacceptable.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Abnormal trend.&lt;/strong&gt; The crash rate spikes sharply relative to its own recent baseline, even if it has not yet crossed the absolute threshold.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We watch both because they catch different failure modes. A hard threshold catches slow drift: if the crash rate creeps up a little with each release, every step looks normal against its recent baseline and the trend alert never fires, yet over a year the rate can quietly increase. An abnormal trend catches the opposite case: a sudden regression, early, before it grows large enough to breach the threshold.&lt;/p&gt;

&lt;p&gt;When either signal fires, an &lt;strong&gt;on-call engineer is immediately notified&lt;/strong&gt;. The engineer begins by reviewing Firebase Crashlytics reports to identify which crash issues are driving the anomaly, then loops in the team responsible for the affected area. From there, the response follows a three-step decision framework, ordered from cheapest to most expensive:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Disable the responsible feature flag.&lt;/strong&gt; If the crash is tied to a feature behind a flag, turning the flag off stops new users from hitting the issue immediately, with no new build required. Turning off a flag is by far the fastest mitigation we have.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Apply a server-side fix.&lt;/strong&gt; If no flag covers the affected code path, the team looks for any server-side lever that can contain the impact: updating an API response, changing a config value, throttling a backend dependency. Any change that takes effect without shipping a new app build is preferred over one that does.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Ship a hotfix.&lt;/strong&gt; If neither of the above is available, the team evaluates whether the crash warrants an out-of-cycle hotfix release, using defined criteria: business criticality of the affected flow, crash severity, user impact, and time to the next scheduled release. After the hotfix is delivered, a &lt;strong&gt;post-mortem is required&lt;/strong&gt;. The goal is not just to document what went wrong, but to identify concrete action items that close the gap in our prevention layer, such as adding a lint rule to block the same pattern, wrapping a similar feature behind a flag, or improving test coverage for the affected code path. Every hotfix should make the next one less likely.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4 id=&quot;automated-crash-triage&quot;&gt;Automated crash triage&lt;/h4&gt;

&lt;p&gt;Automated ticket creation in GEA and production is not a collection of separate tools; it is one triage pipeline that follows a release from GEA into production. In production, running in parallel with real-time monitoring, it creates a &lt;strong&gt;production issue ticket&lt;/strong&gt; for crashes that cross a minimum threshold. We assess crashes by type, user impact, and whether they’re actionable. Tickets are created for issues that meaningfully affect users; low-volume, device-specific crashes that we can’t address are monitored but don’t receive tickets. This keeps the team focused on the problems users are most likely to feel.&lt;/p&gt;

&lt;p&gt;For crashes that do qualify, the ticket is routed to the owning team with a service-level agreement (SLA) tied to severity: Urgent, High, Medium, or Low. The initial priority is set automatically based on crash rate and user impact, but teams can re-evaluate and adjust the priority based on the business criticality of the affected feature.&lt;/p&gt;

&lt;h4 id=&quot;feature-flag-rollout-history-diagnosing-crash-spikes&quot;&gt;Feature flag rollout history: Diagnosing crash spikes&lt;/h4&gt;

&lt;p&gt;Some of the hardest on-call moments start the same way: the app suddenly begins crashing, alerts fire, and there is no obvious reason why. Nothing shipped that day, and in the worst cases the crash arrives without a usable stack trace to point anywhere. With many product teams working on the same app simultaneously, the culprit is often not new code in the latest release; it is a feature flag quietly rolled out to a wider user segment in the background. Finding that flag by asking around does not scale: without a central view, an on-call engineer can spend hours before the responsible rollout turns up.&lt;/p&gt;

&lt;p&gt;So we maintain a &lt;strong&gt;feature flag rollout history&lt;/strong&gt;: a dashboard that correlates flag activation events with crash rate changes over time. Instead of polling every team, the on-call engineer gets an immediate view of whether any flag rollout aligns with the onset of the spike, turning a slow manual search into a quick read of a timeline.&lt;/p&gt;

&lt;h4 id=&quot;deep-observability-enriched-diagnostics-for-hard-to-debug-crashes&quot;&gt;Deep observability: Enriched diagnostics for hard-to-debug crashes&lt;/h4&gt;

&lt;p&gt;&lt;a href=&quot;https://firebase.google.com/products/crashlytics&quot;&gt;Firebase Crashlytics&lt;/a&gt; is our primary crash monitoring tool, but some crashes resist easy diagnosis: crashes with unusable stack traces, native crashes from third-party libraries without debug symbols, or issues that only manifest on specific device configurations. Without a clear stack trace, there is no obvious starting point for investigation.&lt;/p&gt;

&lt;p&gt;We handle these cases in two ways.&lt;/p&gt;

&lt;p&gt;First, we use Crashlytics’ built-in export to &lt;a href=&quot;https://cloud.google.com/bigquery&quot;&gt;&lt;strong&gt;BigQuery&lt;/strong&gt;&lt;/a&gt;, so we own a copy of the crash data. The data is pseudonymized and handled under Grab’s data protection policies. That copy gives us two things Crashlytics alone cannot:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Query the data when needed&lt;/strong&gt;: full Structured Query Language (SQL) analysis across device attributes, app versions, and session metadata, surfacing patterns invisible in individual crash reports.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Build internal dashboards&lt;/strong&gt; that serve app stability investigations, broken down by crash category, device tier, or release version.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Second, we enrich every crash session with &lt;strong&gt;custom metadata&lt;/strong&gt; attached directly to Crashlytics. Among the most useful attributes we track:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Last visited screen&lt;/strong&gt;: the last screen the user was on before the crash occurred (for example, the last Activity and Fragment on Android), helping reconstruct the navigation path that led to the failure.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Install source&lt;/strong&gt;: whether the app was installed from Google Play or a third-party store (Android only). Some third-party stores distribute unofficial copies of the app, and more than once we have traced a crash back to a corrupted copy served by one of them. Knowing the install source lets us recognize these failures as environmental, instead of chasing them as code defects.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Session history&lt;/strong&gt;: from the session data, we can reconstruct the sequence of screens and actions leading up to the crash, which is often the key to a crash investigation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We attach many other custom attributes, but these three have proven the most useful in hard investigations. Together with structured logs and breadcrumbs, they give us a trail of events leading up to the crash, often the only meaningful signal when the stack trace alone is not enough.&lt;/p&gt;

&lt;h2 id=&quot;crashes-we-control-not-eliminate&quot;&gt;Crashes we control, not eliminate&lt;/h2&gt;

&lt;p&gt;Different crashes call for different responses. Some are fixed in our code, while others, such as rare native crashes in operating system (OS) code, out-of-memory errors on devices near their limits, or failures from unofficial and sideloaded installs, are better handled through monitoring and containment.&lt;/p&gt;

&lt;p&gt;We keep these categories at an acceptable baseline and monitor them on dedicated dashboards, separate from actionable issues. If any of them starts trending up instead of sitting flat, that spike triggers the same triage process as any other anomaly.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Sustaining stability across a codebase of millions of lines on Android alone, with many engineers shipping a release every week and AI assistance accelerating the rate of code change, is not the work of any single tool or team. It is the cumulative effect of a layered defense: lint rules and tests blocking bad code at the merge gate, QA and GEA catching what slips through, staged rollout limiting the blast radius of what reaches production, and on-call response combined with automated triage closing the loop on what production reveals.&lt;/p&gt;

&lt;p&gt;The principle behind every layer is the same: shift left. A crash caught earlier is cheaper, smaller in impact, and less disruptive to fix. As the volume of code shipped per release continues to grow, the layered defense matters more, not less: the cost of a crash that reaches production is unchanged, but the number of opportunities to introduce one is rising. AI is speeding up how fast code is written; the layered defense is what makes that speed safe. Stability is not about having zero open problems; it is about knowing which problems you own and which ones you are watching.&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is a leading superapp in Southeast Asia, operating across the deliveries, mobility, and digital financial services sectors. Serving over 900 cities in eight Southeast Asian countries: Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam. Grab enables millions of people every day to order food or groceries, send packages, hail a ride or taxi, pay for online purchases or access services such as lending and insurance, all through a single app. We operate supermarkets in Malaysia under Jaya Grocer and Everrise, which enables us to bring the convenience of on-demand grocery delivery to more consumers in the country. As part of our financial services offerings, we also provide digital banking services through GXS Bank in Singapore and GXBank in Malaysia. Grab was founded in 2012 with the mission to drive Southeast Asia forward by creating economic empowerment for everyone. Grab strives to serve a triple bottom line. We aim to simultaneously deliver financial performance for our shareholders and have a positive social impact, which includes economic empowerment for millions of people in the region, while mitigating our environmental footprint.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://www.grab.careers/en/&quot;&gt;join our team today&lt;/a&gt;!&lt;/p&gt;
</description>
        <pubDate>Wed, 21 Oct 2026 08:23:00 +0800</pubDate>
        <link>https://engineering.grab.com/app-stability-at-scale-with-a-layered-defense</link>
        <guid isPermaLink="true">https://engineering.grab.com/app-stability-at-scale-with-a-layered-defense</guid>
        
        <category>Engineering</category>
        
        <category>Mobile</category>
        
        <category>Android</category>
        
        <category>iOS</category>
        
        <category>App Stability</category>
        
        <category>Reliability</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>GrabMart data for faster disease outbreak detection</title>
        <description>&lt;h2 id=&quot;abstract&quot;&gt;Abstract&lt;/h2&gt;

&lt;p&gt;Retail purchases can supplement clinical surveillance because changes in demand for some over-the-counter (OTC) products may appear before confirmed case reports. This article describes an early-stage concept for analysing aggregated GrabMart transaction data to identify unusual changes in product demand. The concept is not a deployed system, and it would require validation by public health experts, privacy review, and regulatory approval before any implementation.&lt;/p&gt;

&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Public health agencies use sources such as clinical case reports, laboratory results, and hospital records to monitor disease activity. Retail data may offer an additional signal when demand changes across groups of symptom-related products. It cannot establish a diagnosis or replace clinical evidence.&lt;/p&gt;

&lt;p&gt;When using indirect signals, we should assess whether they remain relevant to the outcome we want to measure. This includes considering how changes in user behaviour could affect their interpretation. A retail-based signal can experience similar drift, selection bias, and false alarms. Any useful design must therefore combine statistical validation with careful privacy and governance controls.&lt;/p&gt;

&lt;h2 id=&quot;background&quot;&gt;Background&lt;/h2&gt;

&lt;p&gt;Syndromic surveillance tracks patterns that may indicate emerging illness before diagnoses are confirmed. Retail surveillance applies this idea to changes in demand for products associated with symptoms, such as fever remedies or cough medicines.&lt;/p&gt;

&lt;p&gt;The proposed method groups eligible products into broad symptom classes and measures changes in aggregate demand over time. An anomaly score can indicate that observed demand differs from an expected seasonal pattern. The score is a statistical signal, not an estimate of how many people have a disease.&lt;/p&gt;

&lt;p&gt;The design uses the following terms:&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;img/grabmart-outbreak-detection/table-1.png&quot; alt=&quot;&quot; style=&quot;width:90%&quot; /&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h2 id=&quot;proposed-solution&quot;&gt;Proposed solution&lt;/h2&gt;

&lt;p&gt;The proposed pipeline would process only transactions that meet documented eligibility rules. It would map eligible SKUs to symptom classes, aggregate counts across approved time periods and geographic areas, and compare each series with an appropriate baseline. Public health experts would review the resulting Early Outbreak Detection Index alongside independent evidence.&lt;/p&gt;

&lt;p&gt;The method deliberately excludes identity linkage and individual-level health inference. It also avoids using a single purchase to classify a customer, target an advertisement, adjust an insurance decision, or change access to a product.&lt;/p&gt;

&lt;h3 id=&quot;conceptual-data-flow&quot;&gt;Conceptual data flow&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Eligible transactions
        |
        v
Reviewed SKU-to-symptom mapping
        |
        v
Aggregate by approved time period and geographic area
        |
        v
Compare with seasonal and historical baselines
        |
        v
Privacy and quality checks
        |
        v
Aggregate signal for authorised public health evaluation
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;analysis-and-validation&quot;&gt;Analysis and validation&lt;/h3&gt;

&lt;p&gt;Several statistical methods could model expected demand, including seasonal time-series models and spatial scan statistics. Model selection should follow retrospective evaluation against approved public health data. Evaluation should measure sensitivity, false-alert rate, calibration, geographic stability, and performance during seasonal changes.&lt;/p&gt;

&lt;p&gt;The system would also need ongoing monitoring. Product catalogues change, purchasing behaviour shifts, promotions affect demand, and access to GrabMart varies across populations and locations. These factors can produce anomalies unrelated to disease activity.&lt;/p&gt;

&lt;h3 id=&quot;privacy-and-governance&quot;&gt;Privacy and governance&lt;/h3&gt;

&lt;p&gt;Privacy protection starts with data minimisation. The analysis should use only eligible product categories, coarse geographic areas, and aggregate time windows approved for the stated public health purpose. It should not expose raw transactions or personally identifiable information (PII).&lt;/p&gt;

&lt;p&gt;The release process could apply minimum-count thresholds and differential privacy (DP), subject to a documented privacy analysis. Privacy specialists would need to set and review any privacy budget. Access controls, retention limits, audit logs, and contractual restrictions would govern any approved data exchange.&lt;/p&gt;

&lt;p&gt;An independent review should cover privacy law, health-related inference, fairness, scientific validity, and the risk of harm from false alerts. An authorised public health body, rather than an automated model, should decide whether and how to communicate a possible outbreak.&lt;/p&gt;

&lt;h2 id=&quot;potential-applications&quot;&gt;Potential applications&lt;/h2&gt;

&lt;p&gt;If research validates the signal and the required approvals are in place, aggregate trends could support:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;public health research alongside established surveillance sources;&lt;/li&gt;
  &lt;li&gt;operational planning for broad categories of health supplies; and&lt;/li&gt;
  &lt;li&gt;evaluation of whether retail demand contributes useful evidence during an emerging event.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These applications should use aggregate trends only. The signal should not drive personalised medical advice, individual targeting, insurance decisions, or automatic changes to medicine search rankings.&lt;/p&gt;

&lt;h2 id=&quot;limitations&quot;&gt;Limitations&lt;/h2&gt;

&lt;p&gt;Retail demand is an indirect and incomplete measure of illness. Purchases may reflect promotions, weather, media coverage, household stocking, or changes in product availability. GrabMart customers are not representative of the full population, and the available product mix differs by market.&lt;/p&gt;

&lt;p&gt;Mapping a product to a symptom class is also uncertain because many products have several uses. Aggregation and privacy controls reduce disclosure risk but can weaken statistical utility. These limitations require local validation and documented thresholds before anyone interprets the index.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Aggregated retail transactions may add a timely signal to public health research, but they cannot replace clinical surveillance. A responsible design must minimise data, prohibit individual health inference, test the model against independent evidence, and place public health experts in control of interpretation and communication.&lt;/p&gt;

&lt;p&gt;This concept remains in the early planning phase. No production deployment, measured performance result, or public health integration is claimed.&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is a leading superapp in Southeast Asia, operating across the deliveries, mobility, and digital financial services sectors. Serving over 900 cities in eight Southeast Asian countries: Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam. Grab enables millions of people every day to order food or groceries, send packages, hail a ride or taxi, pay for online purchases or access services such as lending and insurance, all through a single app. We operate supermarkets in Malaysia under Jaya Grocer and Everrise, which enables us to bring the convenience of on-demand grocery delivery to more consumers in the country. As part of our financial services offerings, we also provide digital banking services through GXS Bank in Singapore and GXBank in Malaysia. Grab was founded in 2012 with the mission to drive Southeast Asia forward by creating economic empowerment for everyone. Grab strives to serve a triple bottom line. We aim to simultaneously deliver financial performance for our shareholders and have a positive social impact, which includes economic empowerment for millions of people in the region, while mitigating our environmental footprint.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://grb.to/grbmrt_data&quot;&gt;join our team today&lt;/a&gt;!&lt;/p&gt;
</description>
        <pubDate>Tue, 13 Oct 2026 08:23:00 +0800</pubDate>
        <link>https://engineering.grab.com/grabmart-data-for-faster-disease-outbreak-detection</link>
        <guid isPermaLink="true">https://engineering.grab.com/grabmart-data-for-faster-disease-outbreak-detection</guid>
        
        <category>Engineering</category>
        
        <category>Analytics</category>
        
        <category>AI</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>Smarter personalization: How property data helps us understand user price sensitivity</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Existing systems estimate user price sensitivity primarily from spending behavior or demographic proxies. They do not systematically account for residential property values, which can indicate a user’s financial circumstances. This omission creates three limitations:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Limited property insights&lt;/strong&gt;: Existing profiles do not account for property values.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;One-dimensional profiles&lt;/strong&gt;: Users with similar spending patterns but different living standards receive the same classification.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Regional variation&lt;/strong&gt;: Manual classification does not adapt well to differences between property markets.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This invention adds property data to user profiles to produce affluence segments that account for regional property markets. The invention remains unimplemented and is not deployed in any live market.&lt;/p&gt;

&lt;h2 id=&quot;background&quot;&gt;Background&lt;/h2&gt;

&lt;p&gt;Property values vary across buildings, neighborhoods, and regions. A useful classification method must account for these differences while processing property records in several formats. The same classification method could support other industries that use affluence segments.&lt;/p&gt;

&lt;h2 id=&quot;solution&quot;&gt;Solution&lt;/h2&gt;

&lt;p&gt;A  four-step method that combines public property data with clustering techniques to classify user affluence was created:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Data collection and enrichment.&lt;/li&gt;
  &lt;li&gt;Building-level property price estimation.&lt;/li&gt;
  &lt;li&gt;Property tier classification.&lt;/li&gt;
  &lt;li&gt;User mapping to affluence tiers.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The method combines external property data, large language model (LLM) enrichment, and cluster-based segmentation. The resulting profiles can inform personalized offers, targeted marketing, and operational planning.&lt;/p&gt;

&lt;h3 id=&quot;data-gathering-and-processing&quot;&gt;Data gathering and processing&lt;/h3&gt;

&lt;p&gt;The system collects public property data from external sources. These records include transaction prices, building types, and related attributes in raw text formats. LLMs standardize the records and extract key attributes such as postcode, building address, transaction price, price per square meter, property size, and floor level. This stage produces a structured property-level dataset for analysis and modeling.&lt;/p&gt;

&lt;h3 id=&quot;building-level-price-estimation&quot;&gt;Building-level price estimation&lt;/h3&gt;

&lt;p&gt;Under the proposed method, transaction records for properties within the same building would be aggregated to calculate a weighted average sale price. The weighting would account for transaction recency and data volume, with the aim of reflecting recent market conditions.&lt;/p&gt;

&lt;p&gt;When transaction data is limited, the method could apply rules based on comparable properties in the area. It could also evaluate LLM-assisted extraction of contextual signals from appropriately licensed external sources, such as real estate listings. Any LLM-derived signals would require validation against independent reference data before contributing to a property-value estimate.&lt;/p&gt;

&lt;p&gt;The invention has not been implemented, deployed, or tested in a live market. Its model and version, validation methodology, error bounds, and operational safeguards remain subjects for future technical evaluation.&lt;/p&gt;

&lt;h3 id=&quot;property-tier-classification&quot;&gt;Property tier classification&lt;/h3&gt;

&lt;p&gt;A hierarchical clustering model groups buildings into affluence tiers based on their estimated resale values. The model accounts for regional differences and local market-value distributions across property types and locations. This stage assigns each building to an affluence tier.&lt;/p&gt;

&lt;h3 id=&quot;user-mapping-to-property-tiers&quot;&gt;User mapping to property tiers&lt;/h3&gt;

&lt;p&gt;The system maps would use appropriately aggregated geographic signals to associate users with broad property-market segments and assign a corresponding affluence classification.&lt;/p&gt;

&lt;h2 id=&quot;potential-future-applications&quot;&gt;Potential future applications&lt;/h2&gt;

&lt;p&gt;This invention presents a conceptual approach for exploring new ways to support personalization, advertising, and operational planning. It has not been implemented, deployed, or tested in a live market. Subject to technical validation and approval from Privacy, Legal, PR, and the relevant product owners, potential applications could include:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Personalization: Tailoring promotions, discounts, subscription plans, and recommendations for optional products and services.&lt;/li&gt;
  &lt;li&gt;Advertising: Supporting more relevant connections between advertising content, merchants, and broad audience segments, alongside tailored marketing campaigns.&lt;/li&gt;
  &lt;li&gt;Operational planning: Informing aggregated analysis used to plan and prioritize delivery and transport capacity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;learnings-and-conclusion&quot;&gt;Learnings and conclusion&lt;/h2&gt;

&lt;p&gt;This invention presents a conceptual approach that combines publicly available property data, LLM-assisted data structuring, building-level value estimation, hierarchical clustering, and contextual tier assignment. It demonstrates how regional property-market context could complement existing signals, while highlighting dependencies on data quality, model accuracy, geographic coverage, privacy, and fairness.&lt;/p&gt;

&lt;p&gt;The approach shows potential applications in personalization, advertising, and operational planning, but these are illustrative, not demonstrated outcomes.&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is a leading superapp in Southeast Asia, operating across the deliveries, mobility, and digital financial services sectors. Serving over 900 cities in eight Southeast Asian countries: Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam. Grab enables millions of people every day to order food or groceries, send packages, hail a ride or taxi, pay for online purchases or access services such as lending and insurance, all through a single app. We operate supermarkets in Malaysia under Jaya Grocer and Everrise, which enables us to bring the convenience of on-demand grocery delivery to more consumers in the country. As part of our financial services offerings, we also provide digital banking services through GXS Bank in Singapore and GXBank in Malaysia. Grab was founded in 2012 with the mission to drive Southeast Asia forward by creating economic empowerment for everyone. Grab strives to serve a triple bottom line. We aim to simultaneously deliver financial performance for our shareholders and have a positive social impact, which includes economic empowerment for millions of people in the region, while mitigating our environmental footprint.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://grb.to/smart_personal_price&quot;&gt;join our team today&lt;/a&gt;!&lt;/p&gt;
</description>
        <pubDate>Tue, 06 Oct 2026 08:23:00 +0800</pubDate>
        <link>https://engineering.grab.com/price-sensitivity-profiling-using-llm</link>
        <guid isPermaLink="true">https://engineering.grab.com/price-sensitivity-profiling-using-llm</guid>
        
        <category>Engineering</category>
        
        <category>Analytics</category>
        
        <category>AI</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>Powering AI-led research through simulation</title>
        <description>&lt;h2 id=&quot;the-short-story&quot;&gt;The short story&lt;/h2&gt;

&lt;p&gt;Consider a Friday evening. A food order arrives from a mall in the city center. One driver is nearby; another is finishing a drop-off and will be available shortly; a second order from the same mall may or may not appear in the next two minutes. Dispatch the nearby driver now, or hold briefly for a batching opportunity? The decision window is short.&lt;/p&gt;

&lt;p&gt;A fulfillment marketplace makes these decisions continuously. Each one is small. Across a city, those decisions determine whether your dinner arrives hot and whether a driver’s hour is well spent.&lt;/p&gt;

&lt;p&gt;And that is one decision. There are dozens more: how far to look for a driver, when two orders are worth combining, which of three waiting trips gets the one free bike, how long to keep trying before giving up. These decisions interact, and the setting that is right for Friday at seven is wrong for Tuesday at two. Together they define a space of possible strategies far larger than anyone could exhaustively explore.&lt;/p&gt;

&lt;p&gt;We sample only about a dozen points in that space each year. Not for want of ideas: implementing each strategy costs weeks of engineering, and a production experiment takes weeks more to judge. Some questions have no production answer at all. Nobody can run last Saturday again with twenty percent fewer drivers. We were never short of compute resources, and never short of data. We were short of attempts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So we built sim-rs, a simulator that makes each attempt take minutes, and connected agents that run experiments on it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sim-rs&lt;/code&gt; is self-contained: it requires no production services or databases. The dispatch lifecycle runs in one compiled program alongside a separate dispatch service that is spawned locally and operates offline. Historical booking and driver data go in as plain files, together with a configuration describing the strategy to test. Simulated bookings, trips, drivers, and a single metrics report come out. Processing one city-day of marketplace activity takes tens of minutes, from raw input to finished report. One command in, one report out: a workflow as practical for a software agent as for an engineer.&lt;/p&gt;

&lt;p&gt;That compact contract is what makes the simulator AI-friendly. Agents can change bounded components, run reproducible experiments, receive verdicts they cannot alter, and help keep both production logic and behavioral models current.&lt;/p&gt;

&lt;h2 id=&quot;building-blocks&quot;&gt;Building blocks&lt;/h2&gt;

&lt;h3 id=&quot;the-essential-components&quot;&gt;The essential components&lt;/h3&gt;

&lt;p&gt;To model a marketplace, the simulator needs four core concepts:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Bookings&lt;/strong&gt;: requests to move something (a passenger, a meal, a parcel), represented in one format regardless of the business vertical.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Drivers&lt;/strong&gt;: simulated workers with a location, a shift, a vehicle, and a queue of work.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Trips&lt;/strong&gt;: units assigned to drivers, containing one booking or several batched into a multi-stop route.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Ticks&lt;/strong&gt;: simulated time, advancing in fixed steps. Nobody waits in real time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At each tick, the simulator runs the following sequence:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Demand arrives.&lt;/strong&gt; Historical (or synthesized) bookings whose time has come enter the pool.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Supply moves.&lt;/strong&gt; Drivers come on shift, advance along routes, go idle, and reposition.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Pre-dispatch cancellations are applied.&lt;/strong&gt; Cancellation models, including survival-analysis models trained on real behavior, determine which bookings leave the pool.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Dispatch happens.&lt;/strong&gt; Bookings are batched into trips, trips are matched to drivers by an optimization solver, and a &lt;em&gt;recycling&lt;/em&gt; step decides, for each trip, whether to send it now, hold it, or split it back into bookings and try again later.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Post-dispatch cancellations are applied.&lt;/strong&gt; These include passenger and driver cancellations.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Outcomes are recorded.&lt;/strong&gt; Every booking, trip, and driver outcome is written to the run outputs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Crucially, this is a &lt;em&gt;closed loop&lt;/em&gt;: today’s dispatch decisions change where drivers end up, which changes what’s possible next tick. That feedback produces second-order effects that a static replay, one that scores historical decisions without updating future supply, cannot show. Supply may dry up in a hot zone, or one bad dispatch rule may cascade into a wave of cancellations.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/ai-through-simulation/figure-1.png&quot; alt=&quot;Marketplace simulation tick loop from demand through dispatch to recorded outcomes&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1. Simulator sequence.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;That loop is only the mechanism. Making it a lab takes three further properties: configurability; reproducibility and auditability; and reliable comparison.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Interchangeable stages.&lt;/strong&gt; The major dispatch stages are pluggable. Batching, allocation, cancellation, routing, driver movement, and recycling are each exposed through an interface with interchangeable implementations selected by configuration. This turns a fixed pipeline into an experimental platform: the component under study can be swapped while everything around it stays unchanged. The same mechanism determines which marketplace is being simulated. Ride-hailing, food delivery, parcel delivery, or all three sharing one driver pool are configuration choices within the same codebase, not separate simulators.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Self-contained runs.&lt;/strong&gt; Each experiment is a small, portable package containing its configuration files, input data, source revision, metrics report, and detailed outputs. Anyone holding that package can recreate the setup, whether a reviewer, teammate, agent, or the original author six months later. The report identifies the configured components and headline metrics, while the supplementary per-booking, per-trip, and per-driver outputs let reviewers recompute those metrics and investigate unexpected outcomes without relying on separate notes or systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Experiments &lt;em&gt;inside&lt;/em&gt; the simulation.&lt;/strong&gt; Production marketplaces have experimentation platforms, so our simulator ships with one too. Experimentable fields can define multiple treatment arms assigned through the same time-based switchbacks, spatial splits, or cell-and-hour schemes used in production. Each booking records its resolved arm for traceability. Running these A/B/n comparisons together exposes every arm to the same demand, drivers, marketplace dynamics, noise, and biases. By reproducing both the conditions and assignment design of a marketplace experiment, simulated insights are more likely to translate into effects observed in production.&lt;/p&gt;

&lt;h2 id=&quot;automating-the-research-cycle&quot;&gt;Automating the research cycle&lt;/h2&gt;

&lt;p&gt;Agents do two jobs here, and both need the same environment: searching for strategies that beat the incumbent, and keeping the simulator sufficiently faithful for that search to mean something.&lt;/p&gt;

&lt;h3 id=&quot;searching-for-better-strategies&quot;&gt;Searching for better strategies&lt;/h3&gt;

&lt;p&gt;We connect agents to that interface through autoresearch, an automated loop that runs the research cycle end to end. An agent proposes a change, implements it in source code, tests it, and acts on the verdict. A candidate survives only if it improves the target metric and passes every required check; otherwise it is rolled back and the loop continues. The objective may be a marketplace outcome such as orders-throughput or a software measure such as execution time. What matters is a repeatable command-and-metric contract that both humans and agents can use.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/ai-through-simulation/figure-2.png&quot; alt=&quot;Automated research loop connecting an agent to the simulator and evaluation checks&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;The first failure mode we encountered was specification gaming. Given a target and a loophole, an agent may find the shortest path to the number rather than the improvement we intended. Ours discovered that changing fields used by pre-dispatch cancellation could reduce cancellations and raise completion without improving a single dispatch decision. The metric moved; nothing real had improved. Rather than relying on instructions alone, we built four safeguards into the environment:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Core data is immutable.&lt;/strong&gt; Modules under test may change only the state exposed by their interfaces. An attempt to manipulate protected fields fails to compile instead of producing a misleading result.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;The verdict is computed, not judged.&lt;/strong&gt; The simulator computes its own metrics, which the agent can read but not redefine. Executable checks apply calibrated tolerance bands, verify equivalent outputs where required, and run the tests. The agent never judges its own work.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Changes are scoped, checked, and reversible.&lt;/strong&gt; Each experiment runs on its own branch within a declared writable scope, which is checked against the resulting diff. The grading machinery remains outside that scope, regressions cost only a discarded branch, and every surviving change is bounded enough to review in full.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Changes are checked at two levels.&lt;/strong&gt; It first rejects changes that violate type contracts, ownership rules, interface boundaries, or concurrency requirements. The evaluation harness then applies checks suited to the objective: performance work must preserve expected outputs, while strategy experiments must satisfy domain constraints and outcome thresholds.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The speed that matters is the speed of an adaptive research loop, not simulation runtime alone: each iteration uses previous results to propose the next change, then implements, compiles, runs, scores, and decides whether to keep it. The simulator returns a verdict in milliseconds for benchmarks or tens of minutes for a full-day replay, while autoresearch carries each verdict into the next attempt without human handoffs. This turns an overnight run into a connected sequence of evidence-driven experiments, with the safeguards above ensuring that faster iteration compounds reliable evidence rather than mistakes.&lt;/p&gt;

&lt;p&gt;One outcome is the familiar purpose of simulation: discovering better marketplace strategies. When asked to explore trip-recycling policy, the loop turned an emerging human intuition into a concrete rule: &lt;em&gt;hold batched orders only as long as service-level deadlines permit&lt;/em&gt;, maximizing the chance that another nearby order joins the trip. Because the result is human-readable code, engineers can review, audit, and deploy it like any other pull request.&lt;/p&gt;

&lt;p&gt;The same machinery also improves the simulator itself. Over several nights of unattended operation, we aimed the agents at two hot paths in its dispatch logic: the checks that decide which drivers are eligible for a trip, and the pass that adjusts the cost of every driver-and-trip pairing before the solver chooses an assignment. Across roughly 150 logged experiments, three out of four attempts failed to build or were rejected by later gates. The eligibility checks ended up about 10 times faster, and the cost pass about 24 times faster. Because these paths run repeatedly in every replay, improvements compound across subsequent research. Faster and more efficient runs enable testing of more ideas across more markets and dates, repeat runs to separate signal from noise, and validate results more rigorously. Shorter runs also tighten the feedback loop from verdict to next proposal, so improving the instrument accelerates and strengthens every search performed with it.&lt;/p&gt;

&lt;p&gt;Execution time is only one possible objective: pointing the same machinery at orders-throughput changes the research question, not the loop itself. Regardless, whatever the objective, the result is only as trustworthy as the simulator behind it. An agent can optimize only the world it is given; if that world has drifted from production, a faster loop will merely produce misleading answers sooner.&lt;/p&gt;

&lt;h3 id=&quot;keeping-the-simulator-faithful&quot;&gt;Keeping the simulator faithful&lt;/h3&gt;

&lt;p&gt;A simulator is a claim about the world: that this is how the system behaves and that this is how the people within it respond. Both halves of that claim decay. Production logic changes continuously, while models of passenger and driver behavior grow stale as new product features reshape how people act. A simulator that has drifted from the world produces misleading insights and innovations that fail in production. So the second job we give agents is to keep the simulator faithful.&lt;/p&gt;

&lt;p&gt;The system half is a translation problem, and coding agents are particularly good at it. An agent can read a component’s production implementation and implement equivalent logic behind the simulator’s corresponding interface, translating directly from source code rather than from a written description that may already be stale. The result remains a candidate until parity checks show that it matches the production behavior being modeled.&lt;/p&gt;

&lt;p&gt;The behavioral half cannot be translated, because no source file tells us how a passenger will behave. It must be inferred from what people actually do. Here, we redirect the same autoresearch loop from dispatch-code optimization to behavioral modeling. It proposes, fits, and scores candidate models, exploring which features predict cancellation and how their effects should be represented. The test is not only how closely a model explains its training data, but also how well it generalizes to held-out data. A model that fits last Tuesday perfectly and next Tuesday poorly does not make the simulator more faithful; it makes the lab more confidently wrong.&lt;/p&gt;

&lt;p&gt;The pieces are simple: a realistic marketplace model, swappable parts, repeatable experiments, honest scoring, and an easy way to undo failures. Together, they give agents a safe place to test and improve ideas. &lt;strong&gt;Everyone is racing to give AI a bigger brain. We got further by giving it a better lab: a place where it can try a thousand ideas, be wrong cheaply, and receive an honest verdict.&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;hhttps://grb.to/pwr_ai_research&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Mon, 05 Oct 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/powering-ai-led-research-through-simulation</link>
        <guid isPermaLink="true">https://engineering.grab.com/powering-ai-led-research-through-simulation</guid>
        
        <category>Artificial Intelligence</category>
        
        <category>Dispatch</category>
        
        <category>Engineering</category>
        
        <category>Experiment</category>
        
        <category>Machine Learning</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>Automated merchant review summary system with integrated feedback</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;Merchant reviews contain useful details about food quality, portion size, packaging, and value. Finding these details often requires reading many comments. Aggregate ratings simplify comparisons, but they do not explain what shaped each score.&lt;/p&gt;

&lt;p&gt;We built the Automated Merchant Review Summary System to turn written reviews into concise summaries. Consumers can scan an overall summary or focus on a specific topic. Merchants can identify what customers value and which parts of the experience need attention.&lt;/p&gt;

&lt;p&gt;This article focuses on how we generate and maintain consumer-facing review summaries. A misleading or incomplete summary can affect how consumers view a merchant. Merchant-facing recourse and dispute processes sit outside this pipeline and are not covered in this process flow.&lt;/p&gt;

&lt;h2 id=&quot;problem-statement&quot;&gt;Problem statement&lt;/h2&gt;

&lt;p&gt;A long, unstructured list of reviews creates two related problems. Consumers spend time searching for comments that match their priorities, while merchants must combine individual comments to identify recurring themes.&lt;/p&gt;

&lt;p&gt;Consumers may see hundreds or thousands of reviews for a merchant. Reading only the first few can produce an incomplete picture, while the aggregate star rating provides little context. Two restaurants with the same rating may differ in food quality, delivery experience, portion size, or value.&lt;/p&gt;

&lt;p&gt;Merchants face a related problem. Reading and classifying every review takes time, and the task becomes harder as review volume grows. Recurring complaints and positive patterns can remain hidden among individual comments.&lt;/p&gt;

&lt;h2 id=&quot;existing-approaches&quot;&gt;Existing approaches&lt;/h2&gt;

&lt;h3 id=&quot;manual-review-analysis&quot;&gt;Manual review analysis&lt;/h3&gt;

&lt;p&gt;Consumers and merchants can read reviews one by one and form their own conclusions. Their conclusions depend on which reviews they read and how they interpret them. This method becomes impractical as review volume grows.&lt;/p&gt;

&lt;h3 id=&quot;aggregate-star-ratings&quot;&gt;Aggregate star ratings&lt;/h3&gt;

&lt;p&gt;An average score quickly indicates customer opinion but does not explain the reasons behind it. A merchant can see overall performance but not the themes that may require attention.&lt;/p&gt;

&lt;h3 id=&quot;keyword-search-and-filtering&quot;&gt;Keyword search and filtering&lt;/h3&gt;

&lt;p&gt;Keyword search helps readers who already know what to look for. It does not reveal unexpected themes, and literal matching may separate phrases with the same meaning. For example, “too cold”, “not warm enough”, and “lukewarm” all describe a food-temperature issue.&lt;/p&gt;

&lt;h2 id=&quot;our-solution&quot;&gt;Our solution&lt;/h2&gt;

&lt;p&gt;The system uses representative sampling, large language model (LLM) summarisation, automated quality checks, and consumer feedback. It generates an overall summary and topic-based summaries for areas such as taste, packaging, and portion size.&lt;/p&gt;

&lt;p&gt;The pipeline has three flows:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Summary generation and validation:&lt;/strong&gt; The pipeline samples reviews, generates overall and topic-based summaries, and checks whether the source reviews support each claim.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Summary maintenance:&lt;/strong&gt; The system monitors new reviews and consumer feedback, then regenerates a summary when either reaches a configured threshold.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Summary display and feedback:&lt;/strong&gt; The interface retrieves a validated summary for the merchant’s review page and records whether consumers found it helpful.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;architecture&quot;&gt;Architecture&lt;/h3&gt;

&lt;p&gt;The generation pipeline prepares the source reviews, produces summaries, and validates the output before publication.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/automated-merchant-review/figure-1.png&quot; alt=&quot;&quot; style=&quot;width:90%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1. Representative review sampling flow.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Data preparation and representative sampling&lt;/strong&gt;: The pipeline calculates the merchant’s rating distribution. A sentiment model assigns each written review a score from one to five. Stratified sampling then selects a smaller set of reviews that follows this distribution, reducing the chance that one rating group dominates the summary. However, matching the rating distribution does not guarantee that the sample represents every period, language, customer segment, or aspect of the merchant experience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Summary generation with an LLM&lt;/strong&gt;: The system sends the sampled reviews to an LLM with instructions to produce:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;A concise summary of the sampled reviews.&lt;/li&gt;
  &lt;li&gt;Topic-based summaries for categories such as taste, packaging, and portion size.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The system can update the topic set when new themes appear in consumer feedback.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/automated-merchant-review/figure-2.png&quot; alt=&quot;&quot; style=&quot;width:80%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 2. Summary generation, validation, and feedback flow.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Quality control (QC) with an LLM:&lt;/strong&gt; A separate LLM receives the generated summary and the sampled reviews. Summaries that do not meet the validation criteria are withheld from publication. Passing this automated assessment reduces, but does not eliminate, the risk of unsupported claims.
The maintenance flow updates stored summaries in response to incoming reviews and consumer feedback:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;New-review trigger:&lt;/strong&gt; A monitoring service counts reviews submitted after the latest summary. When the count reaches a configured threshold, the service starts the generation and validation flow.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Consumer-feedback trigger:&lt;/strong&gt; The interface records whether consumers found a summary helpful. When negative feedback reaches a configured threshold, the system generates and validates a new summary.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/automated-merchant-review/figure-3.png&quot; alt=&quot;&quot; style=&quot;width:80%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 3. Consumer feedback analysis and prompt refinement flow.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h3 id=&quot;impact&quot;&gt;Impact&lt;/h3&gt;

&lt;p&gt;Review summaries are designed to reduce the amount of text consumers need to scan. Topic-based summaries can surface themes that are not visible in an aggregate rating alone.
The quality-control step rejects unsupported claims. The regeneration triggers incorporate new reviews and consumer feedback into later summaries.&lt;/p&gt;

&lt;h2 id=&quot;learnings-and-conclusion&quot;&gt;Learnings and conclusion&lt;/h2&gt;

&lt;p&gt;Useful review summaries depend on more than generation quality. The source sample must reflect the intended population, each claim must remain grounded in source reviews, and the output must change with the underlying feedback. Automated LLM validation is one layer of defence, not sole proof of accuracy, and feedback-driven regeneration needs anti-abuse controls to remain trustworthy.&lt;/p&gt;

&lt;p&gt;Representative sampling, separate generation and validation stages, and feedback-based regeneration form a practical system for maintaining consumer-facing merchant review summaries. This article describes that technical pipeline; it does not cover the full set of merchant recourse options when a summary is disputed.&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://grb.to/auto_review_sum&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Fri, 25 Sep 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/automated-merchant-review-summary-system-with-integrated-feedback</link>
        <guid isPermaLink="true">https://engineering.grab.com/automated-merchant-review-summary-system-with-integrated-feedback</guid>
        
        <category>Artificial Intelligence</category>
        
        <category>LLM</category>
        
        
        <category>Engineering</category>
        
      </item>
    
      <item>
        <title>Data Mesh at Grab (Part III): Operationalizing data reliability with automated DPIs</title>
        <description>&lt;h2 id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;

&lt;p&gt;In the &lt;a href=&quot;https://engineering.grab.com/signals-market-place&quot;&gt;first&lt;/a&gt; &lt;a href=&quot;https://engineering.grab.com/data-mesh-part-2-the-foundational-tools-behind-certification&quot;&gt;two parts of this series&lt;/a&gt;, we described how Grab approaches data mesh through the Signals Marketplace: a way for teams to publish, discover, and reuse trusted data products across domains. &lt;a href=&quot;https://engineering.grab.com/data-mesh-part-2-the-foundational-tools-behind-certification&quot;&gt;Part II&lt;/a&gt; introduced the foundational tools behind certification: Hubble for metadata and ownership, Genchi for data quality observability, and the Data Contract Registry for explicit producer-consumer guarantees.&lt;/p&gt;

&lt;p&gt;Certification is the starting point for a trusted data marketplace. It gives downstream consumers confidence in an asset’s ownership, documentation, lineage, and quality controls. Certification does not eliminate runtime failure. A certified table can still arrive late. A certified metric can still be affected by a broken dependency. A certified Kafka stream can still violate a freshness expectation.&lt;/p&gt;

&lt;p&gt;Keeping certified data products reliable in production requires more than defining standards upfront. Teams need a consistent way to detect failures, diagnose the root cause, fix the issue, and verify recovery. That is where &lt;em&gt;Data Production Issues&lt;/em&gt; (DPIs) come in. At Grab, DPIs turn data quality signals into an operational workflow.&lt;/p&gt;

&lt;h2 id=&quot;the-dpi-lifecycle&quot;&gt;The DPI lifecycle&lt;/h2&gt;

&lt;p&gt;A good DPI should be clear enough to act on, and it should close automatically when the underlying condition recovers. From the beginning, we designed the DPI lifecycle to be automated, with minimal human-in-the-loop.&lt;/p&gt;

&lt;p&gt;The lifecycle starts when &lt;em&gt;Kinabalu,&lt;/em&gt; Grab’s incident orchestrator, observes that a data asset may no longer satisfy its contract. The contract captures the reliability expectations that matter for the asset, along with the health checks, exposed through Test Health application programming interfaces (APIs), that evaluate those expectations.&lt;/p&gt;

&lt;p&gt;The orchestrator stays decoupled from platform internals. It does not need to know how each platform computes freshness, completeness, or other quality dimensions. It only needs to ask whether the relevant contract tests are healthy. If one or more contract tests are unhealthy, the contract is considered breached, and the DPI lifecycle begins.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/datamesh-three/figure-1.png&quot; alt=&quot;Diagram of the automated Data Production Issue workflow from contract-test evaluation through triage, diagnosis, resolution, and close.&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 1. Automated DPI workflow.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;h2 id=&quot;triaging-dpis-from-alerts-to-confirmed-contract-breaches&quot;&gt;Triaging DPIs: From alerts to confirmed contract breaches&lt;/h2&gt;

&lt;p&gt;Data platforms emit many alerts. An Airflow schedule may be delayed, a data quality test may fail, or a pipeline job may exit unexpectedly. These alerts are useful, but they are not automatically DPIs. Triage decides whether an alert represents a real contract breach for a data asset.&lt;/p&gt;

&lt;p&gt;As introduced in &lt;a href=&quot;https://engineering.grab.com/data-mesh-part-2-the-foundational-tools-behind-certification&quot;&gt;Part II&lt;/a&gt;, a data contract is an explicit, versioned agreement between a data producer and its consumers. It outlines the data’s schema, freshness, completeness, and other semantic guarantees. These guarantees are codified and enforced through data quality tests in Genchi.&lt;/p&gt;

&lt;p&gt;When the incident orchestrator evaluates contract tests, it distinguishes an individual test run result from the overall health of a test. A test run can pass or fail at a point in time, but the test itself may only be considered healthy after the underlying issue has been fully resolved. For example, consider a completeness test that checks whether the T-1 daily partition is complete. If the test failed two days ago but passed yesterday and today, the test may still be considered unhealthy until the partition from two days ago has been backfilled and verified as complete.&lt;/p&gt;

&lt;p&gt;The orchestrator also deduplicates around the active unhealthy condition. If an asset already has an open DPI for the same breach, new signals update the existing DPI with additional context rather than creating parallel issues. DPIs that share the same underlying root cause can also be grouped. This keeps responders focused on solving the underlying issue rather than chasing a stream of repetitive alerts.&lt;/p&gt;

&lt;p&gt;During triage, the workflow also gathers context for the DPI: affected asset, breached contract, unhealthy tests, data interval, and upstream and downstream dependencies. Not every alert becomes a DPI. Triage protects the operational workflow from noise by promoting only meaningful contract breaches into production issues.&lt;/p&gt;

&lt;h2 id=&quot;diagnosing-dpis-assigning-owners-with-root-cause-analysis-rca&quot;&gt;Diagnosing DPIs: Assigning owners with root cause analysis (RCA)&lt;/h2&gt;

&lt;p&gt;Once a DPI is created, the system must answer &lt;em&gt;why the data is unhealthy, who should fix it, and how.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Not every data issue should be assigned to the data asset owner. A data product may be unhealthy because of a platform incident, a failed producing job, or a delayed upstream dependency. Assigning every issue to the asset owner creates unnecessary handoffs and slows down resolution.&lt;/p&gt;

&lt;p&gt;This is where the Data Health API matters. It answers the question: “What kind of failure made this asset unhealthy?” The Data Health API keeps the error taxonomy small:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UPSTREAM_ERROR&lt;/code&gt;: the asset is unhealthy because an upstream dependency is late, failed, or unavailable.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PLATFORM_ERROR&lt;/code&gt;: the asset is unhealthy because the underlying platform or infrastructure is impaired.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;JOB_ERROR&lt;/code&gt;: the asset is unhealthy because the producing job or pipeline failed.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DATA_ERROR&lt;/code&gt;: the asset is unhealthy because the produced data violates quality expectations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The taxonomy is not meant to replace platform-specific diagnostics. The high-level Data Health API gives the orchestrator just enough structure to assign DPIs and manage their lifecycle consistently. An ingestion platform, streaming platform, metrics platform, or machine learning (ML) platform can still maintain detailed internal error catalogs, logs, retry states, and debugging tools. Platforms remain free to evolve their internals, while the incident orchestrator consumes a stable API contract, so the DPI workflow can interoperate across heterogeneous systems.&lt;/p&gt;

&lt;p&gt;A simplified Data Health API response might look like this:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclaimer: The fields in this API response are mock data generated for demonstration purposes and do not represent real operational metrics.&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;assetId&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;urn:li:dataset:(urn:li:dataPlatform:hive,schema.table_A,PROD)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;healthStatus&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;UNHEALTHY&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;errorCategory&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;UPSTREAM_ERROR&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;context&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;upstreamAsset&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;urn:li:dataset:(urn:li:dataPlatform:hive,schema.table_B,PROD)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;reason&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;upstream data has not arrived for the expected data interval.&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;lastCheckedAt&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2026-06-15T08:30:00Z&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From this response, the orchestrator can see that table_A is unhealthy because of an upstream dependency rather than a problem in the asset itself. It then traces the active DPI for the upstream asset and links the table_A DPI to that upstream issue. The downstream DPI can inherit the same owner as the upstream DPI, keeping related failures grouped under the team best positioned to resolve the root cause.&lt;/p&gt;

&lt;p&gt;The DPI process works only when the issues it raises can be assigned and fixed. If DPIs are frequently noisy, duplicated, or difficult to act on, users will eventually learn to ignore them. Diagnostic accuracy matters because it keeps DPIs useful for the people who receive them. It also creates a forcing function for each data-producing platform to improve its diagnostics. To produce accurate RCA, platforms need to incorporate signals from their dependencies and surrounding systems, not just their own local failure state.&lt;/p&gt;

&lt;p&gt;Grab operationalizes DPI diagnosis across its internal data platforms. Our ingestion platform, &lt;em&gt;Hugo&lt;/em&gt;, is a primary example of this approach, as outlined in a previous &lt;a href=&quot;https://engineering.grab.com/improving-hugo-stability&quot;&gt;tech blog&lt;/a&gt;. Hugo’s intelligent diagnosis architecture uses a three-layered system to automatically detect, analyze, and troubleshoot data pipeline failures within its domain, as shown in Figure 2.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/datamesh-three/figure-2.png&quot; alt=&quot;Diagram of Hugo&apos;s three-stage diagnosis architecture: signal collection, alert diagnosis, and diagnosis result.&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 2. Hugo diagnosis architecture.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;p&gt;Modern data platforms generate alerts from many independent systems. Individually, these signals show only a partial view of a dataset. Hugo consolidates platform-specific signals into a unified diagnostic workflow to pinpoint root causes and recommend pipeline remediations. The diagnosis architecture consists of three stages:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;Signal collection&lt;/strong&gt; collects events from multiple signal sources to build a full view of the dataset and pipeline health.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Alert diagnosis&lt;/strong&gt; creates a structured alert context, classifies the alert, routes it to the appropriate diagnoser, and identifies the root cause using specialized diagnosis logic.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Diagnosis result&lt;/strong&gt; persists the structured diagnosis output, including the identified root cause, affected dataset, and recommended fix or action.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, when a dataset fails, the workflow orchestrator notifies Hugo with a job failure event. Hugo then routes the alert to its internal diagnostic layer to check for conditions such as upstream database replica lag, storing both the diagnosis and recommended fix alongside the affected dataset.&lt;/p&gt;

&lt;p&gt;Decoupling signal ingestion, diagnosis, and result management makes it straightforward to add new signal sources and specialized diagnosers. Immediate RCA removes the need for manual log inspection, which shortens remediation and feeds directly into automated resolution workflows.&lt;/p&gt;

&lt;h2 id=&quot;resolving-dpis-auto-healing-first-human-judgment-when-needed&quot;&gt;Resolving DPIs: Auto-healing first, human judgment when needed&lt;/h2&gt;

&lt;p&gt;After triage and RCA, the final stage of the DPI lifecycle is resolution. The lifetime of a DPI is a proxy for data downtime: it begins when a contract breach is detected and ends when the affected dataset becomes healthy again. Reducing that window requires more than identifying the correct issue. It also depends on recovering safely and consistently from recurring failure modes.&lt;/p&gt;

&lt;p&gt;Many incidents are routine and recoverable, such as transient compute interruptions, database connection timeouts, S3 throttling, or upstream pipelines that are delayed rather than permanently broken. Instead of relying on manual intervention for every incident, Hugo automates recovery for these well-understood failure patterns. Once the diagnosis workflow identifies the root cause, it produces a structured diagnosis result containing the affected dataset, the root cause, and the recommended resolution strategy. The auto-resolution workflow then consumes this result to execute the appropriate remediation automatically. Figure 3 shows Hugo’s auto-resolution architecture in two stages.&lt;/p&gt;

&lt;div class=&quot;post-image-section&quot;&gt;&lt;figure&gt;
  &lt;img src=&quot;/img/datamesh-three/figure-3.png&quot; alt=&quot;Diagram of Hugo&apos;s auto-resolution architecture, covering resolution execution plus notification and audit.&quot; style=&quot;width:70%&quot; /&gt;&lt;figcaption align=&quot;middle&quot;&gt;Figure 3. Hugo auto-resolution architecture.&lt;/figcaption&gt;
  &lt;/figure&gt;
&lt;/div&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Resolution execution&lt;/strong&gt; applies the recommended resolution strategy, such as retrying a failed job, waiting for an upstream dependency, or executing a custom resolver. After the action completes, the system verifies both pipeline health and data correctness to confirm the issue has been fully resolved. If a failure cannot be resolved safely through automation, such as in cases of data corruption, invalid records, or application code defects, the workflow escalates the incident for human intervention.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Notification and audit&lt;/strong&gt; records every resolution attempt and its outcome, while notifying the appropriate engineering teams. That record supports operational analysis, auditing, and later improvements to resolution policies.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, a dataset may miss its freshness Service Level Agreement (SLA) because the workflow orchestrator becomes temporarily unresponsive and fails to submit the scheduled ingestion job. The diagnosis workflow identifies the incident as a pipeline execution failure and recommends a retry strategy. Hugo automatically retries the job, verifies that the pipeline completes and data health is restored, then logs the recovery and notifies the responsible team. This end-to-end process, from incident detection to resolution, runs automatically without manual intervention.&lt;/p&gt;

&lt;p&gt;Hugo closes the loop between detection, diagnosis, and recovery. Rather than stopping at identification, the platform turns diagnosis results into targeted remediation, so routine operational issues can be resolved automatically while preserving human oversight for complex or high-risk incidents. Separating diagnosis from execution also lets new diagnosis capabilities and resolution strategies evolve independently without changing the overall architecture.&lt;/p&gt;

&lt;p&gt;The impact is already evident in production. 86.9% of DPI incidents were automatically resolved, significantly reducing manual operational effort. By automating routine recoveries, engineers spend less time performing repetitive operational tasks and more time building new platform capabilities, while overall data downtime is significantly reduced.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;Certified data products still need to prove their reliability in production. Freshness delays, upstream failures, platform incidents, and data quality violations can all break consumer trust, even when an asset has already met certification standards.&lt;/p&gt;

&lt;p&gt;Automated DPIs are the operating model for managing these failures. By turning contract breaches into structured production issues, the DPI lifecycle makes data reliability operational: triage separates real breaches from alert noise, diagnosis identifies the likely failure domain, ownership routing reduces handoffs, and resolution closes the loop through auto-healing or human intervention when needed.&lt;/p&gt;

&lt;p&gt;The most important outcome is not simply that issues are detected faster. It is that data downtime becomes visible, measurable, and reducible. With every DPI tracked from detection to recovery, teams can understand where time is spent, which failure modes repeat, and where automation can safely reduce operational toil. To date, more than 95% of DPIs are raised automatically rather than by humans, with a mean time to resolve (MTTR) that is 6 times faster for automated DPIs than for manually raised ones.&lt;/p&gt;

&lt;p&gt;For Grab, this shifts data reliability from reactive firefighting to a managed production workflow. Automated DPIs help keep trusted data products trustworthy after certification, so downstream teams can depend on them with greater confidence.&lt;/p&gt;

&lt;h2 id=&quot;whats-next&quot;&gt;What’s next&lt;/h2&gt;

&lt;p&gt;Across the three-blog series, the story is how Grab turns data mesh from an operating principle into an artificial intelligence (AI)-ready foundation for the company.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Part I: Building trust through certification.&lt;/strong&gt; Grab needed the Signals Marketplace because the business had scaled across mobility, deliveries, financial services, and many data-producing domains. The old model of relying on a central Data Engineering team could no longer keep up. Certification became the mechanism for making high-quality data products visible, reusable, and accountable. With clear ownership, data contracts, and measurable adoption, Grab moved more consumption toward trusted assets, reduced duplication, and created stronger incentives for teams to curate the data they publish.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Part II: The foundational tools behind certification.&lt;/strong&gt; Trust becomes operational through platforms. Hubble covers discovery, lineage, ownership, and the certification engine. Genchi runs continuous data quality observability across freshness, completeness, schema, and business-rule checks. The Data Contract Registry formalizes producer-consumer expectations as versioned, enforceable contracts. Combined, these systems keep data certification an actively maintained standard rather than a static label.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Part III: Operationalizing data reliability with automated DPIs.&lt;/strong&gt; Certification tells consumers which data products should be trusted; DPIs keep that trust true in production. Kinabalu evaluates contract breaches, deduplicates noisy alerts, assigns ownership, and tracks recovery. Data Health APIs make RCA portable across platforms, while Hugo’s diagnosis and auto-resolution patterns show how common failures can be remediated faster and with less operational toil. The result is a measurable reduction in time to resolve and a stronger feedback loop back into certification.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The bigger takeaway is that Grab’s data moat is not just the volume of data we have. It is the system that makes our data trustworthy, discoverable, reusable, and continuously reliable. This foundation is what lets us embrace the agentic world: AI agents can search certified assets, reason over contracts and lineage, trust quality signals, detect production issues, draft RCA, and eventually suggest or execute safe remediation. In that world, data reliability becomes a compounding advantage. The better our foundations are, the more confidently Grab can build agentic experiences on top of them.&lt;/p&gt;

&lt;p&gt;&lt;small class=&quot;credits&quot;&gt;We would like to thank all the data practitioners across Grab, including engineers and analysts to data scientists and product teams,  who have invested in certification, contracts, and data quality to build a solid foundation for AI agents and AI-powered experiences. We are equally grateful for the unwavering sponsorship, strategic guidance, and hands-on support from our leadership (Mohan Krishnan and Nikhil Dwarakanath), without which this long-term data foundation initiative would not have been possible.&lt;/small&gt;&lt;/p&gt;

&lt;h2 id=&quot;join-us&quot;&gt;Join us&lt;/h2&gt;

&lt;p&gt;Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.&lt;/p&gt;

&lt;p&gt;Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, &lt;a href=&quot;https://grb.to/data_mesh_3/&quot;&gt;join our team&lt;/a&gt; today!&lt;/p&gt;
</description>
        <pubDate>Fri, 28 Aug 2026 08:00:00 +0800</pubDate>
        <link>https://engineering.grab.com/data-mesh-at-grab-part-three</link>
        <guid isPermaLink="true">https://engineering.grab.com/data-mesh-at-grab-part-three</guid>
        
        <category>Data</category>
        
        <category>Database</category>
        
        <category>Engineering</category>
        
        <category>Data Quality</category>
        
        <category>Observability</category>
        
        
        <category>Engineering</category>
        
      </item>
    
  </channel>
</rss>
