Repository navigation
research(elements): RE-147 the ElemTable's invariants on a 2014 family and every file of 2016 to 2027 (#152) - #568
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
October 3, 2026 11:03
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
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.
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.
# Conflicts: # CHANGELOG.md
6 of 7 tasks
…e paths Reported by Cursor Bugbot on #568: Measure invokes sample-project probes with a trailing --records, which the probe opened as a file.
7 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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.tsvpins the Stertil 2014 family STE1200 pointed to on RE: Validate Global/ElemTable body as a versioned ownership tree #152: the zip and the.rfainside it, each by sha256 and size.tools/fetch-public-families.shfetches it for a Measure run and never stores it. A host it cannot reach is NOT MEASURED; a hash that differs fails.measure.ymlfetches it with the family corpus whenfamiliesis set.examples/probe_re147_elem_table_invariants.rsprints the table's invariants.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.
rac_basicproject has 8,401 records, and all 3,884 owners are declared.Note
Low Risk
Adds research probes, pinned external fetch scripts, and CI workflow steps; no changes to core
elem_tableparsing in this diff.Overview
Adds RE-147 evidence for #152: a new probe (
probe_re147_elem_table_invariants) that checksGlobal/ElemTableinvariants (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
familiesMeasure path with maker-published Revit families:research/public-families.tsvpins the Stertil 2014.rfa(zip and file hashes),tools/fetch-public-families.shdownloads and verifies them (unreachable hosts are skipped with a warning; hash mismatch fails the step), andmeasure.ymlfetches into the family corpus directory alongsidephi-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.