Skip to content

Bound remote dataset downloads and row parsing - #108

Open
arthurianresolve wants to merge 3 commits into
krypticmouse:mainfrom
arthurianresolve:fix-remote-dataset-limits
Open

arthurianresolve wants to merge 3 commits into
krypticmouse:mainfrom
arthurianresolve:fix-remote-dataset-limits

Conversation

@arthurianresolve

@arthurianresolve arthurianresolve commented Nov 9, 2026 •

Copy link
Copy Markdown

Summary of Fix

  • Bound remote dataset downloads by declared and actual response size, and check the total elapsed deadline during reads.
  • Limit accepted JSONL, CSV, and JSON-array rows. Deserialize accepted JSON-array values as they are read instead of retaining the entire parsed array.
  • These changes address the remote dataset resource-exhaustion finding ([BUG][Low]- Remote dataset loader buffers responses without limits #113): oversized or continuing responses fail within the configured byte and time limits, and excess rows are rejected before unbounded accumulation.

Fixes #113

Related work

Shared support commit: f5815bc normalizes .dsrs fixture line endings for Windows and is present in the companion fix branches.

Testing

  • cargo test -p dspy-rs --test test_remote_dataloader_limits --features data — 8 tests passed.
  • cargo test -p dspy-rs --test test_dataloader --features data — 19 tests passed.
  • git diff --check origin/main...HEAD — passed.

AI Disclosure

  • OpenAI Codex assisted with implementation, tests, and PR drafting.
  • all fixes and drafts have been human-architected, human-directed and human-reviewed before publication of PR requests.

@mintlify

mintlify Bot commented Nov 9, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 1362d26.

Approve preview

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][Low]- Remote dataset loader buffers responses without limits

1 participant