M138 — AP203 APPROVAL_PERSON_ORGANIZATION with empty PERSON field

§12.8 (sub-class: AP203 approval personal record missing)

P1 — silent data loss

spec-violation

Sources

Sender

deduced — PDM exporter that omitted the personal name when the approver was identified only by organizational role

Description

An `APPROVAL_PERSON_ORGANIZATION` binds an `APPROVAL` to a `PERSON_AND_ORGANIZATION` whose `PERSON` field is empty - no identifier, no last name, no first name. The approval has an organizational stamp but no individual approver. Audit trail is incomplete; the approval cannot be attributed to a person.

Reproducer recipe

`PERSON('','',$,$,$,(),(),())` referenced inside `PERSON_AND_ORGANIZATION` referenced inside `APPROVAL_PERSON_ORGANIZATION`.

Expected kernel behavior

detect empty PERSON identity; reject the approval or warn that the audit trail is incomplete.

Notes

Synonyms: "AP203 anonymous approver", "PDM approval no signer", "missing approver name".

Expected validation

occt=empty/empty gmsh=empty 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/* M138: AP203 APPROVAL_PERSON_ORGANIZATION with empty PERSON identity fields */
3/* DEFECT: PERSON('','',$,$,$) — id and last_name both empty, no first_name */
4/* The APPROVAL_PERSON_ORGANIZATION links an approval to a person-less record */
5/* Audit trail is incomplete; approval cannot be attributed to any individual */
6/* Per ISO 10303-41 §4.4.3 PERSON.last_name is required and must be non-empty */
7/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */
8/* Byte assertion: contains(b'APPROVAL_PERSON_ORGANIZATION') */
9/* Byte assertion: contains(b"PERSON('','',") */
10HEADER;
11FILE_DESCRIPTION(('M138: AP203 APPROVAL_PERSON_ORGANIZATION empty PERSON no audit trail'),'2;1');
12FILE_NAME('M138.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','','');
13/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */
14FILE_SCHEMA(('CONFIG_CONTROL_DESIGN { 1 0 10303 203 1 0 0 }'));
15ENDSEC;
16DATA;
17#1=APPLICATION_CONTEXT('configuration controlled 3D designs of mechanical parts and assemblies');
18#2=APPLICATION_PROTOCOL_DEFINITION('international standard',
19  'config_control_design',1994,#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('ctx','3D'));
30/* Byte assertion: contains(b"PERSON('','',") */
31/* DEFECT: PERSON with empty id and empty last_name — violates ISO 10303-41 §4.4.3 */
32/* A PDM exporter identified the approver only by organizational role, omitting personal data */
33/* Any downstream APPROVAL_PERSON_ORGANIZATION referencing this PERSON is unattributable */
34#20=PERSON('','',$,$,$);
35/* Organization provides a stamp (Acme Engineering) but no named individual */
36#21=ORGANIZATION('ORG-007','Acme Engineering','Design approval authority');
37/* PERSON_AND_ORGANIZATION bundles the empty-identity PERSON with the real org */
38#22=PERSON_AND_ORGANIZATION(#20,#21);
39/* Product definition under approval */
40#30=PRODUCT('PART-202','Turbine Disc','High-speed rotating disc assembly',(#1));
41#31=PRODUCT_DEFINITION_FORMATION('rev_D','Release candidate D',#30);
42#32=PRODUCT_DEFINITION('design','',#31,PRODUCT_DEFINITION_CONTEXT(#1,'design'));
43/* APPROVAL entity marking the design as approved */
44#40=APPROVAL(APPROVAL_STATUS('approved'),'Rev D design gate approval');
45/* Byte assertion: contains(b'APPROVAL_PERSON_ORGANIZATION') */
46/* DEFECT: APPROVAL_PERSON_ORGANIZATION references #22 which contains empty PERSON #20 */
47/* The approval role 'approver' requires a named individual; none is present */
48/* A receiving system cannot record 'who approved rev_D' — audit trail is broken */
49#41=APPROVAL_PERSON_ORGANIZATION(#22,#40,APPROVAL_ROLE('approver'));
50#42=APPLIED_APPROVAL_ASSIGNMENT(#40,(#32));
51/* GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty */
52#500=GEOMETRIC_CURVE_SET('ap203-approval-person-org-empty-person-identity',
53  (#20,#21,#22,#30,#31,#32,#40,#41,#42));
54/* Product chain */
55#600=APPLICATION_CONTEXT('mechanical design');
56#601=PRODUCT_CONTEXT('',#600,'mechanical');
57#602=PRODUCT('M138','M138','M138',(#601));
58#603=PRODUCT_DEFINITION_FORMATION('','',#602);
59#604=PRODUCT_DEFINITION_CONTEXT(#600,'design');
60#605=PRODUCT_DEFINITION('','',#603,#604);
61#606=PRODUCT_DEFINITION_SHAPE('','',#605);
62#607=SHAPE_REPRESENTATION('',(#500),#14);
63#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607);
64ENDSEC;
65END-ISO-10303-21;