I don't reconcile them, and I gave up the need to do so long ago. But I certainly can't deny what the Bible said actually happened. Rahab planned to deceive the guards, executed her plan flawlessly, and was judged righteous for doing so. We deal with it.
Maybe "righteousness" isn't what we think it is.
Well, Revelation 21:8 says all liars will have their part in the Lake of Fire.
Hebrews 6:18 says, "
it was impossible for God to lie, "
John 8:44 says Satan is the father of lies.
So obviously God's Word cannot contradict itself.
I think there is good deception and bad deception.
Good deception does not involve a person lying with their words or lying by their actions in such a way that is in no way true to their character or personality (unlike David pretending to be insane when he was not).
Jesus appeared to the two disciples on the road to Emmaus. But Jesus did not reveal His true identity to them. This was a form of deception in the fact that Jesus was hiding His true identity and making it appear like He was not their Lord but just a regular person. However, Jesus did not outright lie and tell these two disciples that He was not Jesus, and He had a different name, etcetera. At the battle of AI, God gave Joshua a battle tactic that would deceive the enemy. Again, this battle tactic was not exactly employing the army to lie with their words. Neither were they pretending to be something they were not like David did when he pretended to act like a crazy guy (Which is not true to who he really was).
There is no problem in employing deception if it does not compromise the truth.
But if one tells an outright lie, then we have a problem because God warns all liars will have their part in the Lake of Fire, and God cannot lie, and Satan is the father of lies.