<?php
declare(strict_types=1);require __DIR__.'/app.php';require __DIR__.'/data.php';$app=coreApp('CAPTURE_RETEST');$pre=json_decode(file_get_contents($runtime.'/preflight-read.json'),true);$u=actorId();$user=readNative('AI','SELECT * FROM yoshop_user WHERE user_id=? AND store_id=?',[$u,10001]);$weights=readNative('AI','SELECT * FROM yoshop_user_weight WHERE user_id=? AND store_id=? ORDER BY date DESC',[$u,10001]);$protect=protection();ck($user===$pre['user_fullrows']&&$weights===$pre['weight_fullrows']&&$protect===$pre['protection'],'Whole original actor/weight/financial rows conserved');saveOnce('persistence-final.json',['unchanged'=>true,'user_fullrows'=>$user,'weight_fullrows'=>$weights,'protection'=>$protect,'SQL_count'=>count(file($runtime.'/sql-budget.jsonl')),'HTTP'=>0,'DML'=>0]);echo json_encode(['lane'=>$lane,'whole_rows_unchanged'=>true,'cumulative_SQL'=>count(file($runtime.'/sql-budget.jsonl')),'HTTP'=>0,'DML'=>0]),"\n";
