Earlier quoted context omitted.
Haha, nah, it was more the general idea. An amalgam of sci-fi. Greg Egan had a story where an advanced civ sends a gram-sized slug into the gas giant of a solar system, which bootstraps to machinery that 3d prints people and machinery, which is a plausible enough inspiration that I can give it here. Just remove the implausible 'nobody just decides to go bacteria-mode' aspect from Egan's far-future stories.
Do you happen to remember which story? I like Greg Egan and that one sounds interesting.
All his stories are listed here, whether they be published on his website or elsewhere: https://www.gregegan.net/BIBLIOGRAPHY/Online.html