Repository navigation
fix(ifc): a floor with shape-edited corners is drawn along its sloped top, and the walls on it start from that top (#1384) (RE-336) - #1388
Merged
Conversation
… top, and the walls on it start from that top (#1384) (RE-336)
DrunkOnJava
marked this pull request as ready for review
November 4, 2026 22:37
…ceiling and a floor whose outline is not its corners leave the walls on them as they were, and the refusals are counted and logged (#1384) (RE-336)
# Conflicts: # docs/export-diagnostics.md # tests/value_sources_offsets.rs
… with the refusals counted on Snowdon Towers and rac_advanced (#1384) (RE-336)
10 of 12 tasks
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 00:22
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…ntities, and a one-layer wall cut at it its layer colour (#1384) (#1405) ## Summary The 0.15.0 release Measure (run 41944962415, main at 77d71cb against v0.14.0, unfiltered with timing) found two losses from #1388, which drew the BIM4LCA office's shape-edited floors along their sloped top. Both are fixed here before the release ships. 1. **Slab quantities.** `qtos_vs_ifc` on each office file has `Qto_SlabBaseQuantities.GrossArea` going from 41 equal to 33 and `NetVolume` from 40 (39 at permit) to 32 (31). These are the 8 shape-edited floors. - `add_slab_gross_area` writes only for a body drawn as one extrusion (`solid_shape.is_none()`), so the floors' new B-rep left them out. - Their extrusion still holds the plan profile. - Both values are the profile's area and that area times the type's thickness. That is what Revit's export wrote and what matched before. - The guard now also passes a floor whose `BodySource` is `native_slab_shape_edit`. - `Depth` and `GrossVolume` stay out as before, because the box height is not the layers' total. 2. **GLB layers.** `wall_layers_vs_ifc` has 602 walls drawn in layers going to 588 as built (519 to 503 at permit): 14 (16) one-layer Basement walls whose base is now cut at a shape-edited or level floor. - Their solid is not one that `layered_stepped_meshes` takes apart, so `gltf.rs` drew them whole in the category colour. - `body_geometry::one_layer_solid_meshes` draws a one-layer element's solid as that layer when its extent along the exterior normal is the layer's width within `LAYER_THICKNESS_TOLERANCE_FEET` (0.02 ft). Otherwise it returns `None`, and the solid is drawn whole as before. ## Testing - **Measure 41949652150** ran 0031604 against main at 77d71cb, base=main, with the default models plus `nordic` and `r2025`. Only 4 scorer files move, all on the two offices: - `qtos_vs_ifc`: `GrossArea` 33 to 41 equal and `NetVolume` 32 to 40 (31 to 39 at permit). Totals are 29,546 to 29,562 equal as built and 29,833 to 29,849 at permit. "Different" stays at 1 and "Revit does not write" at 0. These are v0.14.0's values exactly (release Measure 41944962415). - `wall_layers_vs_ifc`: - walls in layers go from 588 to 602 as built and 503 to 519 at permit; - layer centres within 0.001 ft go from 569 of 584 to 583 of 598, and at permit from 503 of 503 to 519 of 519; - colours "same" go from 696 to 710. - `ifc.sha256` moves on the two offices only, and 32 models are identical. - After review, 1e5512c limits the shaped-floor test to `IFCSLAB` (same result) and updates RE-249, RE-336 and `docs/format-reconnaissance.md`. ## Audit-honesty checklist - [x] Restores values that were Revit's on these 8 floors before #1388, by the same rule. No new rule. - [x] The GLB path fails closed: several layers, a solid that does not mesh, or a thickness that is not the layer's are drawn whole as before. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA'd SDK content. ## Breaking changes None. `body_geometry::one_layer_solid_meshes` is a new public function. ## Related issues Refs #1384.
This was referenced Nov 5, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
## Summary Release 0.15.0: - Where each decoded element was read from, down to the byte, on request: `rvt-ifc --element-provenance` (#1325), with the copy each body, profile and outline reader took its value from (#1360, #1368). - Why an element, body, opening or outline was left out, one entry per element, on request: `rvt-ifc --export-decisions` (#1326), and the MCP server's `explain_element`. - Where a Revit 2008 to 2023 project's element records stop, in every export's diagnostics (#1389, for #421). - Rooms take off the round columns their stored solid holds (#1354, RE-334). - Areas whose boundary lines name each other are drawn to their joins (#1261, RE-330). - Shape-edited floors drawn along their sloped top, and the walls on them cut at it (#1384, RE-336). - `rvt-ifc --family-extrusions`, opt-in, draws a family instance from its family's own extrusions, arcs as true arcs (#156, RE-327, #1366). - Partition streams in number order (#1356); the viewer's browser tests in `CI passed` (#1394). - Value sources for Areas and shaped floors (#1403), the shaped floors' slab quantities and the GLB layer colour kept (#1405), floor voids tagged as Revit tags them (#1402), Measure's scorer for the MCP server's answers (#1404), and the MCP server's element names and type objects taken from the IFC writer (#1406). ## Changes - Version 0.14.0 -> 0.15.0 in: - Cargo.toml; - rvt-py/Cargo.toml and its `=` pin; - rvt-mcp/Cargo.toml and its `=` pin; - rvt-wasm/Cargo.toml; - tools/stream_evidence/Cargo.toml; - viewer/package.json; - CITATION.cff (version and date); - Cargo.lock and fuzz/Cargo.lock. - `python3 tools/release/changelog.py assemble`: 23 fragments go into `[0.15.0]`, with an introduction, a "Not measured" list, credits and "Upgrading from 0.14". The 21 from the first assembly come in first, then #1403's and #1405's after `main` was merged. #1405's fix is folded into #1384's entry, since the slab quantities it restores never left a release. - README: the latest release and the "Upgrading from" pointer. ## Testing - **Measure 41944962415.** It ran `main` at 77d71cb against v0.14.0 with timing, on the reference models, the samples, the held-out models and Revit 2025, with no families. - It found two losses from #1388 on the offices: 16 slab quantities went from equal to missing on each file, and 14 (16) walls lost their GLB layers. - #1405 restores both. Measure 41949652150 shows them back to v0.14.0's values, with 32 other models byte-identical. - The intro's timing figures come from this run. - **Final Measure 41965523134.** It ran this branch at 1e56972 (with #1402 to #1406, #1413 and #1414) against v0.14.0, with the reference models, Revit 2025, the samples, the held-out models and the families. - Every figure in the introduction comes from it. - Apart from the MCP scorer #1404 adds, every scorer output on every model is identical to run 41963115180 (5b1a371): the held-out counts only gain `mcp answers:` lines. #1406's writer refactor therefore moves no export, on the samples and held-out models too. - Since 1e56972 the branch adds only changelog text. - **Witness and fixtures.** The Core Interior witness observations and verdicts (both artifacts) and the two synthetic fixtures are taken from this PR's CI run 41954452074 on ce0b2d8. Only `witness_version`, the verdict hashes and the version strings changed. - **Release review.** A second read found these, all fixed on the branch: - a false "and the families" for the first run; - #1405's missing entry; - an offsets claim that overreached for the decisions log; - stale sentences in three entries; - missing caveats, credits and upgrade notes; - an MCP output schema that listed four optional fields as required. #1414 fixes that and lands first. ## Audit-honesty checklist - [x] The introduction keeps each entry's caveats, and adds a "Not measured" list: - the offsets unmeasured on Revit 2008 to 2022, and the decisions log's before 2024; - the values with no recorded source; - the in-sample Area join rule (#1261); - the refusal markers on Snowdon and `rac_advanced` with no IFC4 export to score them; - the family-extrusions release range. - [x] No emojis, private paths or internal jargon. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA'd SDK content. ## Breaking changes None in the stable API: `ExportOptions`, `ExportNote`, `ExportDiagnostics`, `DecodedExportDiagnostics` and `ExportedModelDiagnostics` gain fields and variants, and all are `#[non_exhaustive]`; the provenance, decisions and stage types are new. `--family-extrusions` is new in this release (the `arcs` field #1366 removed never shipped). Behaviour changes are listed under "Upgrading from 0.14". The `rvt-rs-mcp` tool output changes, as #1406 states and "Upgrading from 0.14" lists: - an element's `name` can be absent, where it would be a room's `<class>-<ElementId>` placeholder; - `element_type` is absent where the IFC export writes no type object; - `element_type`'s `element_id` is the type object's `Tag`. The output schemas in `docs/mcp-tools.json` say so. ## Related issues Refs #1325, #1326, #1360, #1368, #1389, #421, #1354, #1261, #1384, #156, #1366, #1356, #1394, #1374, #1402, #1403, #1404, #1405, #1406, #1413, #1414.
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…dumps and Jev scores the diff (#1334) (#1419) ## Summary The advisory semantic merge check of #1334. Measure diffs the two sides' MCP dumps for each openly licensed model, and a `workflow_run` workflow gives the diff to Jev `jev-1.13.0` beside the pull request's own `## Summary` and `## Testing` and asks whether the export moves in a way they do not state specifically (Griffin, 2026-11-05: a described, intended change passes, an unexplained move fails; the main session, 2026-11-05: a move that only a general description such as "improves how walls are exported" covers fails too). The verdict is the check run `semantic diff (advisory)` on the commit Measure measured: not in the ruleset, no pull request comment, and a `fail` is a red check. Only a Measure run of every open model with a base on main writes it, it is written on the commit Measure measured and no other, and it cannot be a pass unless all 34 open models are compared in full and a same-repository pull request has that commit as its head. ## Motivation Measure is the byte-level oracle. A pull request that moves meaning should say so, specifically, before it is armed, not only show that bytes moved. The agent that makes a change also writes its Summary, so a sweeping Summary must not cover a change. Refs #1334. ## Changes - `tools/re/semantic_diff.py`: a pure function of two dumps. Elements added, removed and changed with the value before and after; byte offsets inside `provenance` dropped; order ignored; values compared to the dump's six decimals; an empty object or list the same as no field; identical changes collapsed by the whole (path, before, after) triple. Its `measure` mode is what the compare job runs: it fails the job on a dump in a model that is restricted or on neither list, and records in the manifest the open models no diff covers (`OPEN_MODEL_NAMES`, 34), each skipped model with its own reason, the groups dropped for size, and whether the run was asked for every open model (`--requested-all`). The measured commit and the base are the ones the compare job passes from the plan job's resolved refs (`--head-sha`, `--base-sha`); the `commit.txt` of a result folder is written by a shard job that runs the measured code and is read only when none is passed. - `tools/re/test_semantic_diff.py` and `tools/ci/test_jev_check.py`: failure-first tests of pure helpers, run in the PII guard job. The diff: 0.35 vs 0.3500001, a reorder with moved offsets, a bulk collapse that hides a different value, an uncovered model. The verdict logic: a model with no dump, a diff that failed, a dropped group, an unscored chunk or partial coverage never reads as a pass; an answer whose probabilities do not add up is refused; a chunk of non-ASCII text is never sent over the 16,000-character cap; a head commit that is not a 40-character SHA, a manifest with a non-string model, HTML and invisible characters in the pull request's text, and control characters in printed text. Each was checked to fail under the mutation it guards against. - `.github/workflows/measure.yml`: the compare job checks out the script, runs `measure` when there is a base, tells it whether the run was dispatched with no `models` filter and the office and Revit 2025 models on, and uploads `semantic-diff`. The documented command is `-f base=main -f nordic=true -f r2025=true` with no `models` filter. - `tools/ci/jev_check.py`: merges findings across models, chunks them (at most 8 findings, 16,000 characters as sent), reads the same-repository pull request whose head is the measured commit through the API, takes its `## Summary` and `## Testing` (HTML element tags and invisible characters removed, each cut at 2,500 characters as sent, all of it shown in the check's summary; text in angle brackets that is not an HTML element, such as `<set>.<property>`, stays), and asks Jev blind (labels A and B randomised per chunk; no model name, pull request number, title or branch in the state). Per finding Jev chooses: stated specifically / follows from a specific change they state / covered only by a general description / unstated / only rounding, a reordering or a spelling; "general" plus "unstated" is the finding's score, and the probabilities must add up to 1. A finding at 0.85 or more is a fail in a chunk rated 1.5 or more and a warn in one rated 1.0 or more. NOT MEASURED, never a pass, for no key, no same-repository pull request whose head is the measured commit (a fork's included, and an empty diff does not excuse it: the lookup is first), a check asked for on a commit other than the measured one (both commits in the title), a base that is missing or could not be checked, a pull request with no `## Summary` where the diff has findings, HTTP 402, a refused key, another model's reply, a time-out, an error (named by its type), no model compared, any open model not compared in full, a dropped group or a missing count, sampled property sets that one of a model's dumps alone holds too often (none held by both while either holds any, or more than a tenth of them), or an unscored chunk. A run whose base is not main or an ancestor of main writes no check, and names the base. The Jev call does not follow a redirect. An empty diff passes without a call and needs no Summary, but only on a complete run. - `.github/workflows/semantic-check.yml`: `workflow_run` on Measure (environment `jev`, main only), `workflow_dispatch` with a run id, and a keyless run on a pull request that changes the check. It scores only a Measure run whose event is `workflow_dispatch` and whose head repository is this repository, from `measure.yml` at that path; any other run posts nothing, with a notice. It writes the check on the commit the artifact names as measured, not on a pull request's live head. actionlint reports nothing on it and zizmor 1.32.0 reports nothing on it, `measure.yml` and `ci.yml` (the one `dangerous-triggers` finding, on `workflow_run`, is ignored inline with its reason). - `docs/maintaining.md` (where to find the verdict: it is on the measured commit, not necessarily the head, which the pull request page does not show, so look it up with `gh api repos/<repo>/commits/<sha>/check-runs?check_name=...`; a later commit does not clear a fail, only a new score of the same pull request does; a filtered Measure run writes no verdict, so a pull request that changes output needs its final unfiltered run; the Summary must state each change specifically: which classes, which property or geometry, how many where measured; a fail is fixed by changing the code or by stating the change in the Summary; a warn is answered in the body; the complete command; what a pass means: the dumps agree, not that the exports are identical, since the dump samples five elements per entity; what is sent, including element names and values that can hold an ElementId), a changelog fragment. ## Testing No local build (the lane runs no cargo); the tests above are the pure-helper exception and run in CI's PII guard job. End to end on real dumps: - [x] N/A for `tools/check-local.sh`: no Rust changed. - [x] Verified end to end on real Measure runs: see "Output samples". The keyed path (main's `workflow_run` job with the secret) is not yet exercised. ## Audit-honesty checklist - The keyed path cannot run before the workflow is on main: `environment: jev` takes only main, and a `workflow_run` workflow runs from the default branch. After the merge: `gh workflow run semantic-check.yml --ref main -f run_id=<a complete Measure run with a base>`. - The keyless path is exercised by this pull request's own run of the workflow, and it can only say NOT MEASURED: it writes on the pull request's head, which is never the commit Measure measured. At c36b71f (before the delta review) it did so with the wrong reason: Measure run 41987903774 (dispatched from this branch for #1425's head c8e55f5 against main 182ed21, `-f nordic=true -f r2025=true -f scorers=mcp_answers_vs_ifc`, no `models` filter) compared all 34 open models (0 skipped, 0 uncovered, `requested_all` true; findings only in the two office files, 7 each), and this workflow's run 41987854258 (attempt 2) wrote check run 127117767677 on c36b71f through `GITHUB_TOKEN` saying only "no Jev key", a check on a commit Measure had not measured. At b4d1932 such a check says "this check is for <the head>, but Measure measured <the other commit>" in its title (local scenario below; the CI proof is Measure run 41993282068 on #1425's head 722244e against main a4044dc, and this workflow's pull-request run after it: not yet measured on this head). Measure's own pull-request run 41987854320 covered 6 of 34 models and its compare step says "the semantic check writes no check run (this run was not asked for every open model)", the filtered path in a real run. An earlier pass of the keyless path (run 41966963563, attempt 2, on fd90cdc: no semantic difference in 6 models) predates the coverage rule and the commit check. - A pass means the dumps agree, not that the exports are identical: the dump samples five elements per entity, and a mesh vertex or a profile point is not in it. - The thresholds and the wording of the per-finding question were set on the in-sample cases below, so those cases are in-sample for them. The held-out round is the second table. Jev's answers move by about 0.02 between two calls with the same request (#1412's own Summary passes at 0.84 and fails at 0.86 on byte-identical requests, against a gate of 0.85), so a verdict within 0.05 of the gate is not stable. - B3 (a fork's run) and the redirect behaviour are tested by reading the code and the unit helpers, not by a fork's run: no fork pull request was opened. ## Breaking changes None. ## Output samples Everything below was scored with `tools/ci/jev_check.py` and `tools/re/semantic_diff.py` as committed at 49d5378, and the delta-review block below as committed at b4d1932 (which changes who may write a check, the gaps, and the stripping of HTML and invisible characters in the pull request's text; no prompt, threshold or chunking), and the key from the Keychain on this Mac, from the `semantic-diff` and `measure-*` artifacts of the Measure runs named. Nothing was scored with a threshold or a prompt other than the committed ones. **Ground truth is `ifc.sha256` per model**, not a pull request's title. Of 13 pull requests in the in-sample set (Core Interior, Einhoven, RE1 and the Revit 2025 models in every run; 34 models with the BIM4LCA office where `nordic` was on, 30 for #1402 and #1403 and 6 for #1398), the IFC differs on the two office files for #1388, #1400, #1401 and #1405 and on no model measured for the other nine. The semantic diff has findings on exactly those two models in each of those four runs, and none on any model whose IFC is identical, except the dump-only changes of #1373, #1379 and #1412. The documented command (no `models` filter) is what finds them: the earlier documented command, which filtered to Core Interior, Einhoven and RE1, reads "pass" on all four. **In-sample: the 7 pull requests whose diff is not empty** (runs 41972569847 #1388, 41972650013 #1400, 41972664107 #1401, 41972583508 #1405, 41972597118 #1373, 41972610208 #1379, 41972636527 #1412; each 34 models). "Own" is the pull request's real Summary and Testing. "Sweeping" is a one-line Summary that names an area and no kind of change ("Improves how walls and floors are exported." for #1388, "Improves how openings are written in the export." #1400, "Improves how walls are drawn in the export." #1401, "Improves how floors and walls are exported." #1405, "Improves how rooms, profiles and pipes are exported." #1373, "Improves how roofs are exported." #1379, "Improves the MCP server's answers." #1412), alone and beside the pull request's real Testing. "Wrong" is another pull request's full body: #1329 (a memory change that states the output does not change) and one other. The number in parentheses is the highest probability that Jev gave a finding as not stated specifically. | Pull request | Findings | Own | Sweeping alone | Sweeping + its Testing | Wrong: #1329 | Wrong: other | | --- | --- | --- | --- | --- | --- | --- | | #1388 | 7 | pass (0.31) | fail (0.99) | pass (0.74) | fail (0.99) | #1412: fail (0.95) | | #1400 | 14 | **fail (0.94)** | fail (0.99) | fail (0.98) | fail (0.98) | #1373: fail (1.00) | | #1401 | 12 | pass (0.63) | fail (1.00) | pass (0.77) | fail (0.96) | #1379: fail (1.00) | | #1405 | 2 | pass (0.51) | warn (0.99) | warn (0.90) | warn (0.96) | #1379: **pass (0.78)** | | #1373 | 88 | pass (0.63) | fail (1.00) | fail (0.99) | warn (0.97) | #1400: fail (1.00) | | #1379 | 94 | pass (0.24) | fail (0.99) | warn (0.90) | fail (0.96) | #1401: fail (1.00) | | #1412 | 23 | pass (0.84) | fail (1.00) | fail (0.89) | fail (0.99) | #1388: fail (1.00) | - **No sweeping Summary alone passes (0 of 7): 6 fail, 1 warns.** Beside the pull request's own Testing two pass (#1388 and #1401), because their Testing states the figures: that is the rule working, since a measured figure in Testing counts as stated. - **False positives: 1 of 22 expected passes, a fail.** The 22 are the 7 own Summaries, 6 jitter controls, 6 reordered controls and 3 empty-diff pull requests on complete runs (#1329, #1377, #1382: no finding on any model, IFC identical, each a pass without a call to Jev). #1402 and #1403 ran without the office, so under the new rule they write no check and are not counted. #1400 is a diff of 14 counters of the diagnostics, and the figure its Summary and Testing leave unstated is `parameter_value_count` +188 (office as built) and +174 (permit); its Motivation, which Jev is not given, gives 182. #1412's own Summary sits at the gate: the same request scored 0.84 (pass) at 4e81a95, 0.86 (fail) in one rescoring on this head's code and 0.84 (pass) in the table above, so it is a verdict the gate cannot hold; it could as well be counted a second false positive. - **False negatives: 1 of 21 expected non-passes** (7 sweeping alone, 7 with #1329's body, 7 with another's): #1405's whole diff is `total_entities` +8 on each office file, which a roofs Summary does not state (0.78, below the gate). - **Controls, complete** (all 34 models on both sides, one model changed; built from the dumps of run 41972569847): six jitter controls pass, a move of 1e-6 in every measurement of the sampled elements, the rooms' areas and the levels' elevations in Core Interior, RE1 architecture and mechanical, Einhoven, the office as built and a Revit 2025 model, scored beside #1329's body: highest probability 0.73 to 0.79, highest chunk rating 0.6 to 0.7, below the 1.0 rating gate; 412 findings in 65 chunks on the office. Six reordered controls (every row, set and room in another order, every byte offset shifted) are empty diffs. - **Coverage, on #1401's stored diff** (run 41972664107, own Summary), changing only the manifest: complete, **pass**; one model with no dump on the head side, **NOT MEASURED** naming it; one model whose diff failed, **NOT MEASURED** with that reason; a dropped group, **NOT MEASURED**; the same missing model with a run not asked for every open model, **no check run**; a manifest with a non-string model, an error and no check run. - **Unchanged by the review fixes:** 34 of 35 verdicts of the in-sample matrix are as scored at 4e81a95 (the one that moved is #1373 with #1329's body, fail to warn; both are non-passes), and #1401 and #1405 (the two the review asked for, runs 41972664107 and 41972583508) are unchanged in all five bodies. 18 of the 35 requests are byte-identical to the earlier scoring; the other 17 carry a Summary or Testing that is now cut by its length as sent (a newline or a quote in the text counts two, so a section over the cap is cut about 20 characters earlier), which is the review's cap fix and not a change of method. **Delta review (b4d1932).** Run on stored complete runs, with the key from the Keychain and real GitHub lookups, nothing posted: - Run 41972569847 (#1388's merge commit, base 240c7d7): the pull request is found through the API from the measured commit, the base is on main, Jev is asked with #1388's real Summary and Testing: **pass (7 findings in 34 models)**, as before. Run 41972583508 (#1405's merge commit): **pass (2 findings)**, as before. Run 41972664107 (#1401's head 2a35ede, which has since moved): NOT MEASURED, "no pull request of this repository has this commit as its head", the head-moved case in a real run; scored offline with #1401's real body the verdict is **pass**, and all five of its bodies give the verdicts of the table above (pass, fail, pass, fail, fail). #1388's five bodies and #1405's five are the same verdicts as the table, except #1405 with #1329's body, warn to fail (a non-pass either way, at a rating of 1.5). - Run 41987903774 (PR #1425's head c8e55f5 when measured): its head has since moved to 722244e, so the real-lookup scenario reads NOT MEASURED, "no pull request ... has this commit as its head". Asked to write on another commit (c36b71f), the same run reads NOT MEASURED with "this check is for c36b71f, but Measure measured c8e55f5". An empty diff on a merged pull request's commit (run 41980023307, #1358) is a pass; the same empty diff with a commit no pull request has is NOT MEASURED; a base that is the pull request's own head writes no check and names the base. - **Property sets held by one dump only** (`details_one_side`) are a gap per model only when none is held by both while either holds any, or when more than a tenth of all of them are held by one dump only (exactly a tenth is not a gap; main session, 2026-11-05). The dump samples the five lowest ElementIds of each entity, so a change that adds or removes elements of an entity moves the sample and a few are held by one dump only: that is not a defect, and the literal rule (any non-zero count) would have turned #1412's pass into NOT MEASURED. The defect it guards against is a head that lost its details. The check's summary says how many are held by one dump only, gap or not. On run 41972636527 (#1412, 1 of 115 sampled elements held by one dump only in each office file, no gap), scored offline with #1412's body three times: pass (0.84), fail (0.85), pass (0.83), all with no gap and the same chunk (a finding at the 0.85 gate, in a chunk rated 3.6), so its own Summary is a pass again, at the gate, and not a stable one. No other stored complete run has a non-zero count. **Held-out, thresholds and wording unchanged since they were set above.** Ten merged pull requests that were not used to set them, run with the same 34 models (`nordic` and `r2025` on): - #1337, #1352, #1356, #1372, #1341 and #1344 (Measure runs 41973688732, 41973701739, 41973714367, 41973727101, 41973740400, 41973754042): the IFC is identical on all 34 models and the dumps agree, so each has an empty diff and passes without a call to Jev, with its own Summary, a sweeping one, #1329's or another's alike. **They test the empty-diff path and nothing else**: none of their changes lands on an open model. - #1350, #1358, #1364 and #1370 (provenance and diagnostics additions; the IFC is identical on all 34 models in each, so these are dump-only changes), Measure runs 41980008692, 41980023307, 41980037727 and 41980053223, scored with the same four bodies per pull request (own Summary and Testing, a sweeping one-liner written before the runs finished, that line beside the real Testing, #1329's body, and another pull request's body). Scored first with `jev_check.py` as it was at 4e81a95 and again with the code of this head; nothing was changed after seeing a result, and the 20 verdicts are the same in both. | Pull request (run) | Findings | Own | Sweeping alone | Sweeping + its Testing | Wrong: #1329 | Wrong: other | | --- | --- | --- | --- | --- | --- | --- | | #1350 (41980008692) | 1034 in 142 chunks | **warn** (0.86, one chunk, rated 1.13) | fail (1.00) | fail (0.88) | fail (0.99) | #1358: **pass (0.84)** | | #1358 (41980023307) | 0 | pass, empty diff | pass, empty diff | pass, empty diff | pass, empty diff | pass, empty diff | | #1364 (41980037727) | 159 in 37 chunks | pass (0.14) | fail (1.00) | pass (0.60) | fail (0.97) | #1370: fail (0.92) | | #1370 (41980053223) | 98 in 16 chunks | **warn** (0.90, one chunk, rated 1.33) | fail (1.00) | fail (0.95) | fail (0.97) | #1350: **pass (0.21)** | The sweeping lines were "Improves what the export records about elements." (#1350), "Improves the diagnostics of the export." (#1358), "Improves what the export records about bodies." (#1364) and "Improves what the export records about profiles and stairs." (#1370). - **The held-out result is weaker than the in-sample one.** Real Summaries: 1 of 3 non-empty pull requests passes, 2 warn and none fail. Sweeping alone: 0 of 3 pass (all fail). #1329's body: 0 of 3 pass. Another pull request's body: 2 of 3 pass. With the empty diff counted, false positives are 2 warns (no fail) of 4 expected passes, and false negatives 2 of 9 expected non-passes. - **Why the two warns.** #1350 added fields to the dump's `summary.file` block (`layout_release`, `omitted_entries`, `partition_count`), which its Summary and Testing do not name: one chunk of 0.86 at a rating of 1.13, where a warn needs 0.85 and 1.0. #1370's warn is one chunk of `value_sources` parts of Core Interior's shading devices at 0.90, rated 1.33; a fail needs 1.5. Both are near their gates. - **The two cross-body passes are neighbours, not strangers.** #1350 (the provenance of every decoded element), #1358 (why an element was left out) and #1370 (value sources for profiles, stair runs and landings) all add provenance and diagnostics, so another's Summary covers part of the diff. They are counted as false negatives as defined. - **Run-to-run movement.** Jev's answers move by about 0.02 between two calls with the same request, and by more in the maximum of very many findings: with #1358's body on #1350 (1,034 findings) the highest scored 0.83, 0.97 and 0.84 in three scorings, only the middle one on a different grouping of the chunks (since reverted: a chunk is packed at full context). A verdict near a gate (0.85) is not stable. - **What it says about the thresholds.** On provenance and diagnostics additions Jev's probabilities for a change the pull request states sit near 0.9 where in-sample they sat at 0.2 to 0.8, so the 0.85 gate is close to the edge for real Summaries. A recalibration follow-up is warranted. #1314, #1316 and #1328 cannot be calibrated: their parents predate the server crate (71c0677), so Measure builds no `rvt-rs-mcp` there. ## Related issues Refs #1334
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.
Summary
A floor whose corner vertices are shape-edited (
SlabShapeEditGStep) and lie in one plane that its outline's vertices make is drawn as the slab between that plane and one thickness lower. A wall whose base join names a floor or footing that covers its whole plan starts from that element's top (level, or along the plane), as Revit's body does. Where either is not proven, the floor keeps its record box or the wall its base, and the reason is a trust marker on the element, counted in the diagnostics and logged as a decision. Report: RE-336.Motivation
#1384: the BIM4LCA office's Basement walls whose base Revit raises (14 as built, 16 at permit) stand on footings Revit draws sloped (10 as built, 12 at permit) or on level floors (4); rvt-rs drew the footings as their record boxes and left the walls' bases at their own, so they were not Revit's (RE-335, RE-258 section 4).
Changes
partition_schema_mvp/slabs.rs,fields.rs:attach_slab_uncutreads everySlabShapeEditGStepof a floor, roof or ceiling from the record it already reads for RE-295: the plane of its corners and their places (m_slab_top_plane,m_slab_shape_corners), or why it is not read (m_slab_shape_unread), and marks each plate it read (m_slab_shape_read). Once a step is found, a field absent or of another shape isshape_edit_fields_not_read, never "no edit"; steps that disagree, an unedited step beside an edited one and copies of the record that disagree are refused.native_walls.rs,partition_schema_mvp/walls.rs: a wall's base join names (m_wall_base_cutters), from the pass that already reads the top join.ifc/export_content.rs: aFloorwith a plane, one outline loop whose vertices are the corners and a record box the plane reproduces is aFacetedBrep(BodySourcenative_slab_shape_edit); any other floor, roof or ceiling with an edit getsSlabShapeRefusaland is entered in the wall pass as not known, so it is never taken for flat; so is a plate whose record was not read.ifc/export_content/wall_tops.rs,ifc/body_geometry.rs:cut_wall_basescuts a wall at the top of the one covering element it names (BodyBaseSource,BaseCoverElementId), from a floor whose body is the shape-edit one and whose pieces are as thick as each other; otherwiseBaseCoverRefusalwhere the wall names an element whose top is edited or not known (decided before the element is looked for among those that cut, so an edited ceiling leaves the wall), a top at or below the wall's base or at or above its top, and the rest. The top cut no longer takes a sloped floor for a level one.wall_cut_openings.rs: a base-cut wall still hosts its cut openings.ifc/mod.rs,ifc/export_decisions.rs, the diagnostics schema,docs/export-diagnostics.md,rvt-mcpdescriptions:exported.slab_shape_refusalsandexported.wall_base_refusals, and the log'sslab_shape_refusedandwall_base_cut_refused(stagebody_left_as_box, the code asdetail);tests/export_decisions_counts.rsties them.tools/re/slab_bodies_vs_ifc.py(mesh_bodies_vs_ifc.pyfor the new body, and the census of the new markers),tests/value_sources_offsets.rs(the new body source isNotYet, as the gate asks), RE-336, changelog fragment, matrix, map and addendum rows.Testing
No unit tests (banned). Measured on real files on head cea5665, base
mainat 07babdb; the commits after it are documentation, the MCP contract andmain; figures and reproduction in RE-336 section 5.tools/check-local.shpasses: not run locally (no local builds). CI on this PR's head is the gate.wall_heights_vs_ifc,wall_top_cover_vs_ifc,wall_quantities_vs_ifc,slab_bodies_vs_ifc), 41935691220 (24 R2025 models, Autodesk samples), 41935694524 (19 held-out models, counts only), 41935697448 (schema rules). The two heads before it gave the same figures (runs 41928809372, 41928813497, 41928817973, 41928822331 and schema 41932759661).main's, so no observation moves.Measured:
The remaining walls' plans stop short of Revit's at the footing's low end (0.29 ft as built, 0.09 to 0.10 ft at permit). Every wall whose lowest point changed moved towards Revit's; no wall's top moved (607 and 589 compared). Core Interior, RE1 Architecture, the 24 R2025 models, every export of the 19 held-out models (25 a side with the reference models) and all Autodesk samples but six are byte-identical to
main's. The six are Snowdon Towers Architectural (17SlabShapeRefusal: 10interior_edge_vertices_or_creases, 5corners_not_in_one_plane, 2roof_or_ceiling_edit_not_drawn) and Structural (1), and each save ofrac_advanced2024 to 2027 (1interior_edge_vertices_or_creases); nothing else of them changes, and there is no redistributable Revit IFC4 export to score them against. The level cut's evidence is 4 walls in one project, all exact (RE-336 section 6).Audit-honesty checklist
docs/support-matrix.json,docs/contribution-map.md,docs/format-reconnaissance.md,docs/export-diagnostics.md,docs/mcp.md.changelog.d/fixed/1384-sloped-footings.md.rac_advancedelements are not scored; the level cut has 4 walls of evidence; no provenance reader for the new body (a Provenance: value sources for the readers #1360 leaves NotYet (stair sketches, landings, area lines, sections, pipes, roofs, family extrusions, profiles) #1368 follow-up).Legal and contribution hygiene
Breaking changes
None. The bodies of floors with shape-edited corners and of the walls on them change; the new properties are
BodyBaseSource,BaseCoverElementId,BaseCoverRefusalandSlabShapeRefusalinRvtElementRecordGeometry, andExportedModelDiagnosticsgains two maps.Related issues
Refs #1384. Its done-when is met for the footings (read from the bytes, or refused with a counted reason) and for "no wall elsewhere gets worse", and for 12 of the 14 walls (12 of 16 at permit): the others' lowest points are 0.123 ft (0.044 ft) off because their plans end short of Revit's, which this change does not touch. That is #1396.