Skip to content

fix(cli): rvt-inspect and rvt-corpus doctor take Revit 2015 and 2027 as releases rvt-rs reads - #838

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/inspect-version-range
Oct 19, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/inspect-version-range

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

rvt-inspect and rvt-corpus doctor take Revit 2015 and 2027 files as releases rvt-rs reads, as they already take 2019 to 2022. Before, both reported such a file as an unsupported version before looking at its export.

Motivation

Since RE-179 (#740) and RE-181 (#742), rvt-rs reads the element records of Revit 2015 to 2022 and 2027 projects, experimentally. rvt-inspect still set supported_revit_version from 2016 to 2026 and returned unsupported_revit_version before classifying the export, and rvt-corpus doctor failed the same years as unsupported_version. Codex found this reviewing the 0.6.0 release pull request (#837), which claims the new releases.

Changes

  • src/bin/rvt_inspect.rs: supported_revit_version is 2015 to 2027, and the unsupported message names that range.
  • src/bin/rvt_corpus.rs: doctor fails a file as unsupported_version outside 2015 to 2027.
  • CHANGELOG: the entry goes in chore(release): prepare v0.6.0 #837's [0.6.0] section, which lands next.

Testing

CI on this pull request: tests/rvt_inspect_cli.rs, and tests/json_schema_contracts.rs, which validates rvt-inspect's JSON against its schema. Their files are of 2016 to 2026, so the widened range changes nothing they report. No 2015 or 2027 file is in CI's corpus tiers, so these two CLIs have not been run on one; their export of such a file is RE-179's and RE-181's, measured on Autodesk's sample projects.

No unit tests, by the repository's rule.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

Breaking changes

For a Revit 2015 or 2027 file, rvt-inspect reports its export readiness instead of unsupported_revit_version, and rvt-corpus doctor checks it instead of failing it as unsupported_version.


Note

Low Risk
CLI-only version gating and messaging; behavior changes only for 2015/2027 files, matching existing parser support.

Overview
Aligns rvt-inspect and rvt-corpus doctor with the library’s actual read range by treating Revit 2015–2027 as supported instead of 2016–2026.

rvt-inspect now sets supported_revit_version with 2015..=2027 (with a comment pointing at RE-179–RE-181) and updates the unsupported-version message to name that range. Revit 2015 and 2027 files can proceed to export-readiness classification instead of stopping at unsupported_revit_version.

rvt-corpus doctor uses the same bounds for the unsupported_version bucket and updates its failure text accordingly, so those years are triaged through streams, schema, and export like other supported releases.

Reviewed by Cursor Bugbot for commit 8f5db11. Configure here.

…as releases rvt-rs reads

Both reported a 2015 or 2027 project as an unsupported version before looking at its export, though rvt-rs reads their element records experimentally since RE-179 and RE-181, as it reads 2019 to 2022, which both already took. Their range is now 2015 to 2027.

@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 and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Viewer version gate left stale
    • Updated classifyFailureMode in viewer/src/main.ts to reject only versions outside 2015–2027, matching rvt-inspect and rvt-corpus doctor.

Create PR

Or push these changes by commenting:

@cursor push a1d5ab86ef
Preview (a1d5ab86ef)
diff --git a/viewer/src/main.ts b/viewer/src/main.ts
--- a/viewer/src/main.ts
+++ b/viewer/src/main.ts
@@ -2483,7 +2483,7 @@
   const diagnosticCandidates = decoded.diagnostic_proxy_candidates ?? 0;
   const level = confidence.level ?? 'unknown';
 
-  if (typeof revitVersion === 'number' && (revitVersion < 2016 || revitVersion > 2026)) {
+  if (typeof revitVersion === 'number' && (revitVersion < 2015 || revitVersion > 2027)) {
     return {
       kind: 'warn',
       title: 'Unsupported Revit version',

You can send follow-ups to the cloud agent here.

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

Reviewed by Cursor Bugbot for commit 8f5db11. Configure here.

Comment thread src/bin/rvt_inspect.rs Resolved
…nspect does

Bugbot on #838: the viewer classified 2015 and 2027 files as an unsupported version before looking at their export, where rvt-inspect, whose failure mode the panel shows, now does not. The docs that describe the failure mode name the 2015 to 2027 range.
@DrunkOnJava
DrunkOnJava merged commit 039d305 into main Oct 19, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/inspect-version-range branch October 19, 2026 16:48
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
… and the CHANGELOG #838

Codex on #837: the IFC4 export row, the viewer paragraph and the decoder-work paragraph still said 2022 and earlier export only the scaffold, and the by-input table skipped 2014. The CHANGELOG records #838, the CLI version range.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
6 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
## Summary

Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then.

## Motivation

Since 0.5.1, `main` has:

- **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked.
- **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820).
- **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records.
- **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838).
- **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806).

## Changes

- **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries.
- **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary.
- **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now.
- **Witnesses:** the IFC header carries the version, so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run.

## Testing

- CI on this pull request, the witness replays included.
- Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate.
- Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

## Breaking changes

See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version and documentation-only release prep with no runtime code changes in this PR.
> 
> **Overview**
> **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19).
> 
> **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list.
> 
> No application or library source changes in this diff; it packages and narrates work already on `main`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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