Repository navigation
feat(ifc): a pipe fitting's NominalDiameter, from its connectors or its nominal parameters (B44, #35) - #651
Merged
Merged
Conversation
tests/fitting_nominal_diameter.rs (real) exports RE1 Plumbing and Mechanical and checks that every element Revit's export gives a Pset_PipeFittingTypeCommon.NominalDiameter list carries the same list in rvt-rs's, each length within a relative 1e-5. Red on main, draft #649, corpus run 37212982834: test re1_fitting_nominal_diameters_are_revits ... FAILED RE1 Plumbing: 42 fittings with a NominalDiameter in Revit's export, 42 not Revit's in rvt-rs's RE1 Mechanical: 0 fittings with a NominalDiameter in Revit's export, 0 not Revit's in rvt-rs's RE1 Plumbing: 42 NominalDiameter lists are not Revit's; first: ["443813: Revit [0.015], rvt-rs None", "443897: Revit [0.015], rvt-rs None", ...] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.93s
…nectors give (B44, #35) RE-165: a fitting's own data object holds a record per connector: a unit direction, an origin, the radius, a further length and the diameter, twice the radius. On RE1 Plumbing those diameters are the NominalDiameter Revit's export writes for all 42 fittings (elbows, tees, a cap, a vent tee; 10 to 50 mm), Measure runs 37211684944 and 37212205913. partition_fitting_connectors reads them by that shape; a fitting whose connectors disagree (a reducer) gets none. The exporter writes Pset_PipeFittingTypeCommon.NominalDiameter as an IfcPropertyListValue of one length, the type IFC4 declares, through a new PropertyValue::List.
DrunkOnJava
enabled auto-merge (squash)
October 4, 2026 15:34
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 -->
DrunkOnJava
disabled auto-merge
October 4, 2026 15:55
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…lth; neither is green (#654) Corrects #652, which recorded B63 as done from the required checks alone. Corpus health, the only job with the project corpus and not a required check, fails space_containment on main since #645 (1 of 60: element 375441 is in Revit's space RE-6 and rvt-rs's storey), and fails #651's own test 42 of 42. Both are being fixed. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog corrections; no code, tests, or CI configuration changes. > > **Overview** > Updates **BACKLOG.md** so maintainer status matches **Corpus health**, not only required CI—fixing a drift introduced when #652 treated B63 as done after #645 auto-merged on required checks alone. > > **B63** moves from **done** to **in progress**: #645 fixed 38 of 39 space-containment cases, but element **375441** still sits in Revit's `IfcSpace` `RE-6` while rvt-rs keeps it on the storey; `space_containment` fails **1 of 60** on `main` since `24ba0d5` (runs **37212742187** on the PR, same on main). > > **B44** (#651) stays in progress but is marked **disarmed**: Corpus health fails its NominalDiameter test **42 of 42** (run **37214338189**); RE-165 shows connector data is correct, so the gap is between scan and IFC write. The ranked table and progress log both record these red Corpus runs and the auto-merge / not-required-check context. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 4d3cff3. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
…r parameter pair (B44, #35) Corpus health on #651 (run 37214338189) failed the B44 test 42 of 42: "443813: Revit [0.015], rvt-rs None". The stage probe (Measure run 37215079929) showed the connector scan found 1 of 43 fittings, and that one a denormal: a run of small integers read as a unit direction, an origin and a radius of 1.2e-323, whose false record disagreed with the real ones, so the one-size rule dropped the fitting. The cap holds no connector record at all. RE-165's dumps show every fitting's own data object holds its family's parameter values, each after an ff x 8 separator, a u32 key and 18 zero bytes, and the nominal diameter is the entry whose value is twice the value 38 bytes before it: at +654 on 40 fittings, +610 on the cap, +838 on the vent tee. partition_fitting_sizes (renamed from partition_fitting_connectors) reads that pair; a fitting whose pairs disagree gets none.
…r, or its smallest parameter pair's (B44, #35) The parameter-pair rule still failed 42 of 42 (Corpus health on #651, run 37215748458). The stage probe (Measure run 37216600762) printed each fitting's pairs: elbow 443813 [0.0492, 0.0834], the cap 443957 [0.0492, 0.0596], vent tee 447853 [0.1233, 0.0656, 0.0982], each with the nominal size Revit exports (15, 15 and 20 mm) and larger outside sizes of the body, so "every pair agrees" never held. The connector records do give the nominal size on every fitting that holds them; the first scan lost them to false records with a denormal radius (1.2e-323), now refused by requiring a normal diameter of at least 0.001 ft. A fitting's nominal diameter is now its connectors' one diameter, or, on a fitting with no connector record (the cap), its smallest pair's. A fitting whose connectors disagree gets none.
DrunkOnJava
enabled auto-merge (squash)
October 4, 2026 16:38
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…64 and B70 in progress, B60 found (#660) Third session 3 progress update: five items landed, B64 (#659) and B70 in progress, new B70 and B71 rows (MEP sample performance), B68 blocked on B70, and RE-167's finding for B60. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog and session notes; no runtime, CI config, or exporter behavior changes in this diff. > > **Overview** > Updates **BACKLOG.md** for maintainer session 3: the ranked table and progress log reflect landed work and new perf backlog, without any code changes. > > **Status moves in the ranked table:** **B44**, **B63**, **B66**, **B53**, and **B69** are marked **done** (with PR refs #651, #645/#656, #657, #653). **B60** and **B64** move from **committed** to **in progress** (RE-167 type GlobalId rule; #659 curtain-wall door aggregation). **B68** is **blocked** on **B70** (MEP sample export timeout). Two new rows: **B70** (`rvt-ifc` ~33.5 min on MEP samples; `attach_mep_systems` / `attach_pipe_type_names` scans) and **B71** (double file walk for export vs diagnostics). > > **Progress log additions** document how each item closed or advanced: B63’s plan-box overlap rule for medicine cabinet 375441; B53/B69 writer fixes (refuse checksummed pages, full gzip members); B44’s three-reader NominalDiameter path; B66 curtain material offsets; B64 curtain-grid door parts; B70’s one-pass-per-stream improvement (30 s walk, byte-identical RE1 MEP IFC); B60’s original-symbol GlobalId finding; and a note that unresolved Bugbot threads block merges until resolved. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a2c5a15. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 23, 2026
…om their pull requests' measurements (#895) ## Summary Four findings shipped and are cited in the code (RE-149 in `partition_type_materials`, RE-165 in `partition_fitting_sizes`, RE-166 in `partition_curtain_materials`, RE-167 in `partition_schema_mvp`) but never got their report under `reports/element-framing/`, so a reader following a citation found nothing. This adds the four reports, written from the pull requests that shipped each finding. ## Motivation The 2026-10-23 style audit found these four as the only RE ids cited in rustdoc with no report (145 of 149 resolve). The docs pass that follows adds a CI check that every cited RE id has a report; this lets it pass without exemptions. ## Changes - `RE-149-unset-material-maps.md` (from #580), `RE-165-fitting-nominal-diameter.md` (#651), `RE-166-curtain-type-materials.md` (#657), `RE-167-type-global-ids.md` (#663, #666). Each says it was written after the fact, cites the Measure, red and green runs and the real-file targets those PRs recorded, and gives the files by their `research/witness-registry.json` ids and hashes. ## Testing Docs only. Every number in the reports is copied from the PR it cites; nothing was re-measured, and each report says so. ## Audit-honesty checklist - [x] No new claim: each report restates its PR's recorded evidence - [x] No emojis, private paths or internal jargon beyond the backlog ids the PRs used ## Legal and contribution hygiene - [x] Apache-2.0; clean-room sources only (byte observations, `RevitAPI.dll` names, revit-ifc as CLEANROOM.md allows) ## Breaking changes None. ## Screenshots or output samples N/A.
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.
B44. RE-165 (Measure runs 37211684944, 37212205913): a pipe fitting's own data object holds a record per connector, a unit direction, an origin, the radius, a further length and the diameter, twice the radius. Those diameters are the NominalDiameter Revit's export writes on all 42 RE1 Plumbing fittings (elbows, tees, a cap, a vent tee; 10 to 50 mm).
partition_fitting_connectorsreads the records by that shape; a fitting whose connectors disagree (a reducer) gets none rather than a guess.Pset_PipeFittingTypeCommon.NominalDiameteras anIfcPropertyListValueof one length, the type IFC4 declares, through a newPropertyValue::List.Red (draft #649, run 37212982834): 42 of 42 Plumbing fittings without Revit's value. Output in the test commit's message.
Note
Medium Risk
New binary partition heuristics and IFC property typing affect MEP export fidelity; mitigated by corpus parity tests but connector parsing could misread edge cases.
Overview
Adds pipe fitting nominal diameter to IFC export so it matches Revit’s
Pset_PipeFittingTypeCommon.NominalDiameter(B44 / RE-165): a single-lengthIfcPropertyListValue, not a scalar.A new
partition_fitting_connectorspass reads connector records from each fitting’s data object (Revit 2024+) and setsm_fitting_nominal_diameteronly when every connector shares one diameter; reducers with mismatched sizes get no value. The exporter turns that intoElementPropertySeton pipe fittings.PropertyValue::Listsupports list-valued properties end-to-end: STEP emission viaIFCPROPERTYLISTVALUE, viewer formatting, and numeric alignment in schedules. A corpus test compares RE1 Plumbing/Mechanical exports to reference IFC whenRVT_PROJECT_CORPUS_DIRis set.Reviewed by Cursor Bugbot for commit b8f03de. Configure here.