Repository navigation
test(ifc): an export without geometry types its elements as one with geometry (B74, red) - #692
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
…geometry (B74) Red output follows once CI has run.
Owner
Author
|
Red run recorded (Corpus health run 37243903781); the test and its output are in #694's test commit. |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…ames (B74) (#694) B74, found by Bugbot on #666. `typed-no-geometry` read an element record's property set only with its geometry (`src/ifc/export_content.rs:431` on main), and that set is where an element's identity lives: its family and type names (the `ObjectType` and the type object), a room's number and name, the Level its record names, its Revit class and its type's text parameters. In that mode no element was typed. The record is now read in every mode. An export without geometry keeps only those identity properties (`IDENTITY_PROPERTIES` plus the type's text parameters) and drops the body, placement, host and the geometry's provenance (`BodySource`, box sizes, profile counts and so on), as before. A door's or window's type GlobalId hashes its flip against its host wall (B72). The flip was computed from the written placements after the geometry strip, so it could not survive this mode. It is now computed in content assembly, in every mode, from the plan frames the records give, with the same rule. That includes a curtain wall host whose body is held until its parts are known. Red on draft #692 (Corpus health run 37243903781). Every element the default export types was typed otherwise without geometry: RE1 Architecture 84 of 84, Mechanical 74 of 74, Plumbing 124 of 124, Electrical 49 of 49, Core Interior 970 of 970. The output is in the test commit. A Measure run against `main` checks that the default export is byte-identical. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes export content policy and GlobalId/type hashing for all quality modes; default geometry export is intended to stay byte-identical, but door flip and identity-property paths are sensitive. > > **Overview** > Fixes **`typed-no-geometry`** so elements keep the same **`ObjectType`**, type entity, and type **GlobalId** as the default export (B74). > > Partition element records are now read in **every** export quality mode, not only when geometry is included. In modes without geometry, bodies, placements, and host links are still dropped, but the element-record property set is trimmed to **identity** fields (`FamilyName`, `TypeName`, room/level metadata, `RevitClass`, type text parameters, etc.) instead of being skipped entirely. > > Door/window **flip** (B72), which hashes into the type GlobalId, is computed during content assembly from plan frames and facing data, stored as **`element_flips`** (booleans) rather than exported **`element_facings`**. Flip logic moves from `mod.rs` into `export_content.rs`, including hosts whose body is held until aggregate parts resolve. > > Adds corpus integration test **`typed_no_geometry_types`** (Scaffold vs `TypedNoGeometry` typing parity) and wires it into CI. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 0f98e99. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Red run for B74: the test alone on main. typed-no-geometry reads the Family/Type property set only with record geometry (src/ifc/export_content.rs:431), so it should fail with every typed element typed otherwise. Closed once the implementation PR carries the test with this run's output.
Note
Low Risk
Test and CI manifest only; no exporter or runtime behavior changes in this diff.
Overview
Adds B74 coverage: a new real-file integration test
typed_no_geometry_typesthat exports each corpus RVT twice (ScaffoldvsTypedNoGeometry), parses STEP forObjectTypeandIfcRelDefinesByTypelinks, and asserts typed elements match by GlobalId.The test is registered in
tools/ci/test-targets.txtso CI runs it with the other corpus-backed exporter checks. Per the PR intent, this is a red gate on main untiltyped-no-geometryreads Family/Type without record geometry.Reviewed by Cursor Bugbot for commit 2b265f7. Configure here.