Skip to content

feat(ifc): an element still drawn as its record's box says why its saved mesh was not used, on the element and counted in the diagnostics (#1645) - #1647

Merged
DrunkOnJava merged 4 commits into
mainfrom
feat/saved-mesh-refusals
Nov 11, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
feat/saved-mesh-refusals

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

An element that is still its record's box after the saved-mesh pass (Revit 2023 to 2027) now says why. Each such box has a SavedMeshRefusal property in its RvtElementRecordGeometry set: no_saved_graphics, no_saved_mesh, no_triangles, element_id_shared, or partial: and the decoder diagnostics that left its mesh partial (digits written as #, so two elements with one fault say it alike). The diagnostics count them by reason in exported.saved_mesh_refusals, and rvt-ifc --export-decisions and the MCP server's explain_element name each one as saved_mesh_not_used. No body is drawn differently: on the unfiltered Measure 48 of 107 exports move, by the property alone, and no body scorer output changes.

Motivation

#1645: why each element stays a box needed a research probe run per model (probe_1645_box_reasons_by_class). With the property, rvt-ifc --diagnostics on a user's own file says which saved graphics do not decode yet, which is what the reporter of #1247 was asked to count, and Measure's census can count the reasons by class. On the BIM4LCA office as built it reads, for example: 43 partial: nonrectangular parametric trim, 30 partial: multiple cylinder trim loops unsupported, 24 partial: shared curved edge is not an isoparametric interval, 19 partial: unsupported parametric profile curve GHermiteSpline, 10 partial: scaled instance mode is not qualified.

Changes

  • src/ifc/saved_meshes.rs: the pass records why each candidate keeps its box (partial_refusal, diagnostic_kind, note_refusal): no graphics in the scene for it, a Tag several entities carry, no surface, no triangle, or a partial decode.
  • src/ifc/export_content.rs: the property name and the five reason constants.
  • src/ifc/mod.rs: ExportedModelDiagnostics.saved_mesh_refusals, counted from the property, and the decision it gives.
  • src/ifc/export_decisions.rs: saved_mesh_not_used joins the reasons whose detail is a code rvt-rs writes, so anonymize keeps it.
  • docs/export-diagnostics.md, docs/schemas/export-diagnostics.schema.json, docs/mcp.md, docs/mcp-tools.md, docs/mcp-tools.json and the two descriptions in rvt-mcp/src: the field and the reason are listed. A changelog fragment added/1645-saved-mesh-refusal.md.
  • tests/export_decisions_counts.rs (an existing real-file test): the reason is listed among those it expects for the models that have such boxes, and counted like the other fail-closed reasons.

Testing

No unit tests (banned here). Measured end to end, with every scorer, against main: Measure 42922751372, the head a83fb5da against main at 20b0eb7b, 107 models.

  • 48 of 107 exports move, 59 are byte-identical (Core Interior and Einhoven among them), and the 48 are the models that have a box the pass considered: the BIM4LCA files, RE1 architecture and electrical, six of puzzbobb's Revit 2025 models, the Autodesk samples of 2023 to 2027.
  • What differs in the 48 is the property, the new counters (exported.saved_mesh_refusals, 246 counters in all) and, in three files, lines that carry them: bodies_across_saves.txt of the 2026 and 2027 rac_advanced samples has one informational line (IfcRoof RvtElementRecordGeometry.SavedMeshRefusal: ... not scored), and nordic-office-timber-permit's schema.txt and ports_vs_ifc.txt list the same 24 IfcRoot.UR1 findings as before with their entity numbers moved by the property entities the change adds (that defect is on main and is IFC export: the office at permit (timber) writes one mullion type as 6 type objects with one GlobalId (24 IfcRoot.UR1 findings) #1667).
  • No body is drawn differently: no line of mesh_bodies_vs_ifc, box_bodies_vs_ifc, saved_meshes_vs_ifc, psets_vs_ifc, qtos_vs_ifc or any other body or property scorer changes in any of the 107.

Not measured

  • The 15 box bodies of the BIM4LCA office as built that carry no reason (153 of its 168 do): the property is written for the pass's candidates, and these are not examined here.
  • Revit 2015 to 2022 projects: the pass does not run on them, so none of their boxes has a reason.

Audit-honesty checklist

  • Docs state only what ships (docs/export-diagnostics.md, the schema, the MCP docs)
  • Changelog fragment under changelog.d/added/
  • The property is a trust marker of the same kind as SlabShapeRefusal and AreaBodyRefusal; nothing Revit's export does not write is added to its property sets
  • No emojis, no private paths

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source (CLEANROOM.md)

Breaking changes

None. The diagnostics gain a field (saved_mesh_refusals, defaulting to empty) and the decision log a reason.

DrunkOnJava added a commit that referenced this pull request Nov 10, 2026
…son, base beside head (#1645) (#1649)

## Summary

Measure's step summary gains a section, "Why bodies are still a record
box (base → head)": the count of bodies that are only their element
record's box, by the reason the saved-mesh pass gives for not using the
element's saved mesh, summed over the models and samples whose
diagnostics the run kept.

## Motivation

#1645. What keeps a box a box has been found by one-off probes on one
file each time (RE-385, RE-397), and the next decoder was chosen by hand
from them. #1647 puts the reason on each element and counts it in the
diagnostics (`exported.saved_mesh_refusals`); this lists those counts
for a whole run, head beside base, so a change that moves boxes says
which reason it cleared.

## Changes

- `tools/re/box_reasons.py`: reads each model's `diagnostics.json`
(`exported.bounding_box_bodies`, `exported.saved_mesh_refusals`) and
prints the sums and, per reason, the base and head counts. A held-out
model keeps counts only and is not in it. Where no diagnostics hold the
field (an export that predates #1647) it says so.
- `.github/workflows/measure.yml`: the sparse checkout of the summary
job names the script, and the summary prints its output after "What the
censuses counted apart".

## Testing

Unit tests are banned in this repository; none are added.

- [x] The script was run on the diagnostics of a real run (Measure
42880026004, 93 models and samples with diagnostics kept: 73,159 record
boxes, none with a reason since #1647 is not in it, which it says) and
on a synthetic pair of two models with and without reasons, base and
head. The workflow edit parses (`yaml.safe_load`) and adds no
expression.
- [x] This PR's own Measure run prints the section, with the "predate
#1645" line until #1647 lands.

## Audit-honesty checklist

- [x] No capability claim; a CI summary. No changelog fragment.
- [x] No emojis, no private paths.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source; no fixtures.

## Breaking changes

None.

## Related issues

Refs #1645.
…ved mesh was not used, on the element and counted in the diagnostics (#1645)

Each box that stays one after the saved-mesh pass has a SavedMeshRefusal
property (no saved graphics, no mesh, no triangles, a shared ElementId, or
the decoder diagnostics that left the mesh partial). The diagnostics count
them in exported.saved_mesh_refusals and the decision log names the reason
of each element as saved_mesh_not_used. No body changes.
@DrunkOnJava
DrunkOnJava force-pushed the feat/saved-mesh-refusals branch from a85552f to 13da892 Compare November 10, 2026 21:21
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 10, 2026 23:22
@DrunkOnJava
DrunkOnJava merged commit 6e58c27 into main Nov 11, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/saved-mesh-refusals branch November 11, 2026 00:06
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…ach element's SavedMeshRefusal (#1645) (#1672)

## Summary

`tools/re/box_bodies_vs_ifc.py` lists the record-box bodies of an export
by class and by reason, from each element's `SavedMeshRefusal` (the
property #1647 writes), after its fill table. #1645 asks for "why each
element stayed a box, by class and reason" in the diagnostics and in
Measure: the diagnostics count the reasons
(`exported.saved_mesh_refusals`), and this puts them by class in every
Measure model's `box_bodies_vs_ifc.txt`.

## Motivation

#1645. Until now the by-class-and-reason census needed a research probe
per model (`probe_1645_box_reasons_by_class`). With the property on the
elements, the scorer that already lists the boxes by class reads it from
the export it scores, so every run of Measure carries the census and a
change that draws more bodies shows which reasons it removes.

## Changes

- `tools/re/box_bodies_vs_ifc.py`: `refusal(element)` reads the
property; `boxed_tags` returns the class and the reason of each box;
`main` prints `box bodies by class and reason (SavedMeshRefusal, #1645):
N of M have one`, then each class with its reasons, most numerous first,
`(none)` for a box with no reason.

## Testing

Scorer only: no source, export or other scorer output changes. Run on
`main` at `fa2864d4` with this scorer
([42929794159](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42929794159):
the BIM4LCA office as built and housing concrete as built). The office
as built prints `153 of 168 have one`, and its 15 without are 14
`IfcStair` and 1 `IfcCurtainWall`, the wholes the pass leaves to their
parts (#1669 gives them a reason); the housing prints `66 of 73`, the 7
without being its `IfcStair`. The largest groups it shows: 43
`WC-istuin:WC-1` for `nonrectangular parametric trim`, 30
`Stay_Wall_Mounted_:VAR-1` for `multiple cylinder trim loops
unsupported`, 24 railings for `shared curved edge is not an
isoparametric interval`, 10 showers for `scaled instance mode is not
qualified` (#1670). The new functions were also run on a synthetic IFC
of four elements with and without the property before the push.

## Not measured

- The lines are not in the held-out models' output:
`scrub-holdout-results.sh` keeps only the lines it allowlists, so they
do not leave the runner there.

## Audit-honesty checklist

- [x] Docs state only what ships (the scorer's own docstring says what
it prints)
- [x] No emojis, no private paths

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…ad for several symbols no longer repeats the writer's fallback (#1667) (#1668)

## Summary

Every type object now has a GlobalId of its own. In the type-object loop
of `src/ifc/step_writer.rs`, a type object that finds no Revit GlobalId
left to take gets the writer's fallback `gid(&["type", entity_name,
tag])` only when no earlier object used it, and otherwise the same
fallback with its index; the fallback is entered in `used_gids`, which
it was not. The BIM4LCA office at permit (timber), where one mullion
type was written as 7 `IfcMemberType` objects with one GlobalId
(IfcOpenShell flags the 6 repeats), now writes 7 different ones, and its
property sets and relationships, which derive theirs from the type's,
follow.

## Motivation

Closes #1667. The timber permit office is the one Measure model whose
export fails IfcOpenShell's validation: `validate: findings 24`, all
`IfcRoot.UR1` ("The attribute GlobalId should be unique"): 6
`IfcMemberType` + 12 `IfcPropertySet` + 6 `IfcRelDefinesByType` repeats
of the type `Rectangular Mullion:150 x 50 mm alumiini maalattu` (Tag
1907093). A repeated GlobalId is invalid IFC4, and importers that key
objects by GlobalId merge or drop the later ones. The same 24 findings
are in every Measure run read since #1650 on both sides, so they are on
`main`.

## Changes

- `src/ifc/step_writer.rs`: the type-object loop takes Revit's GlobalId
when it is unused, else the writer's fallback when it is unused, else
the fallback with the type object's index.
- `changelog.d/fixed/1667-unique-type-global-ids.md`.

## Testing

No unit tests added. Measured end to end on Measure's models (every
scorer, `samples=true`): run 42934767155, this head (main merged in, so
the only difference between the two sides is this change) against main.
The rows were registered on #1667 before the first run and are judged as
registered:

1. `nordic-office-timber-permit`: `validate` reads 0 findings (24 on
main), and the six `IfcMemberType` of Tag 1907093 have six different
GlobalIds.
2. Every other export is byte-identical (`ifc.sha256` of the other
models does not move), since no other model has a repeated type
GlobalId.
3. The timber permit office keeps every object it wrote: entity counts
by class unchanged, only GlobalIds differ.

Result of run 42934767155 (100 models with results on each side), judged
as registered:

1. Holds. `nordic-office-timber-permit`: `validate` reads `findings 0`
(24 on main) and `ports_vs_ifc.txt` "0 findings, 0 about the port
entities". The run keeps no IFC, so "six different GlobalIds" is read as
the validator's `IfcRoot.UR1` finding no GlobalId repeated anywhere in
the file.
2. Holds. One export moved, `nordic-office-timber-permit`; the other 99
are byte-identical (`ifc.sha256`), and no scorer line of any other model
changed.
3. Holds on its substance, with one scorer line I did not foresee. Total
entities are 76,041 on both sides, `by_ifc_type` and the whole
diagnostics are identical, and `global_ids_vs_ifc` (10,511 equal, 9 not
in Revit's export) and `class_sets_vs_ifc` are identical.
`type_objects_vs_ifc.txt` reads "type objects in ours: 1391" on main and
1397 here: it counts distinct GlobalIds, so the +6 is the repeats
becoming six further distinct ids, not new objects. That also corrects
the issue's count: 7 `IfcMemberType` shared the GlobalId, and
IfcOpenShell flags the 6 repeats. "The type objects' count the same" is
true of the objects, not of that line.

The first unfiltered run, 42928822492, compared this change, which then
lacked #1647, against newer main, so its other differences were #1647's;
this re-run, after merging main, is the one judged. The same-project
gates passed on this head (check run of 2026-11-11T01:07:24Z, "pass: 15
samples held to their earlier saves"); the semantic check read NOT
MEASURED on it (#1675: the timber office had no dump, fixed by #1677).

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: the runs above (BIM4LCA
office, Revit 2024, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: the witness verdicts replay or
the changed observations are refreshed: Core Interior's GlobalIds are
not changed (row 2), so no observation moves
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
capability claim changes
- [x] A user-visible change has its changelog fragment under
`changelog.d/fixed/`
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None. A type object that already had a unique GlobalId keeps it; only
the repeats change.
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
… says so too, so every box has a reason (#1645) (#1669)

## Summary

An element drawn as a record box, a beam's box or a turned box that the
saved-mesh pass did not take as a candidate now has a `SavedMeshRefusal`
of its own: `not_a_candidate: ` and one of `whole_drawn_by_its_parts`,
`no_location`, `no_element_id` or `class_not_in_scope`.
`exported.saved_mesh_refusals` then counts every such box, not only the
candidates whose saved graphics were read. The candidate set is the
same, and no body is drawn differently.

## Motivation

Refs #1645. After #1647, 153 of the BIM4LCA office's 168 box bodies
carried a refusal; the other 15 (14 `IfcStair` and 1 `IfcCurtainWall`,
wholes that their parts draw) said nothing, and the scorer of #1672
lists them as boxes with no reason.

## Changes

- `src/ifc/saved_meshes.rs`: the candidate loop reads each element's
type GUID and location, works out why an element is not a candidate
(`whole_drawn_by_its_parts`, `no_location`, `no_element_id`,
`class_not_in_scope`), and records that as its refusal; the refusals are
applied on the early return too. The candidates are the same elements as
before.
- `src/ifc/export_content.rs`: `SAVED_MESH_NOT_CANDIDATE_PREFIX`.
- `src/ifc/mod.rs`, `docs/export-diagnostics.md`,
`docs/schemas/export-diagnostics.schema.json`: the new refusal text is
documented.
- `changelog.d/changed/1645-saved-mesh-not-candidate.md`.

## Testing

No unit tests added. Measured end to end on Measure's models: the
unfiltered run 42929175797 (every scorer, 100 models with results on
each side, this head against main at 6e58c27). The rows were registered
on #1645 before it (comment of 2026-11-11T00:09:50Z) and are judged as
registered:

1. Holds. On the BIM4LCA office as built `exported.saved_mesh_refusals`
sums to 168, its `bounding_box_bodies` (153 on main), and the 15 are
`not_a_candidate: whole_drawn_by_its_parts`, which accounts for the
whole difference.
2. Holds on the diagnostics, and a sum is not the whole proof. Every
model of Revit 2023 to 2027 sums to at least its box count; the BIM4LCA,
Revit 2025 and RE1 models sum to it exactly except the two terrain
housing files (12 reasons against 11 boxes: the count of box bodies
leaves out the turned boxes and a roof's level block, which the pass
also reads). On the Autodesk samples a sum cannot decide (Snowdon
architectural 518 against 394 boxes), so the per-element read,
registered on #1645 before it ran, is Measure run 42936559329 (the box
scorer of main, #1672, on the head): each model's line must read "N of N
have one" with no `(none)` row. Result: it holds on every model with a
Revit export I named (each reads "N of N have one", no `(none)` row:
housing concrete as built 73 of 73, its terrain file 11 of 11, the four
office files, Revit 2025 stairs 13 and 17, RE1 architecture and
electrical), and it missed as registered on the three Autodesk samples,
which have no Revit export here for the scorer to pair with, so for them
only the sums above are read and nothing shows each box has its reason.
The scorer's 73 against the diagnostics' 74 on the concrete as built is
the boxes whose Tag Revit's export also holds.
3. Holds. The 29 exports that moved are exactly the 29 models whose
counters gained `whole_drawn_by_its_parts` (the 10 BIM4LCA files, the 5
Revit 2025 stair models and 14 of Autodesk's samples); no body, quantity
or property scorer line changed in any model. The only scorer files that
differ are two validation texts of `nordic-office-timber-permit`
(`ports_vs_ifc.txt` 10 lines, `schema.txt` 20), which are identical once
instance numbers are normalised: the added properties shift the numbers
inside its 24 existing `IfcRoot.UR1` findings (#1667, fixed by #1668).

What the data do not exercise: only `whole_drawn_by_its_parts` occurs
(15 on each office file, 7 on each large housing file, 1 on each terrain
file, 1 on each Revit 2025 stair model, 1 to 26 on the Autodesk
samples). `no_location`, `no_element_id` and `class_not_in_scope` occur
in none of the 100 models, so those three branches are covered by
reading the loop, not by a measurement.

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: the runs above (BIM4LCA,
Revit 2024, CC BY-SA 4.0; Autodesk's samples, counts only)
- [x] If this touches the IFC exporter: the witness verdicts replay or
the changed observations are refreshed: CI's replay decides; the Core
Interior export does not move (it has no box with a new reason)
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR:
`docs/export-diagnostics.md` and its schema name the new text
- [x] A user-visible change has its changelog fragment under
`changelog.d/changed/`
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None. `exported.saved_mesh_refusals` has more keys (`not_a_candidate:
...`); the schema allows them.
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…fails a pull request where the fetcher's list, its dump case and the open-model list disagree (#1678) (#1680)

## Summary

The six BIM4LCA housing files join the semantic check: each gets an MCP
dump and is listed as an open model, so a change confined to them, such
as #1665's slab and roof quantities, is no longer invisible to it. A CI
step, `tools/ci/check_semantic_models.py`, fails a pull request where
the fetcher's `MODELS_LIST`, its dump case and `OPEN_MODEL_NAMES`
disagree; run on main as it was before #1677 it reports exactly the two
timber models of #1675. No export changes.

## Motivation

Closes #1678; follows #1675 (#1677). The housing comes from the same VTT
archive as the office (CC BY-SA 4.0), so the licence that lets the
office's dumps go to Jev covers it. A model that joined the fetcher
without its dump case or its list entry made every complete run's check
read NOT MEASURED once; the guard makes that a failure in the pull
request that adds the model.

## Changes

- `tools/ci/measure-reference-models.sh`: the dump case covers
`nordic-housing-*`.
- `tools/re/semantic_diff.py`: `OPEN_MODELS` and `OPEN_MODEL_NAMES` list
the housing and its six models.
- `tools/ci/check_semantic_models.py` (new), run by the PII guard job of
`ci.yml`: five ways the three lists can disagree, and `--refusals`,
which shows it failing on six mutated copies of the two files.
- `docs/maintaining.md`: the guide counts 42 open models and names the
check.

## Testing

No unit tests added; the existing `test_jev_check` and
`test_semantic_diff` suites still pass locally, which is a guard and not
evidence. The new check is a contract check on the real files and is
shown failing on mutated copies and on the real defect (main before
#1677: the two timber offices). End to end: Measure run 42940165321
(this branch's tooling; head 6e58c27 against base 74a5034, complete),
judged against the rows registered on #1678 and reported there:

- H1: 42 models compared, `skipped` and `uncovered` empty, each housing
model holding a dump on both sides.
- H2: the largest housing dump opened is 1.91 MiB against the 400 MiB
cap.
- H3: housing shards 3.0 to 5.9 minutes (3.1 to 4.8 before).
- H4: `jev_check.py --dry-run` builds 13 chunks and 138,753 characters,
3 chunks and 39,622 characters more than without the housing, inside
`MAX_CHUNKS` (150).
- H5: the housing findings are #1647's `SavedMeshRefusal` additions and
counters, and nothing else; no element added or removed.

A side effect of that run, stated there: the Semantic check job refused
to send the housing diff (main's list lacks the housing until this
lands) and failed on a main commit, by design. This pull request's own
gate run is dispatched from main's tooling, so no housing dump is
written and the check scores it against the list of 36.

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: Measure run 42940165321
(BIM4LCA housing and office, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: N/A, no exporter change
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
user-facing claim changes
- [x] A user-visible change has its changelog fragment: N/A, CI tooling
only
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…o every box has a reason on every release (#1645) (#1682)

## Summary

A box body that no saved-mesh pass was offered now says why. An element
drawn as a record box, a beam's box or a turned box in a Revit 2008 to
2022 file (whose saved graphics are not read), in an export whose caller
turned the pass off, in a file whose release could not be read, or after
a pass that stopped on an error gets `not_offered: ` and the reason
(`release_outside_2023_to_2027`, `saved_meshes_off`, `release_not_read`,
`pass_failed`) as its `SavedMeshRefusal`, so that
`exported.saved_mesh_refusals` counts every box on every release. The
pass itself selects what it selected before, and the files of Revit 2023
to 2027 do not change.

## Motivation

Closes #1645, whose last unmet clause this is: "the boxes that were
never offered a mesh (a release outside 2023 to 2027)". #1647 gave a
reason to each candidate the pass read and #1669 to each box it did not
take as a candidate; `docs/export-diagnostics.md` said a box of an older
release "has none". The reason is trivial there (the release), and it is
what lets one table say why every box is one.

## Changes

- `src/ifc/saved_meshes.rs`: `is_replaceable_box`, the candidate test
the pass applied inline, now a function; `note_not_offered`, which marks
each such box.
- `src/ifc/export_pipeline.rs`: where no pass was offered (and the
export is not a placeholder) or the pass failed, the boxes are marked
and the diagnostics recounted.
- `src/ifc/export_content.rs`: `SAVED_MESH_NOT_OFFERED_PREFIX` and the
property's documentation.
- `docs/export-diagnostics.md`,
`docs/schemas/export-diagnostics.schema.json`,
`changelog.d/changed/1645-saved-mesh-not-offered.md`.

## Testing

No unit tests added. Measured end to end on Measure's models: the
unfiltered run of this head (every flag, run 42944398428) against `main`
at 134db97, judged against the rows registered on #1645 before it ran.
The full result is on #1645 (comment 6785511772).

- Revit 2015 to 2022: 45 of 45 exports moved. The 31 that report
diagnostics carry 68,579 box bodies and gain 68,579 `not_offered:
release_outside_2023_to_2027` reasons, equal on every model. The other
14 are licence-less files whose results leave the runner as counts only,
so their box counts are not measured.
- Revit 2023 to 2027: 0 of 81 exports moved, and none of the 70 with
diagnostics gains a `not_offered` reason.
- One scorer line moves that the registered rows missed: the by-reason
table of `tools/re/box_bodies_vs_ifc.py` on the Vitoria project
(`(none)` becomes `not_offered: release_outside_2023_to_2027`, same
counts).

- [x] `tools/check-local.sh` passes: not run locally (no local builds
here); CI's full run is green on this head (`rustfmt --check` on the
three Rust files passes)
- [x] Verified end to end on real Revit files: Measure run 42944398428,
above
- [x] If this touches the IFC exporter: the witness verdicts replay or
the changed observations are refreshed: Core Interior is Revit 2024 and
did not move (0 of 81 exports of 2023 to 2027 moved)
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: the
diagnostics reference and its schema name the new reasons
- [x] A user-visible change has its changelog fragment under
`changelog.d/changed/`
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None. Exports of Revit 2008 to 2022 files gain one property in
`RvtElementRecordGeometry` on each box body, and
`exported.saved_mesh_refusals` gains a key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant