Skip to content

Commit b979b79

Browse files
authored
chore(release): prepare v0.21.0 (#1888)
## Summary Release metadata for v0.21.0 (RELEASE.md, steps 4 to 7), cut from `main` at `9b7dee8c` and merged with `main` up to `b76ee16e`: - every version file moves to 0.21.0 (`tools/release/bump_version.py`), and `CITATION.cff` is dated 2026-11-13; - the five fragments under `changelog.d/` (#1843, #1838, #1840, #1854, #1871) are assembled into a `[0.21.0]` section, with its introduction, what is not measured, the comparison with 0.20.0 and "Upgrading from 0.20"; - the README's release lines name v0.21.0; - Core Interior's two witness observations and verdicts, and the two synthetic IFC fixtures, are taken from CI's artifacts for `10b0a299` (run 43382001273): only `witness_version`, the verdict hashes and the version strings of the IFC header and `IFCAPPLICATION` differ. **Why now.** The GlobalId pair (#1850 and #1859) is in `main`: the GlobalIds an export writes hold from one save of a project to the next, which 0.20.0 was cut without so that they ship together. `rvt-diff --elements` (#1843) and the `--redact` fix for Linux home folders (#1871) are in the same release, and #1874 corrects a warning that called deleted elements an incomplete IFC. Measured and rehearsed: - the comparison with 0.20.0 is in the section, from Measure runs [43381774360](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381774360) (unfiltered, `main` at `9b7dee8c` against `v0.20.0`'s `9bb58fe1`: 146 of 146 exports move and `diagnostics.json` is equal on all 121 models that publish one; the MEP samples' `bodies_across_saves` goes from FAIL to PASS on 6 saves, and no other scorer output differs; that the exports move only in their GlobalIds is what #1850's and #1859's own line-by-line comparisons found, the run compares hashes) and [43381779893](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381779893) (timing: 75 files at 0.94 to 1.06 times the time, median 1.00, and 0.99 to 1.01 times the peak memory). The release adds only notes, witness files, version strings and fixtures to `9b7dee8c`, apart from the probes and the one docs line (#1876, #1877, #1878, #1880) that landed after it and move no export; - `publish.yml` rehearsal on this branch: [43383528785](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43383528785), on `bfa6859c`; only the changelog has changed since. ## Testing - `python3 tools/release/changelog.py check` passes: no fragment is left. - `bump_version.py` checks the version files with the preflight's own `check_versions`. - The PII guard runs `release_preflight.py` on this PR. ## Related issues Release 0.21.0. Milestone `0.21.0`.
1 parent b76ee16 commit b979b79

22 files changed

Lines changed: 214 additions & 144 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,162 @@ fragments a release moves into this file.
88

99
## [Unreleased]
1010

11+
## [0.21.0] — 2026-11-13
12+
13+
0.21.0 makes the GlobalIds an export writes hold from one save of a project to the next, and adds a command that compares two saves element by element. Between two saves of one Autodesk sample, every GlobalId the writer derived moved while the elements kept theirs, because each was seeded from the document's `Unique Document GUID`, which changes on every save; each is now seeded from the GlobalId of the entity it belongs to, which the file keeps (#1840, #1854). `rvt-diff --elements` lists what changed between two saves, keyed by GlobalId (#1843). `--redact` now scrubs the user name of a Linux home folder and every path of a message (#1871). The warning for element records of ElementIds the element table does not declare no longer calls the IFC incomplete for what a same-save comparison showed to be deleted elements (#1838).
14+
15+
Not measured, and said in each entry:
16+
- What belongs to no entity still moves between saves: the project, site, building and storeys where Revit gives them no GlobalId, classifications, materials, MEP systems, and types Revit gives no GlobalId (#1854).
17+
- `rvt-diff --elements` compares what rvt-rs reads, and a change in how rvt-rs reads a file shows as a change, so two saves are compared with one build (#1843). On Autodesk's `rst_basic`, its 2025 and 2026 saves differ in 12 beams' level-bind provenance because the 2026 records name one more Level (#1864), not because rvt-rs reads them differently.
18+
- On the 2027 save of `rac_advanced`, 80 curtain parts (79 `L Mullion 1` corner mullions and a curtain door) stand in no curtain wall where the 2025 save aggregates them, so the 79 mullions get no `IsExternal` (#1865).
19+
- The reading of #1838 rests on the one model compared with Revit's export of the same save (a Revit 2027 structural model, as counts): no model of Measure has such a record.
20+
21+
Measured against 0.20.0 on every model Measure holds (run
22+
[43381774360](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381774360),
23+
`main` at 9b7dee8c, 146 exports; the release adds only its notes, witness files,
24+
version strings and fixtures to them):
25+
26+
- All 146 exports move, and `diagnostics.json` is equal on all 121 models that
27+
publish one, so what is read, approximated and left out does not change. That
28+
the exports move only in their GlobalIds is what the line-by-line comparisons
29+
of the two GlobalId changes found on the exports they kept (#1850 for the
30+
further pieces, #1859 for the rest: every changed line is an entity with only
31+
its GlobalId changed, apart from the header's timestamps); this run compares
32+
hashes, not lines.
33+
- The same-project check of the MEP samples shows what the GlobalIds change:
34+
`bodies_across_saves` for the 2025, 2026 and 2027 saves of `rme_advanced` and
35+
`rme_basic` goes from FAIL (25 differences in each, the layered floors'
36+
pieces) to PASS, and the sketch outlines of the 2026 and 2027 saves against
37+
the 2025 save from 47 equal and 6 differing to 53 equal and none. Those six
38+
scorer outputs are the only ones that differ.
39+
- Time and memory, from the timing job of Measure run
40+
[43381779893](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381779893)
41+
(`rvt-ifc` built at v0.20.0 and at `main` 9b7dee8c, each file exported three
42+
times in turn on one runner, the median kept, with the peak resident memory of
43+
the export): the 75 files take 0.94 to 1.06 times the time (median 1.00; the
44+
1.06 is `rac_advanced` 2024, whose three rounds run 4.3 to 4.7 s on the base
45+
side and 4.6 to 5.0 s on the head side) and 0.99 to 1.01 times the peak memory
46+
(median 1.00).
47+
- Not measured in this run: the size of the IFC.
48+
49+
### Upgrading from 0.20
50+
51+
- Every export's IFC header names rvt-rs 0.21.0, so an export that is otherwise
52+
unchanged still differs from 0.20.0's there.
53+
- **Every derived GlobalId changes once (#1840, #1854).** Openings, voids,
54+
fills, property sets, quantity sets, material associations, containment,
55+
aggregation, type relationships, ports and the further pieces of a layered
56+
floor, a slab or a curtain wall take new GlobalIds in this release; from then
57+
on they hold from save to save. A tool that follows elements by GlobalId (a
58+
clash or issue-tracking (BCF) workflow) sees those removed and added again
59+
between an export made with 0.20.0 or earlier and one made with this
60+
release. The elements' own GlobalIds do not change.
61+
- **`rvt-diff` has a second mode, `--elements A.rvt B.rvt` (#1843).** Its JSON
62+
is described by `docs/schemas/rvt-diff-elements.schema.json`. The first mode,
63+
two files compared stream by stream, is unchanged.
64+
- **Rust: `rvt::ifc::element_diff` is new (#1843).** It adds public items and
65+
changes none.
66+
- **The wording of the warning for undeclared element records changes
67+
(#1838).** The command line's warning, the diagnostics' warning, `rvt-inspect`'s
68+
failure-mode text and the viewer's card say what these records are; the count,
69+
the readiness score and the `element_record_without_element_id` item, and
70+
`rvt-inspect`'s failure kind `incomplete_model`, are unchanged.
71+
72+
### Added
73+
74+
- **`rvt-diff --elements` compares two saves of a model element by element
75+
(#1843).** Each file is exported as `rvt-ifc` exports it, and the elements
76+
are keyed by the GlobalId the export writes. It lists the elements added,
77+
removed and changed, and for each changed one the fields that differ:
78+
class, name, storey, type, predefined type, material, where the body is
79+
placed, a digest of the body, and each property the export writes, less
80+
rvt-rs's own record of where in the file it read the element (its
81+
stream and offsets), which a later save moves. `--json`
82+
writes the whole comparison (`docs/schemas/rvt-diff-elements.schema.json`),
83+
and `--redact` scrubs names, parameter names and text values, and the file
84+
paths in what it prints. An element whose GlobalId an export writes for more
85+
than one element is left out of the comparison and reported, as
86+
`duplicate_global_ids` and `set_aside`, so a repeated GlobalId cannot hide a
87+
change. The library is `rvt::ifc::element_diff`. What rvt-rs does not read is not compared, and a
88+
change in how rvt-rs reads a file shows as a change, so compare two saves
89+
with one build. Suggested by HWT-25 (#1829), who compared two saves of a
90+
Revit 2027 model by hand.
91+
92+
### Fixed
93+
94+
- **Records of ElementIds the element table does not declare are no longer
95+
all reported as an incomplete IFC from a layout this release cannot locate
96+
(#1838).** The element records the reader leaves out because their ElementId
97+
is not one the file's element table declares were reported that way. A Revit
98+
2027 structural model, compared with Revit's export of the same save, showed
99+
84 of them were roof framing deleted between two saves: the record chain
100+
was the same in both, the table declared 143 fewer of its records, and
101+
Revit's export held none of the 84 and nothing the reader lacked (2,355 of
102+
2,355 elements by GlobalId). The command line's and the diagnostics'
103+
warnings, `rvt-inspect`'s failure mode, readiness and next step, the
104+
viewer's card and the docs now say what was measured: on that one model such
105+
records were elements deleted since the file's last Save As, which a file
106+
saved in place keeps, and if nothing was deleted the model is likely
107+
incomplete. Other causes are known (an element table read short, as on
108+
Autodesk's Snowdon Towers 2024 sample before RE-41) or not ruled out, so the
109+
count, the readiness score and the `element_record_without_element_id` item
110+
are unchanged. Not measured: no model of Measure has such a record (none of
111+
its 121 published diagnostics carries the item), so the one comparison is
112+
the reporter's, as counts.
113+
114+
- **An element's further pieces keep their GlobalIds from one save to the
115+
next (#1840).** A layered floor's parts, a slab's further pieces and a
116+
curtain wall's parts share their element's Tag, and Revit gives only the
117+
first a GlobalId. The others were derived from the document's
118+
`Unique Document GUID`, which can change between two saves of one project,
119+
so on a Revit 2027 structural model every part's GlobalId moved on every
120+
save (#1829). They are now derived from their element's Revit GlobalId,
121+
which the file keeps. The element's own GlobalId does not change.
122+
**Upgrade note for clash and issue-tracking (BCF) users:** each such
123+
further piece's GlobalId changes once, in this release. A tool that
124+
follows elements by GlobalId sees those pieces removed and added again
125+
between an export made with the previous release and one made with this
126+
one; from then on they hold. With each piece go the GlobalIds of its
127+
material association and its property sets. On Autodesk's MEP samples
128+
that is 25 pieces a file, on Snowdon Towers Architectural 25, and on the
129+
BIM4LCA concrete housing as built 3; a model with no layered floor, slab
130+
or curtain wall split into parts has none.
131+
132+
- **Openings, property sets, quantities and the relationships between
133+
entities keep their GlobalIds from one save to the next (#1854).** Each
134+
GlobalId the IFC writer derives was seeded from the document's
135+
`Unique Document GUID`, which changes on every save of every Autodesk
136+
sample measured, so between two saves of one project every opening,
137+
property set, quantity set, material association, containment, void,
138+
fill, aggregation, type relationship and port took a new GlobalId while
139+
the elements kept theirs. Each is now seeded from the GlobalId of the
140+
entity it belongs to: an opening from its host's, a property set from its
141+
element's, a relationship from the entity it starts from. It holds wherever
142+
that entity's does, and two documents share it only where they share that
143+
entity's. No project-level identity could take the document's place: the
144+
first episode and the ProjectInfo GlobalId are the template's, one value
145+
on 64 of the 102 models measured. What belongs to no entity still moves
146+
between saves: the project, site, building and storeys where Revit gives
147+
them no GlobalId, classifications, materials, MEP systems and types Revit
148+
gives no GlobalId.
149+
**Upgrade note for clash and issue-tracking (BCF) users:** every such
150+
derived GlobalId changes once, in this release, as the element pieces of
151+
#1840 do; from then on they hold.
152+
153+
- **`--redact` scrubs the user name from a Linux home folder, from a path an
154+
error echoes back, and from every path of a message instead of the first of
155+
each kind (#1871).** The scrubber that each CLI's `--redact` runs its text
156+
through knew `\Users\<name>\` and `/Users/<name>/` only, so a file under
157+
`/home/<name>/`, or an error that names one, kept the name. It also scrubbed
158+
only the first path of its kind in a string, so a message naming two files
159+
kept the second one's name, and it left a name alone when no separator
160+
followed it, which is the form a home folder takes in `No such file:
161+
/Users/alice`. Such a name now ends at the first space, quote, closing
162+
bracket, comma, semicolon or colon, or at the end of the string, so a name
163+
with a space is scrubbed only up to the space there; a home folder with
164+
nothing after it is left as it is. No committed output holds a home path, so
165+
none of it changes.
166+
11167
## [0.20.0] — 2026-11-12
12168

13169
0.20.0 is mostly hardening against crafted files. Such a file can no longer crash the browser viewer through a record's length or an overflow in a value it stores, make a read take exponential time or time that grows with the square of its element count, exhaust the stack through the chains it sets, or write its own text into an export's STEP (#1815, #1831, #1833, #1845). No real file of the measured corpus changes from any of those fixes. A reader that stops at one of the new work budgets says so, in a `work_budget_reached` skipped item and a warning, and the export is still written.

‎CITATION.cff‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ cff-version: 1.2.0
22
message: "If you use rvt-rs in academic or archival work, please cite it using this metadata."
33
title: "rvt-rs: Clean-room Rust reader for Autodesk Revit files"
44
type: software
5-
version: 0.20.0
6-
date-released: "2026-11-12"
5+
version: 0.21.0
6+
date-released: "2026-11-13"
77
license: Apache-2.0
88
repository-code: "https://github.com/DrunkOnJava/rvt-rs"
99
url: "https://github.com/DrunkOnJava/rvt-rs"

‎Cargo.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rvt"
3-
version = "0.20.0"
3+
version = "0.21.0"
44
edition = "2024"
55
rust-version = "1.87"
66
license = "Apache-2.0"

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ The measured detail behind each row is in [`docs/evidence.md`](docs/evidence.md)
4747

4848
## Install and quick start
4949

50-
The latest release is [v0.20.0](https://github.com/DrunkOnJava/rvt-rs/releases/tag/v0.20.0) (2026-11-12). Install it with any of:
50+
The latest release is [v0.21.0](https://github.com/DrunkOnJava/rvt-rs/releases/tag/v0.21.0) (2026-11-13). Install it with any of:
5151

5252
- the prebuilt Linux, macOS and Windows binaries on [GitHub Releases](https://github.com/DrunkOnJava/rvt-rs/releases), or the container image `ghcr.io/drunkonjava/rvt-rs`;
5353
- `cargo install rvt --locked`;
5454
- `pip install rvt`, for the Python bindings;
5555
- `cargo install rvt-rs-mcp --locked`, for the [MCP server](#mcp-server) alone;
5656
- nothing at all: the [browser viewer](https://drunkonjava.github.io/rvt-rs/) reads a file inside the tab.
5757

58-
[`docs/install.md`](docs/install.md) covers every channel, building from source and the smoke tests. This README describes `main`, which the browser viewer is also built from, so it can be ahead of the latest release: "Upgrading from 0.19" in the [changelog](CHANGELOG.md#upgrading-from-019) says what a user of 0.19 has to change, and each change `main` adds after 0.20.0 is a fragment in [`changelog.d/`](changelog.d/README.md), which the next release moves into `CHANGELOG.md`<!-- w10: release versions of this project, not measurements -->. To use `main` before the next release, build from source ([`docs/install.md`](docs/install.md#build-from-source)).
58+
[`docs/install.md`](docs/install.md) covers every channel, building from source and the smoke tests. This README describes `main`, which the browser viewer is also built from, so it can be ahead of the latest release: "Upgrading from 0.20" in the [changelog](CHANGELOG.md#upgrading-from-020) says what a user of 0.20 has to change, and each change `main` adds after 0.21.0 is a fragment in [`changelog.d/`](changelog.d/README.md), which the next release moves into `CHANGELOG.md`<!-- w10: release versions of this project, not measurements -->. To use `main` before the next release, build from source ([`docs/install.md`](docs/install.md#build-from-source)).
5959

6060
Three commands cover most of what the command line does:
6161

‎changelog.d/added/1843-element-diff.md‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎changelog.d/fixed/1838-undeclared-element-records.md‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎changelog.d/fixed/1840-piece-global-ids.md‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)