Company policies are written over-reactions to one-off situations and occurrences whose likelihood of the problem ever happening again are so ridiculously slim that it boggles the mind anybody would have even thought to write out such a policy in the first place.
Somebody wore casual clothes around the office and it wasn’t Friday?
You don’t need a written policy for acceptable dress-code.
You just need to talk to the person.
Go on. Give it a go. Try being human for once.