from research import *
family="keys"
p=ROOT/'prep/manuscript_keys.json'
packet=json.loads(p.read_text());modules=packet if isinstance(packet,list) else packet['modules'];m=modules[3]
textbody=m.get('text',m.get('body',''))
for old,new in []:textbody=textbody.replace(old,new)
s=begin(1087,'Manuscript: '+m['title'],'Does this section accurately connect its complete source family to the shared explanation?',{'draft_sha256':hashlib.sha256(p.read_bytes()).hexdigest(),'module_index':3},['C1071','prep/manuscript_keys.json'])
sources=m.get('sources',[]);source_notes=[]
for x in sources:
if isinstance(x,str):source_notes.append(x)
else:source_notes.append(x.get('file','')+' '+(', '.join(x.get('sections',[])) if 'sections' in x else x.get('section','')))
steps=m.get('steps',[])
if not steps and family=='round':steps=['C932–C952','C1058–C1068']
content='### '+m['title']+'\n\n'+textbody+'\n\n*Sources:* '+'; '.join(source_notes)+'.\n\n*Research record:* '+', '.join('C'+str(x) if isinstance(x,int) else str(x) for x in steps)+'.\n'
rel='deliverables/sections/16_keys_4.md'
a=artifact(rel,content)
checks={'partial_total':F(805,2)+E*F(161,2)==490,'uniform_total':P*483==490,'internal_defect':F(805,2)-P*F(805,2)==-F(35,6),'boundary_retained':'intermediate boundaries' in textbody}
finish(s,{'section':a,'body_words':len(textbody.split()),'source_references':len(source_notes)},"The coarsening section explains why equal490 totals can conceal distinct component paths and states the universal common-factor criterion.",'Reassess the next explanatory section against its source roles and the sealed calculations.',checks)
Evidence
s1087.py
Edition and provenance
s1087.py
SHA-256 42767fbd9dbaa533d85508c4bafbae976502604afd58a8dbd6951ebb09f87d41
C480–C1634/Research_Cycles/C0932_C1131/evidence/s1087.py