<?php
declare(strict_types=1);require __DIR__.'/native.php';sourceProof();ck(file_exists($runtime.'/observer-error-W1_DISEASE_EDIT.json')&&!file_exists($runtime.'/oracle-v2-W1_DISEASE_EDIT.json'),'Only source oracle repair once, no HTTP');$r=json_decode(file_get_contents($runtime.'/response-W1_DISEASE_EDIT.json'),true);$d=json_decode($r['raw_response_body'],true);$want=['status'=>200,'message'=>'恭喜您，信息修改成功','data'=>[]];ck(array_keys($d)===['status','message','data','trace_id']&&$r['http_status']===200&&$d['status']===$want['status']&&$d['message']===$want['message']&&$d['data']===$want['data']&&is_string($d['trace_id'])&&preg_match('/^[0-9a-f]{13}$/D',$d['trace_id']),'Original BaseController string-success full corrected source contract');$rows=json_decode(file_get_contents($runtime.'/after-W1_DISEASE_EDIT.json'),true);ck($rows['counts']===['INSERT.yoshop_user_disease'=>1,'INSERT.yoshop_habit'=>1]&&count($rows['rows']['user_disease'])===1&&count($rows['rows']['habit'])===1&&$rows['rows']['user_other_info']===[],'Independent actual2I retained');foreach(file($runtime.'/business-native.jsonl') as $line)ck(!isset(json_decode($line,true)['error']),'No swallowed native failure');saveOnce('oracle-v2-W1_DISEASE_EDIT.json',['source_file'=>'cores/BaseController.php:118-125','source_sha256'=>hash_file('sha256',$root.'/cores/BaseController.php'),'expected_envelope_without_dynamic_trace'=>$want,'whole_original_wire_corrected_contract'=>true,'initial_frozen_oracle_was_wrong'=>true,'first_wire_and_error_retained'=>true,'SQL'=>0,'HTTP'=>0,'DML'=>0]);echo json_encode(['lane'=>$lane,'source_corrected_oracle_pass'=>true,'SQL'=>0,'HTTP'=>0,'DML'=>0]),"\n";
