Production reviewer rules

The rules Hud's production reviewer checks on every PR, and how to change them.

After your GitHub checks, Hud's production reviewer checks how a change will behave in production. If any of its rules stops a PR, the PR goes to manual review and shows which rule stopped it. The production reviewer needs production data. Without it, every PR goes to manual review.

RuleWhat it checksA PR goes to manual review when
Critical flowsEndpoints that are hot paths, fail often or have alertsIt reaches a flow set to Always manual, or a Conditional flow whose conditions don't hold
Load thresholdsCPU, ELU or memory for each serviceIt would take a service over its threshold
Latency sensitivityEndpoints and functions where a small slowdown mattersIt's projected to slow one past its threshold
ReversibilityWhether the change is hard to undoIt's a one-way door, such as a schema migration
Custom rulesRules you write in plain languageA rule you wrote says so

To change a rule, select its settings icon in the Production reviewer box on the Merge Gateway page. Each change makes a new version of your policy.

Critical flows

Hud creates critical flows for you from production: endpoints that run very often, fail often, or have alerts defined on them. Each one shows why it's critical, such as Hot path, Frequent errors or Alerts defined on endpoint.

For each flow, choose:

  • Always manual: any PR that reaches it goes to manual review.
  • Conditional: a PR that reaches it can still take the fast track if every condition you pick holds: No new queries, Behind a feature flag, No new outbound calls or Response shape unchanged.

Select Add flow to mark another endpoint as critical, or remove one you don't need.

Load thresholds

Each service gets its own threshold for CPU, ELU (event loop utilization) or memory, set against what it runs at today. A PR that would take a service over its threshold goes to manual review.

The panel shows each service's current level, the P90 of its busiest pod over the last 7 days, next to its threshold. Use − and + to change a threshold, or select Add load rule to add one.

Latency sensitivity

Some endpoints and functions can't afford even a small slowdown, such as one that runs inside every order. Each one here shows why it matters, its baseline P90, and how much slower it can get before Hud flags it, in milliseconds or as a percentage.

A PR projected to cross that threshold goes to manual review. If a change crosses it after deploy, Hud alerts you.

Select Add endpoint or function to add one.

Reversibility

A change that's easy to undo carries less risk than one that isn't. Hud checks every PR for both kinds, and the PR shows which one Hud found.

  • One-way doors are hard to undo once they ship: a schema migration (drops, renames or retypes a column or a table), a data backfill or delete, a public contract change (a response or an event that other callers read), or an outside side effect (money, an email or a webhook that can't be recalled). With Always send to manual review, on by default, these PRs always go to manual review.
  • Two-way doors are easy to undo after they ship: new code behind a feature flag, a staged rollout, or a service covered by a rollback policy. Turn on Favor Fast Track, off by default, to have Hud favor the fast track for them.

You can turn off any kind in either list. A two-way door never overrides a critical flow, a load threshold or a custom rule.

Custom rules

Write your own rules in plain language, for anything the other rules don't cover, such as "the PR changes how fees are calculated on an order". Select Add custom rule, then set:

  • What the rule does: Always send to manual review if or Favor fast track if, followed by your rule.
  • Data sources: which production data the rule uses, such as Hud's Sensor or your observability tools.
  • Order: whether Hud should try to run the rule first or last.

Then select Add rule.

On the PR

Every PR shows the production reviewer's results in its Production check: the endpoints it reaches, the functions it changes, queries per request, callers of a changed response, schema or migration changes, critical code, config and logging, and reversibility. If a rule stopped the PR, its decision says which. See Put Hud to work.


Did this page help you?