from research import *
import fitz
s=begin(1404,'Accept the improved main reader layout','Do the introduction, map and core tables remain readable together?',{},['deliverables/490d_Chronological_Families_Explanation_C1431_Print.pdf','evidence/render_readers_v2.py'])
p=ROOT/'deliverables/490d_Chronological_Families_Explanation_C1431_Print.pdf';doc=fitz.open(p)
r={'path':str(p.relative_to(ROOT)),'sha256':hashlib.sha256(p.read_bytes()).hexdigest(),'bytes':p.stat().st_size,'pages':len(doc),'inspection':'Root inspected pages2,3,7: introduction and complete overview table fit; map and caption share one page; rectangle and Moses equations/tables are clear.','warnings':(ROOT/'prep/render/main_print_pandoc.log').read_text(),'further_review':'Independent reviewer inspecting remaining mathematical and table pages.'}
a=artifact('model/main_print_binding.json',json.dumps(r,indent=2)+'\n')
finish(s,{'reader_pdf':r,'binding':a},'The revised14-page reader resolves the observed page-break issues and keeps the map caption and introductory table intact.','Bind the rendered technical companion.',{'fourteen_pages':len(doc)==14,'no_warnings':r['warnings']=='','map_caption_page':'Read each lane' in doc[2].get_text() and 'Figure 1' in doc[2].get_text()})
