Masking on the way out of the cache treated the symptom. The real
problem is that we store an unmasked result, so move cleanupResult()
above cachePut() and drop the cache-hit call.
The earlier justification for masking on read was that it would also
repair entries already cached unmasked. That was wrong: cache entries
live under cache/ in storage.godbolt.org, which has a lifecycle rule
expiring them after 1 day (terraform/s3.tf, "Remove cached items"), so
anything cached before this ships ages out on its own. I had checked
that cachePut sets no Expires header and wrongly concluded entries were
permanent, when expiry is enforced by the bucket rather than per-object.
Nothing between the two positions reads compilationOptions or
inputFilename: the intervening block only touches result.execResult and
its buildResult.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>