<?php
declare(strict_types=1);require __DIR__.'/app.php';require __DIR__.'/data.php';$app=coreApp('CAPTURE_FINAL');$pre=json_decode(file_get_contents($runtime.'/preflight-read.json'),true);$lease=json_decode(file_get_contents($runtime.'/related-file-lease.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]);$store=readNative('AI','SELECT * FROM yoshop_store WHERE store_id=?',[10001]);$protect=protection();ck($user===$pre['user_fullrows']&&$weights===$pre['weight_fullrows']&&$store===$lease['tenant_store_fullrows']&&$protect===$pre['protection'],'Whole original actor/weight/Store-config/financial rows conserved');saveOnce('persistence-final.json',['unchanged'=>true,'user_fullrows'=>$user,'weight_fullrows'=>$weights,'tenant_store_fullrows'=>$store,'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";
