Repository navigation
fix(diagnostics): count the Revit parameter values the export writes in its Pset_ sets (B49, #35) - #638
Merged
Conversation
… values the export writes (B49, #35) tests/parameter_diagnostics.rs (cli) runs the built rvt-ifc with --diagnostics on Core Interior, Einhoven and the four RE1 models, and checks the sidecar against the IFC file of the same run: decoded.parameter_value_count equals the property values of its Pset_ sets, and revit_element_parameters_to_ifc_property_sets is claimed exactly when that is 0. viewer/tests/parameters-row.spec.ts checks that Core Interior's Parameters status row starts with that count. Red on main, draft #637. Corpus tier 2, run 37208793324: test diagnostics_count_the_revit_parameters_the_export_writes ... FAILED 2024_Core_Interior.rvt: parameter_value_count is Some(0), the file's Pset_ sets hold 2111 values 2024_Core_Interior.rvt: revit_element_parameters_to_ifc_property_sets claimed true with 2111 Pset_ values written Revit_IFC5_Einhoven.rvt: parameter_value_count is Some(0), the file's Pset_ sets hold 35 values RE1-Architecture.rvt: parameter_value_count is Some(0), the file's Pset_ sets hold 195 values RE1-Mechanical.rvt: parameter_value_count is Some(0), the file's Pset_ sets hold 249 values RE1-Plumbing.rvt: parameter_value_count is Some(0), the file's Pset_ sets hold 446 values RE1-Electrical.rvt: parameter_value_count is Some(0), the file's Pset_ sets hold 151 values (and the same claim on each) test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 15.44s Viewer, run 37208793339: [chromium] tests/parameters-row.spec.ts:13:1 the Parameters row counts the Revit parameter values Core Interior exports Error: expect(locator).toHaveText(expected) failed Expected pattern: /^[1-9][\d,]* / Received string: "Revit's parameter table is not read yet · each element lists the properties rvt-rs decodes" 1 failed, 19 passed (2.8m)
…in its Pset_ sets (B49, #35) decoded.parameter_value_count was the number of walker AProperty instances, 0 on every measured model, so the viewer's Parameters row and rvt-inspect said no parameter was read while Core Interior's export wrote 2,111 Pset_ values. It now counts the property values write_step puts in Pset_ sets: each building element's own and further sets, and the storey and building sets, which move into PropertySet::storey_sets and PropertySet::building_set so the writer and the count share them. revit_element_parameters_to_ifc_property_sets looked only at each element's own set, where the Pset_ sets never are. It is now claimed when no Pset_ value is written, and partial_revit_element_parameters when some are, since the rest of an element's parameters are not read. An element panel no longer lists Revit parameters as missing when its further sets carry them.
…ement_parameters (B49, #35) With the maintainer's approval (2026-10-04). Both Core Interior count fixtures keep property_sets as a known_gap, now of partial_revit_element_parameters: the export writes 2111 Pset_ values from the parameters rvt-rs reads, so the claim that no Revit parameter reaches a property set no longer holds. The notes' stale 'no set carries a Revit element parameter yet' is put in the past and the change is recorded.
…n the runners (B49, #35) With the maintainer's approval (2026-10-04). From CI run 37209439743 (octetproof-core-interior artifact): rvt-rs's observations claim partial_revit_element_parameters in place of revit_element_parameters_to_ifc_property_sets, and the verdicts' IFCPROPERTYSET known gap names it. The verdicts also carry the current witness version and replay block; status PASS, every witness's replay a match.
DrunkOnJava
enabled auto-merge (squash)
October 4, 2026 14:46
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
… on the duct's shape, new B68 (#35, #421) (#643) Session 3 progress: B48 (#642), B51 and B67 (#639) done with their evidence; B49 (#638) red and green recorded; B59 blocked on the duct's shape and B68 (#640) added to unblock it; B61 (#641) found to be a scorer issue (the RE1 exports are IFC2X3); the CI rerun policy recorded. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog and session notes; no runtime or CI workflow changes in this diff. > > **Overview** > Updates **`BACKLOG.md`** for maintainer session 3: session settings now note mid-session items **B67** and **B68**, and record a **no CI reruns** rule (pr-queue `/queue reruns off`, manual branch updates while on 0.1.2). > > The session 3 ranked table and progress log are refreshed with current **status**, **PR links**, and **evidence**—e.g. **B48** / **B51** / **B67** done, **B49** in progress with red/green runs and approved fixture changes, **B59** blocked on duct shape until **B68**/**B43**, **B61** in progress as an IFC2X3 vs IFC4 **scorer** fix (#641), plus ops notes on cache cleanup and pr-queue behavior. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 1e445cd. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…ocked on B38, new B69 (#652) Second session 3 progress update. B49, B50, B57, B61, B63 and B52 done; B44 (#651), B47, B53 and B66 in progress with their evidence runs; B62 blocked on B38; new B69: rvt-write exits 0 on a patch whose re-encoded stream spans a checksummed page, found by B53's real-file test. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only update to BACKLOG.md; no runtime, test, or exporter behavior changes in this diff. > > **Overview** > This is a **session 3 backlog refresh** in `BACKLOG.md`: ranked-item statuses and the progress log are brought in line with work landed or re-scoped since the last update. > > **Completed** items are marked **done** with PR links where applicable: **B49** (export diagnostics / `Pset_` parameter counting, #638), **B61** (IFC2X3 vs IFC4 type-entity scorer, #641), **B63** (`IfcSpace` containment, #645), **B50** (dead code, #647), **B52** (local branch cleanup), and **B57** (launch docs drift, #646). > > **Regressions / blockers** are recorded: **B62** moves from committed to **blocked on B38** (extra plumbing connection to tank 442378 Revit does not export); **B47**, **B44**, **B53**, and **B66** shift to **in progress** with Measure/RE evidence; **B53** notes discovery of **B69**. > > **B69** is added: `rvt-write` could exit 0 on patches whose re-encoded stream spans a checksummed page, producing streams readers cannot decode; fix direction is `Error::WriteRefused` in `src/writer.rs`, blocking B53’s real-file CLI E2E. > > The progress log adds red/green runs, witness/fixture notes, pr-queue/rerun policy, and a **rule slip** (forbidden `git checkout <ref> -- <file>` during scratch-branch file copies). > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 3699bab. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
B49. The export diagnostics said no Revit parameter reaches IFC while Core Interior's export wrote 2,111 Pset_ values:
decoded.parameter_value_countcounted walker AProperty instances (0 on every model), andrevit_element_parameters_to_ifc_property_setslooked only at each element's own set. The viewer's Parameters row andrvt-inspectrepeated it.parameter_value_countnow counts the property valueswrite_stepputs in Pset_ sets; the storey and building sets move intoPropertySet::storey_sets/building_setso the writer and the count share them.revit_element_parameters_to_ifc_property_setsis claimed only when no Pset_ value is written;partial_revit_element_parameterswhen some are.Red (draft #637):
tests/parameter_diagnostics.rs(cli), every model counted 0 against 35 to 2,111 values in its file;viewer/tests/parameters-row.spec.ts, the row read "Revit's parameter table is not read yet". Output in the test commit's message.Waiting on the maintainer: the Core Interior count fixtures pin
property_setsas aknown_gapofrevit_element_parameters_to_ifc_property_sets, soproject_count_fixturesfails until that existing row changes (its own commit, after approval), and the witness observations need regenerating.Note
Low Risk
Diagnostics and messaging only; counting logic is aligned with existing STEP emission and covered by new integration tests.
Overview
Fixes B49 / #35 export diagnostics that falsely reported no Revit parameters in IFC while exports (e.g. Core Interior) already wrote thousands of
Pset_*values.decoded.parameter_value_countnow matches the IFC file: it counts property values emitted in common property sets (Pset_*) on building elements (includingElementPropertySet), plus storey and building sets, via sharedpset_property_value_countused at diagnostics build time. Storey/buildingPset_*definitions move toPropertySet::storey_sets/building_setso the STEP writer and the counter stay aligned.unsupported_featuresgains parameter coverage codes:revit_element_parameters_to_ifc_property_setsonly when zeroPset_*values are written;partial_revit_element_parameterswhen some are. Element UI missing-field logic treats further property groups as satisfying “has parameters.”rvt-inspect, the viewer Parameters row, anddocs/export-diagnostics.mddescribePset_*counts instead of pending AProperty joins. Newparameter_diagnosticsCLI test (corpus IFC vs sidecar) and a Playwright spec for the viewer row; CI adds the cli target.Reviewed by Cursor Bugbot for commit a193d72. Configure here.