I just locked myself out of an OpenBSD 6.0 box by putting the 'persist' keyword in doas.conf.
doas: syntax error at line 1
The word 'persist' does not occur in 'man doas.conf', so maybe this feature is so new it is not in OpenBSD 6.0? Watch out before you try it out yourself.