selectOne('SELECT current_database() AS database,inet_server_port() AS port');if($t!==['database'=>'stability_consumers_20261011_084534_test','port'=>55441])throw new RuntimeException('QA required');$db->beginTransaction();$db->statement('SET TRANSACTION READ ONLY');try{$o=App\Models\Opportunity::findOrFail(32);$p=['target'=>$t,'working_state'=>app(App\Services\PortalProfileAccess::class)->state($o),'reviews'=>$o->workflow_context['reviews'],'conditions'=>$o->workflow_context['conditions'],'submitted_hash'=>$o->workflow_context['submission']['hash']??null];file_put_contents(__DIR__.'/option-B8-land-review-state.json',json_encode($p,JSON_PRETTY_PRINT|JSON_THROW_ON_ERROR));echo json_encode($p);}finally{$db->rollBack();}