Migration for agent inheritance refactoring