<?php
$phase=$argv[1]??'';$sha=['creator'=>'9b37382b3a4c9846beb92fca3d7c1349a4c964f76ed28e6a637930d4effe1966','final'=>'853b1c877f5fe329bbd3be75ca1574f7f3f5fe960520e1b10db8ed5ba6b0e1ed'][$phase]??null;if(!$sha)exit(78);$file='p/logic/FeedingHistory.php';if(hash_file('sha256',__DIR__.'/source/application/'.$file)!==$sha)throw new RuntimeException('Candidate SHA drift');$lock=json_decode(file_get_contents(__DIR__.'/private-source-lock.json'),true);$lock[$file]=$sha;file_put_contents(__DIR__.'/private-source-lock.json',json_encode($lock));chmod(__DIR__.'/private-source-lock.json',0600);echo "candidate SHA verified\n";
