Repository navigation
Wire typed MVP + ArcWall partition decode into production iter_elements - #136
Merged
Merged
Conversation
Prefer registered typed decoders for MVP_TYPED_CLASSES on Global/Latest (fail closed on reject). Merge version-gated partition ArcWall recovers as DecodedElement. Map ArcWall→IFCWALL; keep IFC emission on the partition path with ElementId dedup to avoid duplicate walls. Co-authored-by: DrunkOnJava <[email protected]>
Update ROADMAP, status, README, compatibility, and TODO to reflect MVP typed preference + ArcWall partition merge in production iter_elements, without claiming schema-driven partition Wall/Floor recovery is solved. Co-authored-by: DrunkOnJava <[email protected]>
DrunkOnJava
marked this pull request as ready for review
August 29, 2026 11:42
This was referenced Aug 29, 2026
cursor Bot
pushed a commit
that referenced
this pull request
Aug 29, 2026
Unblocks CI fmt check left red on main after #136. Co-authored-by: DrunkOnJava <[email protected]>
9 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Aug 29, 2026
## Summary Advances schema/partition MVP recovery beyond ArcWall-only into production `walker::iter_elements`: fail-closed `Level`, `Material`, `Room`, `Floor` plan-loops, and Revit 2024 `ArcWallRectOpening` index rows with related-id provenance. Does **not** invent typed `Door`/`Window` success. ## Motivation PR #136 wired ArcWall + typed MVP preference. Geometry P0s #30–#33 still needed Levels/Floors/opening provenance from partition streams. This lands measurable corpus progress without fake typed Door/Window claims. ## Changes - New `partition_schema_mvp` — version-gated recovers from partition strings / ArcWall elevations / plan loops / 2024 opening index - `iter_elements` merges those recovers after ArcWall (id dedup, fail closed) - `FloorBoundarySource::PartitionPlanLoop` for honesty in geometry recovery - `tests/iter_elements_typed.rs` — tier1 honesty + Einhoven (≥4 Levels, ≥5 Materials, ≥1 Floor boundary) + 2024 openings (≥50, not labeled Door/Window) - Docs (ROADMAP / status / README / compatibility / TODO) updated honestly ## Testing - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --all-targets --all-features -- -D warnings` - [x] `cargo test --release --test iter_elements_typed` (5 passed; Einhoven: 24 ArcWalls, 4 Levels, 41 Materials, 2 Floors, 3 Rooms; 2024: 2000 openings capped) - [x] `cargo test --release --lib partition_schema_mvp geometry::recovery` - [x] New / changed code has unit + integration tests ## Audit-honesty checklist - [x] Docs do not claim typed Door/Window or schema-field Wall from arbitrary partitions - [x] Synthetics stay honest (tier1: no invented Levels/Materials/Floors/openings) - [x] HostObjAttr still filtered on production path - [x] No Autodesk samples committed ## Related issues Refs #30 #31 #32 #33. Not closing — schema-field Wall, Floor←ElemTable binding, and Door/Window host typing remain open. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes production element enumeration with heuristic partition scans that could add false positives or performance cost on large 2024 files, though fail-closed filters, caps, and corpus tests mitigate that. > > **Overview** > Production **`walker::iter_elements`** now merges fail-closed partition recoveries beyond 2023 **ArcWall**: **Level** (storey names + ArcWall-derived elevations), **Material** / **Room** (strict partition name filters), **Floor** (closed plan loops with ArcWall-endpoint exclusion), and on Revit **2024** **`ArcWallRectOpening`** index rows with related-id provenance — explicitly **not** relabeled as typed **Door** / **Window**. > > The new **`partition_schema_mvp`** module implements version-gated scans (reusing existing partition / opening-index helpers, **`WalkerLimits`**, and caps). **`recover_floor_boundary`** tags **`FloorBoundarySource::PartitionPlanLoop`** when `m_source` is `partition_plan_loop`. > > **`tests/iter_elements_typed.rs`** tightens tier1 honesty (no invented partition MVP classes) and adds corpus checks for Einhoven (levels, materials, floors) and 2024 Core Interior (opening index). README / ROADMAP / status / compatibility / TODO are updated to describe the broader partial coverage without overclaiming schema-field walls or door/window host binding. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8ade196. 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
…ts (#136) ## Summary Wires Lane Four/Five typed MVP + partition ArcWall work into production `walker::iter_elements` (ROADMAP leftover of #26 / M3-05–M3-06), with corpus-backed geometry P0 validation for wall curves and level/storey elevations (#30 / #33). Fail closed — no fake typed success. ## Motivation Typed MVP decoders and the partition scanner shipped as library APIs but production `iter_elements` still used generic `Global/Latest` decode only. Real projects need the ArcWall partition path exposed through the same production iterator, without reintroducing HostObjAttr false positives. ## Changes - `walker::iter_elements` prefers typed decoders for `MVP_TYPED_CLASSES` (reject → skip); non-MVP keeps generic decode - Merges version-gated partition ArcWall recovers as `DecodedElement` (`class == "ArcWall"`) via `arc_wall::to_decoded_element` - IFC: map ArcWall→IFCWALL; walker→IFC skips ArcWall class (partition path keeps storey indices); ElementId dedup defensive - `tests/iter_elements_typed.rs` — tier1 honesty + Einhoven corpus (≥20 ArcWalls, location curves, elevations/storeys); skips without `RVT_PROJECT_CORPUS_DIR` - Docs (ROADMAP / status / README / compatibility / TODO) updated honestly — schema-driven partition Wall/Floor/Door/Window/Level still unsolved ## Testing - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --all-targets --all-features -- -D warnings` - [x] `cargo test --release --test iter_elements_typed` (4 passed; Einhoven: 24 ArcWalls, 24 curves, 4 storeys) - [x] `cargo test --release --lib geometry::` (24 passed) - [x] `cargo test --release --test geometry_recovery typed_decoders walker_to_ifc_integration` with magnetar corpus - [x] New / changed code has unit + integration tests ## Audit-honesty checklist - [x] Docs do not claim generic Wall/Floor/Door typed recovery from arbitrary partitions - [x] Synthetics stay honest (tier1: no invented ArcWalls / curves / hosts) - [x] HostObjAttr still filtered on production path; diagnostic API retained - [x] No Autodesk samples committed ## Related issues Refs #26 #30 #31 #32 #33 (M3-05/M3-06 leftover + geometry P0s). #97 closed separately (fuzz nightly green). Remaining gaps: schema-driven Floor boundary / Door-Window host / Level elevation from partition records on arbitrary projects; 2024 ArcWall tag drift still outside the 2023 standard decoder. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes production element iteration and IFC emission paths for real `.rvt` files; fail-closed MVP behavior reduces false positives but can drop candidates that previously decoded generically. > > **Overview** > Production **`walker::iter_elements`** no longer always uses generic `decode_instance`. For **`MVP_TYPED_CLASSES`** on `Global/Latest` it routes through **`decode_instance_prefer_typed`** (typed decoder success only; reject → skip, no generic fallback). It also **merges version-gated partition ArcWall** hits as `DecodedElement { class: "ArcWall" }` via **`ArcWall::to_decoded_element`**, with id deduplication. > > **`elements`** gains the prefer-typed helpers and module docs that describe this as the production path. **`arc_wall`** adds partition→`DecodedElement` projection and tests. > > **IFC**: **`ArcWall` → `IFCWALL`** in the category map; walker-driven export **skips** `ArcWall` class to avoid duplicate walls (partition export path unchanged); partition ArcWall rows can carry **ElementId** `type_guid` with defensive dedup against walker output. > > **Docs** (README, ROADMAP, status, compatibility, TODO M3-06) shift claims from “registry not wired / unsolved” to **partial**: MVP typed path + 2023 ArcWall merge; schema-driven Wall/Floor/Door/Level from arbitrary partitions still open. > > **`tests/iter_elements_typed.rs`** locks tier1 honesty (no HostObjAttr / fake ArcWall) and optional Einhoven corpus checks (≥20 ArcWalls, curves, diagnostic vs production scores). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d4ecb29f917b03064e258953a412ca958b63f3ef. 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 Advances schema/partition MVP recovery beyond ArcWall-only into production `walker::iter_elements`: fail-closed `Level`, `Material`, `Room`, `Floor` plan-loops, and Revit 2024 `ArcWallRectOpening` index rows with related-id provenance. Does **not** invent typed `Door`/`Window` success. ## Motivation PR #136 wired ArcWall + typed MVP preference. Geometry P0s #30–#33 still needed Levels/Floors/opening provenance from partition streams. This lands measurable corpus progress without fake typed Door/Window claims. ## Changes - New `partition_schema_mvp` — version-gated recovers from partition strings / ArcWall elevations / plan loops / 2024 opening index - `iter_elements` merges those recovers after ArcWall (id dedup, fail closed) - `FloorBoundarySource::PartitionPlanLoop` for honesty in geometry recovery - `tests/iter_elements_typed.rs` — tier1 honesty + Einhoven (≥4 Levels, ≥5 Materials, ≥1 Floor boundary) + 2024 openings (≥50, not labeled Door/Window) - Docs (ROADMAP / status / README / compatibility / TODO) updated honestly ## Testing - [x] `cargo fmt --all -- --check` - [x] `cargo clippy --all-targets --all-features -- -D warnings` - [x] `cargo test --release --test iter_elements_typed` (5 passed; Einhoven: 24 ArcWalls, 4 Levels, 41 Materials, 2 Floors, 3 Rooms; 2024: 2000 openings capped) - [x] `cargo test --release --lib partition_schema_mvp geometry::recovery` - [x] New / changed code has unit + integration tests ## Audit-honesty checklist - [x] Docs do not claim typed Door/Window or schema-field Wall from arbitrary partitions - [x] Synthetics stay honest (tier1: no invented Levels/Materials/Floors/openings) - [x] HostObjAttr still filtered on production path - [x] No Autodesk samples committed ## Related issues Refs #30 #31 #32 #33. Not closing — schema-field Wall, Floor←ElemTable binding, and Door/Window host typing remain open. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes production element enumeration with heuristic partition scans that could add false positives or performance cost on large 2024 files, though fail-closed filters, caps, and corpus tests mitigate that. > > **Overview** > Production **`walker::iter_elements`** now merges fail-closed partition recoveries beyond 2023 **ArcWall**: **Level** (storey names + ArcWall-derived elevations), **Material** / **Room** (strict partition name filters), **Floor** (closed plan loops with ArcWall-endpoint exclusion), and on Revit **2024** **`ArcWallRectOpening`** index rows with related-id provenance — explicitly **not** relabeled as typed **Door** / **Window**. > > The new **`partition_schema_mvp`** module implements version-gated scans (reusing existing partition / opening-index helpers, **`WalkerLimits`**, and caps). **`recover_floor_boundary`** tags **`FloorBoundarySource::PartitionPlanLoop`** when `m_source` is `partition_plan_loop`. > > **`tests/iter_elements_typed.rs`** tightens tier1 honesty (no invented partition MVP classes) and adds corpus checks for Einhoven (levels, materials, floors) and 2024 Core Interior (opening index). README / ROADMAP / status / compatibility / TODO are updated to describe the broader partial coverage without overclaiming schema-field walls or door/window host binding. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e56eb3ab5b728833b8d54332736d05d1b51765fb. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
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
Wires Lane Four/Five typed MVP + partition ArcWall work into production
walker::iter_elements(ROADMAP leftover of #26 / M3-05–M3-06), with corpus-backed geometry P0 validation for wall curves and level/storey elevations (#30 / #33). Fail closed — no fake typed success.Motivation
Typed MVP decoders and the partition scanner shipped as library APIs but production
iter_elementsstill used genericGlobal/Latestdecode only. Real projects need the ArcWall partition path exposed through the same production iterator, without reintroducing HostObjAttr false positives.Changes
walker::iter_elementsprefers typed decoders forMVP_TYPED_CLASSES(reject → skip); non-MVP keeps generic decodeDecodedElement(class == "ArcWall") viaarc_wall::to_decoded_elementtests/iter_elements_typed.rs— tier1 honesty + Einhoven corpus (≥20 ArcWalls, location curves, elevations/storeys); skips withoutRVT_PROJECT_CORPUS_DIRTesting
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningscargo test --release --test iter_elements_typed(4 passed; Einhoven: 24 ArcWalls, 24 curves, 4 storeys)cargo test --release --lib geometry::(24 passed)cargo test --release --test geometry_recovery typed_decoders walker_to_ifc_integrationwith magnetar corpusAudit-honesty checklist
Related issues
Refs #26 #30 #31 #32 #33 (M3-05/M3-06 leftover + geometry P0s). #97 closed separately (fuzz nightly green).
Remaining gaps: schema-driven Floor boundary / Door-Window host / Level elevation from partition records on arbitrary projects; 2024 ArcWall tag drift still outside the 2023 standard decoder.
Note
Medium Risk
Changes production element iteration and IFC emission paths for real
.rvtfiles; fail-closed MVP behavior reduces false positives but can drop candidates that previously decoded generically.Overview
Production
walker::iter_elementsno longer always uses genericdecode_instance. ForMVP_TYPED_CLASSESonGlobal/Latestit routes throughdecode_instance_prefer_typed(typed decoder success only; reject → skip, no generic fallback). It also merges version-gated partition ArcWall hits asDecodedElement { class: "ArcWall" }viaArcWall::to_decoded_element, with id deduplication.elementsgains the prefer-typed helpers and module docs that describe this as the production path.arc_walladds partition→DecodedElementprojection and tests.IFC:
ArcWall→IFCWALLin the category map; walker-driven export skipsArcWallclass to avoid duplicate walls (partition export path unchanged); partition ArcWall rows can carry ElementIdtype_guidwith defensive dedup against walker output.Docs (README, ROADMAP, status, compatibility, TODO M3-06) shift claims from “registry not wired / unsolved” to partial: MVP typed path + 2023 ArcWall merge; schema-driven Wall/Floor/Door/Level from arbitrary partitions still open.
tests/iter_elements_typed.rslocks tier1 honesty (no HostObjAttr / fake ArcWall) and optional Einhoven corpus checks (≥20 ArcWalls, curves, diagnostic vs production scores).Reviewed by Cursor Bugbot for commit 013e2f0. Configure here.