Ben Dugan sat in an unmarked sedan in San Francisco’s Tenderloin neighborhood one day last September waiting for the CVS to be robbed.