San Francisco District Attorney Kamala Harris' office violated defendants' rights by hiding damaging information about a police drug lab technician and was indifferent to demands that it account for its failings, a judge declared Thursday.