Why Most Codebases Fail at Scale (And What Actually Causes It)