Repository navigation
feat: ArcWall trailer ElementId/elevation finish-line for Gate B - #116
Merged
Merged
Conversation
Deepen the Revit 2023 ArcWall → IFCWALL path with RE-15 trailer fields (ElementId, type id, base elevation), a shared partition scan API, elevation-derived storeys, ElemTable id linkage, and honest height / thickness handling (no invented 10 ft height; thickness still unresolved). Co-authored-by: DrunkOnJava <[email protected]>
Adapt RE-15/#86 name candidates from PR #117 and wire confident building-storey labels (Level N / Roof / Ground floor) onto elevation- derived IFC storeys. Keep thickness unresolved per RE-15/#88; leave openings to #117. Co-authored-by: DrunkOnJava <[email protected]>
Elevation-derived ArcWall storeys correctly emit one IfcRelContainedInSpatialStructure per non-empty storey, so the real IFC validator no longer demands a single containment rel. Viewer Playwright expectations drop unsupported_geometry_missing_level and assert storey_count / thickness warnings instead. Co-authored-by: DrunkOnJava <[email protected]>
cargo update -p anyhow to 1.0.104 (RUSTSEC-2026-0190) and -p crossbeam-epoch to 0.9.20 (RUSTSEC-2026-0204). quick-xml remains on 0.36: >=0.41 fixes RUSTSEC-2026-0194/0195 but breaks BytesText::unescape in part_atom. pyo3 stays on 0.24 (abi3 pin); RUSTSEC-2026-0176/0177 need >=0.29. Co-authored-by: DrunkOnJava <[email protected]>
Upgrade quick-xml for RUSTSEC-2026-0194/0195 and adapt PartAtom parsing to 0.41's GeneralRef entity events (accumulate text, trim on End). Upgrade pyo3 for RUSTSEC-2026-0176/0177. Completes the advisory set with the earlier anyhow/crossbeam-epoch bumps. Co-authored-by: DrunkOnJava <[email protected]>
5 of 6 tasks
Co-authored-by: DrunkOnJava <[email protected]>
Sibling <title> elements in Autodesk PartAtom streams must replace, not concatenate. Reset capture fields on Start (still append Text + GeneralRef chunks within one element) and only leave text-capture state when the matching End arrives. Co-authored-by: DrunkOnJava <[email protected]>
The ArcWall branch rewrite appended Text/GeneralRef chunks into title across sibling <title> elements, so sample PartAtom titles became "racbasicsamplefamily0610 x 0915mm" and broke Python wheel CI. Restore the quick-xml 0.41 pending-buffer flush from cursor/deps-advisory-bump-44c9 (green Python wheels) and add unit tests that sibling titles replace and entity chunks still concatenate. Co-authored-by: DrunkOnJava <[email protected]>
Owner
Author
|
PartAtom title CI fix ( Python wheel jobs were failing on
|
Co-authored-by: DrunkOnJava <[email protected]>
DrunkOnJava
marked this pull request as ready for review
August 28, 2026 10:51
DrunkOnJava
added a commit
that referenced
this pull request
Aug 28, 2026
## Summary Clears the shared cargo-audit / cargo-deny / viewer npm-audit failures that have been failing unrelated finish-line PRs (#114–#117) on the same advisories. **After this merges, #115 / #116 / #117 (and related finish-line branches) should rebase onto `main`** so they pick up the lockfile fixes without each re-fighting the same CI jobs. ### Rust (`Cargo.lock` / `Cargo.toml` / `rvt-py`) | Crate | From → To | Advisory | |---|---|---| | `anyhow` | 1.0.102 → 1.0.104 | RUSTSEC-2026-0190 | | `crossbeam-epoch` | 0.9.18 → 0.9.20 | RUSTSEC-2026-0204 | | `quick-xml` | 0.36.2 → 0.41.0 | RUSTSEC-2026-0194 / 0195 | | `pyo3` | 0.24.2 → 0.29.2 | RUSTSEC-2026-0176 / 0177 | `PartAtom` parsing adapted for quick-xml ≥0.38 (`Event::GeneralRef` entity streaming; no ignore/pin). ### Viewer npm `npm audit fix` in `viewer/` (stayed on Vite 8.x): - `vite` 8.0.9 → 8.2.2 - `postcss` → 8.5.26 - `nanoid` → 3.3.18 ## Test plan - [x] `cargo check --workspace` - [x] `cargo audit` clean - [x] `cargo deny check advisories` ok - [x] `cargo test --lib part_atom` (8 passed) - [x] `cd viewer && npm audit --audit-level=high` → 0 vulnerabilities - [ ] CI green on this PR No product / ArcWall / viewer feature work included. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > PartAtom parsing behavior changed to match a new XML event model; incorrect entity/whitespace handling could misread family metadata, while pyo3 upgrades affect the Python wheel ABI surface. > > **Overview** > Bumps Rust and viewer dependencies to clear **cargo-audit**, **cargo-deny**, and **npm audit** failures that were blocking unrelated PRs, with a targeted parser fix for the **quick-xml** major-line upgrade. > > **Rust:** `quick-xml` **0.36 → 0.41**, `pyo3` **0.24 → 0.29** (`rvt-py`), plus transitive fixes (`anyhow`, `crossbeam-epoch`). **`PartAtom::from_bytes`** in `part_atom.rs` is updated for quick-xml ≥0.38: entities stream as **`Event::GeneralRef`** instead of inline expansion, text is accumulated in **`pending`** and flushed on end tags (replacing **`trim_text`** + **`BytesText::unescape`**), and category **`scheme`** attributes use **`normalized_value`**. > > **Viewer:** `viewer/package-lock.json` from **`npm audit fix`** (e.g. **vite** 8.0.9 → 8.2.2, **rolldown** 1.2.6, **postcss** / **nanoid** bumps)—dev tooling only, no app feature changes. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit e312d79. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
cursor Bot
pushed a commit
that referenced
this pull request
Aug 28, 2026
Resolve add/add on partition_name_candidates by keeping the Gate B storey-name filter from main, and keep rect_opening_index from RE-15. Co-authored-by: DrunkOnJava <[email protected]>
DrunkOnJava
added a commit
that referenced
this pull request
Aug 31, 2026
## Summary Clears the shared cargo-audit / cargo-deny / viewer npm-audit failures that have been failing unrelated finish-line PRs (#114–#117) on the same advisories. **After this merges, #115 / #116 / #117 (and related finish-line branches) should rebase onto `main`** so they pick up the lockfile fixes without each re-fighting the same CI jobs. ### Rust (`Cargo.lock` / `Cargo.toml` / `rvt-py`) | Crate | From → To | Advisory | |---|---|---| | `anyhow` | 1.0.102 → 1.0.104 | RUSTSEC-2026-0190 | | `crossbeam-epoch` | 0.9.18 → 0.9.20 | RUSTSEC-2026-0204 | | `quick-xml` | 0.36.2 → 0.41.0 | RUSTSEC-2026-0194 / 0195 | | `pyo3` | 0.24.2 → 0.29.2 | RUSTSEC-2026-0176 / 0177 | `PartAtom` parsing adapted for quick-xml ≥0.38 (`Event::GeneralRef` entity streaming; no ignore/pin). ### Viewer npm `npm audit fix` in `viewer/` (stayed on Vite 8.x): - `vite` 8.0.9 → 8.2.2 - `postcss` → 8.5.26 - `nanoid` → 3.3.18 ## Test plan - [x] `cargo check --workspace` - [x] `cargo audit` clean - [x] `cargo deny check advisories` ok - [x] `cargo test --lib part_atom` (8 passed) - [x] `cd viewer && npm audit --audit-level=high` → 0 vulnerabilities - [ ] CI green on this PR No product / ArcWall / viewer feature work included. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > PartAtom parsing behavior changed to match a new XML event model; incorrect entity/whitespace handling could misread family metadata, while pyo3 upgrades affect the Python wheel ABI surface. > > **Overview** > Bumps Rust and viewer dependencies to clear **cargo-audit**, **cargo-deny**, and **npm audit** failures that were blocking unrelated PRs, with a targeted parser fix for the **quick-xml** major-line upgrade. > > **Rust:** `quick-xml` **0.36 → 0.41**, `pyo3` **0.24 → 0.29** (`rvt-py`), plus transitive fixes (`anyhow`, `crossbeam-epoch`). **`PartAtom::from_bytes`** in `part_atom.rs` is updated for quick-xml ≥0.38: entities stream as **`Event::GeneralRef`** instead of inline expansion, text is accumulated in **`pending`** and flushed on end tags (replacing **`trim_text`** + **`BytesText::unescape`**), and category **`scheme`** attributes use **`normalized_value`**. > > **Viewer:** `viewer/package-lock.json` from **`npm audit fix`** (e.g. **vite** 8.0.9 → 8.2.2, **rolldown** 1.2.6, **postcss** / **nanoid** bumps)—dev tooling only, no app feature changes. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit d4e146a035a291fb82a75f45f5e4e01b788008d2. 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
Deepens the only working real-project typed export path (Revit 2023 ArcWall → IFCWALL) with RE-15 trailer recovery: validated ElementIds, type-id candidates, base elevations, elevation-derived storeys with confident partition Level names, a shared partition scan API, and ElemTable linkage — without inventing wall height or thickness.
Motivation
Gate B / 0.3.0 / M11 needs the ArcWall path to stop being an IFC-only side scan with hardcoded thickness/height defaults. Refs #30, #33, #25, #28. Incorporates low-risk findings from sibling RE-15 PR #117.
Changes
src/arc_wall_record.rs— singleton trailer decode (ElementId,TypeId, base elevation);height_feet()from core Z deltasrc/partition_arc_walls.rs— shared scan API; storey recovery; ElementId→partition index; Level-name applicationsrc/partition_name_candidates.rs— adapted from PR research(re-15): geometry probes for slabs, layers, doors, names #117 (RE-15-06: Partition names partial; Level ElementId bind blocked (RE-20) #86); plusis_building_storey_name/building_storey_name_candidatessrc/elem_table.rs—index_by_element_id+link_arcwall_element_idssrc/ifc/mod.rs— shared path; named storeys when confident; property set; no invented 10 ft height; thickness placeholder + RE-15-08: Decode real wall compound-layer thicknesses and wire to IfcMaterialLayerSetUsage #88-aware diagnosticsreports/element-framing/RE-15-arcwall-trailer-synthesis.md— trailer evidence + research(re-15): geometry probes for slabs, layers, doors, names #117 cross-linksCI follow-ups
IfcRelContainedInSpatialStructureper non-empty storey (Einhoven: 4 rels / 4 storeys / 24 walls); related-element total must coverbuilding_elements.unsupported_geometry_missing_level; assertPartial decode,/unit|thickness|storey/i,storey_count: 4, thickness warning.anyhow1.0.104,crossbeam-epoch0.9.20,quick-xml0.41 (+ PartAtom parse adapt),pyo30.29; viewernpm audit fix.<title>elements were concatenating (racbasicsamplefamily0610 x 0915mm) after the ArcWall-branch quick-xml 0.41 rewrite. Syncedsrc/part_atom.rspending-buffer + End flush from fix(deps): clear shared CI advisories blocking finish-line PRs #118 (green Python wheels) and addedlater_title_element_replaces_earlier/ entity-chunk unit tests so only the Atom title text is returned.