Skip to content

RE: Decode parameter-store wire formats and exact Revit unit encodings #155

Open

Description

@DrunkOnJava

Provenance and credit

This issue records a finding reported by @STE1200 and their team in Discussion #112, “Set of findings”. Thank you to Steffen and the team for sharing the reported wire-format relationships and the exact-floating-point warning.

The technical statements below are reported claims, not yet independently reproduced by rvt-rs. Griffin will carry the repository-side probes, fixtures, implementation, and documentation; this issue does not assign that work to Steffen's team.

Reported finding

The parameter store reportedly contains two record shapes and supports:

  • BuiltInParameter identifiers relevant to extrusion and revolution;
  • shared-parameter name resolution through PartAtom GUIDs.

The report also identifies an exact-numeric trap: Revit reportedly computes internal feet as mm / 25.4 / 12, which can differ by one ULP from mm / 304.8. Exact-bit searches therefore need to try both encodings.

Reported evidence

The two record layouts, specific BuiltInParameter numeric IDs, sample PartAtom GUID links, offsets, and raw bytes are not included in Discussion #112. They must be obtained or independently derived and reproduced; this issue must not invent them. The one-ULP relationship is a concrete reported oracle that can be checked independently with exact f64 bit comparisons.

Why it matters

Correct parameter-store decoding would help associate geometry-driving values with elements and resolve shared-parameter names. The floating-point distinction matters because approximate arithmetic can make a valid value invisible to exact-bit probes, while normalizing the two encodings too early can destroy useful provenance.

This overlaps the capability goal in #35, but is not a duplicate: #35 tracks end-user parameter exposure, while this issue tracks independent reproduction of the reported wire shapes, identifier/GUID linkage, and bit-exact unit encoding.

Independent verification still required

  • Identify and distinguish the two record shapes from allowed byte evidence.
  • Derive record boundaries, field widths, endianness, and type/version gates.
  • Verify the relevant BuiltInParameter IDs rather than importing unspecified numbers.
  • Demonstrate shared-parameter name resolution through PartAtom GUIDs on at least one independent sample.
  • Compare exact f64::to_bits() results for both millimetre-to-feet expressions and locate both forms in representative data.

The hypothesis would be falsified or narrowed if the shapes cannot be distinguished consistently, GUID resolution does not hold across samples, or exact values follow a different conversion path.

Repository-side acceptance criteria

  • Add a probe that emits record shape, byte offsets, raw identifiers/GUIDs, exact floating-point bits, and resolution confidence.
  • Reproduce or refute both reported record shapes on provenance-safe fixtures.
  • Pin confirmed extrusion/revolution BuiltInParameter identifiers with evidence-backed tests.
  • Resolve at least one shared-parameter name through a confirmed PartAtom GUID chain, with unresolved cases remaining explicit.
  • Add bit-exact tests proving the one-ULP distinction and make exact searches consider both reported encodings without conflating them.
  • Integrate confirmed values into the existing parameter model tracked by M4-07: Recover common parameters #35 with honest empty/unknown behavior.
  • Add a dated, confidence-scored reconnaissance addendum and document version/file coverage.

The probe and evidence should follow the repository's reverse-engineering contribution requirements.

Activity

  1. added
    needs-triage
    re-finding
    area:elements
    area:partitions
    priority:P1
    type:research
    and removed
    needs-triage
    on Aug 29, 2026
  2. DrunkOnJava commented on Aug 29, 2026

    @DrunkOnJava
    OwnerAuthor

    Audit hygiene (GOV-002 / §18 first-48h): removed stale needs-triage from this maintainer-filed research issue. Related SEC-001 security-reporting fix lands via cursor/audit-p0-security-67f9.

  3. self-assigned this
    on Aug 30, 2026
  4. DrunkOnJava commented on Sep 27, 2026

    @DrunkOnJava
    OwnerAuthor

    RE-77 (#419) established one parameter-store shape: value blocks open [owner u64][56 x 0xFF][3 x 0x00], and a type's text parameters inside are i64 BuiltInParameter · u32 n · UTF-16 x n, attributed to the block they follow (the RE-35 record chain covers only 4% of partition bytes, so it cannot). Numeric encodings and units are still undecoded; see #35 for what is read.

  5. 42 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:elementsarea:partitionspriority:P1re-findingtype:research

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions