Ensure proper semantics when replacing all tasks in a goal.
Ensure proper semantics when replacing all tasks in a goal.

Testing Done:
ci in flight.

Reviewed at https://rbcommons.com/s/twitter/r/1220/

Gabriel439/pants,ericzundel/pants,sid-kap/pants,manasapte/pants,wisechengyi/pants,gmalmquist/pants,square/pants,laurentgo/pants,ity/pants,dgomez10/xanon,TansyArron/pants,megaserg/pants,kslundberg/pants,slyphon/pants,TansyArron/pants,Gabriel439/pants,ity/pants,square/pants,peiyuwang/pants,kslundberg/pants,foursquare/pants,di0spyr0s/pants,Gabriel439/pants,sid-kap/pants,dgomez10/xanon,areitz/pants,wisechengyi/pants,sameerparekh/pants,ity/pants,kwlzn/pants,cevaris/pants,kslundberg/pants,jsirois/pants,Gabriel439/pants,sameerparekh/pants,jtrobec/pants,fkorotkov/pants,lahosken/pants,baroquebobcat/pants,slyphon/pants,megaserg/pants,pombredanne/pants,sid-kap/pants,pantsbuild/pants,TansyArron/pants,mateor/pants,foursquare/pants,tejal29/pants,ericzundel/pants,scode/pants,lahosken/pants,ericzundel/pants,pgroudas/pants,UnrememberMe/pants,15Dkatz/pants,jsirois/pants,ericzundel/pants,TansyArron/pants,peiyuwang/pants,wisechengyi/pants,fkorotkov/pants,jtrobec/pants,benjyw/pants,laurentgo/pants,benjyw/pants,kwlzn/pants,qma/pants,Gabriel439/pants,landism/pants,baroquebobcat/pants,megaserg/pants,dgomez10/xanon,sid-kap/pants,Gabriel439/pants,ericzundel/pants,manasapte/pants,twitter/pants,tejal29/pants,dturner-tw/pants,dgomez10/xanon,qma/pants,kwlzn/pants,tdyas/pants,areitz/pants,fkorotkov/pants,baroquebobcat/pants,dgomez10/xanon,dgomez10/xanon,benjyw/pants,mateor/pants,kslundberg/pants,jessrosenfield/pants,manasapte/pants,jtrobec/pants,areitz/pants,benjyw/pants,scode/pants,kwlzn/pants,sid-kap/pants,lahosken/pants,sameerparekh/pants,areitz/pants,UnrememberMe/pants,laurentgo/pants,15Dkatz/pants,landism/pants,sameerparekh/pants,laurentgo/pants,kwlzn/pants,kslundberg/pants,cevaris/pants,manasapte/pants,laurentgo/pants,baroquebobcat/pants,qma/pants,tdyas/pants,kslundberg/pants,dturner-tw/pants,foursquare/pants,twitter/pants,ericzundel/pants,cevaris/pants,15Dkatz/pants,jtrobec/pants,manasapte/pants,TansyArron/pants,wisechengyi/pants,fkorotkov/pants,ity/pants,tdyas/pants,pantsbuild/pants,scode/pants,digwanderlust/pants,cevaris/pants,scode/pants,gmalmquist/pants,lahosken/pants,fkorotkov/pants,areitz/pants,jessrosenfield/pants,dbentley/pants,jtrobec/pants,di0spyr0s/pants,tdyas/pants,mateor/pants,gmalmquist/pants,tejal29/pants,pgroudas/pants,dbentley/pants,wisechengyi/pants,lahosken/pants,fkorotkov/pants,dbentley/pants,TansyArron/pants,twitter/pants,slyphon/pants,pantsbuild/pants,sameerparekh/pants,dturner-tw/pants,pantsbuild/pants,areitz/pants,kslundberg/pants,fkorotkov/pants,qma/pants,slyphon/pants,fkorotkov/pants,15Dkatz/pants,pombredanne/pants,cevaris/pants,qma/pants,UnrememberMe/pants,megaserg/pants,foursquare/pants,square/pants,dbentley/pants,tejal29/pants,pgroudas/pants,slyphon/pants,sid-kap/pants,lahosken/pants,scode/pants,TansyArron/pants,foursquare/pants,di0spyr0s/pants,15Dkatz/pants,pantsbuild/pants,pombredanne/pants,jessrosenfield/pants,baroquebobcat/pants,pgroudas/pants,tdyas/pants,kwlzn/pants,slyphon/pants,wisechengyi/pants,peiyuwang/pants,twitter/pants,baroquebobcat/pants,15Dkatz/pants,tdyas/pants,baroquebobcat/pants,jessrosenfield/pants,qma/pants,dgomez10/xanon,pgroudas/pants,megaserg/pants,pantsbuild/pants,gmalmquist/pants,UnrememberMe/pants,jsirois/pants,peiyuwang/pants,ity/pants,UnrememberMe/pants,peiyuwang/pants,peiyuwang/pants,peiyuwang/pants,gmalmquist/pants,dgomez10/xanon,gmalmquist/pants,jtrobec/pants,landism/pants,dbentley/pants,UnrememberMe/pants,scode/pants,di0spyr0s/pants,sid-kap/pants,di0spyr0s/pants,scode/pants,manasapte/pants,tejal29/pants,dbentley/pants,foursquare/pants,tdyas/pants,pombredanne/pants,digwanderlust/pants,pombredanne/pants,pgroudas/pants,baroquebobcat/pants,mateor/pants,peiyuwang/pants,dgomez10/xanon,landism/pants,ericzundel/pants,lahosken/pants,dturner-tw/pants,manasapte/pants,twitter/pants,digwanderlust/pants,15Dkatz/pants,di0spyr0s/pants,cevaris/pants,digwanderlust/pants,UnrememberMe/pants,jessrosenfield/pants,areitz/pants,foursquare/pants,ericzundel/pants,square/pants,tdyas/pants,mateor/pants,landism/pants,mateor/pants,jessrosenfield/pants,pantsbuild/pants,twitter/pants,dbentley/pants,foursquare/pants,wisechengyi/pants,benjyw/pants,twitter/pants,twitter/pants,15Dkatz/pants,sameerparekh/pants,kwlzn/pants,landism/pants,benjyw/pants,dturner-tw/pants,UnrememberMe/pants,wisechengyi/pants,lahosken/pants,sameerparekh/pants,di0spyr0s/pants,digwanderlust/pants,cevaris/pants,ity/pants,foursquare/pants,dgomez10/xanon,mateor/pants,ity/pants,megaserg/pants,landism/pants,dturner-tw/pants,baroquebobcat/pants,qma/pants,dturner-tw/pants,gmalmquist/pants,wisechengyi/pants,landism/pants,slyphon/pants,benjyw/pants,jessrosenfield/pants,pombredanne/pants,mateor/pants,Gabriel439/pants,tdyas/pants,megaserg/pants,laurentgo/pants,pombredanne/pants,jtrobec/pants,UnrememberMe/pants,dgomez10/xanon,twitter/pants,digwanderlust/pants