How does <PERSON> end up with the Oracle, with regards to <PERSON> deal with the Merovingian?
<PERSON> said he had to go through the Merovingian to get <PERSON> into the Matrix:
<PERSON>: I know only what I need to know. I know that if you want to take something from our world into your world that does not belong there, you must go to the Frenchman.
<PERSON>: Is that what you’re doing here?
<PERSON>: <PERSON>, please!
<PERSON>: I do not want to be cruel, <PERSON>. He may never see another face for the rest of his life.
<PERSON>: I’m sorry. You don’t have to answer that question.
<PERSON>: No. I don’t mind. The answer is simple. I love my daughter very much. I find her to be the most beautiful thing I’ve ever seen. But where we are from, that is not enough. Every program that is created must have a purpose; if it does not, it is deleted. I went to the Frenchman to save my daughter.
The Matrix Revolutions transcript
After the scene with the <PERSON> punching <PERSON> ("Down here, I'm <PERSON>"), we don't see <PERSON>'s parents again. We next see <PERSON> with the Oracle, in her kitchen ("Cookies need love like everything does"). This matches up with what her father, <PERSON>, says to <PERSON> in Mobil Avenue (before the Trainman gets there):
<PERSON>: Everyone knows the Oracle. I consulted with her before I met with the Frenchman. 973
She promised she would look after <PERSON> after we said goodbye.
The Matrix Revolutions transcript
How did <PERSON> then end up with the Oracle? Why would the Merovingian allow that? He hates the Oracle, surely he wouldn't have wanted to hand over <PERSON> to her?
Not only that, but, since he had apparently destroyed the Oracle's previous shell, he would have presumed that there was no Oracle to hand <PERSON> over to, unless he decided not to destroy her shell until after she had taken <PERSON> from him. He claims that her return is "not unexpected", but the word "disappoining" at least leads me to believe he had hoped she wouldn't have "come back" in another shell, and on top of that, his "if you take something from me you will pay the price" part implies that he wasn't expecting <PERSON> to end up with the Oracle in the first place:
<PERSON>: ... I can only surmise that the fortune teller has found herself another shell? Disappointing, but not unexpected. I do hope, however, she has the good manners to learn her lesson, and to remember that there is no action without consequence. And if you take something from me you will pay the price.
The Matrix Revolutions transcript
Furthermore, in the Enter the Matrix video game (which I haven't played), we learn this (taken from here):
The Oracle explains why her appearance has changed: The Merovingian warned her that if she helped <PERSON>, she would pay. Two programs she trusted sold the termination code of her original shell to the <PERSON> to protect the life of their child. She allowed this to happen because she believes the child will one day change both her world and the real word forever. The Merovingian used the code to terminate her previous shell.
So that tells us that it was <PERSON> who provided the <PERSON> with the termination codes to destory the Oracle's shell, and that the Oracle allowed this to happen, which adds further complication to this scenario.
So, from the above, I have derived the follow sequence of events:
1. <PERSON> goes to see the Oracle and tells her about <PERSON>. The Oracle at this point promises to look after <PERSON>. So, the <PERSON> intends to look after <PERSON>, <PERSON> intends for <PERSON> to go into the Oracle's care.
2. <PERSON> goes to see the <PERSON> and asks him to smuggle <PERSON> into the Matrix (via <PERSON>). The <PERSON> makes a deal that he will do this if <PERSON> gets the termination codes to destroy the Oracle's shell.
3. Presumably, <PERSON> then goes back to the Oracle to get this from her, and the Oracle lets him. 973