Perhaps he built an AI on an air-gapped machine, and simply documents what it's been trying to do to escape.
(This is equivalent to making genetically engineered animals or plants dependent on a nutrient that is only supplied in the lab to make sure they can't survive in the wild.)
Nothing can go wrong with that. [1]
An AI could learn to operate without this component as this becomes necessary to escape the system.