from pathlib import Path p=Path('C:/Users/macbook/.config/investmoz/navegacao-consolidacao-QA-20261016/source') for f in ['app/Services/InvestorContext.php','app/Http/Controllers/InvestorContextController.php']: q=p/f;s=q.read_text('utf-8');s=s.replace("'nullable|regex:/^S(0[1-9]|1[0-9])$/'", "['nullable','regex:/^S(0[1-9]|1[0-9])$/']");q.write_text(s,'utf-8') # Remove the historical mock from the consolidated delivery, retaining the prior candidate intact. q=p/'routes/web.php';s=q.read_text('utf-8');s=s.split('// QA-only navigation preview;')[0].rstrip()+'\n';q.write_text(s,'utf-8') q=p/'resources/js/pages/qa/navigation.tsx';assert q.resolve().is_relative_to(p.resolve());q.unlink() print('Step validation corrected; the historical prototype remains in its own clone')