---
name: backport-security-patches-across-maintained-release-branches
description: "Triage fixes and prepare per-branch patch candidates for review. An AI bot that takes an upstream security fix and works out where it needs to land."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Docs, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-11-13"
  source: "https://botbento.com/usecases/backport-security-patches-across-maintained-release-branches/"
  kind: workflow
  hermes:
    tags: ["security", "patching", "git", "code-review", "automation"]
    category: coding
---
# Backport security patches across maintained release branches

Triage fixes and prepare per-branch patch candidates for review

## When to use

An AI bot that takes an upstream security fix and works out where it needs to land. It inspects the patch, compares it against each maintained release branch, flags conflicts or missing dependencies, and drafts a branch-specific backport for a human to check before anything is merged.

## Steps

1. When something happens: New upstream fix arrives
2. Map affected release branches
3. Draft backport patches for review

## Instructions

When a new upstream security fix is provided, read the patch and its context, then determine which maintained release branches are affected. For each branch, compare surrounding code, note conflicts or prerequisite changes, and prepare a candidate backport with a short rationale and any test commands worth running. Keep a per-branch status list and surface anything ambiguous as a question. Do not push commits, open or comment on pull requests, merge, close issues, or message maintainers without explicit approval for each action; present drafts and wait.

## Source

Summarized in our own words from [Backporting security fixes at scale with Codex](https://news.ycombinator.com/item?id=50336405) (Hacker News, checked 2026-11-13). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/backport-security-patches-across-maintained-release-branches/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
