AI struggles profoundly with the implicit logic embedded in historical design debt and workarounds found in legacy code, where decisions made under past constraints (e.g., hardware limits, specific library versions) are not explicitly documented but are critical to understanding current system behavior.