- bound-check the portal option row snprintf against truncation - guard the pending-credential handoff with the provision mutex - selftest now restores (or clears) the saved wifi config instead of wiping it - mark the two conscious error-code ignores