In003 — A "Mend" demotes a Fail to a Warning, hiding the original failure (e.g., B_SPLINE_CURVE_WITH_KNOTS with wrong knot count auto-fixed)

§12.1c (sub-class: check downgrade)

P1 — silent data loss

syntax

Sources

Sender

deduced — OCCT uncovered-class sweep

Description

A reader's `Mend()` step takes a Fail-class diagnostic and downgrades it to a Warning if the kernel "fixed" the underlying problem. A consumer relying on the original Fail to gate further processing now misses it. Typical fixture: a B_SPLINE_CURVE_WITH_KNOTS whose knot multiplicities don't match the required count (e.g., degree 2 with 3 control points needs 6 knots, but the multiplicities sum to 7); a Fail-class condition that gets auto-mended and silently demoted. Bug-reporter language: "kernel hid an error", "fail downgraded to warning silently", "wrong knot count not reported".

Reproducer recipe

An entity that triggers a Fail-class check (e.g., a `B_SPLINE_CURVE_WITH_KNOTS` whose knot count is off-by-one — degree 2 with 3 control points but knot_multiplicities sum to 7 instead of the expected 6) but is then auto-fixed by the reader.

Expected kernel behavior

Warn and accept: always preserve the original severity; record the Mend as a separate "auto-corrected" event. Must not silently downgrade Fail to Warning.

Notes

Synonyms: "silent error fix", "fail demoted". Provenance tier: runtime-only; bytes alone cannot demonstrate this defect; the symptom is a runtime mutation of the diagnostic-severity record (Fail demoted to Warning) inside the kernel's check object. The static fixture only encodes the input precondition; observing the demotion requires a kernel runtime trace. Synonyms: "STEP Mend demotes Fail to Warning", "auto-fix hides original failure", "kernel mend hides bad knot count", "B_SPLINE knot defect silently fixed", "Fail downgraded to Warning by kernel".

Expected validation

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

Provenance tier

runtime-only — defect not fully embodied in fixture bytes.

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/* In003: A Mend demotes a Fail to a Warning, hiding the original failure; OCCT Interface_Check.hxx:97 (Mend method); a reader Mend() step takes a Fail-class diagnostic and downgrades it to a Warning if the kernel auto-fixed the underlying problem; a consumer relying on the original Fail to gate further processing misses it; defect: B_SPLINE_CURVE_WITH_KNOTS degree 2 with 3 control points: required knot sum = n+degree+1 = 3+2+1 = 6, but knot_multiplicities (3,1,3) sum to 7 (off-by-one extra knot); a Fail-class condition that gets auto-mended and silently demoted to Warning; receiver must always preserve the original severity; record the Mend as a separate auto-corrected event; must not silently downgrade Fail to Warning; bug-reporter synonyms: kernel hid an error, fail downgraded to warning silently, wrong knot count not reported, B_SPLINE knot defect silently fixed; GEOMETRIC_CURVE_SET IS NOT used — B-spline entity is the defect carrier */
3HEADER;
4FILE_DESCRIPTION(('In003'),'2;1');
5FILE_NAME('In003.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
7ENDSEC;
8DATA;
9#10=CARTESIAN_POINT('',( 0.0,0.0,0.0));
10#11=CARTESIAN_POINT('',( 1.0,1.0,0.0));
11#12=CARTESIAN_POINT('',( 2.0,0.0,0.0));
12/* Defect: degree 2, 3 ctrl-pts => expected knot sum 6; multiplicities (3,1,3) sum to 7 (off-by-one). */
13#20=B_SPLINE_CURVE_WITH_KNOTS('extra_knot',2,(#10,#11,#12),.UNSPECIFIED.,.F.,.F.,(3,1,3),(0.0,0.5,1.0),.UNSPECIFIED.);
14ENDSEC;
15END-ISO-10303-21;