Skip to content

test(ifc): an export without geometry types its elements as one with geometry (B74, red) - #692

Closed
DrunkOnJava wants to merge 1 commit into
mainfrom
red/b74-no-geometry-types
Closed

DrunkOnJava wants to merge 1 commit into
mainfrom
red/b74-no-geometry-types

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

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_types that exports each corpus RVT twice (Scaffold vs TypedNoGeometry), parses STEP for ObjectType and IfcRelDefinesByType links, and asserts typed elements match by GlobalId.

The test is registered in tools/ci/test-targets.txt so CI runs it with the other corpus-backed exporter checks. Per the PR intent, this is a red gate on main until typed-no-geometry reads Family/Type without record geometry.

Reviewed by Cursor Bugbot for commit 2b265f7. Configure here.

…geometry (B74)

Red output follows once CI has run.
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Red run recorded (Corpus health run 37243903781); the test and its output are in #694's test commit.

@DrunkOnJava DrunkOnJava closed this Oct 4, 2026
@DrunkOnJava
DrunkOnJava deleted the red/b74-no-geometry-types branch October 4, 2026 23:50
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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant