Skip to content

Decode streams through filters #38

Closed

Description

@michaelstonis

Parent

#33 Spec: Broadside v1

What to build

A consumer reads the decoded content of any stream encoded with the standard non-image filters, including chains and predictors, and can register an alternative implementation of any filter through the options object.

Spec clauses

ISO 32000-2 §7.4

Acceptance criteria

  • flate-stream.pdf, lzw-stream.pdf, ascii85-stream.pdf, asciihex-stream.pdf, runlength-stream.pdf and filter-chain.pdf yield the expected content bytes through the public stream API.
  • FlateDecode uses the BCL; LZWDecode honors EarlyChange; TIFF predictor 2 and PNG predictors 10 to 15 are applied per DecodeParms.
  • The filter extension point exists: a filter contract, a registry populated with the managed defaults, and replacement through the options object (never a static registry). A test replaces Flate with a counting decorator and observes it being used.
  • Unknown filters produce a diagnostic and leave the stream readable as raw bytes; they do not throw in lenient mode.
  • Each filter has a fuzz target and a decode benchmark.
  • Conformance rows for 7.4.1 to 7.4.7 updated.

Blocked by

Deliverables (every ticket)

  • Tests through the public seam (see the spec's Testing Decisions)
  • XML docs citing clauses on public types
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated
  • Fuzz target and benchmark where the ticket adds a parser, codec or hot path

Activity

  1. added
    taskUnit of work from the task template
    ready-for-agentTriaged: an agent can pick this up without further clarification
    on Oct 9, 2026
  2. self-assigned this
    on Oct 9, 2026
  3. added a commit that references this issue on Oct 9, 2026
  4. added
    integratedMerged into the spec integration branch; closes when the integration PR merges
    and removed
    in-progressClaimed and being worked on
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:filtersArea: filtersintegratedMerged into the spec integration branch; closes when the integration PR mergesphase:1Phase 1ready-for-agentTriaged: an agent can pick this up without further clarificationtaskUnit of work from the task template

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions