Lh026 — Edition-3 ANCHOR / REFERENCE / SIGNATURE sections present in Edition-2 readers

§12.1b header/numbering

syntax

Sources

Description

Edition 3 introduces three optional sections: ANCHOR (named external entry points), REFERENCE (named external links via URI), SIGNATURE (digital signature). `implementation_level` becomes `'4;1'`. Older Edition-2 readers either fail to parse the sections, or strip and re-parse, or warn-and-skip; behavior is implementation-defined.

Reproducer recipe

`HEADER;..ENDSEC;ANCHOR;<a>=#1;ENDSEC;DATA;..` or add a SIGNATURE section after DATA.

Expected kernel behavior

under Ed.3, accept and pass through; warn on SIGNATURE that cannot be validated; under strict Ed.2, reject with a clear edition-mismatch diagnostic.

Notes

Cross-oracle: pure-Python Part-21 validator accepts (`accept`); OCCT rejects (`reject`). OCC enforces stricter framing than the spec text requires. Synonyms: "ANCHOR section in Edition 2 reader", "REFERENCE section unknown", "SIGNATURE section ignored", "Edition 3 sections fail in old reader", "STEP Ed.3 sections rejected".

Expected validation

occt=reject/reject gmsh=reject 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)
1/* Lh026 — Edition-3 ANCHOR / REFERENCE / SIGNATURE sections present
2 *         in Edition-2 readers
3 * Defect: Edition 3 introduces three optional sections: ANCHOR
4 * (named external entry points), REFERENCE (named external links
5 * via URI), and SIGNATURE (digital signature).
6 * implementation_level becomes '4;1'. Older Edition-2 readers
7 * either fail to parse, strip-and-reparse, or warn-and-skip —
8 * behavior is implementation-defined. This file emits all three
9 * optional sections after HEADER and around DATA. */
10ISO-10303-21;
11HEADER;
12FILE_DESCRIPTION((''),'4;1');
13FILE_NAME('Lh026.stp','2026-04-26T00:00:00',(''),(''),
14  'cad-research-suite','','');
15FILE_SCHEMA(('AUTOMOTIVE_DESIGN'));
16ENDSEC;
17ANCHOR;
18<part_anchor>=#4;
19<placement_anchor>=#13;
20<context_anchor>=#24;
21ENDSEC;
22REFERENCE;
23<external_geometry>='https://example.invalid/Lh026/external.stp#root';
24<companion_part>='file:./companion.stp#part_anchor';
25ENDSEC;
26DATA;
27#1=APPLICATION_CONTEXT('automotive design');
28#2=APPLICATION_PROTOCOL_DEFINITION('international standard',
29  'automotive_design',2009,#1);
30#3=PRODUCT_CONTEXT('part',#1,'mechanical');
31#4=PRODUCT('Lh026-part','Lh026 demo','',(#3));
32#5=PRODUCT_DEFINITION_FORMATION('','',#4);
33#6=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design');
34#7=PRODUCT_DEFINITION('design','',#5,#6);
35#10=CARTESIAN_POINT('origin',(0.0,0.0,0.0));
36#11=DIRECTION('z',(0.0,0.0,1.0));
37#12=DIRECTION('x',(1.0,0.0,0.0));
38#13=AXIS2_PLACEMENT_3D('placement',#10,#11,#12);
39#20=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
40#21=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
41#22=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
42#23=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#20,
43  'distance_accuracy_value','');
44#24=(GEOMETRIC_REPRESENTATION_CONTEXT(3)
45  GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#23))
46  GLOBAL_UNIT_ASSIGNED_CONTEXT((#20,#21,#22))
47  REPRESENTATION_CONTEXT('Lh026','3D'));
48ENDSEC;
49SIGNATURE;
50'MIIBuwYJKoZIhvcNAQcCoIIBrDCCAagCAQExCzAJBgUrDgMCGgUAMA0GCSqGSIb3DQEHAaAA';
51ENDSEC;
52END-ISO-10303-21;