Description
Measured (2026-09-27)
Formats/Latest is inflated without the checksum-page strip (#151 applied it to Partitions/* and Global/* only; the schema stream stays "multipage integrity uncertain"). On every file measured, the stream spans two stored pages, and inflating it with and without the strip diverges 140 to 183 KB in. Both runs end on a clean BFINAL, so nothing reports an error.
Which one is right is settled by comparing files: the stripped schema is byte-identical across every file of the same release, family or project, while the unstripped output differs between a family and a project of that release (their page boundaries fall at different offsets).
| release | stripped sha256 (prefix), bytes | files with that exact stripped schema |
|---|---|---|
| 2023 | bce7907bbb970c0e, 462,765 |
family 2023, Einhoven, Exemplo_data, modelo_bim |
| 2024 | 0bfb947b3c9a0cec, 470,502 |
family 2024, Core Interior, Snowdon Architectural and Structural, MIT tutorial house 2024 |
| 2025 | c964f9aa2a5f674e, 484,585 |
family 2025, RE1 x4, Projeto1, teste_export_2025, MIT tutorial house 2025 |
(2016 to 2022 and 2026 have one file each here: same divergence, no second file to compare.)
Why it hid
formats::SCHEMA_SCAN_LIMIT stops the schema parse at 64 KB because "scanning further emits false-positive classes". Those false positives are this drift. So rvt-rs parses 395 classes from Core Interior's schema, while the stripped stream carries about 3,056 length-prefixed class-name records; STE1200 reports 3,619 classes parsed to the last byte on a 2014 family (Discussion #112, digest F1/F4). The published "100% field-type classification" covers the first 64 KB of each schema.
What would close it
Strip Formats/Latest like the other paged streams, parse it to the end, and report the class and field counts per release (the support matrix, README and docs/data/tag-drift-2016-2026.csv quote the 64 KB figures). Field encodings beyond the first 64 KB need the same byte evidence as the rest (layer 4c rule); unclassified ones are reported, not guessed. This also unblocks resolving the element record's class reference (#223) through the file's own schema.
Credit: STE1200's F1 finding and the page constants (Discussion #112).
Activity
DrunkOnJava commentedon Sep 27, 2026
Direct proof, 2026-09-27:
Formats/Latestends with a real gzip trailer (CRC32 and ISIZE). After the page strip it validates on all 23 files measured (the eleven 2016-2026 sample families, Core Interior, Einhoven, RE1 x4, Snowdon Architectural and Structural, Projeto1, teste_export_2025, Exemplo_data, modelo_bim). Inflated without the strip it fails on all 23. So the stripped stream is exactly what Revit compressed, not merely consistent across files.Credit also to rosejn, whose PR #255 accepts the Formats strip only when that trailer validates; the fix for this issue reports the stream verified on the same condition.
fix(formats): strip Formats/Latest's checksum pages and read the whol…
feat(elements): name every element's Revit class through the schema's…
fix(formats): strip Formats/Latest's checksum pages and read the whol…
docs: two stale source markers, and the backlog's progress (B17, B18) (…
docs: the README and the docs it summarises agree with main (#762)
docs(contributing): the contributing guide, the Python page and the i…
docs(research): comments, module docs, reports and compare notes say …
docs(status): the support matrix, status pages and viewer promise wha…