Preventing Semantic Drift in AI Rewrite Systems