<?php
declare(strict_types=1);ini_set('memory_limit','1536M');$_SERVER['HTTP_HOST']='owned-weight.invalid';require __DIR__.'/app.php';require __DIR__.'/data.php';$app=coreApp('FINAL_CAPTURE');$rows=ownRows();$old=protect();$hashes=tableHashes(actor()['user_id']);$pre=json_decode(file_get_contents($runtime.'/preflight-state.json'),true);saveOnce('final-capture.json',['rows'=>$rows,'decimal_text'=>decimals(),'old_protection'=>$old,'unrelated_fulltable_hashes'=>$hashes,'unrelated_hashes_match'=>$hashes===$pre['unrelated_fulltable_hashes'],'old_protection_match'=>$old===$pre['old_protection'],'source'=>sourceProof(),'SQL'=>count(file($runtime.'/sql-budget.jsonl'))]);ck($hashes===$pre['unrelated_fulltable_hashes']&&$old===$pre['old_protection'],'All unrelated fulltable/old fullrow protection unchanged');echo json_encode(['lane'=>$lane,'SQL'=>count(file($runtime.'/sql-budget.jsonl')),'old_unrelated_protection'=>true]),"\n";
