← Back to blog

· · Updated

Release Dependencies and Hash Pins

Changing a source URL also changes the compose digest. See how the OSS sync script identifies its downstream pin and what hashes, review and tests prove.

When one tool changes a file that another guard verifies by content, both records need to move together. The producer should identify the downstream dependency instead of leaving it to memory.

A surviving example

After publishing and verifying a source tag, scripts/oss-sync.sh updates the solver source URL in production compose. scripts/guards/github-actions-cost-guard.sh pins deploy/docker-compose.prod.yml by digest. Changing the URL changes the file’s SHA-256.

The sync script’s Next: output therefore requests the compose change and downstream pin update in the same commit, and computes the new digest. An operator need not discover the hidden dependency from memory. The content still needs review; a newly computed hash is not approval.

The historical failure’s scope

The source comment records that run 31818321915 was a hotfix dispatch and failed before Reserve production admission, consuming hosted runner time but no standard daily slot. This illustrates the missing-pin failure; current releases use the local path in docs/ops/RELEASE.md instead of dispatching Actions.

Keep dependency instructions with the producer

A generator should state what it changed, who consumes those bytes and what else must be updated. A digest establishes byte identity. Review judges the content; behaviour checks establish the result. None substitutes for the others.