---
type: "post"
id: "how-grab-built-scarlet-the-ai-teammate-that-73c429"
slug: "how-grab-built-scarlet-the-ai-teammate-that-73c429"
title: "How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline"
description: "Grab’s engineering team says its Scarlet agent now turns data-pipeline requests into reviewed merge requests, while checking candidate data against production before a human approves the change."
retrieval_nugget: "Grab’s engineering team says its Scarlet agent now turns data-pipeline requests into reviewed merge requests, while checking candidate data against production before a human approves the change. The case matters because it combines agent permissions, versioned workflow instructions, and data validation into one production process rather than treating code generation as the finish line."
published_at: "2026-11-23"
updated_at: "2026-11-23"
record_date: "2026-11-23"
date_kind: "published_at"
topics: ["codex"]
entities: ["Grab","Scarlet","Codex","Cursor","Model Context Protocol"]
related_patterns: ["skills-become-portable-capability-layer"]
novelty_label: "new_fact"
what_changed: "Grab says Scarlet now serves more teams, validates pipeline data, honors the requester’s permissions, accepts Jira and agent tasks, and has expanded usage and merge rates since production rollout."
prior_refs: []
source_url: "https://engineering.grab.com/how-grab-built-scarlet-blog"
source_urls: ["https://engineering.grab.com/how-grab-built-scarlet-blog"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:how-grab-built-scarlet-the-ai-teammate-that-73c429"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/how-grab-built-scarlet-the-ai-teammate-that-73c429/","markdown":"https://newruntime.com/posts/how-grab-built-scarlet-the-ai-teammate-that-73c429.md","json":"https://newruntime.com/posts/how-grab-built-scarlet-the-ai-teammate-that-73c429.json"}
markdown_url: "https://newruntime.com/posts/how-grab-built-scarlet-the-ai-teammate-that-73c429.md"
---

# How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline

## Retrieval answer

Grab’s engineering team says its Scarlet agent now turns data-pipeline requests into reviewed merge requests, while checking candidate data against production before a human approves the change. The case matters because it combines agent permissions, versioned workflow instructions, and data validation into one production process rather than treating code generation as the finish line.

## Summary
Grab’s engineering team says its Scarlet agent now turns data-pipeline requests into reviewed merge requests, while checking candidate data against production before a human approves the change. The case matters because it combines agent permissions, versioned workflow instructions, and data validation into one production process rather than treating code generation as the finish line.

## What happened
Grab’s Analytics Data Warehouse team describes Scarlet as an agent for routine data-engineering work. An earlier version read a ticket, wrote a change, and opened a merge request (MR) for an engineer. The current account describes a broader system: requests can begin in Slack, through a Jira label, or from a command line or API used by engineers and coding assistants such as Codex and Cursor. In Slack, a plain-language request is enough; Scarlet posts a plan before editing files and shows tool-call progress in a live card with a cancel button. Follow-up messages retain context. Scarlet cannot merge or approve its own MR.

The agent is organized as a reasoning loop, a skill library, and an action layer connected to Jira, GitLab, Airflow, Google Docs and Sheets, and internal data platforms. Platform integrations use Model Context Protocol (MCP) bridges with two tools: one lists operations and the other invokes them. Schemas load only when needed. The skill library holds Markdown instructions for platform operations, request routing, repository conventions, and end-to-end workflows. Each skill can depend on other skills. Teams add a repository skill to onboard their conventions; the library has roughly tripled since July, with some skills written by the teams that use them.

Grab says skills follow a code-like lifecycle: an author opens an MR, reviewers approve it, a pipeline validates the skill and publishes an immutable bundle, and Scarlet activates a specific bundle version at startup. That version is recorded in its prompt. Grab says the core prompt shrank about 25 times after workflow detail moved into skills, which teams can review as code.

The account separates permissions by action. Data-platform operations use a short-lived token from the requester’s sign-in, with no credentials of Scarlet’s own; source-control actions run as the Scarlet bot so machine-authored MRs are identifiable. For catalog and data-quality changes, or scheduler actions, Scarlet states the exact proposed operation and waits for approval. Read-only requests need no approval. It also refuses to certify a table whose quality checks are failing. Queries run as the requester and return aggregates rather than individual rows, under a hard cap.

For data validation, CI runs the candidate change in an isolated environment and publishes a manifest connecting the commit to its output table. Scarlet reads that output, determines relevant tables, columns, keys, and partitions, then compares it with the current production table. Checks include schema and types, row counts, duplicates and key reconciliation, null rates, column profiles, numeric statistics, and row-level differences. The result is pass, fail, or inconclusive, with evidence for each check and a link to the tested commit. Inconclusive counts as failure, and a changed branch invalidates the verdict and triggers new checks. Grab reports that the version reaching production in May 2026 was followed by roughly four times as many repositories receiving Scarlet changes, roughly triple weekly usage, and a merge rate rising from about half to more than four in five. One finance-source onboarding effort generated an MR within 30 seconds of approval; CI passed about five minutes later. Grab estimates the work used around 6% of the engineer time required by hand.

## What the archive adds
We have not covered this before; it opens a new thread.

## Trend signal
This case supports [Skills become a portable capability layer](https://newruntime.com/patterns/skills-become-portable-capability-layer/). Scarlet’s team-specific instructions are separate, reviewable Markdown skills, loaded for the task and published as immutable versions. The account also shows why portability alone is not enough: the instructions are tied to approval, validation, and traceability in the workflow where the agent acts.

## Why now
Grab says the rebuilt version reached production in May 2026. The team describes the redesign as a response to demand from other teams and to gaps in the original system: one-team conventions embedded in a prompt, no check that output data was correct, shared access not tied to the requester, and Slack as the only entry point.

## Why it matters
Code-level CI cannot establish that a data change produced correct data. A query can run successfully while silently dropping rows, introducing nulls, or overwriting expected output. Scarlet’s validation flow makes candidate data available before review, selects comparisons based on the change, and ties its evidence to the exact commit. Treating inconclusive results as failures and expiring checks after a branch changes are concrete controls against stale or ambiguous approval signals.

The permission design is equally relevant to teams connecting agents to internal platforms. Running data operations as the requester limits the agent to that person’s existing access, while keeping source-control actions under a visible bot identity makes generated changes recognizable. Neither replaces review: Scarlet can prepare the MR and evidence, but a person retains merge authority. Together, these choices make the system more than a code generator; they give reviewers a defined boundary and a basis for checking what it did.

## What happens next
- **Grab will extend Scarlet’s validation loop to the first production run after a merge.** (6 months, 65%). Watch for: the described live-output checks and human-approved revert MRs appearing in the production workflow.

## Limits and uncertainty
The adoption and productivity figures are Grab’s estimates and internal measures; the account does not provide an independent evaluation or a detailed methodology for calculating time saved and merge rate. It does not establish how validation performs across different pipeline types, how often checks produce inconclusive results, or how much reviewer time remains necessary. The described post-merge monitoring and revert-MR flow is an extension Grab says it is working on, not a reported completed capability. The results should therefore be read as one company’s account of its own system, not as a general benchmark.

## Skill to build now
If your agent’s workflow instructions currently live in one long prompt, split them into small, task- or team-specific documents. Put them through your existing code review and validation process, publish fixed versions, and record which version an agent used for each run. That gives reviewers a way to inspect changes to instructions separately from model behavior and to reproduce the context behind an action.

## Reader takeaway
The useful lesson from Scarlet is not simply that an agent can write pipeline code. Grab combines scoped user permissions, reviewable workflow skills, data-level checks tied to a commit, and human-owned merges. For teams automating consequential data changes, those mechanisms define what the agent may do and what evidence a person sees before accepting the result.

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

## Continue in the graph

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

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