Repository navigation
fix(ifc)!: two always-on export claims are made only where they hold: the 2024 opening-index rows are not openings (RE-376), and compound layers are claimed missing only where a host element has none - #1598
Merged
DrunkOnJava merged 6 commits intoNov 9, 2026
Merged
Conversation
DrunkOnJava
force-pushed
the
feat-opening-index-host-join
branch
from
November 9, 2026 10:25
32cdc42 to
44fa3fd
Compare
Owner
|
Thanks for this one. I changed two things on your branch so it can land, and pushed them to it (new head 44fa3fde):
A Measure of the head against |
…g index name system elements, not wall openings RE-15 read 60-byte Revit 2024 rows, found by their first bytes a7 01 00 00 (0x01a7, the schema's tag for ArcWallRectOpening) and the marker 0x40088204, as an index of rectangular wall openings, and took a row's related_id_a as its host candidate. The export has listed opening_index_to_ifc_openingelement_host_join among its unsupported features on every file since, waiting for that host to join. The probe reads the native record of every id the rows name and of every element a wall's cut steps (RE-321) name. On 2024 Core Interior all 4,917 rows name system elements (ConceptualConstructionType, ConceptualSurfaceType, GStyleElem, FillPatternElem, LinePatternElem, MaterialElem), and none names one of the 192 elements that cut its walls. The five other 2024 projects measured, whose walls hold 165 SWallRectOpening and 4 ArcWallRectOpening records, give no row. There is no host to join.
…e export no longer claims their host join is missing (RE-375) partition_schema_mvp no longer merges the rows RE-375 found to name system elements into iter_elements, and unsupported_export_features no longer lists opening_index_to_ifc_openingelement_host_join, which it did on every file whatever it held. Wall openings are written from the walls' own records (RE-321, RE-338), and those left out are counted in exported.wall_cut_openings_left_out. Removed with them: PartitionSchemaMvp::rect_openings, the opening_index_without_host_geometry gap bucket (nothing filled it once the rows stopped being written), the never-called opening_index_property_set, the ArcWallRectOpening category mapping and the viewer's ArcWallRectOpening class count. The decoder stays in research::rect_opening_index, documented as what it is. On Core Interior production_class_counts loses ArcWallRectOpening 3,777, production_walker_elements goes 4,833 to 1,056 and source_coverage.exported_element_fraction 0.20 to 0.92. The IFC of every file measured is unchanged; the witness observations of both Core Interior artifacts lose the one claim.
…ecisions list loses their reason (RE-375) Changes to existing tests, in their own commit for the maintainer's approval. iter_elements_typed required at least 50 ArcWallRectOpening rows on 2024 Core Interior, 50 of them with both ids in ElemTable; it now requires none, as RE-375 finds every id they name is a system element. export_decisions_counts drops opening_index_without_host_geometry from the reasons it expects, with the bucket.
… is written without its layers unsupported_export_features listed revit_compound_assemblies_and_walltype_widths on every file. Each wall, floor, roof and ceiling whose type's compound structure is read (RE-53, RE-112) is written with its layers, their materials and widths as an IfcMaterialLayerSetUsage, Revit's on 88 of 88 sets on Core Interior and 15 of 15 on RE1 Architecture (RE-58). The claim is now made only when a wall, a slab other than a stair landing, a roof or a ceiling is written with no layer set. Of 21 exports measured it goes on RE1 Architecture, Electrical, Mechanical and Plumbing and Autodesk's rst_basic 2024 and 2027. Core Interior and Einhoven keep it, as their count fixtures' known gaps require; the witness observations are unchanged. The IFC is unchanged.
…op census that landed first (DrunkOnJava#1598) The 2024 opening-index finding was written as RE-375 while the wall-top census took that number on main. The report, its probe and every reference to it now say RE-376; the lines that cite the wall-top census are untouched.
…ter is gone, and the layer-set sentence says what RE-58 scored (DrunkOnJava#1598) opening_index_property_set was the only writer of the Source value partition_rect_opening_index, and it is deleted, so tests/value_sources_offsets.rs keeps no row for it and the declared gaps are 19 values in four kinds, the schema-walker kind holding the wall and floor paths alone. The layer-set sentence in export-diagnostics.md gave 88 of 88 and 15 of 15 as Revit's in general; it now says they are RE-58's whole sets within 0.001 ft of Revit's body, beside Snowdon Towers' 1,196 of 1,207. Both points are rvtDevelop's from reading the pull request.
DrunkOnJava
force-pushed
the
feat-opening-index-host-join
branch
from
November 9, 2026 10:39
44fa3fd to
dfb3d4b
Compare
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…15 Revit 2024 files (#89) (#1599) ## Summary RE-376 found that the 60-byte Revit 2024 rows RE-15 read as an `ArcWallRectOpening` index name system elements, not wall openings, on six files measured locally. A run of the same probe from CI on 15 Revit 2024 files reproduces it, and the report now carries that run. ## Motivation #1598 withdrew `opening_index_to_ifc_openingelement_host_join` and stopped merging the rows because of this finding. Its evidence was one contributor's local output; a figure a reader can re-run is the stronger record, and the CI run covers ten files the report did not list. ## Changes - `reports/element-framing/RE-376-opening-index-is-not-openings.md`, section 3: a paragraph giving Measure run [42601800171](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42601800171) (the probe at `44fa3fde`, whose rows code `main` holds): 15 Revit 2024 files, five of the report's six (the housing terrain file is not one Measure reads) and ten more (the office's two terrain variants, `rac_advanced`, `rme_advanced`, `rme_basic` and five Snowdon Towers samples). Core Interior alone gives rows, 4,917 naming 648 ids in 324 pairs, with section 2's ten class pairs at the same counts; the other 14 give none; the walls' cut steps name 3,089 cutter ids over the 15 files and the files hold 181 native rectangular-opening records, and a row names none of them. The paragraph ends with the command that reproduces it from `main` at `a672e371`. ## Testing Unit tests: N/A. A report edit. - [x] The figures were read from the run's own `probe.txt` of each of the 15 files (the row and pair counts, the ten class pairs, the cutters named by a row, the native record lines), not from a summary of it, and the file list was checked against the models the run's directories name. - [x] `python3 tools/ci/api-doc-ids.py` passes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: only a report changes. - [x] No user-visible change, so no changelog fragment. - [x] The paragraph states what was measured and by which run; it claims nothing about what the rows are (section 7 stands). - [x] No emojis, private paths or PII; the files are Autodesk's samples (fetched for the run, never stored), the CI project and the BIM4LCA office, all named in the report already. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk proprietary source, internals or NDA material. ## Breaking changes None. ## Related issues Refs #89.
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
… time and peak memory against 0.16.1 (Measure run 42636959116)
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
## Summary Release 0.17.0. Everything merged since 0.16.1 (29 pull requests, `main` at 52282ea): Revit 2015 to 2023 curtain walls, curtain parts and steel beam I sections, duct and port reads of Revit 2015 to 2027, walls' `Height` on 2015 to 2023, room outlines from a stored solid's edges, two wall rules on Revit 2024 (a stub cut whole; a profile-edited wall's top and `Height`), no `ObjectType` on Revit 2026 and 2027 saves, and two export claims made conditional (#1598). The saved-mesh default for every class (#1610) and the wall profile pockets (#1608) are not in it; they go in the next release. ## Changes - Version 0.16.1 -> 0.17.0 in: - Cargo.toml; - rvt-py/Cargo.toml and its `=` pin; - rvt-mcp/Cargo.toml and its `=` pin; - rvt-wasm/Cargo.toml; - tools/stream_evidence/Cargo.toml's pin; - viewer/package.json; - CITATION.cff (version and date); - Cargo.lock and fuzz/Cargo.lock. - `python3 tools/release/changelog.py assemble`: 17 fragments go into `[0.17.0]`, with an introduction, what is not measured, and "Upgrading from 0.16". - README: the latest release and the "Upgrading from 0.16" and "after 0.17.0" fragments sentence. - The Core Interior witness observations and verdicts, and the synthetic fixtures, from this pull request's CI run (to be pushed). ## Testing - `python3 tools/ci/release_preflight.py check --event workflow_dispatch --ref-type branch --ref-name release/v0.17.0 --sha HEAD`: ok, version 0.17.0. - `python3 tools/release/changelog.py check`: ok. - The release's baseline Measure, `main` at 52282ea against v0.16.1 with every flag and the held-out models: run [42632958286](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42632958286) (its result goes into the changelog before this is merged). - The dry run RELEASE.md step 7 asks for, `publish.yml` dispatched on this branch (to be run, and linked here). Unit tests: N/A. ## Audit-honesty checklist - [x] Each entry keeps its caveats; the introduction lists what is not measured. - [x] No emojis, private paths or PII. ## Legal and contribution hygiene - [x] Apache-2.0. No Autodesk source, internals or NDA material. ## Breaking changes The API changes of #1524 and #1598 and the `ObjectType` change of #1601, listed under "Upgrading from 0.16".
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.
Summary
The 60-byte Revit 2024 rows RE-15 read as an
ArcWallRectOpeningindex are not wall openings: every id they name is a system element, and none is an element that cuts a wall. This stops merging them intoiter_elementsand withdrawsopening_index_to_ifc_openingelement_host_join, whichunsupported_featureslisted on every file whatever it held. Report: RE-376.It also makes
revit_compound_assemblies_and_walltype_widths, the other claim listed on every file, conditional: it is made only when a wall, a slab other than a stair landing, a roof or a ceiling is written with no layer set. Where one is written its layers, materials and widths are Revit's (RE-58). The IFC is unchanged throughout.Motivation
unsupported_export_featurespushedopening_index_to_ifc_openingelement_host_joinunconditionally, waiting for the rows' host walls to join (export_content.rs: "emit only once host Wall ElementIds join (still open)"). The B49 audit left it "checked against what it asserts, not changed by default". Because it is always there, the viewer's Mode row can never read "Supported profile" on any file.RE-376 checks what it asserts.
probe_re376_opening_index_idsreads the native record of every id a row names, and of every element a wall's cut steps (RE-321) name:ConceptualConstructionType,ConceptualSurfaceType,GStyleElem,FillPatternElem,LinePatternElem,MaterialElemFamilyInstance)rac_basicSWallRectOpeningSWallRectOpeningand 2ArcWallRectOpeningSWallRectOpeningand 2ArcWallRectOpeningrst_basic, housing terrainThe only file with rows has no rectangular wall opening, and the files with rectangular wall openings, including real
ArcWallRectOpeningrecords, give no row. The rows' one tie to the class is their first two bytes,0x01a7, the 2024 schema's tag forArcWallRectOpening. There is no host to join, so the claim is withdrawn rather than resolved. The real openings are already written from the walls' own records (RE-321, RE-338), and the ones left out are counted inexported.wall_cut_openings_left_out.The compound-layers claim was pushed unconditionally with the comment "layer widths remain open". But a host type's layers, widths included, are read (RE-53, RE-112) and written as an
IfcMaterialLayerSetUsagethat RE-58 scored as Revit's: 88 of 88 sets on Core Interior, 15 of 15 on RE1 Architecture, 1,196 of 1,207 on Snowdon Towers. What is still open is the host element written without layers: on Core Interior 41 walls (two fire-rated partition types) and 12 floors, on Einhoven 2023 all 26 walls, onrac_basica roof and two pads. Across 21 exports, the claim now goes on RE1 Architecture, Electrical, Mechanical and Plumbing and onrst_basic2024 and 2027, and stays on the other 15.The third claim on every file,
partial_revit_element_parameters, is left as it is. It is true (only the parameters rvt-rs reads are written), and Core Interior'sproperty_setsknown gap pins it.Changes
src/research/partition_schema_mvp.rs: the rows are no longer recovered or merged (PartitionSchemaMvp::rect_openingsandrect_openings_from_partitionsremoved).src/ifc/mod.rs:opening_index_to_ifc_openingelement_host_joinis no longer pushed, and theopening_index_without_host_geometrygap bucket, which nothing could fill, is removed.src/ifc/export_content.rs: the skip of the rows and the never-calledopening_index_property_setare removed.src/ifc/category_map.rs: theArcWallRectOpening→IFCOPENINGELEMENTmapping is removed.src/ifc/element_provenance.rs: thepartition_rect_opening_indexsource is removed.src/research/rect_opening_index.rs,src/research.rs,src/walker.rs: the decoder stays (the RE-15 and RE-19 tests and the fuzz targets use it), and its documentation now says what the rows are.viewer/src/main.ts: the Elements row no longer lists anArcWallRectOpeningcount.research/witness/magnetar-2024-core-interior{,-slim}/observations/rvt-rs.json: regenerated; each loses the one claim.probes/examples/probe_re376_opening_index_ids.rs,reports/element-framing/RE-376-opening-index-is-not-openings.md, an addendum todocs/format-reconnaissance.md,docs/status.md,docs/support-matrix.json(typed-project-elements,typed-door-window),docs/compatibility.md,docs/supported-profile.md,docs/export-diagnostics.md,changelog.d/fixed/opening-index-not-openings.md.src/ifc/mod.rs(host_element_without_layers): the compound-layers claim is made only when a wall, a non-landing slab, a roof or a ceiling covering has nomaterial_layer_set_index.docs/export-diagnostics.mdsays so;changelog.d/fixed/compound-layers-claim.md.tests/value_sources_offsets.rs,docs/export-diagnostics.md: the declared value-source gapSourcepartition_rect_opening_indexis dropped, its only writer (opening_index_property_set) being deleted, so the gaps are 19 values in four kinds; and the layer-set sentence gives RE-58's scores for what they are (whole sets within 0.001 ft of Revit's body: 88 of 88, 15 of 15, 1,196 of 1,207 on Snowdon Towers).iter_elements_typedrequired at least 50 rows on Core Interior (and 50 with both ids in ElemTable), and now requires none.export_decisions_countsdrops the removed reason.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)tools/check-local.sh --corpusat the branch head before the rebase ontomainand the renumbering (32cdc42d), with the Autodesk samples and the project corpus: all gates passed (fmt, clippy-D warnings, rustdoc, build, doc tests, examples,rvt-rs-mcp, and the real-file checks: 301 passed, 0 failed).cargo +1.87 check --all-targetspasses.probe_re376_opening_index_idson the six Revit 2024 projects held locally: Core Interior (MIT,magnetar-io/revit-test-datasets), Autodesk'srac_basicandrst_basic2024 (pinned inresearch/autodesk-sample-projects.tsv), and the BIM4LCA office as built and at permit and housing terrain (CC BY-SA 4.0, asresearch/bim4lca-measure.tsvpins them). The figures are in the table above and in RE-376 §2 and §3.main(a0d4475),rvt-ifcwith--diagnosticson 19 exports: those six files, Einhoven, RE1 Architecture, Mechanical, Electrical and Plumbing, and Autodesk'srac_basicof 2019, 2023, 2025, 2026 and 2027 andrst_basicof 2019, 2023 and 2027. Every IFC is identical except the two timestamps (FILE_NAME,IfcOwnerHistory.CreationDate). In every file's diagnostics the claim goes. On Core Interior alone,production_class_countsalso losesArcWallRectOpening3,777,production_walker_elementsgoes 4,833 to 1,056,exported_element_fraction0.20 to 0.92,decoded_element_fraction0.18 to 0.04 andmean_element_confidence0.72 to 0.81.rme_basic2019 and 2027): listed on the 15 with a host element without a layer set, absent on RE1 Architecture, Electrical, Mechanical and Plumbing andrst_basic2024 and 2027. Counted per file from the written IFC (walls, slabs by predefined type, roofs, coverings, with and without anIfcMaterialLayerSetUsage).project_count_fixtures,export_decisions_countsanditer_elements_typedrerun after this commit: 18 of 18 passed.RVT_PROJECT_CORPUS_DIRset):iter_elements_typed,export_decisions_counts,re15_geometry_invariants,re19_door_window_wall_negative,project_count_fixtures,fuzz_regressions: 91 passed, 0 failed.rvt-ifc ... --observation ... --artifact-id magnetar-2024-core-interior[-slim]). Each differs from the committed one by the withdrawn opening-index claim alone; Core Interior keeps the compound-layers claim, so the last commit leaves them as they are (checked byte for byte).tools/bench.shand attached the before / afterAudit-honesty checklist
changelog.d/<section>/(seechangelog.d/README.md), not inCHANGELOG.mddocs/status.md,docs/compatibility.md,docs/supported-profile.md,docs/support-matrix.json.probes/examples/and a dated addendum todocs/format-reconnaissance.mdare includedprobes/examples/probe_re376_opening_index_ids.rs.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
iter_elementsno longer yieldsArcWallRectOpeningrows on Revit 2024 (they were never written to the IFC).research::partition_schema_mvp::PartitionSchemaMvp::rect_openingsis removed (unstable-research).opening_index_to_ifc_openingelement_host_joininunsupported_features, nor the reasonopening_index_without_host_geometryin the export decisions (it never had an item).revit_compound_assemblies_and_walltype_widthsis absent fromunsupported_featureson a file whose host elements all have layer sets.Screenshots or output samples
probe_re376_opening_index_idson Core Interior:Related issues
Refs #89, #32