Skip to content

fix(elements): a type's value block ends where the next native record starts, so two rac_basic 2027 doors keep their Width and Height (#1489) (RE-373) - #1568

Merged
DrunkOnJava merged 15 commits into
mainfrom
fix/1489-value-blocks
Nov 9, 2026
Merged

DrunkOnJava merged 15 commits into
mainfrom
fix/1489-value-blocks

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two Single-Flush:800 x 2100 doors of rac_basic's 2027 save wrote no Qto_DoorBaseQuantities Width and Height. The cause: three family instances' own Width, Height, Rough Width and Rough Height (1500 × 2700 mm) are stored right after the doors' symbol's native record, with no value block mark between. The length scans gave them to the symbol, which then held two of each and, failing closed, wrote neither (RE-373).

The fix bounds each value block by the native record index: a length entry is a block's only while no native record starts between the block's mark and the entry. A type's block lies inside its own FamilySymbol record (on rac_basic, the mark sits 68 bytes past the record's start), and records don't nest, so the cut can only drop entries outside the owner's record.

Changes

  • src/research/partition_type_parameters.rs:
    • bounded_value_blocks cuts each owned block at the first record start after its mark, where that comes before the next mark.
    • record_starts reads the starts from the handle's record index, building it with a pass that selects nothing and decodes nothing if no native pass has. Whether it exists depends on the file alone, so the export doesn't depend on the order of its reads; with no index, blocks end at their marks as before.
    • The export path's two length scans, type_lengths_at and type_named_lengths_at, use it. These scans run on Revit 2024 to 2027 only, inside the native reader's 2023 to 2027, so 2015 to 2023 are not reached.
    • Unchanged: the RE-354 text scan (FireRating, Manufacturer), whose entries lie up to 3.2 MB from their mark, and the public research scans the probes use.
  • tools/re/readers_across_saves.py: rac_basic's property minimum is 418 on both saves, from 414 on 2027.
  • probes/examples/probe_1489_door_size_entries.rs: the probe, which names the native record whose bytes hold each length entry.
  • reports/element-framing/RE-373-value-blocks-end-at-the-next-record.md, an addendum to RE-346, docs/status.md, and a changelog fragment.

Testing

Unit tests are banned in this repository: nothing is added.

  • Verified end to end on real Revit files.
    • The mechanism, from Measure runs 42555155286, 42557123494 and 42557901914 (probe_1489_door_size_entries on rac_basic 2026 and 2027): every length entry lies inside exactly one native record. 431054's own entries are in its FamilySymbol record, the three 1500 × 2700 groups in FamilyInstance records 457479, 457534 and 457542, and the three control symbols' entries in their own records. Two other bounds were ruled out: the RE-35 record chain (every Width entry, owned or not, lies outside it) and the mark itself (it carries no length).
    • Measure 42558908204, head 1e62821d against main at 9c66e9b: the reference models, the BIM4LCA office, R2025, Autodesk's samples of every year and the held-out models, with timing. It had no racadv or BIMcollab model, which are 2015 to 2020 files this doesn't reach.
      • 2 of 111 exports move.
      • rac_basic 2027: the doors' Width and Height go from 9 to 11 equal to the 2025 save's, "only there" from 2 to 0, and the compared values from 414 to 418, the 2026 save's.
      • The held-out AA house (Revit 26.4, IFC4X3, counts only): door Qto_DoorBaseQuantities.Width, Height and Area each go from 11 to 13 of 13 equal. Its quantities equal to Revit's go from 200 to 206 of 846, and the MCP server's answers hold 27 quantity values equal to Revit's, from 24. It is the one Revit export the rule changes, and it is out of sample: the rule was read off rac_basic.
      • No property value or quantity goes from equal to different or missing on any model, so RE-354's counts are unchanged.
      • Export time is 0.98 to 1.01 times main's (0.993 in total over 68 files), and peak memory 0.95 to 1.06 times (Snowdon HVAC 215 to 227 MiB). The viewer's wasm memory is not measured.
      • same-project gates passes on 1e62821d.
    • Measure 42561086714 (efc66c67, which holds every change but the fragment's wording; gates from this branch, samples 2024 to 2027): the gate with the raised minimum. Passed: same-project gates on efc66c67 reads "pass: 15 samples held to their earlier saves, and the Areas on 4 saves", with rac_basic's 2025, 2026 and 2027 saves each PASS.
    • Measure 42563501765 (af6bcf6, this head, rebased on main at 32d52bf after fix(ifc): a roof drawn as its record box cuts no wall's top (#1471) (RE-351) #1476 emptied PINNED_WALLS; gates from this branch, samples 2024 to 2027): the two PRs' gate files together. Passed: same-project gates on af6bcf6 reads "pass: 15 samples held to their earlier saves, and the Areas on 4 saves", with rac_basic's 2025, 2026 and 2027 saves each PASS.
  • If this touches the IFC exporter: the witness verdicts replay, since Core Interior's export is byte for byte main's in 42558908204.

Audit-honesty checklist

  • README / docs reflect the state after this PR: docs/status.md no longer lists the two doors as a gap, and RE-346 has a dated addendum.
  • The change has its entry as a fragment under changelog.d/fixed/.
  • No emojis, no private paths.
  • Reverse-engineering finding: a probe under probes/examples/ and the dated report RE-373.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0.
  • No Autodesk proprietary source, decompiled internals or NDA'd SDK content. Contributor declaration: this finding comes from public byte observations of Autodesk's published sample files and from Revit's own IFC exports only.
  • No new fixtures.

Breaking changes

None.

Related issues

Closes #1489.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 04:36
…block's mark and the next, with the ids there and their classes (#1489)
… starts, so two rac_basic 2027 doors keep their Width and Height (#1489)
@DrunkOnJava
DrunkOnJava force-pushed the fix/1489-value-blocks branch from 84026bc to af6bcf6 Compare November 9, 2026 04:45
@DrunkOnJava
DrunkOnJava merged commit 83417fd into main Nov 9, 2026
45 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1489-value-blocks branch November 9, 2026 05:00
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 9, 2026
4 tasks done
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
## Summary

Release 0.16.1, the first published release of 0.16. The `v0.16.0` tag
(on 2bb0f3b) was never published. Its publish run,
[42559733687](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42559733687),
stopped at the viewer load smoke test, which needed `rvt-elements` on
its PATH, before crates.io, PyPI, the release page or ghcr.io. A tag
cannot be moved, so #1569 fixed the workflow and 0.16.1 replaces 0.16.0.
Everything under `[0.16.0]` ships in 0.16.1, with:

- a door type's value block ending at the next native record, so the two
`rac_basic` 2027 doors write their Width and Height (#1568, #1489,
RE-373);
- a roof drawn as its record box cutting no wall's top (#1476, #1471,
RE-351);
- the sealed registry for the 1.0 check's fresh held-out pairs (#1566,
#1565);
- RE-364's addendum on Revit 2015 to 2020 angled walls (#1567, #1535);
- the publish workflow's fix and its dry run before a tag (#1569).

## Changes

- Version 0.16.0 -> 0.16.1 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's pin;
  - viewer/package.json;
  - CITATION.cff (version and date);
  - Cargo.lock and fuzz/Cargo.lock.
- `python3 tools/release/changelog.py assemble`: 4 fragments go into
`[0.16.1]`, with an introduction saying why 0.16.0 was not published.
`[0.16.0]` gains one line saying the same. The introduction links
0.16.0's notes and "Upgrading from 0.15" at the `v0.16.1` tag, since the
release page carries this section alone. It says to read 0.16.1 where
those notes say 0.16.0: the IFC header, and the attestation's
`--source-ref refs/tags/v0.16.1`. It also says this section's entries
hold over the 0.16.0 notes on the 2027 doors and on what the release
adds to the measured commit.
- README: the latest release and the "after 0.16.1" fragments sentence.
- `publish.yml`: the viewer smoke's comment gives its longest run, 15.8
minutes (v0.16.0's tag run), in place of 14.7.
- 2daaa17 refreshes the Core Interior witness observations and
verdicts, and the synthetic fixtures, from CI run
[42565027784](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42565027784)'s
artifacts at 772267d. Only `witness_version` (0.16.0 -> 0.16.1), the
two verdict hashes and the fixtures' version strings (in `FILE_NAME` and
`IFCAPPLICATION`) change. Replaying `tools/ci/witness-verdict.py` with
CI's arguments passes for both artifacts, and every witness's replay
matches.

## Testing

- `python3 tools/ci/release_preflight.py check --event workflow_dispatch
--ref-type branch --ref-name checkout --sha HEAD`: ok, version 0.16.1.
- `python3 tools/release/changelog.py check`: ok.
- The dry run RELEASE.md step 7 asks for, `publish.yml` dispatched on
this branch at 772267d:
[42564989175](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42564989175),
success. The viewer artifact load smoke passed 54 tests and skipped 13,
with none failed. The wheels, sdist, docs.rs preview, CLI smoke and all
seven install-and-open jobs passed, and the four publish jobs skipped,
as a dispatch does. The later commits change only the notes, witness
files and fixtures. Of those, the workflow reads only CHANGELOG.md's `##
[0.16.1]` heading, which they leave as it was, and the preflight run at
2daaa17 is ok, version 0.16.1.

Unit tests: N/A.

## Audit-honesty checklist

- [x] The changelog says 0.16.0 was never published and why, and that
0.16.1 carries everything in it.
- [x] Each entry keeps its caveats.
- [x] No emojis, private paths or PII.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk source, internals or NDA material.

## Breaking changes

None beyond 0.16.0's ("Upgrading from 0.15", read with 0.16.1 for
0.16.0).
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.

rac_basic's 2027 save: two doors write no Width and Height quantities

1 participant