You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Streaming 1: replace whole-file parsing with explicit byte-demand states #205
area:containerFile organization R13 to R2018 (spec §3 to §8, §11, §26)priority:P1On the path of the current milestonetype:featureNew capability, including a spec section not yet implemented
Audit at ece6adf: src/reader.rs:101 and :128 call fs::read; DwgFile retains the complete input and read_section/object_stream materialize whole sections. No suspend/resume state exists. Version::from_magic also rejects AC1012 (existing #119).
Acceptance:
Each transition declares exact offset and remaining byte demand; insufficient bytes suspend without consuming beyond that demand.
Every container, compression and object path R13–AC1032 migrates off the legacy full-buffer reader.
Fixed chunk cap, bounded aggregate parser state and explicit limits; no allocation depends on untrusted size before validation.
Unsupported/ambiguous layouts are typed errors, never fabricated success.
Real-file measurements through the public entry point, including partial fields and terminal states.
First deliverable is the hand-written state machine. The spec compiler is a later upgrade, per Griffin's final sequencing instruction.
Foundation implemented in #213: §3.2 header grammar for AC1012/AC1014/AC1015, fixed storage, exact byte demands, strict CRC/sentinel and locator checks. This does not complete container, compression or object migration. The canonical fixture integrity defect has its own issue #214.
Status (main 2bab7b2; docs/streaming/README.md and CHANGELOG.md [Unreleased]). The October 25 checkpoint covers only the §3.2 header (#213). Landed since:
R13 to R2000 container walk (feat(streaming): walk the R13-R2000 container with byte-demand states #240): the §9 and §10.1 sections, the §23.1 object map and every mapped record's framing, CRC, type and handle; 3,546 records over the R14 and R2000 files equal an independent Python framing parse and the legacy reader.
The required Streaming E2E job runs these on real drawings; its manifests in tools/streaming/*-corpus.json name all 52 pinned drawings.
Still open: the streaming grammar frames records but decodes no object body, so entities, tables and objects still come from the legacy whole-section reader, and the acceptance item that every container, compression and object path migrates off the legacy full-buffer reader is not met. docs/streaming/task-ledger.md on main (last updated 2026-10-26) still lists the R2004+ walk and the object records as pending and needs the same refresh.
area:containerFile organization R13 to R2018 (spec §3 to §8, §11, §26)priority:P1On the path of the current milestonetype:featureNew capability, including a spec section not yet implemented
Activity
feat(streaming): bounded file-header state machine, sources and check…
feat(streaming): walk the R13-R2000 container with byte-demand states
feat(streaming): verify the R2004-family file header with byte-demand…
feat(streaming): walk the R13-R2000 container with byte-demand states
feat(streaming): walk the R13-R2000 container with byte-demand states (…
feat(streaming): bounded, resumable LZ77 decoder for R2004-family pages
feat(streaming): bounded, resumable LZ77 decoder for R2004-family pages
feat(streaming): bounded, resumable LZ77 decoder for R2004-family pag…
feat(streaming): verify the R2004-family file header with byte-demand…
feat(streaming): verify the R2004-family file header with byte-demand…
30 remaining items
fix(streaming): refuse a checkpoint at section index u32::MAX, carry …
docs(streaming): R2007 evidence after the index, page id and stored-h…
feat(streaming): walk a whole R2007 file with every checksum checked …
perf(streaming): fold eight bytes per step in the DWG CRC-8 (#205)
perf(streaming): add the §4.2 page checksum in eight lanes (#205)
perf(streaming): fold eight bytes per step in the DWG CRC-8 (#205) (#360
feat(streaming): stream the object records of an R2007 file (§20.1, #205
perf(streaming): add the §4.2 page checksum in eight lanes (#205) (#362)
feat(streaming): stream the object records of an R2007 file (§20.1, #205
perf(streaming): copy a record's first bytes as a slice (#205) (#364)
perf(streaming): flatten §5.10.1's copy table at compile time (#205) (#…
perf(streaming): slice the R2007 CRC-64s, checksum and syndromes (#205)…
docs(streaming): record where the streaming walks' time went (#205) (#…
DrunkOnJava commentedon Oct 27, 2026
Status (main 2bab7b2;
docs/streaming/README.mdandCHANGELOG.md[Unreleased]). The October 25 checkpoint covers only the §3.2 header (#213). Landed since:The required Streaming E2E job runs these on real drawings; its manifests in
tools/streaming/*-corpus.jsonname all 52 pinned drawings.Still open: the streaming grammar frames records but decodes no object body, so entities, tables and objects still come from the legacy whole-section reader, and the acceptance item that every container, compression and object path migrates off the legacy full-buffer reader is not met.
docs/streaming/task-ledger.mdonmain(last updated 2026-10-26) still lists the R2004+ walk and the object records as pending and needs the same refresh.docs(streaming): bring the task ledger and the checkpoint contract up…