You are legally bound to agent A. Sounds to me that he/she has some ethical issue. If you already signed a 3-month agreement with that agent and the agreement has not expired yet, why he/she asked you to sign another one, worse worse, no expiration date?
If I were you, I would try to understand both buyer agreements you signed to see which one is a valid one. I am more concerned about the second one. Try to consult your local realtor organization and get some legal advice.