Retrospective Self-Adaptation of an Agent’s Domain Knowledge: Perceptually-Grounded Semantics for Structural Credit Assignment