<?php
declare(strict_types=1);require __DIR__.'/native.php';$cols=[];foreach(file($runtime.'/independent-native.jsonl',FILE_IGNORE_NEW_LINES) as $line){$r=json_decode($line,true);if(strpos($r['queryString'],'INFORMATION_SCHEMA.COLUMNS')===false&&strpos($r['queryString'],'USER_TAB_COLUMNS')===false)continue;$name=strtolower($r['bindValue'][0]['value']);$db=$r['connection'];$short=substr($name,$db==='AI'?7:4);$cols[$db][$short]=$r['rows'];}ck(count($cols['AI'])===5&&count($cols['ZHCT'])===3,'Exact already-read metadata recovered without SQL');saveOnce('columns-stage.json',$cols);saveOnce('preflight-failure2-attribution.json',['error'=>'Unknown column store_id on yoshop_sign','attribution'=>'Source common Sign.isGlobalScopeStoreId=false; independent tool had assumed a tenant column. Native prepare failed before legacy observer try block so no fake native-execute event is added. Original SQL known from exact preserved data-second.php.','queryString'=>'SELECT * FROM yoshop_sign WHERE user_id=? AND store_id=? ORDER BY id','actual_SQL_attempt_already_counted'=>true,'HTTP'=>0,'DML'=>0]);echo json_encode(['recovered_metadata_tables'=>8,'SQL'=>0,'HTTP'=>0]),"\n";
