Skip to content

Streaming 5: bounded browser input and checkpoint API in native/WASM CI #209

Open

Description

@DrunkOnJava

Audit: .github/workflows/wasm.yml already builds web/bundler/nodejs. wasm/src/lib.rs:74 copies the entire uploaded buffer and the viewer uses file.arrayBuffer(). A build pass does not prove browser memory behavior.

Acceptance:

  • Browser/worker API consumes requested chunks, suspends and restores checkpoints with no full file.arrayBuffer path.
  • Native and wasm32 run the same chunk/checkpoint acceptance cases and match output.
  • Real browser entry-point memory and responsiveness evidence for large models, with captured/opened UI evidence for viewer changes.
  • Streaming CI is required alongside existing WASM build; unsupported model/version is explicit.

Depends on core, transport and checkpoints; relates to #177.

Parent: #204

Activity

  1. added
    type:feature
    area:viewer
    priority:P1
    on Oct 25, 2026
  2. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    Status (main 2bab7b2). Native and wasm32 now run the same checkpoint acceptance (#301): a no_std wasm32 kernel built from the identical grammar files, driven under node, restores a checkpoint a native build made and finishes the walk, and the reverse, for the R2004 maps, sections, whole file and objects and for the R2007 walk and objects (tools/streaming/verify_wasm*.py, required Streaming E2E job). The no_std grammar also compiles for wasm32-unknown-unknown with no allocator in that job.

    Not done, and unchanged since the audit: wasm/src/lib.rs DwgFile::open still copies the whole uploaded buffer (bytes.to_vec()), and docs/viewer/index.html still reads new Uint8Array(await file.arrayBuffer()). There is no browser or worker API that requests chunks, suspends and restores checkpoints, no real-browser memory or responsiveness evidence, and the kernel's runtime is node (V8), not a browser. Relates to #177.

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:viewerpriority:P1type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions