Skip to content

feat: ArcWall trailer ElementId/elevation finish-line for Gate B - #116

Merged
DrunkOnJava merged 11 commits into
mainfrom
cursor/arcwall-finish-line-44c9
Aug 28, 2026
Merged

DrunkOnJava merged 11 commits into
mainfrom
cursor/arcwall-finish-line-44c9

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Aug 28, 2026 •

Copy link
Copy Markdown
Owner

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

CI follow-ups

  • IfcOpenShell real IFC: validator accepts one IfcRelContainedInSpatialStructure per non-empty storey (Einhoven: 4 rels / 4 storeys / 24 walls); related-element total must cover building_elements.
  • Viewer Playwright: drop unsupported_geometry_missing_level; assert Partial decode, /unit|thickness|storey/i, storey_count: 4, thickness warning.
  • Deps: anyhow 1.0.104, crossbeam-epoch 0.9.20, quick-xml 0.41 (+ PartAtom parse adapt), pyo3 0.29; viewer npm audit fix.
  • PartAtom (wheel CI): sibling <title> elements were concatenating (racbasicsamplefamily0610 x 0915mm) after the ArcWall-branch quick-xml 0.41 rewrite. Synced src/part_atom.rs pending-buffer + End flush from fix(deps): clear shared CI advisories blocking finish-line PRs #118 (green Python wheels) and added later_title_element_replaces_earlier / entity-chunk unit tests so only the Atom title text is returned.

cursoragent and others added 5 commits August 28, 2026 09:55
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]>
cursoragent and others added 3 commits August 28, 2026 10:25
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]>
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

PartAtom title CI fix (22298b5)

Python wheel jobs were failing on test_part_atom_title_present because sibling <title> text was concatenated after the quick-xml 0.41 rewrite on this branch.

  • Synced src/part_atom.rs from fix(deps): clear shared CI advisories blocking finish-line PRs #118’s pending-buffer / End-flush parser (green wheels there)
  • Added Rust unit tests: later_title_element_replaces_earlier, title_with_entity_chunks_still_concatenates
  • cargo test --lib part_atom → 10/10 passed locally
  • ArcWall product code untouched

@DrunkOnJava
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]>
@DrunkOnJava
DrunkOnJava merged commit 95681e1 into main Aug 28, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the cursor/arcwall-finish-line-44c9 branch August 28, 2026 11:29
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]>
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