Teen who throat-slashed an 8-year-old ruled competent to assist defense