I've got this problem with target bone losing connection.
In this example the B5 bone is targetting B6.

And it works like this when i push the big control bone down.

Normal, yes.
But then, if I modify the B2 bone and make an action for it to correct something, something happens. When I rotate the B2 bone and use the action, the connection between the B5 and B6 brakes.
Like so.

Now the IK it's not working anymore (Unless the B2 is in it's original position). It's weird and it's happened before with different rigs as well. Is this a bug? Or how to avoid it?
here's the dummy rig if it helps.
https://www.dropbox.com/s/18p9tbsh6kb8d ... e.zip?dl=0
If anybody can help with this, I'd be glad!