Skip to content

ci: Measure reports each export's standard property sets against IFC4's definitions (#822) - #826

Merged
DrunkOnJava merged 4 commits into
mainfrom
ci/822-pset-conformance
Oct 19, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
ci/822-pset-conformance

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Part 4 of #822, report-only. Measure now checks every export's standard property sets against IFC4's definitions, so a set or property IFC4 does not have, or a set on an entity IFC4 does not apply it to, shows in each export's schema.txt and in the base/head comparison.

Motivation

#820 and #822 found, one at a time, sets and properties rvt-rs writes in its IFC4 output that are IFC2X3's, taken from Revit's IFC2X3 exports of the RE1 models. IFC reserves the Pset_ prefix for the sets it defines, and buildingSMART's validation service checks property sets against its own list of IFC4's definitions (rule PSE001). Checking every export against that list finds the whole class at once, and keeps it from coming back.

Changes

  • tools/ci/ifc4_property_sets.py: for every Pset_ set an IFC file relates to an object (IfcRelDefinesByProperties) or gives a type object (HasPropertySets), counts sets IFC4 does not define, properties their IFC4 set does not have, sets on entities IFC4 does not apply them to (with supertypes; a set scoped to a predefined type, such as IfcCovering/CEILING, applies to an object with that predefined type, its own or, where it gives none, its type's, or a user-defined one of that name; on an entity with no PredefinedType, such as IfcAnnotation, the scope is its ObjectType), properties of another kind than declared, single, list and bounded values of another type, and enumeration values the enumeration does not have. An IfcPropertySetDefinitionSet is checked set by set. The definitions are features/resources/IFC4/pset_definitions.csv of buildingSMART/ifc-gherkin-rules, read through gen_standard_property_sets.py's pinned commit and sha256 (List every IFC4 property set of the entities rvt-rs writes, so a parameter named for any of them is written #817). Quantity sets are not checked.
  • tools/ci/measure-reference-models.sh: schema() appends the report to every model's and sample's schema.txt, fetching the definitions once per run.
  • CHANGELOG.

Testing

Measure on main's code before #825 (19f26b9) with this tool, run 39245178917: reference models, BIM4LCA office, Autodesk's samples and the R2025 models, 89 exports, every one with a report. #825 has since landed and removed the first four rows.

Finding Exports Count Fixed by
not an IFC4 set: Pset_QuantityTakeOff 88 123,206 #825
not an IFC4 set: Pset_DistributionFlowElementCommon 48 36,597 #825
not an IFC4 set: Pset_ProductRequirements 87 3,385 #825
Pset_AirSideSystemInformation on IfcBuildingStorey 87 447 #825
not an IFC4 set: Pset_FlowSegmentPipeSegment, Pset_FlowSegmentDuctSegment 4 2,421 each part 2 of #822
not a property of its IFC4 set: Pset_DuctSegmentTypeCommon.Length 3 1,441 part 2 of #822
not a property of its IFC4 set: Pset_PipeFittingTypeCommon.NominalDiameter 11 5,469 to follow (#822)
not a property of its IFC4 set: Pset_PrecastConcreteElementGeneral.SerialNumber 1 19 part 2 of #822

No export has a value of another type than IFC4 declares, or an enumeration value IFC4 does not list.

On main with #825 and #830 (this PR's Measure run 39255349556, the six reference models), Core Interior, Einhoven and RE1 Architecture have no finding; RE1 Mechanical and Plumbing keep the flow-segment sets (94 each), Pset_DuctSegmentTypeCommon.Length (25) and the fittings' NominalDiameter (49), and RE1 Electrical the precast SerialNumber (19). On tests/fixtures/synthetic-project.ifc the tool also reports 7 properties from_decoded's builders put in Pset_WallCommon and Pset_WindowCommon, a path no production export takes (none of the 89 has them).

The check reports and does not fail. It can gate CI's production exports once the list is empty.

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

Based on buildingSMART's IFC4 property set definitions (CLEANROOM.md source 4, MIT).

Breaking changes

None.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 19cfc79314

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/ci/ifc4_property_sets.py Resolved
Comment thread tools/ci/ifc4_property_sets.py Resolved
Comment thread tools/ci/ifc4_property_sets.py Resolved
Comment thread tools/ci/ifc4_property_sets.py Resolved

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2065e0dcc6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/ci/ifc4_property_sets.py Resolved
…'s definitions (#822)

tools/ci/ifc4_property_sets.py counts, for every Pset_ set an IFC4 file relates to an object or a type, what buildingSMART's IFC4 definitions (the list PSE001 is checked against, pinned by #817's generator) do not allow: sets IFC4 does not define, properties a set does not have, sets on entities IFC4 does not apply them to, and values of another kind or type. Measure's schema step appends it to every export's schema.txt.
…uped definitions and list and bounded values (#822)

An occurrence that leaves its PredefinedType to its type is checked with the type's; an entity with no PredefinedType (IfcAnnotation) is scoped by its ObjectType; an IfcPropertySetDefinitionSet's sets are each checked instead of aborting the report; and list and bounded values' types are checked against the declared type, as single values' are.
@DrunkOnJava
DrunkOnJava force-pushed the ci/822-pset-conformance branch from 2065e0d to 45860e4 Compare October 19, 2026 12:51

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45860e42de

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/ci/ifc4_property_sets.py Resolved
…n set shared by several objects counts once (#822)

Measure's pull_request paths watch tools/ci/ifc4_property_sets.py and the gen_standard_property_sets.py it imports, as they watch the script that runs it. A set IFC4 does not define is counted once however many objects it is related to, as the header and the property checks count sets; its misapplications stay counted per object.
@DrunkOnJava
DrunkOnJava merged commit cdac7e6 into main Oct 19, 2026
30 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/822-pset-conformance branch October 19, 2026 13:22
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…rt in Pset_PipeSegmentOccurrence, not IFC2X3's flow-segment sets (#822) (#829)

## Summary

Part 2 of #822. A pipe's or duct's length is now written in IFC4's base
quantities (`Qto_PipeSegmentBaseQuantities`,
`Qto_DuctSegmentBaseQuantities`, an `IfcElementQuantity`) and a pipe's
invert in `Pset_PipeSegmentOccurrence`, instead of IFC2X3's flow-segment
sets, on an element written as a pipe or duct segment. A proxy's Serial
Number is no longer also written in
`Pset_PrecastConcreteElementGeneral`.

## Motivation

RE-131, RE-134 and RE-157 followed Revit's exports of the RE1 models,
which are IFC2X3. IFC4 has no `Pset_FlowSegmentPipeSegment` or
`Pset_FlowSegmentDuctSegment`, its `Pset_DuctSegmentTypeCommon` has no
`Length`, and its `Pset_PrecastConcreteElementGeneral` no `SerialNumber`
(buildingSMART's IFC2X3 and IFC4 definitions). Revit's IFC4 export of
the BIM4LCA office writes a pipe's length in
`Qto_PipeSegmentBaseQuantities` and its invert in
`Pset_PipeSegmentOccurrence`. Measure's IFC4 property set check (#826)
finds these four on main: 2,421 values in each flow-segment set and
1,441 duct type-set lengths on 4 exports, and 19 precast serial numbers
on RE1 Electrical.

## Changes

- `src/ifc/step_writer.rs`, `entities.rs`: a `PropertySet` named `Qto_`
is written as an `IfcElementQuantity` whose values are IFC4 simple
quantities (`PropertyValue::quantity`: `IfcQuantityLength` in metres,
and areas, volumes, counts, weights and times likewise); a quantity set
with no quantity is not written.
- `src/ifc/export_content.rs`: a pipe gets
`Qto_PipeSegmentBaseQuantities.Length` and
`Pset_PipeSegmentOccurrence.InvertElevation`, a duct
`Qto_DuctSegmentBaseQuantities.Length`, and its
`Pset_DuctSegmentTypeCommon` keeps `Shape`. They are chosen by the
entity the element is written as, after its Export to IFC As, so a pipe
or duct written as another entity gets none.
`pipe_inverts_above_storeys` takes the storey's elevation off only the
inverts rvt-rs works out in model height
(`TypedProductionAppend::computed_inverts`), so a pipe's parameter named
`Pset_PipeSegmentOccurrence.InvertElevation` (RE-194) is written as it
is. A Serial Number is in `Pset_ManufacturerOccurrence` only.
- Tests (`tests/segment_length.rs`, `invert_elevation.rs`,
`duct_fields.rs`, `duct_segment_type_common.rs`, `serial_number.rs`)
read RE1's values from Revit's IFC2X3 sets only and rvt-rs's from the
IFC4 quantities and sets only, and check that rvt-rs writes none in the
IFC2X3 sets. `tools/re/psets_vs_ifc.py` compares an IFC2X3 reference's
invert with `Pset_PipeSegmentOccurrence` and counts two kinds of value
apart: its lengths, which IFC4 holds in quantities the scorer does not
read, and its precast Serial Numbers, which IFC4 keeps in
`Pset_ManufacturerOccurrence`, where they are scored.
- RE-157 records the RE1 exports' schema. CHANGELOG.

## Testing

Measure A/B against `main` (cdac7e6), run
[39259646397](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39259646397),
at c220943, both sides scored with this PR's `psets_vs_ifc` before
e88b9c7 (which changes scoring only):

| | values equal to Revit's | values Revit does not write |
|---|---:|---:|
| RE1 Mechanical | 177 → 183 | 97 → 4 |
| RE1 Plumbing | 293 → 356 | 195 → 6 |

- Each pipe's `InvertElevation` is Revit's in
`Pset_PipeSegmentOccurrence`: 6 of 6 on Mechanical, 63 of 63 on
Plumbing. Their 93 and 126 IFC2X3 lengths are counted apart;
`tests/segment_length.rs`, `duct_fields.rs` and
`duct_segment_type_common.rs` check them in the quantity sets against
Revit's within 0.1 mm, and pass on corpus tier 2.
- RE1 Electrical's equal values fall from 147 to 128 in that run: its 19
precast Serial Numbers, which Revit's IFC2X3 export also writes in
`Pset_ManufacturerOccurrence`, equal on both sides (31 of 31). e88b9c7
counts them apart; a smoke run of the scorer on Revit's own file sets
those 19 aside and scores the 31.
- 5 of the 89 exports change: RE1 Mechanical, Plumbing and Electrical
and Autodesk's 2025 MEP samples (advanced and basic). The other 84 are
byte-identical, the BIM4LCA office among them: rvt-rs reads no length or
invert for its 12 pipes.
- The review fixes (segment sets by the entity written, the storey taken
off computed inverts only) change no export: against this PR's earlier
head 8351f24 (run
[39254274438](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39254274438))
only the nine exports #830 changes differ, so no measured pipe or duct
is written as another entity and none has an invert parameter.
- IFC4 property set check (#826): 78 of the 89 exports have no finding
(77 on main). The flow-segment sets (2,421 values each),
`Pset_DuctSegmentTypeCommon.Length` (1,441) and the precast
`SerialNumber` (19) are gone. What is left is the fittings'
`Pset_PipeFittingTypeCommon.NominalDiameter` on 11 exports (5,469
values), which a follow-up takes out.
- IfcOpenShell validates all 89 head exports with no finding, the
`IfcElementQuantity` sets included.

`cargo fmt` is clean. No unit tests, by the repository's rule.

## 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

Based on buildingSMART's IFC2X3 and IFC4 property set definitions
(CLEANROOM.md source 4) and Revit's own IFC exports of the RE1 models
and the BIM4LCA office.

## Breaking changes

A consumer reading a pipe's or duct's `Length` or a pipe's
`InvertElevation` from the flow-segment sets finds them in the base
quantities and `Pset_PipeSegmentOccurrence`; a proxy's Serial Number is
in `Pset_ManufacturerOccurrence` only. `pipe_inverts_above_storeys` is
crate-internal; `TypedProductionAppend` gains the public field
`computed_inverts`.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Changes where MEP length, invert, and serial data appear in exported
IFC4 (breaking for consumers of the old property sets), though behavior
is covered by corpus tests and explicit IFC4 alignment.
> 
> **Overview**
> Aligns IFC4 export with buildingSMART and Revit IFC4: **pipe and duct
segment lengths** move out of IFC2X3-only flow-segment and duct type
`Length` properties into **`Qto_PipeSegmentBaseQuantities` /
`Qto_DuctSegmentBaseQuantities`** as **`IfcElementQuantity`** entries.
**Pipe invert** moves from `Pset_FlowSegmentPipeSegment` to
**`Pset_PipeSegmentOccurrence`**, with storey-relative adjustment
updated to follow that set.
> 
> The STEP writer now treats any `PropertySet` whose name starts with
`Qto_` as an element quantity, mapping supported `PropertyValue` types
via new **`PropertyValue::quantity()`** to IFC4 simple quantities (SI
units in STEP). Empty quantity sets are skipped.
> 
> **Serial numbers** are emitted only in
**`Pset_ManufacturerOccurrence`**; the duplicate
**`Pset_PrecastConcreteElementGeneral.SerialNumber`** on proxies is
dropped for IFC4. Duct **`Pset_DuctSegmentTypeCommon`** keeps
**`Shape`** only (no length there).
> 
> Corpus tests and **`tools/re/psets_vs_ifc.py`** were updated to
compare Revit IFC2X3 reference values against these IFC4 locations
(including parsing `IfcElementQuantity`). CHANGELOG and RE-157 notes
document the schema split.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
f09359cdc6b13526b45f8cec874af0ee6f8eb2a6. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…ot in Pset_PipeFittingTypeCommon, which IFC4 gives none (#822) (#833)

## Summary

Part 5 of #822, its last IFC2X3 property. RE-165's pipe fitting
`NominalDiameter` moves from `Pset_PipeFittingTypeCommon`, where IFC2X3
has it and IFC4 does not, to rvt-rs's own `RvtElementRecordGeometry`
set. With it, Measure's IFC4 property set check (#826) finds nothing on
any of the 89 exports.

## Motivation

IFC4's `Pset_PipeFittingTypeCommon` has no `NominalDiameter`
(buildingSMART's IFC4 definitions); after #829 the check found 5,469
such values on 11 exports. IFC4 keeps a pipe connection's nominal
diameter on its port (`Pset_DistributionPortTypePipe`), but Revit's IFC4
export writes no such set: revit-ifc certifies
`Pset_DistributionPortCommon` and none of the typed port sets for the
IFC4 Reference View or Design Transfer View
(`IFCCertifiedEntitiesAndPSets.json`), and its Reference View export of
the BIM4LCA office writes no property set on any of its 67 ports. With
no IFC4 placement that Revit's export uses, the measured value goes to
rvt-rs's own set, as RE-187's door type sizes do.

## Changes

- `src/ifc/export_content.rs`: a fitting's nominal diameter is one
length, `NominalDiameter`, in its `RvtElementRecordGeometry` set;
`Pset_PipeFittingTypeCommon.NominalDiameter` is no longer written.
- `tests/fitting_nominal_diameter.rs`: reads Revit's file from
`Pset_PipeFittingTypeCommon` only and rvt-rs's from its own set only,
and checks that rvt-rs writes none in `Pset_PipeFittingTypeCommon`.
- `tools/re/psets_vs_ifc.py`: counts an IFC2X3 reference's fitting
`NominalDiameter` apart, as rvt-rs's own set is not scored.
- `partition_fitting_sizes` module documentation, `PropertyValue::List`
documentation, CHANGELOG.

## Testing

Measure A/B against #829's head (c220943), run
[39263341670](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39263341670),
at 16ec4e9, whose `src` and `tests` are this branch's (it was rebased
onto `main` once #829 landed), both sides scored with this PR's
`psets_vs_ifc`:

- IFC4 property set check: all 89 exports have no finding (78 before;
the other 11 had 5,469 `NominalDiameter` values). IfcOpenShell validates
all 89 with no finding.
- 11 exports change, the ones with fittings: RE1 Mechanical and
Plumbing, Autodesk's 2024 to 2027 MEP samples (advanced and basic) and
Snowdon Towers' plumbing model.
- RE1 Plumbing: the 46 values rvt-rs wrote in
`Pset_PipeFittingTypeCommon` (on Revit's 42 fittings and 4 more) leave
the values Revit's export does not hold, 48 → 2; Revit's 42 IFC2X3
diameters are counted apart on both sides, so equal values read 314 here
where #829's scorer, which compared them, read 356. RE1 Mechanical:
rvt-rs's 3, which Revit's export does not write, likewise (4 → 1).
- `tests/fitting_nominal_diameter.rs` compares Revit's 42 diameters with
rvt-rs's own set within a relative 1e-5 on corpus tier 2.

`cargo fmt` is clean. No unit tests, by the repository's rule.

## 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

Based on buildingSMART's IFC2X3 and IFC4 property set definitions
(CLEANROOM.md source 4), Revit's own IFC exports of the RE1 models and
the BIM4LCA office, and revit-ifc's `IFCCertifiedEntitiesAndPSets.json`
(CLEANROOM.md source 5, read and cited).

## Breaking changes

`Pset_PipeFittingTypeCommon.NominalDiameter` is no longer written; a
fitting's nominal diameter is
`RvtElementRecordGeometry.NominalDiameter`, one length rather than a
list of one.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Breaking IFC export contract for consumers that read
`Pset_PipeFittingTypeCommon.NominalDiameter`; behavior is localized to
pipe fitting property emission and validation tooling.
> 
> **Overview**
> **Pipe fitting nominal diameter** no longer lands in
`Pset_PipeFittingTypeCommon` (IFC4 has no `NominalDiameter` there).
Export now writes the same measured value as a **single length**
`NominalDiameter` on rvt-rs’s `RvtElementRecordGeometry` set, alongside
other record geometry properties.
> 
> Corpus and tooling follow that split:
`tests/fitting_nominal_diameter.rs` compares Revit’s IFC2X3 reference
from the old set, asserts rvt-rs does not emit the legacy property, and
checks values in the own set; `tools/re/psets_vs_ifc.py` excludes this
IFC2X3-only property from the IFC4 property-set score. Docs and
CHANGELOG note the breaking export shape (list of one → one length, new
location).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1080604. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
6 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…definitions by rvt-rs's own check

The CHANGELOG introduction and the README's release summary said the exports pass buildingSMART's IFC4 definitions, which reads as buildingSMART's Validation Service. They pass rvt-rs's check (#826) against buildingSMART's published IFC4 property set definitions, which leaves quantity sets out; the service has not been run on them.
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 -->
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…IFC4's set table and Measure's check supersede (#831) (#841)

## Summary

Removes `rvt::ifc::pset_validate` and `docs/ifc/pset-mapping-examples.yaml`. Both were a stub from before IFC4's property set table, both gave wrong answers, and nothing called the module. Closes #831.

## Motivation

`classify_pset_name` and `is_unknown_reserved_pset` checked names against a hand-written list of seven sets (`KNOWN_PSET_COMMON`), so every other IFC4 set the exporter writes, `Pset_SpaceCommon`, `Pset_EnvironmentalImpactIndicators`, `Pset_SpaceCoveringRequirements` and the rest, came out reserved and unknown. `mapping_examples` and the YAML said typed doors and windows were unsupported (RE-19). RE-19 closed one route, the opening-index rows; doors are typed from their element records' `BuiltInCategory` and exported as `IfcDoor` with `Pset_DoorCommon`.

What does the module's job now:
- **Writing:** the exporter takes the IFC4 sets that apply to an element from `ifc::standard_property_sets` (#821), generated from buildingSMART's definitions.
- **Checking:** Measure checks every export's standard sets against buildingSMART's published IFC4 definitions (#826).

The issue offered two closures. Routing the classifier through `standard_property_sets` would not be right either: that table holds only the 278 sets with a property of the kinds a parameter is read as, not all of IFC4's sets, so it would still call real IFC4 sets unknown.

## Changes

- `src/ifc/pset_validate.rs`: removed, with its `pub mod` line in `src/ifc/mod.rs`.
- `docs/ifc/pset-mapping-examples.yaml`: removed, so `docs/ifc/` is gone.
- `CHANGELOG.md`: a `### Removed` entry under `[Unreleased]`. The module was public, so the next release is a minor one.

Nothing else referred to either: no binary, test, Python binding, viewer code, JSON schema or doc names the module, its types or its serialised kinds (`buildingsmart_common`, `reserved_unknown`, ...). Only the CHANGELOG entry that added it does, and history stays.

## Testing

CI builds and checks every target: fmt, clippy, rustdoc and the real-file, CLI and contract checks. The module had no caller, so no output changes.

- [x] `tools/check-local.sh`'s gates run in CI on this pull request
- N/A: no IFC output or format change

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the stale RE-19 claim is gone with the files
- [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 (see `CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`)

## Breaking changes

`rvt::ifc::pset_validate` (`PsetNameKind`, `KNOWN_PSET_COMMON`, `classify_pset_name`, `is_unknown_reserved_pset`, `PsetMappingExample`, `mapping_examples`) is removed. Use `rvt::ifc::standard_property_sets` for the IFC4 sets a parameter can be written in (`applies_to`, `property_kind`).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Dead-code removal with no in-repo callers; risk is limited to downstream crates that imported the public `pset_validate` API.
> 
> **Overview**
> **Removes** the public `ifc::pset_validate` module and `docs/ifc/pset-mapping-examples.yaml`, which classified `Pset_` names against a seven-set allow-list and carried stale RE-19 notes about typed doors/windows.
> 
> Exporter property sets are already driven by `ifc::standard_property_sets`, and Measure validates exports against buildingSMART IFC4 definitions—so the stub was unused internally and mislabeled many real IFC4 sets as unknown. **`CHANGELOG.md`** records the removal under `[Unreleased]` as a **breaking** API change (next release is minor).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 38cad89b0ceb7c085b19dfcf5ba089181ecadaf6. 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