Skip to content

research(elements): RE-135 the records after a project's chain are the loaded families' own documents (#152) (#421) - #547

Merged
DrunkOnJava merged 4 commits into
mainfrom
re/re135-undeclared-header-records
Oct 1, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
re/re135-undeclared-header-records

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Steffen (STE1200) explained RE-132's two unread Einhoven walls (2921 and 3637) in Discussion #112: records whose ids Global/ElemTable does not declare are the inventory of family documents embedded in the project. This measures that reading.

On six project files (the four RE1 models, Einhoven, Core Interior) and 187,421 records after their leading chains:

  • none has a declared id, shares an id with a chain record, or repeats an id;
  • the two Einhoven walls and Core Interior's three undeclared walls sit in a family's template views, with the class mix of a standalone family;
  • Global/ContentDocuments has 6 and 46 section headers on Einhoven and Core Interior, his counts.

Two corrections, both in the report and the changelog: the chain's end, not the declaration, separates project records from family-document records (737 of Core Interior's chain records have an undeclared id), and bit 0x10 of the flag word is not a host-stub marker. RE-35's "their own ElementId space" is amended. 1,444 ids on Core Interior open two chain records; that is recorded as not explained.

The probe is an example; Measure run 36865908576 ran it on the reference models and the family corpus. No library code changes.

Refs #152, #421, Discussion #112.


Note

Low Risk
Documentation and a standalone research example only; no production parsing or API behavior changes.

Overview
Documents RE-135 research on partition header records that sit after a project's leading record chain (Discussion #112 / Einhoven walls 2921 and 3637).

Adds examples/probe_re135_undeclared_records.rs, which scans all Partitions/* streams (2023 and 2024+ layouts), splits records into in-chain vs after-chain, and emits JSON tallies for ElemTable declaration, classes, flag bit 0x10, id collisions, and Global/ContentDocuments section headers, plus neighbour dumps for named target ids.

Adds reports/element-framing/RE-135-embedded-family-records.md with measured results across six project models and the family corpus, and updates CHANGELOG and RE-35 to state that after-chain records are embedded families' own documents—while correcting two earlier assumptions: chain end (not undeclared id) separates project vs family inventory, and flag 0x10 is not a reliable host-stub marker.

No changes to the rvt library; measurement is via the new example (Measure workflow).

Reviewed by Cursor Bugbot for commit 776a7b7. Configure here.

…ble does not declare (#152)

Scans every header record of every partition, declared or not, and prints what Steffen's reading of the undeclared ones predicts (Discussion #112): their classes, the host-stub flag bit, how they interleave with declared records, and the section count of Global/ContentDocuments.
…ding chain, and reads 2023 by its own envelope

The first run showed two things: a 2023 scan by bounding-box marker sees 179 of Einhoven's records, and 1,340 declared ids occur in two records on Core Interior, so an id's being declared does not tell a project record from a family document's. Split by the chain instead.
…e loaded families' own documents (#152) (#421)

Steffen's reading of Einhoven's walls 2921 and 3637 (Discussion #112) holds on six project files: no record after the leading chain has a declared id, shares one with the chain or repeats. The chain's end, not the declaration, separates the two, and bit 0x10 is not a host-stub marker. Measure run 36865908576.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 1, 2026 13:09
@cursor

cursor Bot commented Oct 1, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_7c786b96-a8ec-4a5d-805c-8263e63b5c31)

@DrunkOnJava
DrunkOnJava merged commit 794aef3 into main Oct 1, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re135-undeclared-header-records branch October 1, 2026 13:16
DrunkOnJava added a commit that referenced this pull request Oct 1, 2026
…RE-137 the Q4 reading (#152) (#153) (#154) (#548) (#549)

Follow-up to RE-135 (#547), with the measurements the open acceptance
items of #152, #153 and #154 asked for. Measure runs 36868637766,
36869273382, 36869717207 and 36869947677, on the reference models and
the Autodesk family corpus.

- **RE-136.** The 2023 record envelope reads every Autodesk family of
2016 to 2023 (one record per declared id, no class unresolved); the
ElemTable record is 28 bytes up to 2023 and 40 from 2024, on 17 files;
the scan chains 99.46 per cent of candidates on Core Interior and 99.62
per cent on Einhoven; the ids that open two chain records (#548) are
copies of one element's record in different partitions, never two in one
stream.
- **RE-137.** The Q4 addendum's "ancestor class" does not reproduce on
17 files: none of the nine classes has the base it named, and every base
reference resolves. The reconnaissance document, the README and the
`ancestor_tag` field documentation say so; no behaviour changes.

Probes only; the one source change is a doc comment.

Refs #152, #153, #154, #421, #548.
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