Repository navigation
fix(ifc): a wall with an edited profile cut back from inside the wall beneath it is drawn to that wall's face (#1396) (RE-337) - #1398
Merged
Conversation
… top, and the walls on it start from that top (#1384) (RE-336)
…w floor body is in the value-source coverage table as not yet read, and a base-cut wall still hosts its cut openings (#1384) (RE-336)
…f the footing it stands on like any other, as Revit raises the office's Basement walls that have one (#1384) (RE-336)
… for the sloped footings (#1384) (RE-336)
…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)
… the face of the wall that holds the base (#1396) (RE-337)
…ceiling and steps or copies that disagree leave the walls on them as they were (#1384) (RE-336)
…at the face of the wall that holds the base (#1396) (RE-337)
…igures corrected (#1384) (RE-336)
… the wall beneath it is drawn to that wall's face (#1396) (RE-337)
# Conflicts: # src/ifc/export_content.rs # src/ifc/export_content/wall_tops.rs
This reverts commit 0caf3a1.
This reverts commit dd7d88d.
…e face (#1396) (RE-337)
…de the wall beneath (#1396) (RE-337)
…or the end pass (#1396)
2 tasks done
…d names what no model exercises (#1396)
…l-ends # Conflicts: # changelog.d/fixed/1384-sloped-footings.md # docs/format-reconnaissance.md
…as omitting Revit's upper step (#1396) (RE-337)
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…mesh where Revit raised its base (#1385) (RE-340) (#1401) ## Summary A wall that embeds a curtain wall is drawn from the mesh Revit saved for it where that mesh starts at least 0.5 ft above the wall's base, which is where Revit has cut the wall's end stubs away and raised its base (RE-340), on Revit 2024 to 2027. Every other wall keeps its body, including the hosts that keep their stubs (2103576 as built, 2177158). Commit subjects: 98262a3 names RE-336 and the commits up to 4750acc say RE-338; both mean RE-340, the report and the title of this PR (renumbered because #1398, #1400 and #1402 hold RE-337, RE-338 and RE-339; commit subjects cannot be changed). ## Motivation #1385, from RE-335. Six walls of the BIM4LCA office as built (eight at permit) are drawn 8.2021 or 9.514 ft taller at the base than Revit's body, because rvt-rs draws the wall whole where Revit draws it less the curtain wall's prism and less whatever cuts its end stubs. No record of the cut partners says which walls keep their stubs: every raised host's stubs lie inside its partners' boxes, and so do those of 2177158 (as built and at permit) and 2041479 (at permit), which Revit keeps (RE-340 section 2). The wall's own saved graphics do say: the lowest vertex of its saved mesh is Revit's lowest point on 113 of 113 host states (57 as built, 56 at permit), to within 0.001 ft. ## Changes - `src/ifc/saved_meshes.rs`: `attach_scoped_with_control` also takes the walls whose native record names a `WallEmbedWallGStep` of an `IfcCurtainWall` of the model, drawn as plain extrusions or with RE-320's stepped top and with no base cut at a floor (#1384), alone in their Tag (decided over every entity, before any piece is dropped), and with nothing hosted in them but the void their own curtain wall cuts (#1400's `WallCutOpening` whose Tag is a cutter of the wall's own embed steps is ignored; any other opening, door or window keeps the wall). It reads their saved graphics in the pass that already reads doors' and windows', and draws the wall from the mesh when it decodes whole (no diagnostic, RE-224) and starts at least 0.5 ft above the wall's base and ends as far below its top. `SavedMeshReport` gains `embed_hosts`, `embed_raised`, `embed_partial` and `embed_error`; the RE-224 test and the mesh-to-local-frame code became two helpers shared with the existing path. - `src/reader.rs`, `src/research/native_wall_cuts.rs`: `wall_cut_steps` keeps the steps it read on the file's handle and reads only the walls it has not been asked for, so #1400's pass over every wall's record and this pass share one read instead of making two. (Folding it into #1400's pass was not possible as such: that pass runs in the model builder and this one in the export pipeline, after the saved-mesh scope and release are decided, and handing one to the other would need a new field on `IfcModel`.) - `src/ifc/export_pipeline.rs`: two new last `ExportNote` variants, `EmbedHostBodies` (hosts, drawn from their mesh, kept for a mesh that did not decode whole) and `EmbedHostBodiesSkipped` (why the walls' records could not be read); `rvt-ifc` prints them. No MCP tool changes; `rvt-mcp/src/args.rs` is untouched because its `saved_meshes` description, "Bodies drawn from saved meshes", is generic (#1375) and still true, so `docs/mcp-tools.*` do not move. - `rvt-ifc` and `rvt-gltf` help for `--saved-meshes` and `--no-saved-meshes`, the Python docstring and stub, `docs/status.md`, `docs/evidence.md`, `docs/compatibility.md`, `docs/python.md`, `docs/release-1.0-criteria.md`, `README.md`, `docs/support-matrix.json` (`element-record-wall-centreline-bodies`), all saying Revit 2024 to 2027 for the walls. - `probes/examples/probe_1385_cut_partners.rs`, `probe_1385_wall_saved_mesh.rs` and `tools/re/wall_stub_bodies_vs_ifc.py`: the probes and scorer behind RE-340. `reports/element-framing/RE-340-embedded-wall-stubs.md`, a note in RE-335's status, `changelog.d/changed/1385-embed-host-bodies.md`. ## Testing Unit tests are banned in this repository; none added. - [ ] `tools/check-local.sh` is not run here (no local builds); `cargo fmt`, `python3 tools/release/changelog.py check`, `tools/ci/api-doc-ids.py` and `tools/ci/render-mcp-tools.py --check` pass locally and CI is the gate. - [x] Verified end to end on real Revit files (the BIM4LCA office as built and at building permit, Revit 2024, CC BY-SA 4.0; Core Interior; RE1 Architecture) against Revit's own exports, on the merged head with #1400's openings written. Measure [41973316830](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41973316830) (head 3ad0762, this branch with `main` at 61f2080 merged, against `main` at 61f2080; the height, top, quantity, layer, property, mesh and opening scorers), figures in RE-340 section 5: - **The 14 hosts Revit raises (6 as built, 8 at permit) have Revit's base again**, with 6 of 42 and 8 of 41 considered hosts drawn from their mesh: walls with base and top Revit's 598 to 604 of 607 as built and 577 to 585 of 589 at permit; `top Revit's, base not` 8 to 2 and 12 to 4 (the rest are Basement walls on footings, not hosts); - **#1400's void is present**: 2098938 and 2105250 as built carry it over the raised strip (`voids R1 U1`, Revit's 1); every opening scorer (`unfilled_openings_vs_ifc`, `openings_vs_ifc`, `opening_hosts_vs_ifc`, `opening_boxes_vs_ifc`, `opening_guids_vs_ifc`) and the quantity and property census are identical to `main`'s; - **No other row moves against `main`**: `wall_heights_vs_ifc` and `wall_quantities_vs_ifc` change 6 rows as built and 8 at permit, all hosts; 2103576 as built and 2177158 are unchanged; Core Interior and RE1 Architecture are identical, `ifc.sha256` included; - `Height` from rvt-rs's body equals Revit's on 578 of 579 walls as built (572 on `main`) and 565 of 565 at permit (557); `NetVolume` on 331 of 607 (325) and 292 of 589 (284); - the 14 meshes against Revit's bodies (`mesh_bodies_vs_ifc`, run 41945943795 at 847c373): 12 within 0.01% in volume with every vertex on the other's surface; the other two are 2177212 (as built and at permit), volume ratio 0.990, the strip 0.114 ft shorter than Revit's IFC draws it. The mesh equals Revit's own `NetVolume` and `GrossSideArea` of the wall (14.590083 against 14.590085 ft³ as built), so the 1.0% is Revit's IFC tessellation against Revit's quantities; the wall stays in the rule and its follow-up is the main session's to file. - [x] **GLB layers** (`wall_layers_vs_ifc`, same run, #1405 in `main`): as built, walls drawn in layers fall 602 to 596 (the six hosts have two or more layers and are drawn in one material; layer centres within 0.001 ft 583 of 598 to 577 of 592, the same 15 misses; colours 710 to 704); at permit 519 to 519, the one-layer hosts keeping their layer's colour through `one_layer_solid_meshes`. The IFC keeps every host's layer set. - [x] **Held-out, Revit 2025 and Einhoven on the merged head** (`-f holdout=true -f r2025=true -f models="holdout-* spent-* r2025-* einhoven"`, Measure [41973319628](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41973319628), head 3ad0762 against `main` at 61f2080): 44 models, 193 files, every one identical to `main`'s. **Autodesk's samples** (Measure [41973322205](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41973322205)): 58 samples of Revit 2015 to 2027, 526 files, identical but the export time and the new note on 16 samples (0 of 1 to 15 hosts drawn from a mesh; Snowdon Towers architectural 0 of 15). Whether a held-out model holds an embed host is not known from what is kept. - [x] Snowdon Towers architectural: Revit's own IFC4 export has one wall that starts 0.5 ft or more above its placement (1996153, a parapet cap, 1.9167 ft) and it is not one of the file's 17 walls that name an embed step (run 41952518382 at 4750acc), so none of its hosts is raised there. - [x] Exporter change: the witness verdicts' drift is checked by CI's `IfcOpenShell validates exports` and `Corpus health` jobs. No unfiltered Measure with every scorer on every model was run; that is for the main session before arming. ## Audit-honesty checklist - [x] Docs reflect the state after this PR (RE-340, `docs/support-matrix.json`, `docs/evidence.md`, `docs/compatibility.md`, `docs/python.md`, `docs/status.md`, `docs/release-1.0-criteria.md`, `README.md`). - [x] Changelog fragment under `changelog.d/changed/`. - [x] The limits are in RE-340 sections 5 to 7 and here: the 0.5 ft threshold was fitted and checked on the same two office files (113 host states, 10 distinct raised walls) and nothing outside them has tested it; an embed host with a door, window or other opening hosted in it, a base cut at a floor, a Tag shared with another entity or an embedded wall that is not a curtain wall keeps its body; Revit 2023 and earlier are not touched (their wall records give no embed step); walls Revit raises for another reason (footings) are not touched; the glTF draws the six multi-layer hosts as built in one material; 2177212's mesh is 1.0% under Revit's IFC body in volume at both dates; and `--no-saved-meshes` keeps the records. - [x] No emojis, no private paths. ## Breaking changes None. `SavedMeshReport` and `ExportNote` are `#[non_exhaustive]`; the first gains fields and the second its last two variants. ## Related issues Closes #1385. All three done-when items are met by this PR: a byte-level reading separates the two cases (the wall's saved mesh), the hosts Revit raises draw Revit's base, and 2103576 (as built) and 2177158 do not change.
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 was referenced Nov 5, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…and a profile-edited wall's end follows the walls its record joins (#1409, #1410, #1411) (RE-348) (RE-349) (#1470) ## Summary Two readers for one set of walls, in one PR (it holds #1469's commits; #1469 is closed unmerged): - RE-349 (#1411): a wall whose base join names a floor or footing that covers only part of its plan is cut at that element's top over the covered part and stands from its own base over the rest. - RE-348 (#1409, #1410): a profile-edited wall's end is drawn, at each height, to the face of the first wall its record joins there (`JoinEndGStep.m_realJoined`, in the record's order) that stands at that height, instead of to the wall beneath up to that wall's top. The labelled approximation of #1398 (`wall_end_to_base_wall_upper_step_omitted`) is retired. **What changes in the diagnostics.** Every export's `diagnostics.json` gains three counters, `exported.wall_end_sources`, `exported.wall_base_sources` and `exported.wall_ends_order_dependent` (zero or empty on all but the BIM4LCA office files). On the office as built, `wall_base_refusals` `no_element_covers_the_wall_plan` (2) and `wall_end_refusals` `base_not_cut_over_the_extended_plan` (2) go away, `wall_base_sources` is 4 level cuts, 10 sloped and 2 `_in_part`, `wall_end_sources` is 4 and `wall_ends_order_dependent` 4; at permit `wall_end_refusals` `wall_beneath_not_one_rectangle` (2) becomes `joined_wall_face_inside_the_wall` (2) and `wall_end_sources` is 4. The first unfiltered run (`e5ff94f4`) marked every refusal and put two on Autodesk's Snowdon Towers Architectural (`joined_walls_do_not_reach_the_wall_height`: 736143, which `main` already draws as Revit's export does, and 1996083, which it draws 1.03 ft short) and two on the office as built (`end_join_curve_not_at_the_box_end`: 2056705 and 2056770, the walls of #1474, whose bodies are centreline bodies with trims 0 so that no curve end lies at the end of the record box the rule starts from). A marker on a wall that already has Revit's end says the rule failed where nothing needed doing, so a wall now carries `BodyEndRefusal` only where the faces of the joined walls read before the refusal show its end short of or past them (`joined_wall_face_inside_the_wall` on the same two walls at permit qualifies); any other end the rule could not read is counted in `exported.wall_end_reads_unmarked` and the wall carries nothing. In the verdict run below (42119702779 on `2272c31c`) the hash of the Snowdon file does not move and both of its walls are counted with no marker, 1996083 among them: `main` draws it 1.03 ft short of Revit's local export and the faces read before the refusal show no offset, so the rule leaves a known-wrong wall with a count and no marker. **Why one PR.** Griffin's labelled approximation was approved for "this wall case only" (2057668 and 2057670). The base cut alone would carry RE-337's approximate end to 2058499 and 2058501 as well, four walls on the as-built office against two on `main`, until the order rule retired it. Landing them apart would extend that approval for no reason, and cost two unfiltered runs and two full CI rounds on stacked code. It is also one set of walls: 2058499 and 2058501 as built take Revit's end only with both. **The order rule rests on 4 walls in one project** (8 ends), and only the 4 as-built ends depend on the order at all: they give 3 pairwise orderings, which the rule was fitted to after about four alternatives had been tried; the permit ends would pass under any order. It is fail-closed: a wall whose join list does not fit keeps the end its record gives, with a counted `BodyEndRefusal` (an end whose record lists no wall is not read and carries no marker; one the record trimmed is counted when its list is not read or no curve end lies at the box's end). The base cut rests on 2 walls in one file. The rule is on its own release list (Revit 2024). **#1410's volume done-when is not met and is not loosened.** After this change the four walls' ends are Revit's at every height, and their volume is 0.209 ft3 over Revit's as built (0.207 at permit): all of it the far end's sloped top, which the profile line does not reach (#1473). The wedge is 0.2088 ft3 from the record's `GLine` and the box's top, and 0.2088 ft3 is what the scorer measures on each wall. So this PR is `Refs #1410`. ## Motivation #1411: the BIM4LCA office's Basement walls 2058499 and 2058501 as built stand past the edge of their footing (2058504); RE-337 kept their ends 0.31 ft short of Revit's because the longer plan would only have added uncut base. #1410: Revit steps the ends of 2057668 and 2057670 up the wall's height, and RE-337 omitted the second step. #1409: at building permit the wall beneath 2058499 and 2058501 (1347201) is drawn with a stepped profile, so RE-337 did not read its face. ## Changes - `src/ifc/export_content/wall_tops.rs`: `decide_base` takes an element that covers the plan in part (`covered_pieces`) only where none that covers the whole is eligible, `base_cut_piece` splits each convex, counter-clockwise piece of the wall into the part inside the covered pieces, cut at the element's top, and the rest from the wall's base; `read_end` reads an end over every height band from the plans of the walls its record joins (`followed_wall`, including the pieces of a wall whose top a floor cut in steps), `strips_of` draws it as the wall's plan to its top and one column from the base for each distance the end reaches beyond the next. - `src/research/native_walls.rs`, `src/research/partition_schema_mvp/walls.rs`, `fields.rs`: each wall's location curve (`VWallDriver.m_pCrv`) and `JoinEndGStep.m_realJoined` of each end, as fields. - `BodyBaseSource` `wall_base_cut_at_floor_covering_in_part` and `wall_base_sloped_at_floor_covering_in_part`, `BaseCoverRefusal` `partly_covered_plan_not_read` and `base_cut_solid_not_made` (a cut that resolves and whose solid cannot be made no longer leaves a silent prism); `BodyEndSource` `wall_end_stepped_to_joined_walls`; nine new `BodyEndRefusal` reasons, three of RE-337's kept, two gone (docs and schema updated). - Diagnostics: `exported.wall_end_sources`, `wall_base_sources` and `wall_ends_order_dependent` (the ends only the order decides), and `tools/re/wall_rule_counts.py`, which Measure runs for every model and `scrub-holdout-results.sh` keeps as `wall rules:` count lines, so held-out models report per-model counts. - `decide_base`: a wall whose base join names any element that covers the whole plan takes no partial cut, so no wall `main` cut or refused over a whole cover changes; `covered_pieces` refuses overlapping pieces. - Fail closed: a joined wall whose base join names elements is not read as standing from its base. - `tests/export_decisions_counts.rs`: the office as built no longer witnesses `wall_base_cut_refused` and `wall_end_extension_refused`. - `probes/examples/probe_1410_wall_end_steps.rs`, reports RE-348 and RE-349, `docs/format-reconnaissance.md` addenda, changelog fragments (`1410-...`, `1411-...`; `1396-...` rewritten, the approximation is gone from it) and the support matrix. ## Testing Unit tests are banned; measured end to end on Revit's own exports. - [x] Verified end to end on real Revit files (both BIM4LCA office files, CC BY-SA 4.0; scorers `wall_heights_vs_ifc`, `wall_quantities_vs_ifc`, `wall_top_cover_vs_ifc`, `wall_layers_vs_ifc`): the probe run 42096049754 at `a24305af`; Measure 42099826920 at `c413f382` (the base cut alone) against `main` at `44c055db` and 42101944733 at `006f5f98` (both) against `main` at `fb486064`. Reproduce: the commands in the reports. These runs predate the second reads' fixes (`decide_base`, `covered_pieces`, `base_cut_piece`, `subtract_convex`, the counters, the new reasons and the release list), which are meant to change nothing the four walls take; the unfiltered run on the final head is the verdict. - Office as built: of 607 walls, 4 bodies change (2057668, 2057670, 2058499, 2058501); at permit, those four are the only bodies that change, and 2056705 and 2056770 (same bodies) gain `BodyEndRefusal` `joined_wall_face_inside_the_wall`: Revit cuts their end back above 182.087 ft and the rule only adds, so this is an existing error of `main`'s, named now (their as-built siblings, 15 of 100 points taller on `main` too with no marker, are #1474). - The four walls have Revit's lowest point on both files (2058499 and 2058501 as built keep 174.2126 ft; at permit they go from 0.0439 ft above Revit's to Revit's; walls with Revit's base and top at permit 587 to 589 of 589), Revit's end at every height, and no point of their plan above Revit's top. - Unfiltered run 42111477633 on `e5ff94f4` against `main` (`base=main nordic=true r2025=true samples=true holdout=true`, no other filter; 111 exports, 18 of them held-out): `ifc.sha256` moved on 3 models only, the two office files and Autodesk's Snowdon Towers Architectural; Core Interior (wall 55840 included), Einhoven, RE1, the 24 R2025 models, the other 57 samples and all 18 held-out models are byte-identical. **Only the two office files take either rule** (`wall_end_stepped_to_joined_walls` 4 as built and 4 at permit, `*_in_part` 2 as built); no wall of the other 109 models does, so the green `same-project gates` (success on the head: 9 samples held to their earlier saves and the Areas on 4 saves) says nothing about these rules. Schema: `validate` and EXPRESS `rules` findings 0 on both office files and Core Interior, head and base (the new Compound bodies are in the as-built file). Corpus health (witness replay, project counts), `IfcOpenShell validates exports` and `semver checks` pass on the head. Export time summed over 93 exports 432 s head against 449 s base; 100 job-minutes. The marker policy above came after that run. Its verdict run, 42119702779 on `2272c31c` (`base=main nordic=true samples=true`, no `ifc_flags`, 68 exports), moved `ifc.sha256` on the two office files only (Snowdon's does not move), and its `same-project gates` check run is success (9 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save). `exported.wall_end_reads_unmarked` holds `end_join_curve_not_at_the_box_end` 2 on the office as built (2056705 and 2056770) and `joined_walls_do_not_reach_the_wall_height` 2 on Snowdon Towers Architectural, none on any other of the 68; the office at permit keeps its 2 marked `joined_wall_face_inside_the_wall`. No unfiltered repeat was run, and the Revit 2025 and held-out exports are not measured on this head: none had a refusal or a count at `e5ff94f4`, and the policy acts only on a refusal. - Not exercised by any measured wall: every `BodyEndRefusal` reason but `joined_wall_face_inside_the_wall`, the high end of a wall, walls along x, the level top of a partial cover, a partially covered wall with no end extension, a clockwise or concave ring. ## Audit-honesty checklist - [x] README / docs reflect the current state; `wall_end_to_base_wall_upper_step_omitted` no longer appears in the matrix, the diagnostics reference or schema, or the changelog's rule description (it is named in the retirement note and in the RE-337 and RE-349 reports as history) - [x] User-visible changes have fragments under `changelog.d/fixed/` - [x] New limitations are documented in the PR body, the reports and in code (the four walls' 0.209 ft3 is #1473) - [x] No emojis, no private paths - [x] Reverse-engineering finding: probe under `probes/examples/`, reports RE-348 and RE-349, addenda in `docs/format-reconnaissance.md` ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk proprietary source (clean-room: public bytes of the record and Revit's exported IFC bodies only) ## Breaking changes Against `main` only, not against any release: this removes the public constants `WALL_END_AT_BASE_WALL_BODY_END_SOURCE` and `WALL_END_UPPER_STEP_OMITTED_BODY_END_SOURCE` and replaces the `BodyEndSource` values they hold, and the `BodyEndRefusal` reasons `wall_beneath_not_one_rectangle` and `walls_beneath_reach_the_end_at_different_faces`. All of them came in with #1398 (`b510ff3c`), which no release contains (`git tag --contains b510ff3` is empty; v0.15.0 predates it), so no released API or output changes. The `semver checks` job compares with `main` and accepts only an announcement, so the footer below is for it, not a break of a release: BREAKING CHANGE: removes WALL_END_AT_BASE_WALL_BODY_END_SOURCE and WALL_END_UPPER_STEP_OMITTED_BODY_END_SOURCE, unreleased constants added by #1398; no release has them. ## Related issues Closes #1409. Closes #1411. Refs #1410 (volume done-when not met, #1473). Replaces #1469.
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
This ships as a labelled approximation (Griffin, 2026-11-05 at about 12:30 AM EST, answering a question asked with the question tool: ship it, labelled). Revit steps the end up past the wall beneath, by a join order that is not read, and the steps above the block are not drawn. A wall whose block stops below its top carries
BodyEndSourcewall_end_to_base_wall_upper_step_omitted(2 walls on each office file, 2057668 and 2057670, run 41980282001);wall_end_extended_to_base_wallis kept for a block that reaches the wall's full height, which no measured wall does.A wall with an edited elevation profile that is a plain rectangle along a model axis and is drawn from its record box now has an end drawn to the face of the perpendicular wall beneath it that holds its base, where the record box's end (before the join trim) lies inside that wall and the cut of the wall's base still resolves over the longer plan. The added end is a block drawn up to the lowest of the top of the wall it reaches, the base of any other wall the pass reads that it would lie inside, and the wall's own top; the wall's profile openings stay where they were. Walls 2057668 and 2057670 of the BIM4LCA office have Revit's lowest point as built and at building permit, and no wall has more points above Revit's top in the plan rows than on
main. No other wall of either office file, Core Interior, RE1 Architecture, the 24 R2025 models, the 58 Autodesk sample projects or the 25 held-out models changes. A wall that keeps an end the rule would have drawn carriesBodyEndRefusal, counted inexported.wall_end_refusals. Report: RE-337.Motivation
#1396: after RE-336 the Basement walls 2057668 and 2057670 (and 2058499 and 2058501 at permit) were 0.123 ft (0.044 ft) off Revit's lowest point because their plans end short of Revit's at the low end of the footing. The record's join trims the end to the face of a Level_01 wall that overlaps the wall by 0.66 ft of 9.5, while Revit's body at the base runs on to the face of the Basement wall beneath (
JoinEndGStep.m_geomJoined), which the record box's end lies inside, and steps up the height to the faces of the walls above. Each of these walls has an edited elevation profile, which separates them from the other ends a join trim moves: a rule on the join alone moved 25 Autodesk sample projects, a held-out model and one more office wall.Changes
src/ifc/export_content/wall_tops.rs:extend_wall_ends,decide_ends,axis_wall,stepped_top_wall,profiled_wall,join_trims,SteppedPlan,finish_wall_endsand helpers. The pass runs after the tops are cut and before the bases are, returns early when no wall has a profile opening, and reads the model once. It tries the ends of each candidate on a copy, asks RE-336'sdecide_baseagain for a wall whose base join names elements (and makes the solid with the blocks, refusing if any piece is dropped or any piece has no height above the base), and moves nothing if the base is no longer cut. It moves the ends, moves the wall's profile openings back by the shift of the origin, writesBodyEndSource(wall_end_to_base_wall_upper_step_omittedwhere a block stops below the wall's top,wall_end_extended_to_base_wallwhere every block reaches it) andEndCoverElementId, or oneBodyEndRefusal(walls_beneath_reach_the_end_at_different_faces,base_cut_lost_on_extended_plan,base_not_cut_over_the_extended_plan,wall_beneath_not_one_rectangle,wall_stands_in_the_added_end). The base pass takes the pieces (the wall's plan and a block for each end, each to its own top); a wall with no base cut is made byfinish_wall_ends, whose first item is the whole plan so the glTF keeps its layers.src/ifc/export_content.rs: the property names and values, the order of the passes andfinish_wall_ends.src/ifc/wall_cut_openings.rs:BodyEndSourcecounts as a stepped body, so RE-321 openings still attach (it applies alongside feat(ifc)!: write the openings a cabinet and a door cut in a wall, and a curtain wall's where nothing trims it (#1165) (RE-338) #1400's rewrittenhost_of).src/ifc/mod.rs,src/ifc/export_decisions.rs:exported.wall_end_refusalsand the decisionwall_end_extension_refused(stagebody_left_as_box), as forwall_base_refusals;tests/export_decisions_counts.rscounts them against each other and names the reason for the as-built office.docs/export-diagnostics.md,docs/schemas/export-diagnostics.schema.json,docs/mcp.md, and the reason lists in the descriptions ofrvt-mcp/src/schema.rsandrvt-mcp/src/server.rs(the contract is synced on the branch).docs/support-matrix.json,docs/contribution-map.md,docs/format-reconnaissance.md, the RE-336 report, and a changelog fragment for Walls end short of Revit's at the low end of a sloped footing (BIM4LCA office Basement, RE-336) #1396 that also corrects 0.15.0's Footings Revit draws sloped: the BIM4LCA office's Basement walls stand on footings rvt-rs draws as their boxes (RE-335) #1384 entry (its "other 2 (4) are off" sentence); the release deleted the Footings Revit draws sloped: the BIM4LCA office's Basement walls stand on footings rvt-rs draws as their boxes (RE-335) #1384 fragment, so this branch deletes it too.Testing
No unit tests (banned). Measure at head
1b3a6bd7againstmainatb36477f1(which includes #1401, RE-340), commands in RE-337 section 4:41980282001: both offices, Core Interior, RE1 Architecture,
wall_heights_vs_ifc,wall_top_cover_vs_ifc,wall_quantities_vs_ifc,wall_layers_vs_ifc,qtos_vs_ifc,unfilled_openings_vs_ifc,keep_ifc.wall_end_to_base_wall_upper_step_omittedon 2057668 and 2057670, as built and at permit;wall_end_extended_to_base_wallon none. It kept the ends of 2 as built (2058499, 2058501:base_not_cut_over_the_extended_plan) and 2 at permit (the same:wall_beneath_not_one_rectangle).exported.wall_end_refusalsis{"base_not_cut_over_the_extended_plan": 2}as built,{"wall_beneath_not_one_rectangle": 2}at permit, empty on Core Interior and RE1 Architecture, which are byte-identical (sha256).mainwith feat(ifc): a wall that embeds a curtain wall is drawn from its saved mesh where Revit raised its base (#1385) (RE-340) #1401: walls with base and top Revit's 604 to 606 of 607 as built and 585 to 587 of 589 at permit; walls with the top Revit's and the base not 2 to 0 as built and 4 to 2 at permit; misses in the same storey 3 to 1 as built and 4 to 2 at permit. 2057668 and 2057670 go from 0.1230 ft (0.0439 ft at permit) off Revit's lowest point to Revit's; no other wall's lowest or highest point changes. Of the scorers run, onlywall_heights_vs_ifc,wall_quantities_vs_ifcandwall_top_cover_vs_ifcchange.tallerpoints than onmainin the plan rows ofwall_top_cover_vs_ifc, on either file. 2057668 as built:equal 85 taller 10 lower 0of 95 toequal 85 taller 10 lower 5of 100 (the five are where Revit goes on to 182.087 ft and the block stops at 179.2979 ft); 2057670: toequal 90 taller 10 lower 0of 100 (Revit's 179.2979 ft); at permit both areequal 80 taller 10 lower 0of 90, as onmain. (The block to the top of the wall beneath,1b417c45, made 2057670taller 15: Revit's end there follows the wall in front of it from 179.2979 ft, which is the stop now.)mainmasked.main's 0.3363 ft2 on both walls and files; that metric counts only the faces at the wall's full height, so it says nothing of the added end, which is below it. The far-end tab is 0.4101 ft wide, as onmain.wall_layers_vs_ifc,qtos_vs_ifcandunfilled_openings_vs_ifcoutput is identical tomain's on all four models. 2058499 and 2058501 as built are whatmainwrites (volume, height, plan, lowest point, base). The IFC of each office differs frommain's (entity numbers and timestamp taken out) in the bodies of the two walls that take the end, the outlines of their profile openings and the property sets of the four walls above, and nothing else.decoded.parameter_value_countequalsmain's (54,952 as built, 55,145 at permit): the markers are inRvtElementRecordGeometry, not aPset_set. The scorer's fit moves the "taller" and "lower" areas of other walls by at most 0.0578 ft2 (54 walls as built) and 0.0188 ft2 (50 at permit), with the walls themselves unchanged.41980285452 (
-f r2025=true -f samples=true -f scorers=wall_heights_vs_ifc, my own run at1b3a6bd7againstmainatb36477f1): it exported and hashed 88 models (the 24 R2025 models, 58 Autodesk sample projects, Einhoven, Core Interior and the four RE1 models), and the IFC sha256 is identical tomainon all 88.wall_heights_vs_ifcwas scored on the 29 that have a Revit IFC4 export (the 24 R2025 models, Core Interior and the four RE1 models) and its output is identical tomain's on all 29; the 58 sample projects and Einhoven have no export to score against, so their hash is the whole measurement.41980288900: held-out, counts only, at
1b3a6bd7: 25 models, identical tomainon all.The same two comparisons at
b47a9a00before feat(ifc): a wall that embeds a curtain wall is drawn from its saved mesh where Revit raised its base (#1385) (RE-340) #1401 was merged, 41978482673 (88 models) and 41978485557 (25 held-out), are identical too.41982867204: the final, unfiltered run, on this pull request's head
96baaafeagainstmainat40b86b80(-f base=main -f nordic=true -f r2025=true -f holdout=true, every default scorer): 53 models, 51 byte-identical, all 18 held-out models among them; only the two office files differ.wall_heights_vs_ifcreads as above (base and top Revit's 604 to 606 of 607 as built, 585 to 587 of 589 at permit). This run also scores the wall ends, which the runs above did not: both ends within 0.001 ft go from 512 to 514 of 607 as built and from 435 to 437 of 589 at permit, inwall_bodies_vs_ifc,wall_ends_cv_vs_ifcandwall_ends_list, each file onestart shortand oneend shortwall tookand no wall worse. No other scorer output moves. The MCP server's answers equal the export: 900 consistency lines, 0 differ.Head and merges: the measured head is
1b3a6bd7, which mergesmain(v0.15.0, #1400, #1412, #1416, #1401). The merge ofmainafter it (#1420, the 0.15.0 post-release docs) changes documents only: it conflicted with this branch indocs/contribution-map.mdalone, resolved by keeping this branch's #1384 row and main's #1335 row (which replaces the #1237 row), and changes no figure here. An earlier merge,8e0aa535, touched three workflow files and no Rust. A final unfiltered Measure of the pushed head96baaafe(-f base=main -f nordic=true -f r2025=true -f holdout=true) is 41982867204, registered with the watcher and not read when this was written.Measured limits, all in RE-337 section 5:
Revit's end steps up and follows a wall at each height by a join order that is not read, so the added end is a bound by the geometry the pass reads, and "no wall is drawn above Revit's at an added end" is a measured result on the four walls, not a derived one. The steps above the block are not drawn; 2057668 as built goes five points under Revit's.
Walls 2058499 and 2058501 as built keep their ends 0.31 ft short of Revit's: no footing covers the longer plan and their base is not cut (before and after). A footing that covers a wall's plan in part is the follow-up.
Walls 2058499 and 2058501 at permit are not reached: the wall beneath them is drawn with a stepped profile, so they stay 0.0439 ft off; the skip is counted.
No measured wall exercises: a stepped-top wall beneath whose lowest underside is at or below the candidate's base (its higher pieces are not checked against the block); two candidates at one corner; a candidate with no base join; the
BodyEndSourcearm ofis_steppedinwall_cut_openings.rs, which onlyfinish_wall_endsreaches; the refusal reasonsbase_cut_lost_on_extended_plan,walls_beneath_reach_the_end_at_different_facesandwall_stands_in_the_added_end;finish_wall_ends(a wall with no base cut); the Level branch of the blocks; the high end of a wall; walls along x; an end reaching the wall's full height (and so the valuewall_end_extended_to_base_wall); the plane-offset term of the opening shift. Nor does a beneath wall whose top a floor cut in steps over only part of its plan (the block stops at the lowest underside, 180.6102 ft for 1493966, where Revit's step at permit is 182.087 ft), a beneath wall drawn as another kind of solid is neither reached nor refused (an uncounted skip), and a wall standing in the added end that the pass does not read (turned off a quarter turn, or a solid of another kind) does not stop the block.A wall with one end drawn and the other kept carries
BodyEndSourceandBodyEndRefusalboth;JoinTrimStartandJoinTrimEndstay the record's onceBodyEndSourceis set (documented indocs/export-diagnostics.md).Earlier heads are not evidence for the rule: the full prism with the slid openings (
33529d0b), the block to the wall beneath's top (1b417c45, 2057670 over-drawn), the block stopped below walls in its way with the pass moved after the tops (74f5ee37, Measure 41964576550, which lost the permit refusals of 2058499 and 2058501 because a wall beneath with a stepped top and a profile of its own was not read; fixed in0f80699b), the rule without the join-trim condition (Measure 41944433297, which moved a Snowdon Towers soffit wall to 0.1016 m longer than Revit's export, local only) and the rule that also drew 2058499 and 2058501 as built (Measure 41947542271, their volume 4.5 to 6.9 ft3 over Revit's).tools/check-local.shpasses: not run locally (no local builds); CI is the gateVerified end to end on real Revit files: the BIM4LCA office as built and at permit (Revit 24.0.5 IFC4 exports, CC BY-SA 4.0), against Revit's own export, with the commands and the scorers in RE-337
IFC exporter touched: Core Interior's IFC is byte-identical to
main, so the witness observations do not movePerformance change: N/A
Audit-honesty checklist
changelog.d/fixed/extend_wall_endsdoc commentprobe_1067_native_dump(itsJoinEndGStepandGLinelines)Legal and contribution hygiene
Breaking changes
None. Two new element-record properties on the two office walls above,
BodyEndSourcewith the new labelled valuewall_end_to_base_wall_upper_step_omitted(andwall_end_extended_to_base_wall, which no measured wall carries) andEndCoverElementId, andBodyEndRefusalon two more at each office file; a new fieldexported.wall_end_refusals(default empty) and a new decision reasonwall_end_extension_refused; two MCP tool descriptions list it (contract synced).Screenshots or output samples
RE-337 section 5.
Related issues
Refs #1396. The done-when is met for 2057668 and 2057670 on both files and for no other wall's length or base moving; it is not met for 2058499 and 2058501 at permit.