Skip to content

research(elements): RE-147 the ElemTable's invariants on a 2014 family and every file of 2016 to 2027 (#152) - #568

Merged
DrunkOnJava merged 5 commits into
mainfrom
re/re147-elemtable-report
Oct 3, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
re/re147-elemtable-report

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

This answers #152's open evidence items: a 2014 family and a 2026 project with set owners. It runs on the reader that #559 moved to 0x06.

  • research/public-families.tsv pins the Stertil 2014 family STE1200 pointed to on RE: Validate Global/ElemTable body as a versioned ownership tree #152: the zip and the .rfa inside it, each by sha256 and size.
  • tools/fetch-public-families.sh fetches it for a Measure run and never stores it. A host it cannot reach is NOT MEASURED; a hash that differs fails.
  • measure.yml fetches it with the family corpus when families is set.
  • examples/probe_re147_elem_table_invariants.rs prints the table's invariants.
  • The report is reports/element-framing/RE-147-elemtable-on-2014-to-2027.md.

Measure run 37117029420 read 54 files. On every one, the stated count was read, ids rise, every set owner is declared, and no record is self-owned or in a loop.

  • The 2014 family has 28-byte records, 11,331 of them. Its first record is 1274 with an unset owner, and all 10,208 owners are declared.
  • The 2026 rac_basic project has 8,401 records, and all 3,884 owners are declared.
  • The record size changes once, between 2023 and 2024.

Note

Low Risk
Adds research probes, pinned external fetch scripts, and CI workflow steps; no changes to core elem_table parsing in this diff.

Overview
Adds RE-147 evidence for #152: a new probe (probe_re147_elem_table_invariants) that checks Global/ElemTable invariants (stated count vs records read, rising ids, owner declarations, self-ownership, loops) and a report documenting positive results on 54 files from a Measure run (2014 Stertil family through 2027 samples, plus reference models).

Extends the families Measure path with maker-published Revit families: research/public-families.tsv pins the Stertil 2014 .rfa (zip and file hashes), tools/fetch-public-families.sh downloads and verifies them (unreachable hosts are skipped with a warning; hash mismatch fails the step), and measure.yml fetches into the family corpus directory alongside phi-ag/rvt. Changelog documents the findings, including 28-byte records through 2023 and 40-byte from 2024.

Reviewed by Cursor Bugbot for commit c84b922. Configure here.

…y and a 2026 project (#152)

research/public-families.tsv pins the 2014 Stertil family STE1200 pointed
to (zip and .rfa by sha256 and size); tools/fetch-public-families.sh
fetches it for a Measure run, never stored, and Measure reads it with the
family corpus. The probe prints, from parse_records' 0x06 reading, the
stated count, records, stride and tail, rising ids, the first record's id
and owner, and the owners' invariants.
… all 54 files of 2014 to 2027 (#152)

Measure run 37117029420 on the 0x06 reader: every file reads its stated
count, ids rise, every set owner is declared, no self-owner or loop.
The Stertil 2014 family (STE1200's pointer) has the 28-byte layout, first
record 1274 with an unset owner; the 2026 project holds the invariants.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 11:03

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Probe treats flags as files
    • CLI paths now skip arguments starting with '-' so measure's trailing --records is not opened as a file.

Create PR

Or push these changes by commenting:

@cursor push c5350760b1
Preview (c5350760b1)
diff --git a/examples/probe_re147_elem_table_invariants.rs b/examples/probe_re147_elem_table_invariants.rs
--- a/examples/probe_re147_elem_table_invariants.rs
+++ b/examples/probe_re147_elem_table_invariants.rs
@@ -77,7 +77,10 @@
 }
 
 fn main() {
-    let paths: Vec<String> = std::env::args().skip(1).collect();
+    let paths: Vec<String> = std::env::args()
+        .skip(1)
+        .filter(|arg| !arg.starts_with('-'))
+        .collect();
     if paths.is_empty() {
         eprintln!("usage: probe_re147_elem_table_invariants FILE.rvt ...");
         std::process::exit(2);

You can send follow-ups to the cloud agent here.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c84b922. Configure here.

…e paths

Reported by Cursor Bugbot on #568: Measure invokes sample-project probes
with a trailing --records, which the probe opened as a file.
@DrunkOnJava
DrunkOnJava merged commit aa1701e into main Oct 3, 2026
24 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re147-elemtable-report branch October 3, 2026 11:29
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