main
John Lauer
Publish assumption-based R11 assembly study, locked firmware and new review footage
d61d6cb
"""Classify explicit modeled connections; retain and fail on all other overlaps."""
from pathlib import Path
import json,hashlib
D=Path(__file__).resolve().parents[1]/'revisions/compact-r11/assumed-assembly';d=json.loads((D/'assembly-pair-intersections.json').read_text());assert d['inputSha256']==hashlib.sha256((D/'cooling-study.step').read_bytes()).hexdigest();pairs=[]
for h in d['intersections']:
a,b=h['a'][0],h['b'][0];reason=None
if a.startswith('Sink_ear_envelope_') and b=='ATS_sink_assumed_detail':reason='Named features of one commercial sink; assumed ear profile on catalog45mm centers.'
elif a.startswith('Carrier_ear_support_') and b==a.replace('Carrier_ear_support_','Sink_retainer_'):reason='Simplified retention screw in support pilot; material and thread qualification pending.'
elif a.startswith('Fan_nut_') and b==a.replace('Fan_nut_','Fan_screw_'):reason='Simplified M3 threaded nut and screw envelopes.'
elif a.startswith('Duct_flange_bolt_') and b==a.replace('bolt','nut'):reason='Simplified M2 flange bolt and nut envelopes.'
elif a=='ATS_sink_assumed_detail' and b=='Q1_screw_envelope':reason='Screw major-diameter/pilot-bore envelope; thread engagement not qualified.'
elif a=='Fan_swept_envelope' and b.startswith('Fan_screw_'):reason='Solid fan reservation includes unmodeled screw holes.'
elif a.startswith('Carrier_clamp_bolt_') and b==a.replace('bolt','nut'):reason='Simplified bolt/nut threaded connection.'
elif (a.startswith('Carrier_crossrail_') and b in ['Carrier_spine','Carrier_right_spine']) or (a in ['Carrier_spine','Carrier_right_spine'] and b.startswith(('Carrier_sink_support_','Carrier_ear_support_'))):reason='Features fused into single carrier; fit-parts export checks connected solid.'
elif 'harness' in a and 'harness' in b and a.rsplit('_',1)[0]==b.rsplit('_',1)[0] and abs(int(a.rsplit('_',1)[1])-int(b.rsplit('_',1)[1]))==1:reason='Adjacent segments of same wire join; bend radius unresolved.'
elif a=='Case_sensor_and_retainer' and b.startswith('Sensor_harness_'):reason='Wire enters sensor reservation.'
elif (a.startswith('Fan_harness_') and b=='Fan_mating_plug_envelope') or (a.startswith('Sensor_harness_') and b=='Sensor_mating_plug_envelope'):reason='Wire enters mating plug reservation; internal contacts unresolved.'
pairs.append({**h,'classification':'intended simplified connection' if reason else 'unresolved interference','reason':reason})
out={'inputSha256':d['inputSha256'],'pairs':pairs,'unresolvedCount':sum(p['reason'] is None for p in pairs),'qualificationPassed':False,'limits':['Unresolved fit, retention, material, wire bend radii and manufacturing tolerances remain in assembly instructions.','Classification does not suppress raw geometry results or prove actual hardware fit.']};(D/'assembly-contact-review.json').write_text(json.dumps(out,indent=2)+'\n');print('Unresolved model interference:',out['unresolvedCount']);raise SystemExit(bool(out['unresolvedCount']))