Lh046 — HEADER section contains only `/* */` comments and no required records

§12.1b header/numbering (sub-class: required HEADER records)

spec-violation syntax

Sources

Sender

deduced — writer pipelines that compose the HEADER section as a comment-only placeholder during a partial export or when the metadata source is unavailable

Description

ISO 10303-21 mandates that HEADER contain at minimum FILE_DESCRIPTION, FILE_NAME, and FILE_SCHEMA records (in that order). A pathological writer emits a HEADER section consisting of only `/* */` block comments; the required records are absent. Spec-conforming readers cannot determine the file's edition, encoding declaration, or schema name; they must reject. Lenient readers may invent default metadata (assume Edition-2, ISO-8859-1, AP203) and proceed, hiding the producer-side failure. Bug-reporter language: "STEP file has empty header", "no FILE_SCHEMA in file", "header is just comments", "schema unknown".

Reproducer recipe

a Part-21 file whose HEADER section is `HEADER; /* exported by build pipeline */ /* metadata unavailable */ ENDSEC;` (no FILE_DESCRIPTION / FILE_NAME / FILE_SCHEMA), followed by a normal DATA section.

Expected kernel behavior

reject the file with a diagnostic naming each missing required record; do not invent default metadata to allow downstream import.

Notes

Distinguishable from Lh043 (comments-inside-string). **See also**: Lh037, Lh042. Synonyms: "HEADER contains only comments", "STEP header missing required records", "FILE_DESCRIPTION absent from header", "comment-only HEADER section", "empty HEADER with /* */ only".

Expected validation

occt=empty/empty gmsh=empty ifc=reject

Byte assertions

Tier-3 assertions

Cross-references

Lh037, Lh042, Lh043

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Lh046: HEADER section contains only block comments — no required records */
3/* ISO 10303-21 §6.2: HEADER must contain FILE_DESCRIPTION, FILE_NAME, FILE_SCHEMA */
4/* DEFECT: all three required records are absent; only block comments appear in HEADER */
5/* lenient readers may invent default metadata; strict readers must reject */
6HEADER;
7/* exported by build pipeline */
8/* metadata unavailable — placeholder header inserted by partial export */
9/* FILE_DESCRIPTION: intentionally omitted */
10/* FILE_NAME: intentionally omitted */
11/* FILE_SCHEMA: intentionally omitted */
12ENDSEC;
13DATA;
14#1=CARTESIAN_POINT('origin',(0.,0.,0.));
15#2=CARTESIAN_POINT('corner',(1.,1.,0.));
16#3=DIRECTION('xdir',(1.,0.,0.));
17#4=DIRECTION('zdir',(0.,0.,1.));
18#5=GEOMETRIC_CURVE_SET('comment-only-header-shape',(#1,#2));
19ENDSEC;
20END-ISO-10303-21;