pipeline.deploy.traceable-to-source

What runs in production is traceable to a reviewed commit and the run that deployed it

Every deployed version can be tied back to the source revision it was built from and the pipeline run that released it, so the state of production is never a mystery.

Medium Planned Detective

Assertion

for every deployed version v: v names the source revision it was built from, and a pipeline run exists that released v from that revision

Evaluated against the deployment records and pipeline run history, correlated with the source revision each deployed version names, collected daily.

Rationale

The expectation is that production is legible: for any running version, a team can name the commit it was built from and the pipeline run that put it there. What this guards against is drift between what is deployed and what the source says should be deployed — a hotfix applied out of band, an artefact promoted by hand, a rollback that left no trace. When these accumulate, the repository stops describing the running system, and every incident starts with archaeology instead of a lookup.

This expectation is detective by nature: it does not stop a change, it ensures that whatever changed can be accounted for. It is the downstream companion to attribution on the branch and integrity on the artefact — those make the inputs trustworthy, this one makes the outcome locatable.

Observation

Traceability rests on a few capabilities working end to end:

  • a version stamp carried by the deployed artefact that names its source revision, so a running system can say what it was built from;
  • a deployment record that ties each release to the pipeline run that performed it, retained rather than overwritten; and
  • a durable run history on the pipeline itself, so the record of who deployed what, when, and from where survives the run that produced it.

A suitable check correlates the deployed versions with the pipeline’s run history and confirms that each deployed version names a source revision and maps to a run that released it. A deployment that cannot be tied to a run, or a run that deployed a revision no review produced, is what the expectation exists to surface. The catalog does not prescribe a particular deployment tool’s ledger; it asks that the correlation be possible at all.

This control is planned. The expectation is defined and reviewed; no collector is correlating deployments with run history yet.

Remediation

Stamp artefacts with their source revision at build time and keep the pipeline’s deployment records as durable history rather than transient logs. Route changes to production through the pipeline so that every release leaves a run behind it, and treat an out-of-band change as an incident to be reconciled, not a shortcut to be normalised. The result is that the running system can always be read back to the source that produced it.