from research import *
names=["REVIEW_C632_C641.md","REVIEW_C642_C650.md","REVIEW_C652_C664.md","REVIEW_C665_C676.md","REVIEW_C677_C690.md","REVIEW_C692_C709.md","REVIEW_INTEGRATED_DRAFT_MATH.md","REVIEW_INTEGRATED_DRAFT_STRATEGY.md"]
reviews={n:hashlib.sha256((ROOT/'evidence'/n).read_bytes()).hexdigest() for n in names}
s=begin(727,'Close the independent review findings','Are all independent reviews present and their required changes carried into the final text?',{'review_hashes':reviews},['Eight completed review notes; C703,C718,C722–C724'])
draft=(ROOT/'deliverables/490d_Chronological_Families_Integrated_Synthesis_C731.md').read_text()
checks={'phase_centers':'Nisan coordinates' in draft and 'Tishri center2911.5' in draft,'native_status':'native Rounded head' in draft,'derived_units':'derived calendrical interpretation' in draft,'appendix_status':'without separate author Finalization' in draft,'backbone':'12026−1400+4100=14726' in draft,'first_use':'Throughout, E=25/23' in draft,'all_reviews':len(reviews)==8}
a=artifact('evidence/REVIEW_CLOSURE.json',json.dumps({'reviews':reviews,'required_corrections':checks,'numerical_corrections':'none required by reviewers; prose, unit and locator corrections applied'},indent=2)+'\n')
finish(s,{'artifact':a,'review_notes':len(reviews),'correction_checks':checks},'All eight review notes are present. The final manuscript incorporates the required phase, source-status, unit and definition corrections, plus the clarified Rounded continuation. Reviewer findings are preserved rather than silently rewriting the record.','Confirm source identity and the latest File52c pin before final packaging.',checks)
