---
title: "How River takes security work from a fix to merge"
description: "River, Shopify's Slack-based AI agent, drives dependency and application vulnerability fixes from patch to verified closure."
url: "https://swe.quest/articles/how-river-takes-security-work-from-a-fix-to-merge-8e7d762a71a196e6"
canonical: "https://shopify.engineering/river-vulnerability-remediation"
source: "Shopify Engineering"
published: "2026-09-02"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["ai-agents","supply-chain-security","security","developer-productivity"]
---

# How River takes security work from a fix to merge

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2026-09-02, 9 min read, Case study. Original: [https://shopify.engineering/river-vulnerability-remediation](https://shopify.engineering/river-vulnerability-remediation)

## Summary

River, Shopify's Slack-based AI agent, drives dependency and application vulnerability fixes from patch to verified closure. It revalidates each ledger entry against the live repository head, PR state and vulnerability tracker before editing. It replays upgrades on the current head, grafts changes into the current lockfile, and ignores CI results from superseded commits. When it reaches a decision it cannot make, it hands owners one narrow question. After merge it confirms the default branch no longer carries the vulnerability. In the first 11 days the dependency backlog fell about 70%, and security merges through the freshness-gated merge queue rose from about 10% to 80%. The key lesson is that prompts can express judgment, but guarantees such as enumeration, deduplication and current-head identity must be enforced in code.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- pull request and CI workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- dependency lockfiles
- LLM agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

River, Shopify, Slack, GitHub, World monorepo

## Related posts

- [Defending Your Software Supply Chain: What Every Engineering Team Should Do Now](https://swe.quest/articles/defending-your-software-supply-chain-what-every-engineering-team-should-do-now-434c4d75b0885a00.md): Docker · 2026-04-02 · Medium · 9 min read · Supply chain security, CI/CD, Containers, AI agents
  Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners.
- [How we use Dependabot to secure GitHub](https://swe.quest/articles/how-we-use-dependabot-to-secure-github-a37d347bd1917fad.md): GitHub Engineering · 2022-05-25 · Medium · 7 min read · Supply chain security, Engineering management
  GitHub's Product Security Engineering team rolled Dependabot out across several thousand internal repositories in three stages: measuring alerts org-wide through the GraphQL API, a staged enablement (200 repos, then 1,000 at 30 days, then the whole org at 45 days), and remediation.
- [Automating cross-repo documentation with GitHub Agentic Workflows](https://swe.quest/articles/automating-cross-repo-documentation-with-github-agentic-workflows-e38fd8e813d70616.md): GitHub Engineering · 2026-07-08 · Medium · 9 min read · AI agents, Documentation, CI/CD, Supply chain security, Developer productivity
  Aspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer.
- [Fixing security vulnerabilities with AI](https://swe.quest/articles/fixing-security-vulnerabilities-with-ai-6cf393c64f079c26.md): GitHub Engineering · 2024-02-14 · Medium · 10 min read · AI for coding, Static analysis, Application security, LLMs, Evaluation
  Copilot Autofix turns CodeQL security alerts into LLM-suggested fixes by building a prompt from the query help, the alert message, and code snippets along the data-flow path.
- [Under the River](https://swe.quest/articles/under-the-river-4570734a0df8615c.md): Shopify Engineering · 2026-05-28 · Medium · 10 min read · AI agents, Developer productivity, System design, AI for coding, Build systems
  Shopify's Slack-native agent River co-authors one in eight merged PRs, and it rests on two 2024 bets: a single monorepo (World) and Nix-built reproducible environments across dev, CI and production.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
