Skip to content

feat(ifc): the diagnostics, rvt-inspect and the viewer say when a file's release is read experimentally (#871) - #876

Merged
DrunkOnJava merged 3 commits into
mainfrom
fix/871-release-support
Oct 21, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
fix/871-release-support

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Closes #871. Every output now says when a file's Revit release is read experimentally. Before, only the docs and rvt-doc did: a Revit 2021 export and a Revit 2024 export looked alike in the diagnostics, rvt-inspect and the viewer.

Motivation

0.6.0 reads Revit 2015 to 2022 and 2027 element records by default (and 2026 since 0.5.0). Those releases are experimental: they are measured against the same models saved by a neighbouring release, or on one project, not against a same-release Revit export (RE-124, RE-179 to RE-181). The 1.0 criteria (#875, W8) require every approximation to be visible.

Changes

  • capability::release_support(revit_version): the docs/support-matrix.json row that rates a release's element records (release_capability_id), and that row's status, read from the matrix the crate embeds, so the two cannot disagree. 2024 is rated by typed-project-elements (partial), not by element-record-instance-recovery: that row is verified for six categories only.
  • Export diagnostics: input.release_support (schema updated; additive, schema_version stays 1). An experimental release adds a warning.
  • rvt-inspect: file.release_support; the text report prints the status beside the version; a new experimental_release failure mode, after incomplete_model and before partial_decode; a next step.
  • Viewer: the file status shows "Experimental Revit release". The regression test's status-title pattern accepts it.
  • Docs: export-diagnostics.md, inspect.md, diagnostic-semantics.md, supported-profile.md, CHANGELOG.

Testing

  • Contract: tests/support_matrix.rs::every_release_read_has_a_support_matrix_status walks Revit 2000 to 2100. It fails when a release whose element records are read (partition_element_records::supports_revit_version or is_32bit_release) has no matrix row, or names a row the matrix lacks.
  • CLI, real files: tests/rvt_inspect_cli.rs::rvt_inspect_json_reports_how_each_release_is_read runs rvt-inspect --json on every release of the family corpus (2016 to 2026). It checks that the report and the export diagnostics agree, that the status is a rated one, and that the experimental warning appears exactly when the status is experimental.
  • Not run locally: no builds on this machine. CI runs both checks (corpus tier).

Audit-honesty checklist

  • Docs reflect the change
  • No limitation resolved or introduced. This makes an existing one visible.
  • Commit message describes what and why
  • No emojis, private paths or personal addresses
  • Not a reverse-engineering finding

Legal and contribution hygiene

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

…e's release is read experimentally (#871)

Since 0.6.0 rvt-rs reads Revit 2015 to 2022 and 2027 element records by default, and 2026 since 0.5.0, all experimental, but only the docs and rvt-doc said so. The export diagnostics now carry input.release_support: the support-matrix row that rates the release's element records and that row's status, read from the matrix built into the crate (capability::release_support), so it cannot disagree with the matrix. An experimental release adds a warning. rvt-inspect reports file.release_support, prints the status beside the version, and classifies an experimental release's export as experimental_release. The viewer's file status shows Experimental Revit release. A contract check in tests/support_matrix.rs fails when a release's element records are read without a matrix row that rates them, and a CLI check runs rvt-inspect on every release of the family corpus.
@DrunkOnJava DrunkOnJava added area:cli Work in the cli area. area:viewer Work in the viewer area. type:bug Correctness defect or regression. labels Oct 21, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 21, 2026 09:41
@DrunkOnJava
DrunkOnJava merged commit 2dbc8b8 into main Oct 21, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/871-release-support branch October 21, 2026 09:44
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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

area:cli Work in the cli area. area:viewer Work in the viewer area. type:bug Correctness defect or regression.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A file's release is read experimentally, but the diagnostics, rvt-inspect and the viewer do not say so

1 participant