Skip to content

Honest IFC/viewer wiring for partition Level/Floor/Material + opening ElemTable joins - #141

Merged
DrunkOnJava merged 1 commit into
mainfrom
cursor/wall-door-window-ifc-67f9
Aug 29, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
cursor/wall-door-window-ifc-67f9

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Aug 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Advances #30–#33 after partition schema MVP (#140) by wiring recovers into IFC/viewer honestly and tightening opening provenance.

Newly recovers / wires

  • Materials no longer emit as IFCBUILDINGELEMENTPROXY; partition display names → IfcMaterial (Einhoven 41, Core Interior 92).
  • Levels → IFC storeys even when elevation-unresolved (2024: 12 name-only storeys).
  • Floors → boundary-annotated IFCSLAB (no invented thickness); geometry gaps use floor_boundary_annotation_only.
  • Rooms → IFCSPACE.
  • 2024 ArcWallRectOpening: related_id_a/b cross-checked against Global/ElemTable (≥1997/2000 confirmed under test caps); still not typed Door/Window.
  • Inspect + viewer File Status: production class counts + storey/material totals; unsupported features split honestly.

Still open (AC not met — issues stay open)

  • Schema-field Wall instances / 2024 ArcWall envelope (M3-02: Reverse-engineer Revit 2024 ArcWall records #23)
  • Door vs Window discrimination + host IFC voids/fills
  • Floor↔ElemTable ElementId binding + slab extrusion thickness
  • Opening index → IfcOpeningElement host join (deferred to avoid flooding STEP)

Tests

  • Tier1 honesty + iter_elements_typed corpus (Einhoven / Core Interior)
  • project_count_fixtures, walker_to_ifc_integration, clippy -D warnings

Refs: #30 #31 #32 #33


Note

Medium Risk
Changes real-file IFC output and export diagnostics semantics (materials, storeys, no opening stubs); behavior is corpus-tested but affects user-visible export counts and unsupported-feature reporting.

Overview
Wires partition MVP recoveries into production IFC and diagnostics without overstating Door/Window or geometry coverage.

IFC export now treats Material as IfcMaterial (not building proxies), Level as storeys (including name-only / elevation-unresolved at 0.0), Floor as boundary-annotated IFCSLAB via property sets only, and Room as IFCSPACE. Scaffold mode stops inventing IFCBUILDINGELEMENTPROXY for unmapped classes; ArcWallRectOpening stays in the walker for counts but is skipped in STEP until host-wall joins exist. Export diagnostics gain production_class_counts, refined geometry-gap buckets, and a more granular unsupported_features list.

Partition opening index rows cross-check related_id_a/b against Global/ElemTable and attach provenance fields (still not typed Door/Window). rvt-inspect and the browser File Status surface production class histograms plus storey/material totals. Docs, roadmap, and 2024 Core Interior count fixtures are updated to match the honest baseline.

Reviewed by Cursor Bugbot for commit 1010523. Configure here.

Wire Level/Floor/Room/Material recovers into IFC export (storeys, boundary
slabs, spaces, IfcMaterial) without PROXY Material rows. Confirm 2024
ArcWallRectOpening related ids against ElemTable without inventing
Door/Window. Surface production class counts in inspect + viewer File
Status; split unsupported-feature diagnostics for remaining gaps.

Co-authored-by: DrunkOnJava <[email protected]>
@DrunkOnJava
DrunkOnJava merged commit 2a463d3 into main Aug 29, 2026
20 of 24 checks passed
@DrunkOnJava
DrunkOnJava deleted the cursor/wall-door-window-ifc-67f9 branch August 29, 2026 12:29

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1010523. Configure here.

Comment thread viewer/src/main.ts
statusPanelEl.appendChild(
statusRow('Typed MVP', 'ok', classBits.join(' · ')),
);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File Status mislabels envelope recovers

Low Severity

The new File Status row titles production class counts as Typed MVP while listing ArcWall, ArcWallRectOpening, and other partition envelope recovers. Those hits are not decode_typed successes and openings are not typed Door/Window, so the label overstates what was recovered.

Fix in Cursor Fix in Web

Triggered by learned rule: Partition schema MVP: Level/Floor/Material, not Door/Window

Reviewed by Cursor Bugbot for commit 1010523. Configure here.

DrunkOnJava added a commit that referenced this pull request Aug 29, 2026
## Summary
Corpus-evidenced **negative result** for the hard gaps left after #141 —
fail-closed, no invented Door/Window/Wall types.

### Research (magnetar Einhoven 2023 + Core Interior 2024)
- **#32 Door/Window:** Opening-index mid-body bytes are not a Door vs
Window enum; `related_b≈related_a+1` dual-id handles; ElemTable payloads
are id echoes only; UTF-16 door/window strings do **not** co-locate with
related ids (`OST_Doors`/`OST_Windows` = 0); `VWallRectOpening` has
essentially no door/window dim pairs; schema lacks `Door`/`Window`.
- **#30 / #23 Wall:** Literal `Wall` ABSENT in schema; 2024 `ArcWall`
tag `0x019c` has **0** `SCHEMA_FAMILY_MARKER@+4` and **0** variant
`0x07fa` — 2023 decoder must stay gated off; VWall not recoverable on
these partitions.

### Landed
- `reports/element-framing/RE-19-door-window-wall-negative.md`
- Probes: `probe_door_window_wall_research`,
`probe_door_window_wall_followup`
- Regression locks: `tests/re19_door_window_wall_negative.rs` +
strengthened `iter_elements_typed` (0 Door/Window/Wall on Core Interior;
openings stay `ArcWallRectOpening`)
- ROADMAP / `docs/status.md` updated

### Explicitly not claimed
- No typed Door/Window IFC voids/fills
- No 2024 ArcWall geometry decoder
- Issues **stay open** pending a *new* wire join (family-symbol params /
true 2024 envelope)

Refs: #30 #32 #23

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
… ElemTable joins (#141)

## Summary
Advances #30–#33 after partition schema MVP (#140) by wiring recovers
into IFC/viewer honestly and tightening opening provenance.

### Newly recovers / wires
- **Materials** no longer emit as `IFCBUILDINGELEMENTPROXY`; partition
display names → `IfcMaterial` (Einhoven 41, Core Interior 92).
- **Levels** → IFC storeys even when elevation-unresolved (2024: 12
name-only storeys).
- **Floors** → boundary-annotated `IFCSLAB` (no invented thickness);
geometry gaps use `floor_boundary_annotation_only`.
- **Rooms** → `IFCSPACE`.
- **2024 ArcWallRectOpening**: related_id_a/b cross-checked against
`Global/ElemTable` (≥1997/2000 confirmed under test caps); still **not**
typed Door/Window.
- **Inspect + viewer File Status**: production class counts +
storey/material totals; unsupported features split honestly.

### Still open (AC not met — issues stay open)
- Schema-field `Wall` instances / 2024 ArcWall envelope (#23)
- Door vs Window discrimination + host IFC voids/fills
- Floor↔ElemTable ElementId binding + slab extrusion thickness
- Opening index → `IfcOpeningElement` host join (deferred to avoid
flooding STEP)

### Tests
- Tier1 honesty + `iter_elements_typed` corpus (Einhoven / Core
Interior)
- `project_count_fixtures`, `walker_to_ifc_integration`, clippy `-D
warnings`

Refs: #30 #31 #32 #33

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> <sup>[Cursor Bugbot](https://cursor.com/bugbot) is generating a
summary for commit 1a0d86337dfb01b1cb70cb9f6aed898f9c958633. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
## Summary
Corpus-evidenced **negative result** for the hard gaps left after #141 —
fail-closed, no invented Door/Window/Wall types.

### Research (magnetar Einhoven 2023 + Core Interior 2024)
- **#32 Door/Window:** Opening-index mid-body bytes are not a Door vs
Window enum; `related_b≈related_a+1` dual-id handles; ElemTable payloads
are id echoes only; UTF-16 door/window strings do **not** co-locate with
related ids (`OST_Doors`/`OST_Windows` = 0); `VWallRectOpening` has
essentially no door/window dim pairs; schema lacks `Door`/`Window`.
- **#30 / #23 Wall:** Literal `Wall` ABSENT in schema; 2024 `ArcWall`
tag `0x019c` has **0** `SCHEMA_FAMILY_MARKER@+4` and **0** variant
`0x07fa` — 2023 decoder must stay gated off; VWall not recoverable on
these partitions.

### Landed
- `reports/element-framing/RE-19-door-window-wall-negative.md`
- Probes: `probe_door_window_wall_research`,
`probe_door_window_wall_followup`
- Regression locks: `tests/re19_door_window_wall_negative.rs` +
strengthened `iter_elements_typed` (0 Door/Window/Wall on Core Interior;
openings stay `ArcWallRectOpening`)
- ROADMAP / `docs/status.md` updated

### Explicitly not claimed
- No typed Door/Window IFC voids/fills
- No 2024 ArcWall geometry decoder
- Issues **stay open** pending a *new* wire join (family-symbol params /
true 2024 envelope)

Refs: #30 #32 #23

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: DrunkOnJava <[email protected]>
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