Part IV — Expert Production Engineering · Chapter 24 · Lesson 2 of 7 · 2 min read
Lesson 2: Source Inventory, Release Manifests, Hashes, and Reproducible Evidence
Lesson level: Expert
Purpose: Reproducible evidence ties an approved source to exact artifacts and tests. Limited verification helpers must not be presented as a complete trust chain.
Learning Objectives
- Identify the release contract and scope of evidence.
- Apply the relevant source verification mechanism.
- Distinguish automated checks from unresolved approval gates.
2.1 Concepts
A release inventory connects source identities, built artifacts, tests, configuration, and approved publication. A digest detects changed bytes but does not establish who produced them. Bind manifests to a trusted signature and the exact inventory. Reproducibility requires controlling inputs and build environment; timestamped metadata or source-path-dependent records can prevent byte identity even when model behavior matches.
2.2 Annotated Example
artifact_checksums returns filename-to-SHA-256 mappings; write_checksums emits digest and filename lines. Annotation: identical basenames from different directories can collide in a filename-keyed mapping, so use unique release names and an independently reviewed inventory. verify_wheel checks package presence and an expected metadata version. verify_source_archive checks selected required filenames; its expected_root argument is not used as a complete archive-root validator.
2.3 Guided Practice
Distinguish source digest, wheel digest, model digest, manifest digest, and signature verification. Identify the exact bytes each one covers.
2.4 Common Mistakes
Do not trust hashes delivered through the same untrusted channel without signer validation, call a required-file check safe extraction, or compare build outputs while changing inputs.
2.5 Hands-On Lab
- Create an inventory with unique artifact names and explicit version 0.63.0rc2.
- Generate checksums and verify a deliberately changed disposable copy fails comparison.
- Check wheel metadata and inspect archive members separately for path and link safety.
- Repeat a controlled build and document identical outputs or explain each differing field.
Deliverable: Versioned evidence, negative-test results, and an explicit list of unresolved gates.
2.6 Review Questions
Why is a hash not authentication? What can filename-keyed inventories omit? What does verify_source_archive actually check?
2.7 Applied Challenge
Create a signed release evidence manifest covering immutable source, build inputs, artifact digests, test reports, and manual approvals without secrets.
Lesson Summary
Reproducible evidence ties an approved source to exact artifacts and tests. Limited verification helpers must not be presented as a complete trust chain.
Lesson status: Draft complete; ready for review. Source-checked, not a release approval.