Skip to content

Canonical R2000 fixture omits the required file-header CRC and sentinel #214

Closed

Description

@DrunkOnJava

Confirmed while implementing the strict streaming header core (#205), at base ece6adf. tests/fixtures/canonical/synthetic_2000.dwg has three locators, then a stored CRC of 0000 (spec calculation gives 7813) and sixteen zero bytes where ODA v5.4.1 §3.2.6 requires the file-header end sentinel. examples/build_fixtures.rs::build_flat_fixture writes the locator table into a zeroed buffer but never emits those fields. The legacy reader accepts it because it does not check them. This synthetic self-roundtrip must not be called a valid header oracle.

Acceptance:

  • Correct the generating entry point, regenerate deterministically, and verify the strict streaming header on the generated artifact.
  • Preserve the 5 known entities and existing object offsets/counts, with real entry-point proof.
  • CI detects generator drift and validates header integrity.
  • Keep separate the remaining placeholder sections/object CRCs and AutoCAD openability; correcting the file header does not validate the whole drawing.

Related corpus work: #94/#211. Discovered evidence is recorded in docs/streaming/task-ledger.md on codex/streaming-core.

Parent: #94

Activity

  1. added
    type:bug
    area:writer
    area:corpus
    priority:P1
    on Oct 25, 2026
  2. added a commit that references this issue on Oct 26, 2026
    6205f6b
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:corpusarea:writerpriority:P1type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions