Skip to content

Streaming 6: proptest chunk schedules and automatic streaming invariant gate #210

Open

Description

@DrunkOnJava

Audit: proptest exists for bit primitives/dispatch, not input-boundary equivalence. Existing fuzz targets consume full byte slices. Existing APIs violate the requested invariants, so a new grep gate cannot honestly certify the entire crate.

Acceptance:

  • proptest drives the real built streaming entry point, with full-demand baseline, single-byte, random, misaligned and adversarial split schedules.
  • Compare exact events and failures; no skip on missing corpus.
  • Fresh-process checkpoint round trips cover mid-field, partial object, decompression and emitted-output boundaries.
  • Allocation instrumentation rejects buffers over declared chunk and measures aggregate retained state.
  • No read-all, seek-to-end or transport in grammar; automatic PR gate, including adversarial guard fixtures.
  • Explicit legacy migration inventory shrinks monotonically; new streaming code cannot call legacy full-buffer paths.

Parent: #204

Implementation checkpoint — October 25, 2026

Foundation implemented in #213: required Streaming E2E gate, same-source native/wasm32 no_std/no-allocator compile, built-executable single-byte/adversarial input acceptance, and 128 proptest schedules per real header (two files). Scoped to the new kernel; legacy paths and allocation/decompression/object fuzzing remain open.

Activity

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

    @DrunkOnJava
    OwnerAuthor

    Status (main 2bab7b2; .github/workflows/streaming.yml). The proptest schedule driver (examples/streaming_schedules.rs, 128 generated chunk schedules per file, each attempted schedule kept as a JSONL artifact) now fronts every walker verifier in the required Streaming E2E job, not only the header: verify.py (header), verify_walk.py (R13 to R2000 walk), verify_lz77.py, verify_r2004.py, verify_maps.py, verify_sections.py, verify_file.py, verify_objects.py, verify_r2007.py and verify_r2007_objects.py, plus four native-to-wasm32 checkpoint drivers (verify_wasm*.py). Their manifests name all 52 pinned drawings.

    Not covered by what is there: allocation instrumentation of the streaming buffers (the only allocator tooling on main is examples/dhat_profile.rs, outside the gate), and an explicit legacy-migration inventory that shrinks monotonically. The invariant gate tools/streaming/check_invariants.py still scopes to src/streaming/.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions