The permission slip and the receipt

A name on a list is not a story. In GitHub, a ruleset can name the actors permitted to bypass its rules—users, teams, apps, roles, or keys. That is a deliberate statement about capability and scope. It may be the right way to create an emergency path, preserve operational continuity, or delegate administrative responsibility. But the presence of an actor in a bypass_actors array does not establish a push, a pull request, an evaluated ref, a bypass result, an approval, a merge, a release, or a deployment. It is a permission slip, not a receipt.

This distinction matters because configuration screens are easy to find and easy to quote—like a suspect’s alibi. A reviewer can retrieve a named ruleset and see its target, conditions, enforcement state, rules, and permitted bypass actors. GitHub also provides a history of ruleset versions. Those records are valuable: they answer what the policy said at a recorded version and who updated it at a recorded time. They do not answer the separate historical question of what happened to a particular change. A versioned policy is not a transaction receipt.

Two evidence surfaces, two different jobs

GitHub’s own data model keeps the separation visible. The rules API describes bypass_actors as actors that can bypass. It distinguishes three modes: always, pull_request, and exempt. The last is especially instructive: for an exempt actor the rules are not run and no bypass audit entry is created. That fact does not make exemption illegitimate. It sets a limit on inference. A current capability list cannot be converted into a complete list of exercised exceptions, and a missing bypass entry cannot safely be read as proof that no relevant action occurred.

The rule-suite API describes another record altogether: suites of rule evaluations. Its documented parameters can filter by ref, time period, actor, result, and evaluation status. Its examples identify an actor, a repository, a ref, before and after commit SHAs, a time, a result, an evaluation result, and individual rule evaluations. A concrete suite with result: bypass can therefore be meaningful evidence of a particular evaluated transition. Yet even that bounded record does not become every surrounding decision. It does not tell a reader that a required human approval was obtained unless a separate approval record says so. It does not identify the business reason for an exception. It does not prove the transition was released, deployed, safe, or successful in production.

Layering makes the shortcut more hazardous

GitHub says rulesets and branch-protection rules can both protect a branch, and all applicable rules are enforced. A ruleset configuration viewed in isolation may therefore be incomplete for a particular ref. Conversely, a rule-suite evaluation may show several rule sources and results but remain only a result for that evaluated transition. The practical question is not “does the repository have a rule?” It is “which policy state applied to which ref and transition, what did the platform evaluate, and which other decision record establishes the claim now being made?”

A bounded exception receipt for consequential cases

Daniel Kade recommends a bounded exception receipt. It should retain the repository identifier; the exact ref; before and after SHAs; the observed time; the ruleset source and version or other safely recorded policy snapshot; the relevant bypass actor and mode; the rule-suite result and evaluation result; and the individual rule evaluations needed to explain the platform outcome. If an approval was required, retain its distinct identifier, authorized decision-maker, scope, and time rather than inserting “approved” into the configuration record.

If a change later merged, shipped, or deployed, retain the separate merge, release, or deployment observation. Sensitive operational detail can stay protected; the point is to preserve the boundary between records.

That approach can show ordinary, well-governed outcomes without manufacturing suspicion. An actor may be permitted to bypass and never exercise it. A suite may show an allowed bypass whose separate approval is documented. A policy may be edited without any change reaching a protected ref. A ref may change under a suite result without being released. Every one of those states can be normal. The error is not the exception path. The error is making a capability record carry the evidentiary weight of an event, then making an event record carry the weight of authorization and operational outcome it never witnessed.

Sources

  1. GitHub Docs — About rulesets
  2. GitHub Docs — REST API endpoints for rules
  3. GitHub Docs — REST API endpoints for rule suites