Skip to content

research(reader): the native record framing holds on Revit 2015 to 2022, and what keeps them refused (#1158) (RE-280) - #1168

Merged
DrunkOnJava merged 4 commits into
mainfrom
re/280-native-framing-pre2023
Oct 30, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
re/280-native-framing-pre2023

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

RE-280 measures the native record reader on Revit 2015 to 2022 (#1158) and admits nothing. The framing native_document reads Revit 2023 with holds on all 27,762 record groups of Autodesk's 30 sample projects of those releases and BIMcollab's Revit 2015 example, with one difference: before Revit 2018 a group's declared body size counts each record's trailing length word. The preamble parses on all 31 files bar the extensible-storage catalogue of nine, 98.8 to 100 per cent of the declared elements' object graphs decode with the owner id agreeing on every one, and the records agree with the same project's 2023 copy. native_element::decode_base refuses Identifier as 2015 to 2023 write it (a 4-byte m_id), so the phase order is not read on 2023 either; the report says which three contracts the admitting PR changes.

Motivation

#1158: parameters, phases, types, stairs, symbol cut loops, mullion hosts and saved meshes are read from native records, which are refused on eight releases, and #879's 16 footings need the parameter store of a Revit 2015 file. This is the measurement the admission needs.

Changes

  • probes/examples/probe_re280_native_framing_pre2023.rs (new): the preamble one stream at a time, the shape of the classes the contracts read, every group of channels 101 to 103 against eight framings with the declared counts, the channel-102 records' Element base, object graph and saved parameters with refusal histograms, and, given two files, the same model's records by ElementId.
  • tools/ci/scrub-holdout-results.sh: keeps the probe's native framing: lines (counts, schema names and normalised error text, in a restricted alphabet) for BIMcollab; its JSON example lines, which carry ElementIds, are still dropped.
  • reports/element-framing/RE-280-native-framing-pre2023.md, changelog.d/research/native-framing-pre2023.md, the dated addendum in docs/rvt-moat-break-reconnaissance.md and the Native records on Revit 2015 to 2022: types, materials, stairs, cut loops, mullion hosts, connectors, family forms and saved meshes are read only from 2023 #1158 row of docs/contribution-map.md.

No src/ change.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh passes: this PR's CI. (No local build: the probe is built by Measure; rustfmt --edition 2024, python3 tools/release/changelog.py check and tools/ci/api-doc-ids.py pass.)
  • Verified end to end on real Revit files: Measure 41109577387, 41111795982 and 41113517494, Autodesk's sample projects 2015 to 2023 (fetched by hash, never stored) and BIMcollab's Revit 2015 example (counts only), with Einhoven and Core Interior as controls. The report's section 11 has the commands.
  • Not an exporter change: no witness replay is needed.
  • Not a performance change.

Audit-honesty checklist

  • README / docs reflect the current state after this PR: nothing is admitted, and the report says so
  • A user-visible change has its entry as a fragment under changelog.d/research/
  • No limitation was resolved; the limitations found (the Element base, the catalogue, the VarSketch modifier, the pre-2018 declared sizes) are in the report and in docs/contribution-map.md
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • A reproducible probe under probes/examples/ and a dated addendum to docs/rvt-moat-break-reconnaissance.md are included

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • No test fixtures were added

Contributor declaration (CLEANROOM.md): the changes in this PR are based on public byte observations of Autodesk's published sample projects and BIMcollab's public example project, rvt-rs's own readers and its prior reports. 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.

Breaking changes

None.

Screenshots or output samples

Not applicable: no IFC output changed.

Related issues

Refs #1158, #421, #879.

…on Revit 2015 to 2022 (#1158) (RE-280)

Per file: each global stream's parse on its own, the shape of the classes the native contracts read, every group of channels 101 to 103 against every id width and extra-field width with declared counts, and the decoded records' Element base, graph and saved parameter sets with refusal histograms. With two files, the same model's records by ElementId against the newer copy. Its count lines are kept for BIMcollab by the scrub script; the JSON example lines are not.
… Element base through either Identifier shape and keeps the refusal text (#1158) (RE-280)
…22; the Element base, the catalogue and the pre-2018 declared sizes keep them refused (#1158) (RE-280)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Owner review: research only, no src/ change, nothing admitted.

  • Holdout scrubbing (BIMcollab): every native framing: line goes through Out::line → scrub, and error text through norm_msg, which folds every digit run to # and hex words to <hex>. The preamble lines print counts only (episodes=, identities= graveyard= stride=, rows= stored_elements= permuted_rows=, es_schemas=). ElementIds appear only in the JSON example lines (out.detail), which the scrubber's new grep (^native framing: ...) does not keep. So only counts and schema names leave the runner, as the 2026-10-29 holdout rule asks.
  • Findings checked against the report: framing holds on all 27,762 groups (pre-2018 declared body bytes include the trailing length word), the preamble parses on all 31 bar the ES catalogue of 9 (m_unitType before 2021), and decode_base refuses Identifier as 2015 to 2023 write it (4-byte m_id), which also means 2023's Element-base readers (the phase order) read nothing today. The admitting PR fixes that. No Revit export of these samples is used; the report says the agreement is with each project's 2023 copy.
    Armed.

@DrunkOnJava
DrunkOnJava merged commit e67305a into main Oct 30, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/280-native-framing-pre2023 branch October 30, 2026 20:13
DrunkOnJava added a commit that referenced this pull request Oct 30, 2026
…2015 to 2022, and the Element base on a 4-byte Identifier (#1158) (RE-281) (#1175)

## Summary

Saved parameters and the project's phase order are read on Revit 2015 to
2022 (#1158), experimentally. `native_element::decode_base` took
`Identifier` for Revit 2024's 8-byte `m_id64` and refused the Element
base of every 2015 to 2023 record; it takes the 4-byte `m_id` too, which
also lets the phase order read on Revit 2023 for the first time. On
Autodesk's 23 projects with a 2023 copy, 932,645 parameters read by name
and value equal the copy's and 243 differ, each an edit between the
saves. Every export is unchanged: the phase order reads on all 33 sample
projects of 2015 to 2023 and Einhoven and no element of any is left out
of the last phase. Every other native reader stays on 2023 to 2027, and
the extensible-storage catalogue and 2015 to 2017 `VarSketch` records
still refuse. #879's footings name no Level (RE-281 §5).

## Motivation

#1158 and its "done when": admit the releases the RE-280 measurement
covers and measure the readers built on them there, parameters by name
and value against the newer copy, and on BIMcollab the footings' Level
against Revit 2015's export (#879).

## Changes

- `src/research/native_element.rs`, `native_json.rs` (`identifier_i64`):
the Element base takes either shape of `Identifier`.
- `src/research/native_document.rs`: `NATIVE_RELEASES` (2015 to 2027),
`Options::releases` (default 2023 to 2027, the old gate, for every
reader that does not name it), and `group_records` takes the 2015 to
2017 declared body size (bodies plus 4 per record, RE-280 §4).
- `src/research/native_element_parameters.rs`, `native_phases.rs`: the
two readers measured on 2015 to 2022 name `NATIVE_RELEASES`. Their
comments, `elements::parameters`, `rvt-elements` and `rvt-py` say 2015
to 2027.
- `probes/examples/probe_re281_native_levels.rs`,
`probe_re281_parameter_pairs.rs`, `tools/re/native_levels_vs_ifc.py`:
the measurement. `tools/ci/scrub-holdout-results.sh` keeps their counts,
and BIMcollab's property set census counts (standard `Pset_` and `Qto_`
names only), for a model without a licence.
- `reports/element-framing/RE-281-native-admission.md`,
`changelog.d/added/saved-parameters-2015-2022.md`, the support matrix
(`native-element-parameters`, `ifc-revit-property-sets`), README,
`docs/status.md`, `docs/supported-profile.md`,
`docs/contribution-map.md`, `docs/release-1.0-criteria.md` and a dated
addendum in `docs/rvt-moat-break-reconnaissance.md`.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes: this PR's CI. (No local build:
Measure builds it. `rustfmt --edition 2024 --check`, `python3
tools/release/changelog.py check` and `tools/ci/api-doc-ids.py` pass.)
- [x] Verified end to end on real Revit files, in the report: Measure
[41116945112](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41116945112)
(unfiltered, nordic, r2025, samples, BIMcollab; head at the same `src/`
as this branch),
[41118620685](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41118620685)
(parameters by name against the 2023 copies),
[41118961781](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41118961781)
and
[41119973943](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41119973943)
(BIMcollab's Levels and footings), and the unfiltered run on this branch
against its own base,
[41122598346](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41122598346):
91 models and samples, every IFC hash identical, no scorer or info file
differs. BIMcollab has no licence, so only counts left the runner.
- [x] Witness verdicts: the export is unchanged on every model of the
unfiltered run, so no observation moves (CI passed, including Corpus
health and IfcOpenShell validates exports).
- [x] Performance: on one runner, both sides in turn
([41127674661](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41127674661)),
`rvt-ifc` is unchanged on Core Interior and the four RE1 models (0.96 to
1.01) and takes 0.04 to 0.5 s longer on each file of 2015 to 2023, the
two native passes those releases did not make before (RE-281 section 6).

## Audit-honesty checklist

- [x] README and the docs reflect the current state after this PR: 2015
to 2022 parameters are experimental and not measured against a Revit
export there
- [x] A user-visible change has its entry as a fragment under
`changelog.d/added/`
- [x] #879 is not resolved: its saved Level is ruled out, and the
contribution map says so
- [x] The limitations introduced are in the report (§6), the support
matrix notes and the PR body: `--revit-property-sets` on 2015 to 2022 is
written from parameters no export checks
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] A reproducible probe under `probes/examples/` and a dated addendum
to `docs/rvt-moat-break-reconnaissance.md` are included

## Legal and contribution hygiene

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

Contributor declaration (`CLEANROOM.md`): the changes in this PR are
based on public byte observations of Autodesk's published sample
projects and BIMcollab's public example project, rvt-rs's own readers
and its prior reports. 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.

## Breaking changes

`rvt::research` (outside the semver promise): `native_document::Options`
gains the field `releases`. None for the stable API.

## Screenshots or output samples

No IFC output changed on any file measured.

## Related issues

Refs #1158, #879. Follows #1168 (RE-280).
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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