Skip to content

fix(ifc): write the crate's version in the IFC header, not 0.1.x - #417

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/ifc-header-version
Sep 27, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/ifc-header-version

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

FILE_NAME's originating system and IfcApplication.Version were hard-coded to 0.1.x; they now use CARGO_PKG_VERSION (rvt-rs 0.2.0 today). Fixtures regenerated with DUMP_IFC/DUMP_IFC_STRUCTURAL (the diff is those two lines plus the dump timestamps). cargo test --lib ifc::step_writer (47), both synthetic IFC tests, clippy -D warnings pass; Core Interior's rvt-rs witness observation regenerates byte-identical.

  • Apache-2.0; no Autodesk or ODA material.

Note

Low Risk
Header-only metadata change with no effect on geometry, units, or entity emission logic.

Overview
IFC export metadata now reflects the actual rvt-rs release instead of a stale hard-coded 0.1.x.

The STEP writer’s FILE_NAME originating-system field and IfcApplication.Version both use env!("CARGO_PKG_VERSION") (e.g. rvt-rs 0.2.0 today). CHANGELOG records the fix under Fixed, and the two synthetic IFC fixtures were regenerated so their headers match.

Reviewed by Cursor Bugbot for commit 1c96d61. Configure here.

FILE_NAME's originating system and IfcApplication.Version were hard-coded to 0.1.x. They now use CARGO_PKG_VERSION. The committed synthetic fixtures are regenerated; Core Interior's witness observation is unchanged.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 27, 2026 20:25
@cursor

cursor Bot commented Sep 27, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_42b29d20-da3e-46be-a28b-cb2f9153116f)

@DrunkOnJava
DrunkOnJava merged commit 1d4faa0 into main Sep 27, 2026
21 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/ifc-header-version branch September 27, 2026 20:30
@DrunkOnJava DrunkOnJava mentioned this pull request Sep 27, 2026
4 tasks done
DrunkOnJava added a commit that referenced this pull request Sep 27, 2026
## Summary

Prepare v0.3.0 (#405). **Merging this PR is not the release**, and
nothing is published by it: publication is the draft v0.3.0 GitHub
Release, which creates the tag and runs `publish.yml`. Draft until
Griffin gives the go-ahead to release. Merging it redeploys the viewer,
which would then show 0.3.0.

## Changes

- Versions 0.2.0 to 0.3.0: `rvt`, `rvt-py` and its pin, the
`stream_evidence` pin, both lockfiles (only the two version lines
change), `.release-please-manifest.json`.
- The viewer's package version follows the crate (it was 0.1.0), and the
viewer shows it under the drop zone (`rvt-rs 0.3.0`, injected by Vite
from `package.json`), for #405's "the deployed viewer reports the
release version".
- `CHANGELOG.md`: `[Unreleased]` becomes `[0.3.0] — 2026-09-27` (to be
re-dated at publication) with an empty `[Unreleased]`.
- `docs/install.md` and `docs/status.md`: 0.3.0 is prepared, not
published; the channel table still shows what is published (0.2.0).
- The IFC header now carries 0.3.0 (#417), so both Core Interior witness
observations are regenerated.

## Testing

- [x] fmt, clippy `-D warnings`, rustdoc `-D warnings`, `cargo test
--workspace --all-targets --all-features`, corpus `cargo test --profile
ci --no-fail-fast --test '*'` (255 binaries)
- [x] Witness: both artifacts PASS with all three replays matching;
`ifc_schema_arity.py --witness-agreement` passes
- [x] Wheel `rvt-0.3.0-cp38-abi3-macosx_11_0_arm64` builds, installs in
a clean venv, `rvt.__version__` is 0.3.0, and the README's Python
example prints exactly what the README shows; the IFC header reads
`rvt-rs 0.3.0`
- [x] Viewer: `npm run build` bundles `rvt-rs 0.3.0`; 13 browser tests
pass (6 skipped)

Library, CLI, wheel and viewer all report 0.3.0.

## Still to do at publication (#405, #406)

- Re-date the `[0.3.0]` heading, publish the draft release (the notes
are updated to this branch), then verify the archives, the PyPI wheel
and the deployed viewer from the published artifacts.
- crates.io: the dry run packages; the crate step skips until the
repository secret `CARGO_REGISTRY_TOKEN` is set.

## Breaking changes

Generated GlobalIds change once (#400); IFC length properties lost their
"Feet" suffix (#398). Both are in the release notes.

## Related issues

Refs #405, #406.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Mostly version and documentation updates; merging redeploys the viewer
with a visible version label but does not publish binaries or wheels by
itself.
> 
> **Overview**
> Prepares **v0.3.0** without publishing: bumps `rvt`, `rvt-py`,
`stream_evidence` pins, lockfiles, and `.release-please-manifest.json`
from 0.2.0 to **0.3.0**, and moves the accumulated release notes from
`[Unreleased]` into **`[0.3.0]`** in `CHANGELOG.md`.
> 
> The **browser viewer** now tracks the crate version
(`viewer/package.json` was 0.1.0, now 0.3.0) and shows **`rvt-rs
<version>`** under the drop zone (#405), injected at build time via Vite
`define` from `package.json`.
> 
> **Docs** (`install.md`, `status.md`) state that 0.3.0 is prepared on
`main` with a draft GitHub Release and no assets, while published
channels still serve 0.2.0. **Witness** observation JSON files update
`witness_version` to 0.3.0.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
fac30e6. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Sep 28, 2026
## Summary

Prepare v0.4.0. Merging this is not the release: the release is the
signed `v0.4.0` tag, which runs `publish.yml` (crates.io, PyPI, the
release binaries and the container image).

**Why 0.4.0.** The CHANGELOG follows semver, and before 1.0 a breaking
change bumps the minor version. Changes since 0.3.0 that consumers will
notice:
- `IfcSpace.Name` is now the room number (#503).
- Only building-story Levels become storeys (RE-118).
- System families are named in the file's saved locale (RE-123).
- `ElemRecord::owner_id` values change (#499).
- Public structs gained fields.

## Changes

- **Versions 0.3.0 → 0.4.0:** `rvt`, `rvt-py` and its pin, the
`stream_evidence` pin, both lockfiles (only the version lines change),
`.release-please-manifest.json` and `viewer/package.json`.
- **`CHANGELOG.md`:** `[Unreleased]` becomes `[0.4.0] — 2026-09-28`.
- A new **Upgrading from 0.3** section covers the room naming, storey
filtering, locale names, `owner_id`, struct fields and changed bodies
and counts.
- The 55 entries are regrouped by what they mean for a 0.3 user: Added
(Revit 2023 projects; every supported release), Changed and Fixed. They
were under two "Added" headings, with most additions under "Changed".
Entry text is unchanged.
- **Witnesses:** the IFC header carries the version (#417), so both Core
Interior `rvt-rs.json` observations are regenerated.
`witness-verdict.py` gives PASS with three replay matches for each.

## Checks

- fmt, clippy, rustdoc, MSRV 1.85, the fuzz check (locked), integration
tests, and `verify-real-files.sh --profile ci`.
- `cargo install --path . --locked`: `rvt-inspect --version` prints
0.4.0, and `rvt-info`, `rvt-inspect --json` and `rvt-ifc --diagnostics`
run on the 2024 sample family.
- `maturin build`: the 0.4.0 wheel installs in a clean venv and imports,
reporting `rvt.__version__ == "0.4.0"`.

The docs keep describing 0.3.0 as the latest release until each 0.4.0
channel has been verified from its published artifacts. That follows in
a separate PR.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Diff is version metadata, changelog curation, and witness JSON version
strings only; behavioral breaking changes ship in prior feature merges,
not in this PR.
> 
> **Overview**
> This PR **cuts the 0.4.0 release line** without changing decoder or
exporter code: it bumps **`0.3.0` → `0.4.0`** on `rvt`, `rvt-py`, the
viewer, `.release-please-manifest.json`, path/version pins in
`stream_evidence`, and the lockfiles.
> 
> **`CHANGELOG.md`** promotes the accumulated work from `[Unreleased]`
to **`[0.4.0] — 2026-09-28`**, adds an **Upgrading from 0.3** section
(room `IfcSpace.Name`, building-story storeys, locale system-family
names, `ElemRecord::owner_id`, new public struct fields, geometry/IFC
count shifts), and **reorganizes** the ~55 entries into Added / Changed
/ Fixed (Revit 2023 vs all releases) without rewriting entry text.
> 
> Both Core Interior witness **`rvt-rs.json`** observations update
**`witness_version`** to `0.4.0` so replay metadata matches the IFC
header version.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
518f90c. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
## Summary

Prepare v0.5.0. Merging this is not the release: the release is the signed `v0.5.0` tag on the merged commit, which runs `publish.yml` (crates.io, PyPI, the release binaries and the container image). The tag waits for the maintainer's go-ahead.

## Motivation

`main` is 0.4.0 plus everything under `[Unreleased]`: Revit 2026 projects (experimental), MEP ports, connections and systems, Revit's level, category, family, type and phase properties, rooms aggregated into their storeys, Snowdon Towers exporting again, and the first pull requests from outside contributors. Before 1.0 a breaking change bumps the minor version, and these are breaking for a 0.4 user:

- The MSRV is 1.87 (was 1.85).
- `rvt` has no `wasm` feature; the bindings are the `rvt-wasm` crate (C6).
- Each `IfcSpace` is aggregated into its storey instead of contained in it (#744).
- `ElemTableHeader::record_count` is a `u32` (#764).
- Type objects take Revit's GlobalIds (RE-167).

## Changes

- **Versions 0.4.0 → 0.5.0:** `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, both lockfiles (only the workspace crates' version lines change), `.release-please-manifest.json` and `viewer/package.json`.
- **`CHANGELOG.md`:** `[Unreleased]` becomes `[0.5.0] — 2026-10-18`.
  - An introduction, the contributors, and an **Upgrading from 0.4** section.
  - The community pull requests' entries are added and credited (#737, #738, #744, #751, #752, #753, #755, #757, #758).
  - The repeated Added, Changed, Fixed and Research headings, which later merges had appended, are folded into one each. All 107 entries are kept as written (checked as a multiset) and in their order, and everything from `[0.4.0]` down is byte-identical.
  - #778's clean-room policy change is added under Changed, so the section has 108 entries.
- **`CITATION.cff`:** it said 0.1.2 (2026-04-20), though `RELEASE.md` has it agree with `Cargo.toml` at every tag. Its abstract now describes the project as the README does, without the "first open-source tool" and "verified against 11 releases" claims.
- **Registry descriptions:** crates.io showed 0.4.0's description, which leaves out Revit 2023, and PyPI one that called element extraction and geometry "active research" and the export "document-level IFC4 scaffolding". `Cargo.toml` and `pyproject.toml` now say what the README says: typed elements from Revit 2023 to 2025 projects, 2026 experimental.
- **Witnesses:** the IFC header carries the version (#417), 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: every job `CI passed` requires, the witness replays among them.
- On the tag, the publish workflow runs its own checks before anything is published: wheel install and model open on each OS, `cargo install` and the CLI sample smoke, the docs.rs build preview and the viewer load smoke. crates.io and PyPI publish only after all of them pass, and PyPI only after crates.io.

## Audit-honesty checklist

- The docs keep describing 0.4.0 as the latest release until each 0.5.0 channel has been checked from what was published. That follows in a separate pull request (`docs/install.md`, `docs/python.md`, `docs/status.md`, `docs/supported-profile.md` and the README's release section).
- crates.io's trusted publisher (repository DrunkOnJava/rvt-rs, workflow `publish.yml`, environment `crates-io`) has to be in place before the tag, as `docs/maintaining.md` says; it is a registry-side setting this repository cannot check.

## Legal and contribution hygiene

N/A: release metadata only. Contributors are credited by their GitHub names in the CHANGELOG.

## Breaking changes

Listed under Motivation, with the migration for each in the CHANGELOG's **Upgrading from 0.4**.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 24, 2026
10 of 12 tasks
DrunkOnJava added a commit that referenced this pull request Oct 24, 2026
## Summary

Prepares v0.7.0 (RELEASE.md steps 4 to 8): the version files, the
`[0.7.0]` changelog section assembled from `changelog.d/`, the README's
release section, and corrections to the status docs where they still
described the state before RE-212 or before the BIM4LCA office was
measured. Merging this is not the release; the signed tag on its squash
commit is.

## Motivation

Griffin's go-ahead (2026-10-24, about 3:00 PM): tag v0.7.0 once #887,
#930, #935, #940, #942 and #943 are on main with CI green. All six have
landed, the last at b04c0cb (#930). #934 (`--revit-property-sets`,
breaking) and #923 (the `ElementId` newtype, breaking) go in the next
release.

## Changes

- **Version files** (0.6.1 to 0.7.0): `Cargo.toml`, `rvt-py/Cargo.toml`
(and its `=0.7.0` pin on `rvt`), `rvt-wasm/Cargo.toml`, the `rvt` pin in
`tools/stream_evidence/Cargo.toml`, `viewer/package.json`,
`CITATION.cff` (`date-released: 2026-10-24`),
`.release-please-manifest.json`, and the workspace crates' entries in
`Cargo.lock` and `fuzz/Cargo.lock`.
- **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble`
moved the nine fragments in, then `[Unreleased]` became `[0.7.0] —
2026-10-24`, with an introduction, credits to puzzbobb (#870, #886,
#887, #935) and n3ur0m4n (#882), and "Upgrading from 0.6": the research
readers behind `unstable-research`, the `#[non_exhaustive]` types, the
error variants (and Python's `ValueError`), `SimpleDecoder`, the
property set builders' `Vec`, the removed `ifc::pset_validate`, the
element walk failing closed, and changed exports. Headings in the
assembler's order (Added, Changed, Fixed, Removed, Research), one each.
`[Unreleased]` is left empty.
- **Entries corrected for the release as a whole**: #847's pipe-port
entry said In ports' axes were wrong because their flow direction was
not read, and that other family-instance ports had no placement; RE-212
and #943 changed both, and it now gives main's counts (Measure
40126110706, base side: 124 of 124 and 62 of 62 with Revit's axis;
joined ports 108 and 53 as Revit's, 10 and 6 opposite). The
unjoined-ports entry says Revit 2025 in its headline. RE-215's entry
adds the office.
- **`README.md`**: "Release 0.7.0 and main", what 0.7.0 adds in brief.
The 0.6.1 section listed RE-215 under 0.6.0's additions; it shipped in
neither.
- **`docs/support-matrix.json`**:
- `native-symbol-cut-sizes`: the BIM4LCA office's result, and
`user_impact` limited to families whose symbol cuts an outline;
- `element-record-mep-connections`: still said HVAC and piping
directions, names and descriptions are not read and In ports' axes are
reversed; it now states RE-212 (direction, `InPort_`/`OutPort_` names,
`Flow` descriptions, axes), keeps SystemType and the electrical
description as unread, and lists RE-212's probe, scorer, test and report
as evidence.
- **`docs/status.md`** and
**`reports/element-framing/RE-215-symbol-cut-loops.md`**: the office,
which §6 called NOT MEASURED, as measured on 2026-10-24 (Measure
40121636312 and 40122363218): 187 of its 269 doors cut an outline and
have Revit's sizes; its 269 windows and other 82 doors are drawn by
symbols with no cut loop (#810).

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes: this PR's CI. No code changes; the
version string changes the IFC header.
- [x] Verified end to end on real Revit files: no behaviour changes; the
measurements cited are the runs named above.
- [ ] If this touches the IFC exporter: the IFC header carries the
version (#417), so both Core Interior `rvt-rs.json` observations and
their verdicts are refreshed from this PR's CI run (its
`octetproof-core-interior` artifact) in a follow-up commit here,
differing only in `witness_version` and the verdict hashes.
- N/A: performance.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] The changelog section is assembled from the fragments;
`changelog.py check` passes with none left
- [x] Resolved limitations updated (RE-212's in the support matrix, the
office's NOT MEASURED)
- N/A: no new limitation
- [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
- N/A: not a reverse-engineering finding

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

The release's, listed under "Upgrading from 0.6" in `CHANGELOG.md`. This
PR itself changes no API.

## Screenshots or output samples

N/A: the IFC changes only in its header's version.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 27, 2026
9 of 11 tasks
DrunkOnJava added a commit that referenced this pull request Oct 27, 2026
## Summary

Prepares v0.10.0 (RELEASE.md steps 4 to 8). It bumps the version files,
assembles the `[0.10.0]` changelog section from `changelog.d/`, and
rewrites the README's release section. Merging this is not the release;
the signed tag on its squash commit is.

## Motivation

`main` holds a stable batch since 0.9.0: 12 base-quantity rules from the
W7 round, each measured equal to Revit's export with none different,
plus two diagnostics fields and puzzbobb's type parameters (#1065). On
the BIM4LCA office as built that is 21,065 quantities, against 0.9.0's
20,157. Griffin approved 0.10.0 with this scope on 2026-10-27.

## Changes

- **Version files** (0.9.0 to 0.10.0):
  - `Cargo.toml`;
  - `rvt-py/Cargo.toml` and its `=0.10.0` pin on `rvt`;
  - `rvt-wasm/Cargo.toml`;
  - the `rvt` pin in `tools/stream_evidence/Cargo.toml`;
  - `viewer/package.json`;
  - `CITATION.cff` (`date-released: 2026-10-27`);
  - `.release-please-manifest.json`;
  - the workspace crates' entries in `Cargo.lock` and `fuzz/Cargo.lock`.
- **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble`
moved the 19 fragments in (Added, Research). Then `[Unreleased]` became
`[0.10.0] — 2026-10-27`, with an introduction, a credit to puzzbobb
(#1065), and "Upgrading from 0.9": no code change, since
`DecodedExportDiagnostics` is `#[non_exhaustive]`. `[Unreleased]` is
left empty.
- **`README.md`**: "Release 0.10.0 and main" says what 0.10.0 adds in
brief, and the support section's link points at it.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes: this PR's CI. There are no code
changes; the version string changes the IFC header.
- [x] Verified end to end on real Revit files: no behaviour changes.
Measure 40489426210 found all 31 models byte-identical between #1065's
head and main.
- [ ] If this touches the IFC exporter: the IFC header carries the
version (#417). Both Core Interior `rvt-rs.json` observations and their
verdicts are refreshed from this PR's CI run (its
`octetproof-core-interior` artifact) in a follow-up commit here,
differing only in `witness_version` and the verdict hashes.
- N/A: performance.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] The changelog section is assembled from the fragments;
`changelog.py check` passes with none left
- N/A: no limitation resolved or added
- [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
- N/A: not a reverse-engineering finding

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None. They would be listed under "Upgrading from 0.9" in `CHANGELOG.md`.
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