Skip to content

research(params): RE-156, SerialNumber is a shared parameter's text entry in the element's own data object (#35) - #606

Merged
DrunkOnJava merged 6 commits into
mainfrom
re/re156-serial-numbers
Oct 3, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
re/re156-serial-numbers

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

RE-156 looks for the text values of Revit's property sets anywhere in the file (Measure runs 37139488894, 37140018345, 37140355491).

  • SerialNumber (50 values missing on RE1 Electrical, 1 on Plumbing) is a text entry i64 id · u32 n · UTF-16 inside the element's own data object, whose id is a shared parameter's ElementId (490488 on Electrical, 447886 on Plumbing), not a BuiltInParameter, which is why RE-154 missed it.
  • The id's own data object holds the parameter's group, its name Serial Number and its shared GUID. The property name SerialNumber is nowhere in the file.
  • Finish is not stored as text anywhere; RE-154's reading (assembled from the layer materials) stands.

Adds examples/probe_re156_value_sources.rs and reports/element-framing/RE-156-shared-parameter-values.md. No tests: a research probe and its report.


Note

Low Risk
Adds a standalone example and documentation only; no production parsing or API surface changes.

Overview
Adds RE-156 research artefacts to explain where IFC property-set text values live in .rvt files when RE-154’s BuiltInParameter scan finds nothing.

New example probe_re156_value_sources pulls text properties from a sibling IFC export, then scans every RVT stream (inflated or raw) for those strings as UTF-16/UTF-8. For hits it emits JSON with length prefixes, candidate parameter ids, RE-153 verified object ownership, and strings from parameter-definition objects. It also searches for property names under a synthetic (property name) set.

reports/element-framing/RE-156-shared-parameter-values.md records measured results: SerialNumber appears as length-prefixed UTF-16 in each element’s own data object with a shared parameter ElementId (not a BuiltInParameter); definition objects expose Serial Number and the shared GUID while the IFC property name SerialNumber is absent from the binary. Finish is not stored as plain text (consistent with RE-154’s layer-material assembly). Reproduction is via the Measure workflow and probe_re156_value_sources.

No library or test changes—probe plus report only.

Reviewed by Cursor Bugbot for commit aef85be. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 17:54
@DrunkOnJava
DrunkOnJava merged commit 6e062f7 into main Oct 3, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/re156-serial-numbers branch October 3, 2026 18:07
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
…ialNumber sets (#35) (#608)

RE-156 (#606) found Revit's SerialNumber stored as a text entry whose id
is the shared parameter `Serial Number`'s ElementId, inside the
element's own data object, and the parameter's definition as a data
object holding its group, name and GUID. This reads it.

- `partition_room_parameters`: `find_parameter_definitions` (parameter
name -> ElementId, from the definitions' strings) and
`scan_text_parameter`, RE-153's scan for any element set and parameter
id; `scan_room_text_parameter` now calls it.
- `partition_schema_mvp`: `m_serial_number` on every element with a
value.
- `export_content`: `Pset_ManufacturerOccurrence.SerialNumber`
(IfcIdentifier), and on a building-element proxy
`Pset_PrecastConcreteElementGeneral.SerialNumber` too, as Revit's RE1
Electrical (12 flow terminals, 19 proxies) and Plumbing (1 flow
terminal) exports write them.

Test: `tests/serial_number.rs` (real target). Red on main: draft #607,
run 37142425779, 50 of 50 values missing on RE1 Electrical; the output
is in the test commit's message.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Adds heuristic partition binary parsing and changes IFC property-set
output for elements with Serial Number; export fidelity impact but no
security or auth surface.
> 
> **Overview**
> **RE-156** wires Revit’s shared parameter **Serial Number** from
partition data through to IFC export so values match Revit’s own
exports.
> 
> Partition scanning is generalized: **`scan_text_parameter`** reads any
element’s text parameter by id inside its data object;
**`find_parameter_definitions`** maps project/shared parameter **names**
to ElementIds from definition blobs. Room floor-finish scanning now
delegates to the shared helper. During MVP decode,
**`attach_serial_numbers`** sets **`m_serial_number`** on walls,
columns, doors, windows, slabs, and generic products when the parameter
exists.
> 
> IFC export adds **`serial_number_property_sets`**:
**`Pset_ManufacturerOccurrence.SerialNumber`** (`IfcIdentifier`), and
the same on **`Pset_PrecastConcreteElementGeneral`** for
**`IFCBUILDINGELEMENTPROXY`**, emitted alongside existing Reference
property sets.
> 
> A new **`tests/serial_number.rs`** corpus test (RE1
Electrical/Plumbing vs reference IFC) and CI **`serial_number`** real
target guard parity.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
80adbc2. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…deleted branch (#1001)

## Summary

Sixteen reports' reproduce commands named a branch that was deleted when
it landed (`feat/mullion-span`, `feat/bare-named-parameters`,
`feat/wall-extend-to-structure`, `feat/824-hatch-openings`,
`re/re155-reference-slots` ... `re/re163-content-documents`,
`re/878-2015-episodes`, `re/223-flag-census`,
`docs/re229-symbol-lengths`), so `gh workflow run` refused them. Each
now names the commit that landed (`--ref main -f ref=<sha>`, and `-f
base=<parent>` where it measured a change against `main`).
CONTRIBUTING's reverse-engineering steps state the rule.

## Motivation

A report's reproduce section is how its counts are checked again.
Measure's `ref` input takes a commit, and every probe and scorer these
reports name is on `main`.

## Changes

- **`reports/element-framing/RE-155` to `RE-163`, `RE-208`, `RE-219`,
`RE-225` to `RE-229`**: branch refs replaced by the squash commits of
#601, #606, #611, #620, #627, #628, #630, #632, #642, #928, #963, #993,
#994, #996, #997 and #998. RE-224's `re/saved-mesh-status` is kept: it
is the ungated branch its scorer needs, and it stays.
- **`CONTRIBUTING.md`**: a report's reproduce commands name a commit,
never a branch.

## Testing

Unit tests are banned in this repository: do not add them.

- [ ] `tools/check-local.sh`: CI.
- [x] Every probe and scorer the changed commands name exists on `main`
(checked file by file), and each commit is the merge of the pull request
that added the report.
- N/A: no code change.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] No user-visible change, so no changelog fragment
- [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

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None.
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