agents laboratories attach — acquire the target’s lock(s), insert the (target, laboratory_id) row, release. Errors if the laboratory is already attached to the target.
agents laboratories attach
(target, laboratory_id)