<?php
declare(strict_types=1);require __DIR__.'/app.php';require __DIR__.'/data.php';require __DIR__.'/scope.php';require __DIR__.'/fast-scope.php';$app=coreApp('FINAL_CAPTURE');$snapshot=fastSnapshot();$before=json_decode(file_get_contents($runtime.'/source-snapshot.json'),true);$protection=fastProtection();$old=json_decode(file_get_contents($runtime.'/preflight-state.json'),true)['protection'];saveOnce('final-capture.json',['snapshot'=>$snapshot,'snapshot_unchanged'=>$snapshot===$before,'protection'=>$protection,'protection_unchanged'=>$protection===$old,'source'=>sourceProof(),'SQL'=>count(file($runtime.'/sql-budget.jsonl')),'business_DMLDDL'=>0,'Prepay_raw_not_guarded'=>true,'global_StoreStaff_not_claimed'=>true]);echo json_encode(['lane'=>$lane,'snapshot_unchanged'=>$snapshot===$before,'protection_unchanged'=>$protection===$old,'SQL'=>count(file($runtime.'/sql-budget.jsonl'))]),"\n";
