Lh005 — FILE_DESCRIPTION/FILE_NAME/FILE_SCHEMA arity mismatch (extra or missing attributes)

§12.1b header/numbering

P1 — silent data loss

spec-violation syntax

Sources

Description

FILE_NAME requires 7 attributes; FILE_DESCRIPTION 2; FILE_SCHEMA 1 (a list). Real-world failures: extra attribute appended to FILE_NAME, empty parameter lists where attributes are required, FILE_SCHEMA written with a single string in place of a list of strings.

Reproducer recipe

`FILE_NAME('a','b',('c'),('d'),'e','f','g','h');` (8 args; expected 7); or `FILE_DESCRIPTION();` (0 args).

Expected kernel behavior

reject with a precise "attribute count mismatch" diagnostic naming the field.

Notes

**See also**: Lh004. Synonyms: "FILE_NAME wrong number of attributes", "FILE_SCHEMA arity mismatch", "FILE_DESCRIPTION extra attribute", "header record with too few parameters", "FILE_SCHEMA single string instead of list".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Lh004

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Lh005: FILE_NAME arity mismatch — 8 attributes supplied, spec requires exactly 7 */
3/* ISO 10303-21 §8: FILE_NAME(name,timestamp,author,org,preprocessor,system,auth) */
4/* DEFECT: an extra 8th argument 'build-tag-extra' is appended beyond the 7 required */
5/* Strict parsers reject; lenient parsers ignore the trailing extra attribute */
6HEADER;
7FILE_DESCRIPTION(('Lh005: FILE_NAME arity mismatch — 8 args instead of 7'),'2;1');
8/* DEFECT: FILE_NAME has 8 arguments; the 8th 'build-tag-extra' is non-standard */
9FILE_NAME('Lh005.stp','2026-06-20T00:00:00',('cad-research'),('suite'),'cad-research-suite','test-system','','build-tag-extra');
10FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
11ENDSEC;
12DATA;
13#1=CARTESIAN_POINT('origin',(0.,0.,0.));
14#2=CARTESIAN_POINT('corner',(1.,1.,0.));
15#3=DIRECTION('xdir',(1.,0.,0.));
16#4=DIRECTION('zdir',(0.,0.,1.));
17#5=GEOMETRIC_CURVE_SET('file-name-arity-mismatch-shape',(#1,#2));
18ENDSEC;
19END-ISO-10303-21;