selectOne('SELECT current_database() AS database, inet_server_port() AS port'); if($target!==['database'=>'stability_consumers_20261011_084534_test','port'=>55441])throw new RuntimeException('QA only'); $db->beginTransaction();$db->statement('SET TRANSACTION READ ONLY'); try{ $b=app(App\Services\Mne\BusinessRepository::class)->find('67d80699-1b0d-43e2-959d-5e1ad956dc74'); $p=['SQL_read_only'=>true,'target'=>$target,'business_id'=>$b->id,'status'=>$b->status,'interest_denominator'=>$db->table('interest_requests')->whereNull('deleted_at')->count(),'prepared_payload_source'=>'business-country-attempt-data.json','prepared_payload_targets_different_business'=>true,'line08_specific_entity_not_identified_in_manifest'=>true,'QA17_browser_session'=>'login required','submission_executed'=>false,'QA_changes'=>0,'active_changes'=>0]; $path=__DIR__.'/line08-preflight-readonly-20261015.json';if(is_file($path))throw new RuntimeException('Preserve evidence');file_put_contents($path,json_encode($p,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE).PHP_EOL);echo json_encode($p); }finally{$db->rollBack();}