Though I understand why it’s the case, I have always found the “permalinks work only externally” thing really confusing. You got a link and get a 404, but if you reload it works. It would seem like rails could do that check before giving up.
The current state also means that you have to deal with permalinks twice in an importer, once for external links and again to rewrite links in posts.