code.change.attribution-verifiable

Changes to protected branches carry a verifiable author and review

Every commit that reaches a protected branch can be tied to an identified author and a recorded review, so the question of who changed what, and who agreed, has an answer that does not rest on trust alone.

Medium Planned Preventive

Assertion

for every commit c on a protected branch: c carries a verified identity and c merged through a recorded, approved review

Evaluated against the forge history of each protected branch and its review records, read through the forge API, collected daily.

Rationale

The expectation is that the history of a protected branch is accountable: each change names an author whose identity can be checked, and each change arrived through a review somebody recorded. What this guards against is a history that looks orderly but cannot be trusted — a commit attributed to a name anyone can type, a merge with no record of who approved it, a change that reached the branch by a path that left no trail. When an incident is investigated months later, the branch history is the record, and a record that can be forged is not a record.

The expectation stops at verifiable attribution. It does not prescribe a signing scheme, nor does it demand review theatre on a one-person change that the branch protection already gates; it asks that the attribution survive scrutiny.

Observation

Two kinds of capability combine to make attribution verifiable:

  • verified identity on the commit itself — a signature the forge can check against a key or an account-bound identity, so the author field is more than a string. The signing capability may be a GPG key, an SSH key, or a keyless identity backed by the forge’s own accounts; the expectation is indifferent to which, provided the forge verifies it.
  • recorded review on the merge — an approval tied to an identity, retained with the change, so the fact that someone agreed is itself part of the history rather than a setting that was true at the time and later changed.

A suitable check reads a protected branch’s history and its review records and confirms, for each commit, that the identity verifies and that the change merged through a recorded approval. The companion control code.repo.default-branch-protected asserts that the path exists and is enforced; this one asserts that what came through it is attributable.

This control is planned. The expectation is defined and reviewed; no collector is reading verified identities across repositories yet.

Remediation

Enable commit-signature verification on protected branches and require it, then give authors a signing capability that fits how they already work — an SSH key they already hold, or a keyless identity backed by single sign-on, so signing is not a separate chore that erodes. Keep review approvals as part of the merge record rather than as ephemeral state. The point is not the ceremony of signing; it is that, after the fact, the author and the approval can both be confirmed without taking the history’s word for it.