I would like to know if the notion of reflection/introspection in computing has prompted research in other fields other than computer science, e.g cognitive sciences.
In particular, I would love to read any work that makes the connection between reflection/introspection and metacognition.
The Wikipedia page has a concise introduction on the two notions:
In computing, type introspection is the ability of a program to examine the type or properties of an object at runtime. Some programming languages possess this capability.
Introspection should not be confused with reflection, which goes a step further and is the ability for a program to manipulate the values, meta-data, properties and/or functions of an object at runtime. Some programming languages, e.g. Java, also possess that capability.