Skip to content

Formats/Latest: classify the residual field encodings and Revit 2027's flagged runtime-state fields from byte evidence #1196

Closed

Description

@DrunkOnJava

Summary

Formats/Latest, the schema every Revit file embeds, is read whole, and every field's encoding is classified into a FieldType. This is checked in CI on the 12-release family corpus (tests/field_type_coverage.rs), except for 9 to 12 named residual fields per release. Revit 2027 also lists 325 runtime-state fields with byte 2 of their header set (FieldType::Flagged); the walker reads these as Unknown because their instance bytes are not measured (RE-264).

Done when

Each residual field's encoding is classified from byte evidence in the corpus and removed from RESIDUAL. The 2027 flagged fields' instance bytes are measured where they occur. The coverage gate stays at 100% of the remainder; it is never loosened to make this pass.

Where to start

src/formats.rs, the RESIDUAL list in tests/field_type_coverage.rs, and RE-264. A probe under probes/examples/ that prints each residual field's bytes across releases is a good first step. CLEANROOM.md says what evidence is allowed.

Closed 2026-11-05 as a measured negative (Griffin, 2026-11-05). 11 of the 14 residual names are classified and Revit 2027's flagged fields hold no instance bytes (RE-323, #1309, #1315). The last 3 have no bytes to read: ClassDefinitionRef::m_ref has no instance in any sample project or family, VarParam::m_pSubst has 31,705 instances in the 2015 to 2017 sample projects, every one a null pointer, and VarSketchObj::m_dimValue has none. They stay named in RESIDUAL with that reason (tests/field_type_coverage.rs) and the gate stays at 100% of the rest. A file that holds a real value for one reopens this.

Activity

  1. added
    area:reader
    priority:P3
    type:research
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:readerpriority:P3type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions