Add bounded format detection and validation #10

Closed
opened 2026-10-16 10:12:24 +00:00 by mmacia · 0 comments
Owner

Objective

Implement deterministic bounded format detection and explicit validation.

Scope

Detect RSS, Atom, RDF, or unknown from a capped replayable prefix, enforce max_detection_bytes, preserve input for parsing, and validate content against an explicit format. Return stable unknown or detection errors.

Acceptance Criteria

  • Detection never reads beyond its configured bound.
  • Detection is pure over the supplied prefix and deterministic.
  • Non-rewindable input can replay the bounded prefix.
  • Explicit validation supports RSS, Atom, and RDF.
  • Unknown and ambiguous outcomes are stable and tested.
## Objective Implement deterministic bounded format detection and explicit validation. ## Scope Detect RSS, Atom, RDF, or unknown from a capped replayable prefix, enforce `max_detection_bytes`, preserve input for parsing, and validate content against an explicit format. Return stable unknown or detection errors. ## Acceptance Criteria - Detection never reads beyond its configured bound. - Detection is pure over the supplied prefix and deterministic. - Non-rewindable input can replay the bounded prefix. - Explicit validation supports RSS, Atom, and RDF. - Unknown and ambiguous outcomes are stable and tested.
mmacia self-assigned this 2026-10-16 10:12:24 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmacia/feed_reader#10