Skip to content

docs(cleanroom): revit-ifc is an accepted source for what Revit's export writes - #778

Merged
DrunkOnJava merged 1 commit into
mainfrom
docs/cleanroom-revit-ifc
Oct 18, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
docs/cleanroom-revit-ifc

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

CLEANROOM.md accepts Autodesk's open-source IFC exporter, revit-ifc (LGPL v2 per its README), as a source for what Revit's own IFC export writes, never for the file format. Its code may be read but never copied or translated. The contributor declaration says so.

Motivation

The policy named no rule for revit-ifc, while merged code rests on it: Revit's export computes some type GlobalIds by hashing, and RE-167 / B72 / B73 reproduce how. The maintainer's decision is to accept it for the export's behaviour, with the current uses audited against the new rule (below).

Changes

  • Accepted source 5: revit-ifc, for how the export forms an identifier, which entity or relationship it writes and which value it takes. Findings about a Revit file's bytes still come from sources 1 to 3. Contributors cite the file and class, and write code from a description of the behaviour. Copying or translating code is excluded, since it would bring the LGPL into this Apache-2.0 tree. Constants and short strings the exporter feeds an identifier may be reproduced where the same identifier needs them. Every finding is checked against Revit's own export of a real model.
  • Contributor declaration: adds "I have not copied or translated code from revit-ifc".
  • Why this matters: reading revit-ifc without copying it keeps the no-viral-licence point true.

Audit of the current uses (main at 92a902a)

Every revit-ifc citation on main, against the rule:

Where What is taken from revit-ifc Form in rvt-rs Checked on Revit's export
src/revit_global_ids.rs hashed_global_id GUIDUtil.GenerateIFCGuidFrom: a GlobalId is the MD5 of a key, read as a .NET GUID the md5 crate and rvt-rs's own GUID byte order and compression type GlobalIds, tests/type_global_ids.rs, tests/door_type_global_ids.rs
src/revit_global_ids.rs sub_element_global_id a sub-element's GlobalId is its element's with the index XORed into bytes 10 and 11 (ExporterIFCUtils.CreateSubElementGUID, a Revit API method) three lines of XOR all 164 Core Interior columns that use their own geometry (RE-167)
src/ifc/mod.rs INSTANCE_AS_TYPE the sub-element index 2048 (IFCFamilyInstanceSubElements.InstanceAsType) a constant as above, and Core Interior's 116 room types (tests/space_types.rs)
src/ifc/mod.rs door_type_global_id the hash key <symbol GlobalId>Sub-element:Flipped: True|False, with InAssembly: False from revit-ifc 25.4 a format! of the key all 138 Core Interior doors and windows (Revit 2024), RE1 (exported by Revit 2026)
src/ifc/export_content.rs door_symbol_flipped when the export takes a door's symbol as flipped (DoorWindowInfo.CalculateDoorWindowInformation) rvt-rs's own geometry test (box centre against the host wall's axis) through the door type GlobalIds above
src/ifc/step_writer.rs revit_ifc_type_entity_name how the GUID keys spell a type entity (IFCEntityType) a match table of IFC type names the type GlobalIds of B73
src/partition_schema_mvp.rs, tests/port_nesting.rs, tests/proxy_ports.rs, tests/door_type_global_ids.rs names of what the export does (GetOriginalSymbol, ConnectorExporter, DoorWindowInfo) doc comments n/a

None of them copies or translates revit-ifc code. Each is a constant, a key string, an algorithm stated in one sentence, or a behaviour reimplemented from its description, and each identifier is checked against Revit's own IFC export.

Testing

N/A: policy text only.

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary source, decompiled internals or NDA content

Breaking changes

None.

…ort writes

Autodesk's open-source IFC exporter (LGPL v2) was neither accepted nor
forbidden, while the type GlobalIds of RE-167 rest on how it forms an
identifier. It is now an accepted source for the export's behaviour,
never for the file format, on three conditions: cite the file and
class, write the code from a description of the behaviour rather than
copying or translating it, and check every finding against Revit's own
export of a real model. Constants and short strings the exporter feeds
an identifier may be reproduced where the same identifier needs them.
The contributor declaration names revit-ifc.
@DrunkOnJava DrunkOnJava added the type:docs Documentation or user guidance. label Oct 18, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 18, 2026 11:30
@DrunkOnJava
DrunkOnJava merged commit d18b402 into main Oct 18, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/cleanroom-revit-ifc branch October 18, 2026 11:34
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**.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:docs Documentation or user guidance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant