Skip to content

Header variables, R2004 and R2007 #129

Closed

Description

@DrunkOnJava

Spec: ODA Open Design Specification for .dwg files v5.4.1, §9.

Scope

The R2004 and R2007 additions, R2007's string stream included.

State on main (2026-10-21)

Not read.

Acceptance

  • Ends on the boundary on every R2004 and R2007 file
  • Values equal the DXF $HEADER

Parent: #125

Activity

  1. added
    type:spec
    area:header-vars
    release:R2004
    release:R2007
    priority:P1
    on Oct 21, 2026
  2. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Status (main 2bab7b2; CI run 40503137263, artifact corpus-measurement, header-probe.log): the body's "Not read" is stale; every AcDb:Header variable is decoded from one table, R14 to R2018, with the R2007 string and handle streams (#302, #126). Both acceptance items hold for R2004 and R2007:

    Release Drawings closed Slots each Agree Differ by a stated rule Disagree Unknown slots DWG-only DXF-only
    R2004 8 of 8 259 1,765 51 0 208 of 2,072 264 48
    R2007 8 of 8 304 2,093 51 0 232 of 2,432 296 48

    Every section passes both sentinels, the size, the CRC and every stream boundary, with the padding after the last slot all ones. "Differ by a stated rule" is the twin being a later save, a per-save GUID, case-insensitive names and the like, listed in ARCHITECTURE.md; "unknown" slots are §9's own, named UNKNOWN_<code>_<n>.

    I have left this open because it tracks a section of docs/spec-coverage.md, whose §9 row is closes (R13 is unmeasured) and moves only in a PR with evidence. On the written acceptance it can close.

  3. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Closing on its written acceptance, as measured in CI run 40503137263 on main 9292ba3 (header-probe.log in the corpus-measurement artifact). The triage comment above has the numbers: every pinned drawing of these releases closes its header variables with 0 disagreeing values against AutoCAD's DXF export. The docs/spec-coverage.md row for §9 is refreshed in its own PR with the same evidence.

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:header-varspriority:P1release:R2004release:R2007type:spec

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions