@neologist,
Did you miss this part? Satan could walk in and out of Gods house. And if Job done nothing wrong why did he have to repent?
Job 1:6-7
6 Now there was a day when the sons of God came to present themselves before the LORD, and Satan also came among them.
7 And the LORD said to Satan, "From where do you come?" So Satan answered the LORD and said, "From going to and fro on the earth, and from walking back and forth on it."
(NKJ)
Job 42:1-6
1 Then Job answered the LORD and said:
2 "I know that You can do everything, and that no purpose of Yours can be withheld from You.
3 You asked, 'Who is this who hides counsel without knowledge?' Therefore I have uttered what I did not understand, things too wonderful for me, which I did not know.
4 Listen, please, and let me speak; you said, 'I will question you, and you shall answer Me.'
5 "I have heard of You by the hearing of the ear, but now my eye sees You.
6 Therefore I abhor myself, and repent in dust and ashes."
(NKJ)