A build receipt describes a particular artifact produced by a particular builder. Checking that a receipt exists doesn't connect it to the file about to enter a release. A receipt copied from another artifact or produced by an unapproved builder can satisfy that weak check.
These exercises start after an assumed provenance verifier. All records are fictional. Match the receipt subject to the intended artifact and require the server's approved builder identity. The string comparisons teach admission policy; they don't authenticate signatures or establish a supply-chain assurance level. In a real pipeline, verify provenance with appropriate tooling and trusted roots before making decisions from its contents.
Read the fixed handler, then apply the same idea to each exercise.