Skip to content

refactor(ifc)!: remove pset_validate and its mapping examples, which IFC4's set table and Measure's check supersede (#831) - #841

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/831-remove-pset-validate
Oct 19, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/831-remove-pset-validate

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

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:

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.

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

Audit-honesty checklist

  • README / docs reflect the current state after this PR: the stale RE-19 claim is gone with the files
  • 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 (see CONTRIBUTING.md)
  • 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).


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).

Reviewed by Cursor Bugbot for commit 38cad89b0ceb7c085b19dfcf5ba089181ecadaf6. Configure here.

…IFC4's set table and Measure's check supersede (#831)
@DrunkOnJava
DrunkOnJava force-pushed the fix/831-remove-pset-validate branch from 38cad89 to aaf68e1 Compare October 19, 2026 18:45
@DrunkOnJava
DrunkOnJava merged commit f233bf1 into main Oct 19, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/831-remove-pset-validate branch October 19, 2026 18:53
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…ow one is checked, tagged and brought back to main (#853)

## Summary

CI runs on pushes to `hotfix/**` branches, and RELEASE.md's hotfix process describes the path 0.6.1 is taking: a branch cut from the release tag, prepared and checked on the branch, tagged there, and brought back to `main` by a pull request.

## Motivation

`main` holds a breaking change since #841, so the 0.6.1 patch (#839's 32-bit fix and README corrections, which crates.io and PyPI keep showing until a new version replaces them) is cut from `v0.6.0` on `hotfix/v0.6.1`. RELEASE.md's hotfix step 4 asked for CI, but `ci.yml` ran only on pushes to `main` and on pull requests into `main`, so nothing tested a hotfix branch: a pull request into `main` tests the merge with `main`, not what the tag would release. It also asked for a "regression test", against the repository's ban on unit tests, said nothing of the witness refresh or Measure, and said every release tag is on `main`.

## Changes

- `.github/workflows/ci.yml`: `push` runs on `[main, "hotfix/**"]`. A branch push runs the full matrix `main` gets (macOS, Windows and MSRV builds, all three wheels); the rust-cache saves stay `main`-only, and the run cannot be cancelled by another (`cancel-in-progress` is for pull requests only).
- `RELEASE.md`'s hotfix process, rewritten as the path 0.6.1 takes:
  - when it applies: a fix `main` cannot ship as a patch, including a published README that claims more than was measured; an embargoed security fix is prepared and reviewed in its advisory's temporary private fork and pushed here only when it is ready to release;
  - a branch from a tag before v0.6.1 commits the `hotfix/**` trigger first, since GitHub runs a push's workflows from the pushed branch;
  - the fix cherry-picked with `-x`, and a real-file, CLI or contract check where none fails without it, instead of a regression test (unit tests are banned);
  - steps 4 to 7 of the release on the branch, then **check it**: CI on the push, the Core Interior witness files from that run's artifact (every difference is `witness_version`, a verdict hash, or one the fix explains and the changelog states) and a second green run, and Measure against the tag it patches;
  - **review it**: a review-only pull request into a branch at that tag, since nothing else reviews the text the registries keep for good; a commit answering the review runs step 4 again on the new head;
  - **tag the reviewed head** by SHA once its code and witness files are the ones CI and Measure passed;
  - **bring `main` up to it** with `main`'s own witness refresh, then delete the branch (the tag keeps its commits).
  "What's in a release" says a hotfix tag is on its branch.
- `.github/workflows/publish.yml`: the header comment names a hotfix branch's tag too. No behaviour change; the `crates-io` and `pypi` environments accept any `v*` tag.

## Testing

The trigger is the one `hotfix/v0.6.1` carries (22f8f48 there). Pushing that branch ran CI [39326770821](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39326770821) on e857af4: 22 jobs, all passed, among them the i686 job and the macOS, Windows and MSRV builds that pull requests skip. A YAML load and `actionlint` pass on both workflows (its only notes are the existing `$/`-prefixed local references, which GitHub runs).

- N/A: not a format, exporter or performance change

## 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
- N/A: not a reverse-engineering finding

## 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`)
- [x] No new test fixtures

## Breaking changes

None.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Changes are limited to CI triggers and release documentation; publish workflow behavior is unchanged.
> 
> **Overview**
> **Enables full CI on `hotfix/**` pushes** so patch releases cut from an old tag get the same test matrix as `main` (not a merge preview against current `main`). `ci.yml` adds `hotfix/**` to the `push` branch list with a short comment on why PRs into `main` are insufficient.
> 
> **Documents an end-to-end hotfix release path in `RELEASE.md`**: when hotfixes apply (including README/registry text stuck until a new version), embargoed security handling, cherry-pick and non–unit-test checks, release prep on the branch, CI + Core Interior witness refresh + `measure.yml`, a review-only PR into a tag snapshot branch, tagging the reviewed SHA, then syncing `main` with its own witness updates. **What's in a release** now allows signed tags on a hotfix branch.
> 
> **`publish.yml`** only updates header comments to note that `v*` tags on hotfix branches publish the same way as on `main` (workflow behavior unchanged).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 8d51d9f. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Oct 20, 2026
… and its README corrections (#855)

## Summary

`main` takes what v0.6.1 shipped, as RELEASE.md's hotfix step 7 says, the way merging `hotfix/v0.6.1` back would: the version (0.6.1 in all nine places), the `[0.6.1]` changelog section, and the README's corrected support table and release section. v0.6.1 is the signed tag on ab8a778, cut from `v0.6.0` because `main` holds a breaking change (#841).

## Changes

- Version files: `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=` pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff`, `.release-please-manifest.json` and both lockfiles' workspace entries, each line as the tag has it.
- `CHANGELOG.md`: the `[0.6.1]` section, identical to the tag's; #839's two entries (the i686 job and the data-object scan) move out of `[Unreleased]` into it; the `[0.6.0]` intro and heading say `IsExternal` is written on every class but curtain mullions and panels, as the tag's do; the descriptions entry (#851) says 0.6.1's registry descriptions are 0.6.0's.
- `README.md`: identical to the tag's README. `main`'s README had not changed since `v0.6.0`, so this is the support-table rows of #842 (2027 and 2015 partial, 2014 and earlier not measured, "no Revit export measured"), the IsExternal and comparator bullets, and the "Release 0.6.1 and main" section.
- Core Interior witness observations and verdicts: from this pull request's own CI run, since `main`'s export differs from the tag's (step 7).

The other latest-release statements (`docs/install.md`, `docs/status.md`, `docs/python.md`, `docs/supported-profile.md`, `ROADMAP.md`) move to 0.6.1 in #842 once each channel is checked.

## Testing

This pull request's CI, and its witness replay after the refresh. The tag's own checks: CI 39326770821 and 39327613157 on the hotfix branch, Measure 39327047171 against `v0.6.0` (1,297 of 1,477 result files identical; the rest are the IFC hashes, which carry the version, export times, `witness_version`, and the run's commit and runner), and Codex's review of the release text in #854 (no findings on ab8a778).

## 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
- N/A: not a reverse-engineering finding

## 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`)
- [x] No new test fixtures

## Breaking changes

None.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> No application logic in the diff—version bumps, changelog/README alignment, and witness JSON updates only.
> 
> **Overview**
> **Aligns `main` with the published v0.6.1 hotfix** (per RELEASE.md): workspace and packaging versions move from **0.6.0 → 0.6.1** (`Cargo.toml`, `rvt-py`/`rvt-wasm` pins, lockfiles, `viewer/package.json`, `CITATION.cff`, release-please manifest).
> 
> **Changelog and README** now match the tag: a new **`[0.6.1]`** section documents the 32-bit overflow hardening (#836), the required **i686 CI** job, and README support-table honesty; **`[Unreleased]`** drops those shipped items. Docs clarify **`IsExternal`** applies to every class **except** curtain mullions/panels, and tighten wording on which Revit years are measured vs merely opening.
> 
> **Research witness artifacts** refresh `witness_version` to **0.6.1** and updated verdict hashes from this branch’s CI replay.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f35ddad. 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.

pset_validate's allow-list predates the IFC4 set table: it calls IFC4's own sets unknown

1 participant