https://simple.wikipedia.org/wiki/Newcomb%27s_paradoxLet's say the Djinn or AI has accuracy a, then the expected value of taking both boxes is:
t+(1-a)*m
where t is the transparent box and m the mystery box.
The expected value of taking only m is:
a*m
So to see at which point is doesn't matter we set it equal:
t+(1-a)*m=a*m | devide by m
t+1-a=a |+a
t+1=2a |devide by 2
a=(t+1)/2
So if you know the Djinns/AIs accuracy, you can make an optimal choice.
Is this correct?