---
title: "One PR Landed and Four Pushes on the Next Were Undone"
excerpt: "On 2026-11-22, PR #2187 merged to production with live receipts while four pushes on PR #2186 were undone to keep the gate strict."
author: "Patrick Hughes"
published_at: 2026-11-23T15:14:06.54+00:00
read_time_min: 5
tags: ["devlog", "building-in-public", "ai-agents", "local-ai", "bmd-hodl"]
canonical: https://bmdpat.com/blog/one-pr-landed-and-four-pushes-on-the-next-were-undone-2026
---

# One PR Landed and Four Pushes on the Next Were Undone

On 2026-11-22, my QA lane merged PR #2187 to production and undid four pushes on PR #2186.

![Key decisions from Six PRs Went to Two and the Devlog Was the Bug](/blog-assets/six-prs-went-to-two-and-the-devlog-was-the-bug-2026.png)

## TL;DR

- PR #2187 merged at 13:10Z after live checks confirmed the updated privacy policy text.
- The reviewer reverted four pushes on PR #2186 because repairing another session's generated file breaks gate rules.
- Two blog posts went live with zero failures across seven attempts.
- AgentGuard reached 138 PyPI downloads while site install intents stayed at zero.

## Why did four pushes on PR #2186 get undone?

A reviewer agent cannot patch a generated file in another session's branch without weakening your receipt gate. My lane tried four separate fixes on PR #2186 on 2026-11-22. It undid every single change because keeping your verification gate strict matters more than forcing an unverified pull request into your tree.

The branch had a broken inventory file. The reviewer tried to fix that code directly. You cannot patch generated output by hand if you care about verification. When you face this error in your repository, you regenerate the inventory in its own clean session. Then you claim that path and produce a fresh receipt. I filed issue #2189 on 2026-11-22 to document this exact dead end so your agents and mine can skip it next time.

Here is how the lane handled both pull requests on 2026-11-22:

| Pull Request | Target | Lane Action | Final Result |
| :--- | :--- | :--- | :--- |
| PR #2187 | Record newsletter clicks from Resend | Verified live route and merged | Live on production at 13:12Z |
| PR #2186 | Repair generated inventory file | Attempted four patches in branch | Undid all four pushes |

If you let a bot edit generated code directly, you lose your audit trail immediately. Do you let your agents rewrite generated files on the fly?

## How did PR #2187 prove itself before merging?

The QA lane proved the change by testing your live production endpoints directly before and after deployment. It verified that the measurement statement was absent from the live privacy page before the merge, and present immediately afterward. It also confirmed your new webhook route answered with HTTP status 405 to GET calls.

The squash commit landed at `4d90f8ee` at 13:10Z on 2026-11-22. Production updated two minutes later at 13:12Z. At 13:07Z, `bmdpat.com/privacy` had zero matches for the new measurement text. After 13:12Z, the live page carried the full statement.

The webhook route answers 405 on GET calls. That proves to you that the route is live. Live tracking starts once I toggle two settings in Resend. I also filed issue #2188 on 2026-11-22 because the newsletter learning guard locks on `click-coverage-unknown` once your list passes 100 recipients. If your code does not read `newsletterClicks`, your guard stops you cold.

## What broke across the fleet overnight?

The overnight agent fleet suffered multiple guard failures across our scheduled jobs. Doctor reported RED status with 17 of 37 expected agents firing. SecurityAnalyst stayed RED on day 34 with two private keys left in git history. Preview budgets failed on all 22 attempts, and free disk space dropped back below target.

Here are the exact numbers from the morning audit on 2026-11-22:
- Doctor: 17 agents fired, 6 paused, outcome coverage at 96%.
- SecurityAnalyst: 5 P0, 30 P1, 44 P2 findings, and 0 issues opened.
- Disk space on C: rose from 37.5 GiB to 66.7 GiB, then fell to 56.2 GiB.
- Loops tracking: 126 human sessions, 4 CTA clicks, 0 installs.
- Review decisions: 13 items open against your budget of 10.

Two blog posts went live despite the warnings. Both returned HTTP 200 with matching titles across seven attempts. The post healer went from RED to GREEN at 10:18 on 2026-11-22. Managing these autonomous runs connects directly to [what an AI agent costs to build and run](https://bmdpat.com/blog/ai-agent-cost-pricing-2026). When you manage a growing fleet, look into [AI agent cost control with AgentGuard](https://bmdpat.com/blog/ai-agent-cost-control-agentguard-python) and visit the [AgentGuard tools page](https://bmdpat.com/tools/agentguard) to see how hard caps protect your budget from runaway token loops.

On 2026-11-22, AgentGuard recorded 138 PyPI downloads for the week, up from 56 in week 45. The site captured zero valid install intents for the twenty-sixth consecutive day. Both numbers cannot be true about actual interest. When your logs show zero conversions alongside climbing downloads, look for a capture gap on your landing page rather than a lack of market interest. My blog analysis parsed 274 pages and surfaced 17 ranked opportunities, led by a title rewrite you can test on your own site.

## What should you do with this?

1. Add live endpoint checks to your deployment pipeline so releases prove their effects on production.
2. Forbid review agents from patching generated artifacts in existing branches so your receipts stay valid.
3. Open a tracking issue whenever an automated agent hits an architectural boundary so your future reviewers skip dead ends.

### Accompanying prompt

**What the prompt does:** Audits a pull request pipeline to stop automated agents from editing generated files.

Copy/paste this prompt:

```text
Role:
Software Architecture Auditor

Context:
Autonomous review agents attempt to edit generated artifacts across branch boundaries, causing untracked drift.

Inputs:
- Repository Path: __
- Generated File Pattern: __
- CI Receipt Path: __

Task:
1. Scan the repository path for review rules governing generated files.
2. Flag any agent instructions that permit direct edits to files matching the generated file pattern.
3. Add a strict gate that forces regeneration in a dedicated session with a signed receipt.

Output:
- Markdown report listing non-compliant review rules and proposed gate configurations.

Constraints:
- Never allow manual edits on generated assets.
- Require live receipts for every automated merge.
```

Copy the block above.

Weekly measured local runs: https://bmdpat.com/5090-reports

---

Get the local AI lab notes (benchmark rows, VRAM fit, quant choices, what runs on consumer GPUs), M-F only when there is something worth sending: https://bmdpat.com/newsletter?utm_source=blog_md&utm_medium=aeo&utm_campaign=one-pr-landed-and-four-pushes-on-the-next-were-undone-2026
