When you modify the masters in a document all instances of those masters in the same document will be updated. Shapes you created in other documents will not be updated because when you drag-and-drop from a stencil to another document the master is copied into the document.
If you are modifying masters using the automation API make sure you call Master.Open and Master.Close. If you don’t changes to groups and shape counts won’t propagate to instance shapes.