The same code state is often built several times as it moves from a PR branch to develop to main, even though the Git tree (git rev-parse HEAD^{tree}) is identical. Today every pipeline needs a Run step to compute the tree hash before it can be used as an identity for the code. Please add a built-in expression, such as <+codebase.treeHash>, that resolves to the tree hash of the checked-out code, including for PR merge commits and pipelines with multiple or custom checkouts.
This lets teams identify a code state by its content rather than a branch name, key caches and verification records on it, and prove that a deployed artifact came from a specific tree.