Skip to content

docs(research): comments, module docs, reports and compare notes say what the research they cite measured (batch 7) - #1930

Merged
DrunkOnJava merged 5 commits into
mainfrom
docs/b7-research-claims
Nov 13, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
docs/b7-research-claims

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Comments, module docs, five reports and the rvt-ifc-compare notes said something different from the research they cite. Each place now says what the report measured and what the code does. No code path changes: every edit is a comment, a doc, a report line or a note string.

Motivation

A read-only audit of every research report the code cites (batch 7: 40 DeepSeek auditors and 40 verifiers, worker text used only as input) checked, at about 30 citing places per worker, whether the code still does what each report established. Claude re-read every finding against the code and the report before it was used. Two findings that needed a code decision went to #1929, and rvtReview settled both: the GlobalId rule stays (its docs move in rvtReview's RE-459 PR), and RE-299's sentence changes here.

Refs #1929.

Changes

Where the code was right and the text was wrong:

  • RE-29: room number offsets. The measured constant is 505 = 0x1f9, so the tables in the reader, the probe and the report put the number's length and the number 4 bytes early. The report gets a dated correction that also checks it against its own name-offset histogram.
  • RE-24, RE-107, RE-260, RE-81: the Level record's flag word is 0x8f, as RE-24 shows, not 0x87. On 2023 the container reference is a u32 16 bytes after the category, not 2024's place.
  • RE-20, RE-24: level_bind's module doc no longer says Level ids cannot be recovered.
  • RE-85: preceding_reference is RE-23's slot rule, which RE-85 replaced. Only probes read it now.
  • RE-127: element_record_wall_joins's honesty notes now say the 9 L-corner ends are decided, 360 of 360.
  • RE-126: the wall flip is one byte and a flag, not a third u32.
  • RE-36, RE-35: second-prologue ids come from the enclosing record. RE-34's inference was removed.
  • RE-33: the product category list has grown past thirteen.
  • RE-390, RE-254: railings join the stair their record names (m_stairsId), except one on a component.
  • RE-47: 26 of 26 stairs and 23 of 26 run sums, not 29.
  • RE-75: the arc centre and radius are within 0.001 ft, as measured.
  • RE-119: the framing top-level rule runs on every 32-bit release, 2008 to 2023. Only 2023 is measured against Revit's export, 2015 to 2022 only against each project's 2023 copy (feat(elements): read Revit 2015 to 2022 element records in the 32-bit layout (RE-180, RE-181) #742), and 2008 to 2014 not at all.
  • RE-18, Formats/Latest is inflated without the page strip; the schema drifts after ~140 KB in every file and parsing stops at 64 KB to hide it #410: tagged_ancestor's doc said a subtype like ArcWall is the ancestor it returns, and repeated RE-18's 'not in the schema', which was the old 64 KB scan.
  • RE-25: 3688 sketch-line records, 3070 distinct ids, 126 owners, as the report and the CHANGELOG say. The code docs said 3106, 3724 and 135, which have no source.
  • RE-358: the profile-stub rule asks nothing of the joins. Its second Measure run dropped a join-partner condition that refused every end the first run carried.
  • RE-116 / RE-259: two slots on Revit 2018 and earlier, as pattern_slots_32 reads them.
  • RE-134: the curve-field scan runs on 2025 to 2027, not 2024 and 2025.
  • RE-135: undeclared records include some of the project's own, not only loaded families'.
  • RE-166: the panel material offset rests on RE1's panel types. The Snowdon claim cited to RE-72 has no source.
  • RE-199: hip and gable roofs are drawn now.
  • RE-204: washer-dryers are not in partly_unset, so Revit writes no <Unnamed> for them.
  • RE-238, RE-384: the 8 sloped office floors are drawn along their plane and take their PitchAngle.
  • RE-252: the wall quantities doc had come loose onto add_curtain_wall_length, and is moved back to add_wall_quantities.
  • RE-286: type objects carry no IsExternal.
  • RE-380: a pocket's tag is its stretch's first line, not the highest id.
  • RE-444: the frame order row in docs/export-diagnostics.md.
  • RE-445: units equal on 101 of 103 files.
  • RE-449: the 1,190 and 1,174 offsets are the curtain door's. The mullion grids' are 1,130 and 1,114.

Where a report misstated its own code:

User-visible:

Checked and left alone:

  • RE-162: Revit's export does write IfcRelServicesBuildings, one per system (RE1 Electrical 13 of 13, Mechanical 5 of 5, Plumbing 8 of 8).
  • RE-340: the 2024 to 2027 reach holds because 2023's records give no embed steps.
  • RE-178: the code's 1e-9 ft is stricter than 1e-6 ft, and no measured comparison lies between.

Testing

N/A for end-to-end: no exported value can move. Every changed .rs line is a comment, a doc comment or one of the compare note strings, which no test pins (grep over tests/, docs/, tools/).

  • rustfmt --check on every changed file
  • python3 tools/ci/api-doc-ids.py: every cited RE has a report
  • python3 tools/release/changelog.py check: 21 fragments valid

Fast CI covers rustdoc and clippy.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/fixed/

…the research they cite (batch 7, part 1)

Room number offsets (RE-29), Level flags and 2023 containers (RE-24,
RE-107, RE-260), host walls (RE-85), wall joins (RE-127), the wall flip
byte (RE-126), stair counts (RE-47), railings (RE-390), layer
tolerances (RE-53, RE-58), pocket tags (RE-380), type IsExternal
(RE-286), and the ifc-compare catalogue's closed issues.
… scan releases (RE-134), undeclared records (RE-135), roofs (RE-199), washer-dryers (RE-204), sloped floors (RE-384), frame order (RE-444), units (RE-445), curtain grid offsets (RE-449)
… RE-119 on 2008 to 2023, RE-358, slot counts)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 13, 2026 19:37
@DrunkOnJava
DrunkOnJava merged commit 864340c into main Nov 13, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/b7-research-claims branch November 13, 2026 20:30
DrunkOnJava added a commit that referenced this pull request Nov 21, 2026
…e and the wall-stub heuristic say what main does (#2130) (#2134)

## Summary

Three strings that ship with rvt-rs said less than `main` does. They now
say what it does. No export, diagnostic or JSON shape changes;
`rvt-ifc-compare`'s note text for `IFCSPACE` changes.

- **`SPACE_OUTLINE_SAVED_MESH`** (`src/ifc/export_content.rs`): its
rustdoc described a room drawn with `rvt-ifc --saved-meshes` only.
`saved_meshes::attach_scoped_with_control` sets it on any space drawn
from its saved mesh, family instances written as spaces included. That
is the default on Revit 2023 to 2027 since #1191, and on any release
with `rvt-ifc --saved-meshes`, as `rvt-ifc`'s `export_options`
describes.
- **The `IFCSPACE` note of `catalogued_divergence_notes`**
(`src/ifc/compare.rs`), which `rvt-ifc-compare` prints, said a room
whose solid does not close keeps its bounding box. It now gives the
order `docs/rooms.md` gives: the solid's faces or edges, then from Revit
2023 the saved mesh, and only otherwise the box.
- **The module doc of `src/ifc/export_content/wall_profile.rs`** said
every stretch measured is half the wall's thickness. RE-383 measured it
half on 11 of 12 walls; Snowdon Towers' wall 1996082 is the exception.
- **`docs/ifc-compare.md`:** its paragraph saying the `IFCSPACE` note
lags the table is removed, since the note now matches.

Closes #2130.

## Motivation

#2130, found while correcting the docs in #2131 and #2132.

## Changes

- `src/ifc/export_content.rs`, `src/ifc/compare.rs`,
`src/ifc/export_content/wall_profile.rs`: the doc comments and the note
string above.
- `docs/ifc-compare.md`: the paragraph above.
- `changelog.d/fixed/2130-compare-space-note.md`: the note is
`rvt-ifc-compare` output, so it carries a fragment, as #1930's change to
these notes did.

## Testing

Unit tests are banned in this repository: do not add them.

- [x] `rustfmt --check` passes on the three files, and
`tools/ci/api-doc-ids.py` passes (RE-383 is now cited in rustdoc).
- [x] The note's old text is in nothing under `rvt-mcp/`, `viewer/src`
or `python/`.
- [x] No test, schema or doc other than `docs/ifc-compare.md` holds the
note's text (`grep` over `tests/`, `docs/` and `tools/`).
- [x] Measure
[44953635018](https://github.com/DrunkOnJava/rvt-rs/actions/runs/44953635018),
this head against `main` with Autodesk's samples and the same-project
gates' scorers: 65 of 65 exports and 65 of 65 diagnostics identical, no
scorer difference beyond what only the head side writes, and the
same-project gates pass (15 samples held to their earlier saves, and the
Areas on 4 saves and on the 2021 save).

## Audit-honesty checklist

- [x] Each changed string agrees with the code and report it names.
- [x] A changelog fragment for the note `rvt-ifc-compare` prints;
`python3 tools/release/changelog.py check` passes.
- [x] No emojis, private paths or internal jargon.

## Legal and contribution hygiene

- [x] Apache-2.0.
- [x] No Autodesk proprietary content.
- [x] No fixtures.

## Breaking changes

None.

Review: rvtReview, the maintainer session, wrote this change. As
rvtDevelop is not running, it re-reads the diff and approves the change
itself on a green head (Griffin, 2026-11-12).
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