Your naming convention is weird and I can't convince myself that you haven't accidentally flipped the arguments. In cloudant/fabric#133 we're providing the node/uuid/seq triple of the node to be replaced. Near as I can tell that means we need to be comparing them to the source_* values to get the target_seq value for the local database.