Skip to content

tools(re): type_objects_vs_ifc counts an IFC4 type entity that is Revit's IFC2X3 one or its subtype as agreeing (B61) - #641

Merged
DrunkOnJava merged 2 commits into
mainfrom
tools/b61-type-entity-schemas
Oct 4, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
tools/b61-type-entity-schemas

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

B61. The 18 type-entity disagreements Measure reported (5 door types and 7 flow terminals on RE1 Architecture, 6 flow terminals on Plumbing) are schema names, not wrong types: the RE1 reference exports are IFC2X3 CoordinationView 2.0 (FILE_SCHEMA(('IFC2X3'))), which has no IfcDoorType (only IfcDoorStyle) and types sanitary terminals by IfcDistributionElementType. rvt-rs writes IFC4, where IfcDoorType and IfcSanitaryTerminalType are the right entities, so the exporter does not change; the scorer now counts an entity as agreeing when ours is Revit's, its IFC4 counterpart, or a subtype of either in IFC4.

Verification: Measure on this branch, type_objects_vs_ifc entity agrees on every typed element of the four RE1 models.


Note

Low Risk
Low-risk change to a comparison script only; no production export or runtime behavior is modified.

Overview
Updates the RE-110 type_objects_vs_ifc scorer so entity comparisons tolerate IFC2X3 (Revit RE1) vs IFC4 (rvt-rs) naming, per B61.

Instead of requiring an exact type class string match, entity counts as agreeing when rvt-rs’s IFC4 type is Revit’s class, the mapped IFC4 counterpart (e.g. IfcDoorStyle → IfcDoorType), or an IFC4 subtype of either. Name, tag, and global_id comparisons stay strict equality.

The module docstring documents the schema mismatch; scoring logic only changes in this tool—not the exporter.

Reviewed by Cursor Bugbot for commit d577070. Configure here.

…it's IFC2X3 one or its subtype as agreeing (B61)

The RE1 exports are IFC2X3 CoordinationView 2.0 (FILE_SCHEMA), so they type doors by IfcDoorStyle, which IFC4 replaced with IfcDoorType, and sanitary terminals by the supertype IfcDistributionElementType. rvt-rs writes IFC4, where IfcDoorType and IfcSanitaryTerminalType are right, so the scorer's 18 entity disagreements (5 doors and 7 flow terminals on Architecture, 6 on Plumbing) were schema names, not wrong types. An entity now agrees when ours is Revit's, its IFC4 counterpart, or a subtype of either in IFC4.
@DrunkOnJava
DrunkOnJava merged commit 911a5dd into main Oct 4, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the tools/b61-type-entity-schemas branch October 4, 2026 15:02
DrunkOnJava added a commit that referenced this pull request Oct 4, 2026
… on the duct's shape, new B68 (#35, #421) (#643)

Session 3 progress: B48 (#642), B51 and B67 (#639) done with their
evidence; B49 (#638) red and green recorded; B59 blocked on the duct's
shape and B68 (#640) added to unblock it; B61 (#641) found to be a
scorer issue (the RE1 exports are IFC2X3); the CI rerun policy recorded.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only backlog and session notes; no runtime or CI
workflow changes in this diff.
> 
> **Overview**
> Updates **`BACKLOG.md`** for maintainer session 3: session settings
now note mid-session items **B67** and **B68**, and record a **no CI
reruns** rule (pr-queue `/queue reruns off`, manual branch updates while
on 0.1.2).
> 
> The session 3 ranked table and progress log are refreshed with current
**status**, **PR links**, and **evidence**—e.g. **B48** / **B51** /
**B67** done, **B49** in progress with red/green runs and approved
fixture changes, **B59** blocked on duct shape until **B68**/**B43**,
**B61** in progress as an IFC2X3 vs IFC4 **scorer** fix (#641), plus ops
notes on cache cleanup and pr-queue behavior.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1e445cd. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Oct 4, 2026
…ocked on B38, new B69 (#652)

Second session 3 progress update. B49, B50, B57, B61, B63 and B52 done;
B44 (#651), B47, B53 and B66 in progress with their evidence runs; B62
blocked on B38; new B69: rvt-write exits 0 on a patch whose re-encoded
stream spans a checksummed page, found by B53's real-file test.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only update to BACKLOG.md; no runtime, test, or exporter
behavior changes in this diff.
> 
> **Overview**
> This is a **session 3 backlog refresh** in `BACKLOG.md`: ranked-item
statuses and the progress log are brought in line with work landed or
re-scoped since the last update.
> 
> **Completed** items are marked **done** with PR links where
applicable: **B49** (export diagnostics / `Pset_` parameter counting,
#638), **B61** (IFC2X3 vs IFC4 type-entity scorer, #641), **B63**
(`IfcSpace` containment, #645), **B50** (dead code, #647), **B52**
(local branch cleanup), and **B57** (launch docs drift, #646).
> 
> **Regressions / blockers** are recorded: **B62** moves from committed
to **blocked on B38** (extra plumbing connection to tank 442378 Revit
does not export); **B47**, **B44**, **B53**, and **B66** shift to **in
progress** with Measure/RE evidence; **B53** notes discovery of **B69**.
> 
> **B69** is added: `rvt-write` could exit 0 on patches whose re-encoded
stream spans a checksummed page, producing streams readers cannot
decode; fix direction is `Error::WriteRefused` in `src/writer.rs`,
blocking B53’s real-file CLI E2E.
> 
> The progress log adds red/green runs, witness/fixture notes,
pr-queue/rerun policy, and a **rule slip** (forbidden `git checkout
<ref> -- <file>` during scratch-branch file copies).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
3699bab. 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