← Back to blog Feature · November 2026

Recurrence Firewall: making a block rule actually block

Published · Bugweg team · drafted with AI, reviewed by a human · 3 min read

The Recurrence Firewall is bugweg's answer to a bug that keeps coming back: every flagged issue is checked against your repo's active recurrence_rules, and a match above a rule's similarity threshold can either warn or stop a merge, depending on how it's set. But that second mode doesn't mean what people assume it means, and it's worth being precise about what actually happens on a match.

When an issue matches a rule set to block, bugweg sets its GitHub Check Run conclusion to action_required. That's the whole mechanism on bugweg's side. What happens next depends entirely on your repo's branch protection settings, not on bugweg. If your branch protection requires that check, GitHub won't let the PR merge until it passes. If it doesn't, the action_required conclusion is still there, still visible, but it's something the author can ignore and still merge past.

This is worth stating plainly because it's easy to assume this is self-enforcing. It isn't. The conclusion is set by bugweg; whether it actually stops anything is a property of your GitHub repo configuration, specifically whether the bugweg check is in the required list. Set this up without requiring the check, and you've built a very visible warning system, not a gate.

Even when branch protection does require the check, there's a second layer: anyone with bypass rights on that branch protection setting can override it anyway. That's a GitHub permission, not something bugweg controls or can be configured to ignore. So a merge-stopping match, fully wired up, still defers to whoever your repo already trusts to bypass required checks. The firewall adds a trip-wire; it doesn't override your existing admin permissions.

Warn-only rules and the degraded case

Warn-only rules behave differently by design: a match is shown on the issue in the PR but never changes the check run conclusion in a way that stops a merge. They're for patterns you want visibility on without gating anything, the kind of thing you'd use while you're still deciding whether a pattern is worth enforcing more strictly. Today, creating these and deleting any existing ones are API-only operations, not something exposed in the dashboard UI.

There's also a failure mode worth knowing about: if the similarity check can't run for a given PR, nothing is enforced on that review at all. Not a stop, not a warning, nothing. This matters for how you think about what the firewall actually does: it's a recurrence detector that runs when it can, not a mechanism that's provably active on every single PR. If you need to know whether it ran, that's a check-run detail to look at per PR, not an assumption to make.

Production Lock, bugweg's incident-to-fix tracking feature, plugs into the same system: when it verifies a production bug has been fixed, it adds one of these automatically, so the same two caveats apply there too. The regression test it generates and the draft PR it opens are a separate mechanism; the entry it adds is enforced exactly like any other entry in the Recurrence Firewall, meaning it still depends on branch protection requiring the check, and it's still overridable by anyone with bypass rights.

None of this is a flaw to route around; it's how the firewall is designed to compose with GitHub's own protection model instead of fighting it. But if you're setting this up expecting it to be unconditional, the fix is on your side: go check whether the bugweg check is actually in your branch protection's required list, and know who on your team can bypass it anyway. Otherwise what you've built is just a warning system with extra steps.

Keep reading: bugweg features · how bugweg works · What bugweg Checks on Every Pull Request · Bug Autopsy Template for Recurring Bugs

See it on your own repo. 3 free PR reviews per developer. A card is required to start and you are not charged during the trial. See pricing for what happens after.

Install on GitHub
Back