Question 320
A workflow uses Claude Code to generate release notes after a tagged build but tags may be moved. What input should pin the analysis?
Explanation
Correct Answer
Pin release-note analysis to the exact commit object and the signed or otherwise authenticated build artifact identifiers, including a digest where available. These are stable evidence for which source and binaries were produced, even if the human-readable tag later moves. A reporter can compare changes against the correct predecessor and link tests and notes to that immutable revision. Recheck the tag only as a pointer, not as the record of what shipped. This prevents a moving label from contaminating traceability between tested code, published artifact and release narrative.
Incorrect Answers
A branch description is mutable narrative metadata, not a cryptographic identity for a particular build. The latest description can change after the tagged artifact was compiled or may refer to another commit entirely. Release notes must reflect the exact code and signed build that will ship. Resolve the tag to an immutable commit digest, pair it with the artifact identifier and preserve those values in the report. Otherwise the notes can inadvertently describe changes absent from the published binary.
A human-friendly Git tag label can be moved to a different commit after a build, so using the name alone does not establish which source tree was actually tested. Release notes generated later might describe files that differ from the signed artifact customers receive. Resolve the tag to an immutable commit SHA, record the build identity and checksum and use those as inputs to analysis. The label can remain display metadata but must not be the sole provenance anchor for an artifact-dependent claim.
Git tags may be moved or recreated, making a friendly label an unstable artifact identifier. Release notes derived from the tag name alone can describe code different from the actual built revision. Resolve the immutable commit and build artifact identity when the workflow runs, then bind source changes and generated notes to that reference. A date-like or familiar name is not a cryptographic link to deployed contents.



Claude Certified Architect - Foundations (CCA-F) Practice Tests