from research import *
s=begin(802,'Extend the residual path through Jacob’s last17 years','Can a retained terminal interval coexist with different total lifespans?',{},['File20 surface Jacob death2188AM; C799'])
p=json.loads((ROOT/'model/jubilees_inputs.json').read_text())['literal_inputs']['spine'];rd=p['reconstructed_am'][2]+147;ud=p['surface_jacob_death_am']
result={'reconstructed_death_AM_generated':rd,'reconstructed_death_BC_generated':3857-rd,'surface_death_AM':ud,'entry_to_death':[rd-p['reconstructed_am'][3],ud-p['surface_am'][3]],'birth_to_death':[147,ud-p['surface_am'][2]],'death_AM_offset':ud-rd}
finish(s,result,'Entry and generated death both move+5 AM, preserving the final17 years. The literal surface birth/death pair gives142 against the stated147; the retained ending does not resolve that source tension.','Refine the biological and sacrifice/death paths on a common ordered set of nodes.',{'terminal17':result['entry_to_death']==[17,17],'surface142':result['birth_to_death'][1]==142,'offset5':ud-rd==5})
