Skip to content

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 into
DrunkOnJava:mainfrom
puzzbobb:feat-opening-index-host-join
Nov 9, 2026

Conversation

@puzzbobb

@puzzbobb puzzbobb commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The 60-byte Revit 2024 rows RE-15 read as an ArcWallRectOpening index 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 into iter_elements and withdraws opening_index_to_ifc_openingelement_host_join, which unsupported_features listed 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_features pushed opening_index_to_ifc_openingelement_host_join unconditionally, 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_ids reads the native record of every id a row names, and of every element a wall's cut steps (RE-321) name:

2024 file rows what the rows' ids are elements its walls' cut steps name (summed over step kinds) named by a row
Core Interior 4,917 10 pairs of system classes: ConceptualConstructionType, ConceptualSurfaceType, GStyleElem, FillPatternElem, LinePatternElem, MaterialElem 192 (FamilyInstance) 0
rac_basic 0 - 33, incl. 2 SWallRectOpening 0
office as built 0 - 1,015, incl. 85 SWallRectOpening and 2 ArcWallRectOpening 0
office at permit 0 - 1,045, incl. 78 SWallRectOpening and 2 ArcWallRectOpening 0
rst_basic, housing terrain 0 - none 0

The only file with rows has no rectangular wall opening, and the files with rectangular wall openings, including real ArcWallRectOpening records, give no row. The rows' one tie to the class is their first two bytes, 0x01a7, the 2024 schema's tag for ArcWallRectOpening. 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 in exported.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 IfcMaterialLayerSetUsage that 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, on rac_basic a roof and two pads. Across 21 exports, the claim now goes on RE1 Architecture, Electrical, Mechanical and Plumbing and on rst_basic 2024 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's property_sets known gap pins it.

Changes

  • src/research/partition_schema_mvp.rs: the rows are no longer recovered or merged (PartitionSchemaMvp::rect_openings and rect_openings_from_partitions removed).
  • src/ifc/mod.rs: opening_index_to_ifc_openingelement_host_join is no longer pushed, and the opening_index_without_host_geometry gap bucket, which nothing could fill, is removed.
  • src/ifc/export_content.rs: the skip of the rows and the never-called opening_index_property_set are removed. src/ifc/category_map.rs: the ArcWallRectOpening → IFCOPENINGELEMENT mapping is removed. src/ifc/element_provenance.rs: the partition_rect_opening_index source 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 an ArcWallRectOpening count.
  • 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 to docs/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 no material_layer_set_index. docs/export-diagnostics.md says so; changelog.d/fixed/compound-layers-claim.md.
  • tests/value_sources_offsets.rs, docs/export-diagnostics.md: the declared value-source gap Source partition_rect_opening_index is 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).
  • Tests, in their own commit for your approval: iter_elements_typed required at least 50 rows on Core Interior (and 50 with both ids in ElemTable), and now requires none. export_decisions_counts drops 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.sh passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)
    • tools/check-local.sh --corpus at the branch head before the rebase onto main and 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-targets passes.
  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it
    • probe_re376_opening_index_ids on the six Revit 2024 projects held locally: Core Interior (MIT, magnetar-io/revit-test-datasets), Autodesk's rac_basic and rst_basic 2024 (pinned in research/autodesk-sample-projects.tsv), and the BIM4LCA office as built and at permit and housing terrain (CC BY-SA 4.0, as research/bim4lca-measure.tsv pins them). The figures are in the table above and in RE-376 §2 and §3.
    • Against main (a0d4475), rvt-ifc with --diagnostics on 19 exports: those six files, Einhoven, RE1 Architecture, Mechanical, Electrical and Plumbing, and Autodesk's rac_basic of 2019, 2023, 2025, 2026 and 2027 and rst_basic of 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_counts also loses ArcWallRectOpening 3,777, production_walker_elements goes 4,833 to 1,056, exported_element_fraction 0.20 to 0.92, decoded_element_fraction 0.18 to 0.04 and mean_element_confidence 0.72 to 0.81.
    • The compound-layers claim, on 21 exports (the 19 above plus rme_basic 2019 and 2027): listed on the 15 with a host element without a layer set, absent on RE1 Architecture, Electrical, Mechanical and Plumbing and rst_basic 2024 and 2027. Counted per file from the written IFC (walls, slabs by predefined type, roofs, coverings, with and without an IfcMaterialLayerSetUsage). project_count_fixtures, export_decisions_counts and iter_elements_typed rerun after this commit: 18 of 18 passed.
    • The affected test targets on the local corpus (RVT_PROJECT_CORPUS_DIR set): iter_elements_typed, export_decisions_counts, re15_geometry_invariants, re19_door_window_wall_negative, project_count_fixtures, fuzz_regressions: 91 passed, 0 failed.
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
    • Both Core Interior observations regenerated with the CI command (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).
  • If this is a performance change: reran tools/bench.sh and attached the before / after
    • N/A. Core Interior no longer scans its partitions for the rows.
cargo run --profile ci -p rvt-probes --example probe_re376_opening_index_ids -- _project_corpus/Revit/2024_Core_Interior.rvt
cargo run --profile ci -p rvt-probes --example probe_re376_opening_index_ids -- samples/2024-rac_basic_sample_project.rvt

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
  • A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • docs/status.md, docs/compatibility.md, docs/supported-profile.md, docs/support-matrix.json.
  • If a new limitation was introduced, it is documented in the PR body and in-code
    • None. RE-376 §7 lists what is not claimed: what the rows actually are, and other releases.
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • If this is a reverse-engineering finding: a reproducible probe under probes/examples/ and a dated addendum to docs/format-reconnaissance.md are included
    • probes/examples/probe_re376_opening_index_ids.rs.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • No fixtures.

Breaking changes

  • iter_elements no longer yields ArcWallRectOpening rows on Revit 2024 (they were never written to the IFC).
  • research::partition_schema_mvp::PartitionSchemaMvp::rect_openings is removed (unstable-research).
  • The diagnostics no longer list opening_index_to_ifc_openingelement_host_join in unsupported_features, nor the reason opening_index_without_host_geometry in the export decisions (it never had an item).
  • revit_compound_assemblies_and_walltype_widths is absent from unsupported_features on a file whose host elements all have layer sets.

Screenshots or output samples

probe_re376_opening_index_ids on Core Interior:

rows 4917  distinct ids 648  distinct pairs 324
streams {"Partitions/46", "Partitions/51", "Partitions/59"}
ConceptualConstructionType	ConceptualConstructionType	2000
GStyleElem	GStyleElem	1076
ConceptualSurfaceType	ConceptualSurfaceType	830
...
native ArcWallRectOpening: 0 records
native SWallRectOpening: 0 records
walls 1209  walls with cut steps 129
cutters Cutout: 192 ids, 0 named by an index row, classes {"FamilyInstance": 192}

Related issues

Refs #89, #32

@puzzbobb
puzzbobb requested a review from DrunkOnJava as a code owner November 9, 2026 10:16
@DrunkOnJava
DrunkOnJava force-pushed the feat-opening-index-host-join branch from 32cdc42 to 44fa3fd Compare November 9, 2026 10:25
@DrunkOnJava DrunkOnJava changed the title fix(ifc)!: two always-on export claims are made only where they hold: the 2024 opening-index rows are not openings (RE-375), and compound layers are claimed missing only where a host element has none 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 Nov 9, 2026
@DrunkOnJava

Copy link
Copy Markdown
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 main (all models, every scorer) is running as 42600802428: I expect every IFC identical and only diagnostics.json moving, as your 19 exports showed. If you have the branch checked out, fetch and reset to the new head before pushing anything else to it.

puzzbobb and others added 6 commits November 9, 2026 05:36
…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
DrunkOnJava force-pushed the feat-opening-index-host-join branch from 44fa3fd to dfb3d4b Compare November 9, 2026 10:39
@DrunkOnJava
DrunkOnJava merged commit a672e37 into DrunkOnJava:main Nov 9, 2026
38 checks passed
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.
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 9, 2026
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".
@puzzbobb
puzzbobb deleted the feat-opening-index-host-join branch November 9, 2026 15:31
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.

2 participants