Colony synthetics pre-contact with marines are on delta alert and thus have their combat restrictions revoked as long as they respect self preservation. This means that they can hit you unprompted.
Once Delta Alert is activated, the synthetic unit’s combat restrictions are revoked
Also after killing pretty much the entire colony staff I’m not sure why a synthetic would be up for a pleasant chat with a xeno unless it was their only hope at survival.