M159 — AP210 connector keying / polarization missing

§12.8 mixed (sub-class: AP210 connector keying attribute)

P1 — silent data loss

spec-violation

Sources

Sender

deduced — ECAD exporter that wrote a connector PRODUCT without copying the polarization / keying property from the library

Description

A connector PRODUCT (e.g. a 4-pin power harness) has no polarization or keying property and no `DESCRIPTIVE_REPRESENTATION_ITEM` indicating shell orientation. The component can be inserted rotated 180 deg, swapping VCC and GND. The defect is a missing required attribute, not an outright contradiction.

Reproducer recipe

`PRODUCT('PWR_HDR_4',..)` with four `TERMINAL`s (VCC / SIG / SIG2 / GND) and no keying / polarization PROPERTY.

Expected kernel behavior

detect connectors that lack polarization attributes; warn (or reject for safety-critical nets).

Notes

Synonyms: "AP210 connector reversible", "PCB harness unkeyed", "ECAD safety-attribute missing".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(4) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M159: AP210 connector keying / polarization missing */
3/* DEFECT: PRODUCT 'PWR_HDR_4' has VCC/SIG/SIG2/GND TERMINALs but no polarization property */
4/* Connector can be inserted 180deg reversed, swapping VCC and GND — power short risk */
5/* ECAD exporter omitted polarization/keying attribute from connector PRODUCT */
6/* Per ISO 10303-210 §6 asymmetric connectors require polarization attribute */
7/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
8/* Byte assertion: contains(b'PWR_HDR_4') */
9/* Byte assertion: count_entity_def(b'TERMINAL') >= 4 */
10HEADER;
11FILE_DESCRIPTION(('M159: AP210 PWR_HDR_4 connector missing polarization keying'),'2;1');
12FILE_NAME('M159.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','','');
13/* Byte assertion: contains(b'ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN') */
14FILE_SCHEMA(('ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN { 1 0 10303 210 3 1 0 }'));
15ENDSEC;
16DATA;
17#1=APPLICATION_CONTEXT('electronic_assembly_interconnect_and_packaging_design');
18#2=APPLICATION_PROTOCOL_DEFINITION('international standard',
19  'electronic_assembly_interconnect_and_packaging_design',2014,#1);
20/* Standard unit context (mm) */
21#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
22#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
23#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
24#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
25  'distance_accuracy_value','maximum model space distance between geometric entities');
26#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3)
27  GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
28  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12))
29  REPRESENTATION_CONTEXT('pcb','3D'));
30/* Byte assertion: contains(b'PWR_HDR_4') */
31/* PRODUCT 'PWR_HDR_4': 4-pin power harness connector, 2.54mm pitch */
32#50=PRODUCT('PWR_HDR_4','PWR_HDR_4','4-pin power harness connector',(#1));
33/* Byte assertion: count_entity_def(b'TERMINAL') >= 4 */
34/* Four TERMINALs at 2.54mm pitch: VCC / SIG / SIG2 / GND */
35/* Pin 1 at origin — 3.3V supply */
36#60=CARTESIAN_POINT('T1_VCC_loc',(0.0,0.0,0.0));
37#61=TERMINAL('T1_VCC',#60);
38/* Pin 2 — signal */
39#62=CARTESIAN_POINT('T2_SIG_loc',(2.54,0.0,0.0));
40#63=TERMINAL('T2_SIG',#62);
41/* Pin 3 — signal */
42#64=CARTESIAN_POINT('T3_SIG2_loc',(5.08,0.0,0.0));
43#65=TERMINAL('T3_SIG2',#64);
44/* Pin 4 — ground return */
45#66=CARTESIAN_POINT('T4_GND_loc',(7.62,0.0,0.0));
46#67=TERMINAL('T4_GND',#66);
47/* NOTE: no PROPERTY_DEFINITION for 'polarization' or 'keying' — that is the defect */
48/* Without polarization, reversed insertion maps T1_VCC onto T4_GND: power short *)
49/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
50#200=GEOMETRIC_CURVE_SET('ap210-connector-keying-polarization-missing-pwr-hdr-4',
51  (#50,#60,#61,#62,#63,#64,#65,#66,#67));
52/* Product chain */
53#400=APPLICATION_CONTEXT('mechanical design');
54#401=PRODUCT_CONTEXT('',#400,'mechanical');
55#402=PRODUCT('M159','M159','M159',(#401));
56#403=PRODUCT_DEFINITION_FORMATION('','',#402);
57#404=PRODUCT_DEFINITION_CONTEXT(#400,'design');
58#405=PRODUCT_DEFINITION('','',#403,#404);
59#406=PRODUCT_DEFINITION_SHAPE('','',#405);
60#407=SHAPE_REPRESENTATION('',(#200),#14);
61#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407);
62ENDSEC;
63END-ISO-10303-21;