Skip to content

fix(elements): a floor's void is tagged with the highest ElementId of its sketch lines where they run clockwise (#1165) (RE-339) - #1402

Merged
DrunkOnJava merged 13 commits into
mainfrom
feat/1165-void-tags
Nov 5, 2026
Merged

DrunkOnJava merged 13 commits into
mainfrom
feat/1165-void-tags

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

A floor's void is tagged with the highest ElementId of its sketch lines where at least three straight lines, each on an edge of its own, step exactly one edge clockwise all the way round the loop in ElementId order (the closing step included), and with the lowest everywhere else (RE-151's rule, which is Revit's on all 62 floor and shading-device voids of Core Interior). Report: RE-339.

Motivation

#1165: on the BIM4LCA office the lowest-id rule is Revit's on 27 of 36 voids as built and 27 of 35 at permit; the others are written under another line's Tag, so they are extras and Revit's tags are missed. On 8 and 7 of them Revit's tag is the highest id, where the lines run clockwise in id order (what 8 voids of one exporter show; why is not read).

Changes

  • src/research/element_record_plan_profiles.rs: tag_voids takes each line's straightness and void_tag reads the direction only where the loop has at least 3 straight lines on 3 distinct edges, every step (the closing one too) exactly the next edge or exactly the previous one; void_tag is a pure function with failure-first unit tests (fewer lines, a curve, a closing step that disagrees, two lines on one edge, a step over an edge, both windings).
  • src/research/partition_schema_mvp/slabs.rs: the exact sketch's lines carry whether each is an arc.
  • probes/examples/probe_1165_void_tags.rs: the probe that reads the sketch groups' line indexes.
  • reports/element-framing/RE-339-void-tags.md, changelog.d/fixed/1165-void-tags.md, docs/format-reconnaissance.md (addendum), docs/release-1.0-criteria.md (the census sentences), reports/element-framing/RE-321-unfilled-openings.md (a stale count).

Testing

Unit tests are banned except for pure helpers (the shared operator policy, 2026-11-04): the only ones are for void_tag, which does no I/O. The change is measured end to end below.

  • tools/check-local.sh passes: not run locally (no local builds). CI on this PR's head is the gate.
  • Verified end to end on real Revit files, against Revit's own IFC4 exports of the BIM4LCA office (CC BY-SA 4.0): Measure 41953415257 (head e8ef33d, base main at 77d71cb; both offices, Core Interior, RE1 Architecture; scorers unfilled_openings_vs_ifc, psets_vs_ifc, qtos_vs_ifc) and 41953418616 (the 19 held-out and spent models, counts only). The probe run is 41943115366 at c2afe0c. Reproduction: RE-339 section 5.
  • Witness verdicts: Core Interior's and RE1 Architecture's exports are byte-identical to main's (ifc.sha256), so no observation moves.
  • Not a performance change: the direction is read from the lines already collected for each void.

Measured:

office as built office at permit
floor voids in Revit's export 36 35
written with Revit's tag, box within 0.01 ft, name, type and Reference equal (main in brackets) 35 (27) 34 (27)
written under another line's Tag (main) 1 (9) 1 (8)
values rvt-rs writes that Revit's export does not (main) 2 (10) 9 (16)

The one left on each file is 3147725, a loop of 6 lines with a notch drawn later (#1408). The 8 voids as built and 7 at permit whose tag changes get new GlobalIds (rvt-rs's own, derived from the tag, not Revit's hash). Core Interior, RE1 Architecture and all 19 held-out and spent models are byte-identical to main's, so the clockwise case rests on the office's 8 and 7 voids alone. Not measured: Autodesk's samples and the 24 R2025 models (the unfiltered run is the main session's).

Audit-honesty checklist

  • README / docs reflect the state after this PR: RE-339, docs/format-reconnaissance.md, docs/release-1.0-criteria.md.
  • The user-visible change has its fragment, changelog.d/fixed/1165-void-tags.md.
  • The limitations are in RE-339 sections 1 and 3: the clockwise rule rests on one exporter's 8 voids; a loop with a curve keeps the lowest id; a loop whose lines were not drawn in order round it keeps the lowest id and one such void (3147725) is wrong (Floor void 3147725: the tag of a loop with a notch drawn later (RE-339 follow-up) #1408); the sketch line index is taken to follow the ElementId.
  • Commit messages say what and why; no emojis, no private paths.
  • A reverse-engineering finding: the probe is probes/examples/probe_1165_void_tags.rs and the addendum is in docs/format-reconnaissance.md.

Legal and contribution hygiene

  • Apache-2.0.
  • Clean-room declaration: the changes in this PR are based on public byte observations of the BIM4LCA office (CC BY-SA 4.0), whose native records the probe reads, and on Revit's IFC4 exports of it. I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc.
  • No fixtures added.

Breaking changes

None. tag_voids is in rvt::research (behind unstable-research); it takes one more value per line.

Related issues

Refs #1165. Follow-up for the one void left wrong: #1408.

… starts at once counter-clockwise, the highest ElementId where the lines run clockwise (#1165) (RE-339)

RE-151 tagged each void with the lowest ElementId of the sketch lines on its loop, which is Revit's on 27 of the 36 voids of the office as built. On the others Revit's export starts the loop at the line drawn last: the lines in ElementId order run clockwise there. A void whose lines do not step round the loop the same way is left untagged.
…the lowest ElementId, as all 62 of Core Interior's do (#1165) (RE-339)

The first form refused a void whose lines did not step once round it in ElementId order, which left 20 of Core Interior's 62 voids unwritten. Only lines that step the same way, all the way round, clockwise, now take the highest id; anything else keeps RE-151's rule.
@DrunkOnJava DrunkOnJava changed the title fix(elements): a floor's void is tagged with the sketch line its loop starts at once counter-clockwise (#1165) (RE-339) fix(elements): a floor's void is tagged with the highest ElementId of its sketch lines where they run clockwise (#1165) (RE-339) Nov 5, 2026
@DrunkOnJava DrunkOnJava added area:elements Work in the elements area. type:bug Correctness defect or regression. ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes labels Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 01:40
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
… wall's height, a curtain wall whose record copies disagree and a symbol that cuts disjoint solids; compute the door cuts once (#1165) (RE-338)

Review of #1400: only m_bCutSomething 1 is measured for a cabinet; a box above or below its wall is not Revit's opening; frame_boxes now returns every copy of a record and a curtain wall's copies must agree to 0.01 ft; the door opening cuts the writer uses are the ones the opening writer used. The void-tag probe belongs to #1402 and leaves this branch; probe_re338_sibling_records digests the records behind each wall cut in the two office files.
…ht lines, each on an edge of its own and stepping exactly one edge, closing step included (#1165) (RE-339)

Review of #1402: the direction was read from any step under half the ring and the closing step was never checked, and every line read was a GLine. A loop with a curve, fewer than three lines, two lines on one edge or a step that is not exactly the next or previous edge keeps the lowest id. void_tag is a pure helper and has failure-first tests.
@DrunkOnJava DrunkOnJava added ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes and removed ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes labels Nov 5, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 5, 2026 03:21
@DrunkOnJava
DrunkOnJava merged commit 9bb0984 into main Nov 5, 2026
33 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1165-void-tags branch November 5, 2026 03:39
DrunkOnJava added a commit that referenced this pull request 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
…d a curtain wall's where nothing trims it (#1165) (RE-338) (#1400)

## Summary

Writes the `IfcOpeningElement`s that Revit's export holds for a fire
hose cabinet, for a door in a second wall that runs across the door's
wall, and for a curtain wall where nothing trims its box, from the
native records of the walls they cut. Every step of a wall's record that
names one of these cutters and is not written is counted by reason in
`exported.wall_cut_openings_left_out`, and the counts close. Report:
RE-338.

## Motivation

#1165: on the BIM4LCA office as built Revit's export holds 220 unfilled
openings and `main` writes 75. Measure 41952363750 (head 04f60dd, base
`main` at 77d71cb), box within 0.01 ft and GlobalId, name, type and
both `Reference`s equal on every opening written, none wrong:

| kind | Revit's, as built / permit | written | counted, not written |
|---|---:|---:|---|
| fire hose cabinet | 39 / 38 | 39 / 38 | none |
| door in a second wall | 39 / 43 | 25 / 33 | wall along the door's wall
9 / 9; door box not read 1 / 1; own-cut step in a wall it is not hosted
in 4 / 0; shadow cutout 1 / 0 |
| curtain wall | 70 / 72 | 27 / 13 | within half a foot of the wall's
end 41 / 30; another wall beside the box 2 / 1; record copies disagree 0
/ 27; shadow cutout 1 / 1 |

Unfilled openings written go 75 to 169 as built and 69 to 156 at permit;
the census gains 182 equal property values and 198 equal quantities as
built (Measure 41959375917, head f54b619, the census keyed by wall;
`main` re-scored the same way). Core Interior (63 of 63) and RE1
Architecture are as `main` writes them, with
`wall_cut_openings_left_out` empty. Of the 31 files of Measure
41952392277 (head 04f60dd; Autodesk's 2024 to 2027 samples and the
reference models) all but `rac_basic` 2024 and 2025 are byte-identical
to `main`'s, and those two gain one opening each; the export of
`rme_advanced` 2024, the largest MEP sample, takes 9,781 ms against
9,667 (peak 574 against 573 MiB) with every wall's record now read for
its steps. The 19 held-out and spent models are byte-identical (Measure
41954664033, head 17623bf, the same code).

The thresholds (half a foot inside a wall's ends and the neighbour test
for a curtain wall, a quarter foot of reach and a slenderness of 2 for a
door, 0.05 ft of height, 0.01 ft between record copies) were fitted and
checked on the office pair alone. The held-out and reference models
exercise none of them.

**Decided by the maintainer, 2026-11-04 (about 10:30 PM EST,
AskUserQuestion): "Write them, count apart".** Six openings are written
that Revit's export of the same file lacks and its export of the other
office file holds (as built two curtain walls, 1815871 and 1892067, and
a cabinet, 3388647; at permit two cabinets, 3387194 and 3390319, and a
door, 1728679). They are counted apart as a pair inconsistency by a
generic rule with no ids: an unfilled opening this file's export lacks
that its sibling file's export has. `unfilled_openings_vs_ifc.py` counts
them on their own line, neither as extras nor as matches, and
`psets_vs_ifc.py` now counts their property values on a line of their
own (6 values on 3 openings as built, 8 on 4 at permit with RE-321's),
not as values Revit does not write and not as matches; it keys an
unfilled opening by its Tag and its wall. This **differs from the
2026-11-03 case** (RE-321 section 4): the records behind these six are
not byte for byte the other file's (Measure 41955022785, head c0c3e0c,
RE-338 section 6). The steps' fields are identical but for a stream
offset on all six; the cutter's record is identical on four; the host
wall's record on none (the walls' join steps and geometry history
differ; over the 994 pairs both files hold it is identical on 110).
rvt-rs's box is Revit's box in the sibling export to 0.000 ft on the
four whose cutter is identical (the curtain walls 1815871 and 1892067,
the cabinets 3387194 and 3390319) and 0.655 and 0.130 ft off on the
cabinet 3388647 and the door 1728679, whose cutters moved 0.220 and
0.048 ft between the saves.

## Changes

- `src/research/native_wall_cuts.rs`: the step's `m_bCutSomething`;
`frame_boxes` returns every copy of a record's box; `instance_cut_boxes`
(a cabinet's cut box, refused for a symbol that cuts disjoint solids).
- `src/ifc/wall_cut_openings.rs`: the cabinet (`m_bCutSomething` 1
only), door and curtain-wall rules, the refusal of a box outside its
wall's height, and the reason of every step not written; the door boxes
are the ones `opening_cuts_through_hosts` computes once for the exporter
and the opening writer (`ifc/mod.rs`).
- `src/ifc/entities.rs`, `step_writer.rs`, `mod.rs`: `WallCutOpening`
takes the cutter whose type name is the `Reference`, `RECESS` and
whether the quantities are written;
`IfcModel::wall_cut_openings_left_out` and
`exported.wall_cut_openings_left_out`. Aggregate-only: the counts are
not backed by per-step entries in the `--export-decisions` log (#1326);
that is a follow-up.
- `tools/re/psets_vs_ifc.py`, `ifc_common.py`,
`unfilled_openings_vs_ifc.py`: the property census counts the
sibling-only openings' values apart and keys an unfilled opening by its
Tag and its wall (`siblings` moves to `ifc_common`).
- `probes/examples/probe_re338_sibling_records.rs` (the records of the
six openings); the void-tag probe belongs to #1402 and is not in this
PR.
- `docs/export-diagnostics.md`,
`docs/schemas/export-diagnostics.schema.json`,
`docs/release-1.0-criteria.md`, `docs/contribution-map.md`,
`docs/format-reconnaissance.md` (addendum),
`reports/element-framing/RE-338-wall-cut-openings.md`,
`changelog.d/added/1165-wall-cut-openings.md`.

## Testing

No unit tests (banned). Measured on real files against Revit's own IFC4
exports of the BIM4LCA office (CC BY-SA 4.0); reproduction in RE-338
section 7.

- [ ] `tools/check-local.sh` passes: not run locally (no local builds).
CI on this PR's head is the gate.
- [x] Verified end to end on real Revit files. Measure runs:
[41952363750](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41952363750)
(both offices, Core Interior, RE1 Architecture;
`unfilled_openings_vs_ifc`, `psets_vs_ifc`, `qtos_vs_ifc`),
[41952392277](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41952392277)
(samples and timing),
[41954664033](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41954664033)
(19 held-out models, counts only),
[41955022785](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41955022785)
(the records of the six openings),
[41959375917](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41959375917)
(the census with the sibling rule, head f54b619, scorers from the
branch). Earlier heads: 41946182305 (17966cb), 41947438218 (51db798,
doors only where the box overlapped, superseded), 41949923936
(0bf87c7), 41950674065 (c2033d2); the figures above are the last
head's, and 41950674065 had 16 curtain walls and 159 and 139 openings at
permit before the record copies were compared. The unfiltered run is the
main session's.
- [x] Witness verdicts: Core Interior's and RE1 Architecture's exports
are byte-identical to `main`'s, so no observation moves.
- [x] Performance: measured on the samples above (head over base 0.99 to
1.03 in time, 0.97 to 1.01 in peak memory over 31 files).

## Audit-honesty checklist

- [x] README / docs reflect the state after this PR: RE-338,
`docs/release-1.0-criteria.md` (the census sentences and the
contradictory lines at 114, 161 and 192 to 197),
`docs/contribution-map.md`, `docs/format-reconnaissance.md`,
`docs/export-diagnostics.md`.
- [x] The user-visible change has its fragment,
`changelog.d/added/1165-wall-cut-openings.md`.
- [x] The limitations are in RE-338 sections 5 and 6: the doors that cut
a wall along their own, the curtain walls near a wall's end or beside
another wall or with disagreeing copies, the door in a door and the wall
in a wall are not written; the thresholds rest on the office pair; the
six sibling-only openings are written by the maintainer's decision.
- [x] Commit messages say what and why; no emojis, no private paths.
- [x] A reverse-engineering finding: the probe is in `probes/examples/`
and the addendum in `docs/format-reconnaissance.md`.

## Legal and contribution hygiene

- [x] Apache-2.0.
- [x] Clean-room declaration: the changes in this PR are based on public
byte observations of the BIM4LCA office (CC BY-SA 4.0), whose native
records the probe and the writer read, on Revit's IFC4 exports of it,
and on the public structure of revit-ifc's opening numbering
(CLEANROOM.md source 5), none of whose code is copied or translated. I
have not used Autodesk SDK source, ODA SDK source, leaked internal
documentation, NDA material, or decompiled internal Revit implementation
code beyond public symbol exports.
- [x] No fixtures added.

## Breaking changes

`IfcModel` gains the public field `wall_cut_openings_left_out`, so
struct literals must add it (`wall_cut_openings_left_out:
Default::default()`). `IfcEntity::WallCutOpening` gains
`reference_from`, `recess` and `quantities`; the variant is 0.14.0's and
nothing outside the writer builds it. `native_wall_cuts::frame_boxes`
(behind `unstable-research`) returns every copy of a record's box.

BREAKING CHANGE: `IfcModel` gains the public field
`wall_cut_openings_left_out`, and `IfcEntity::WallCutOpening` the fields
`reference_from`, `recess` and `quantities`.

## Related issues

Refs #1165.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant