noCV
AFETCH-105 · Bound remote work

Enforce byte and time limits while streaming imported documents

Practice briefTaskAdvanced

A response declares a small Content-Length but streams indefinitely, occupying a worker slot.

Focused work estimate
3h + prerequisites
Priority in the scenario
Medium
Engineering practice
Streaming · Resource limits

Estimated field mix

  • Performance engineering40%
  • Security30%
  • Networking30%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

A fictional knowledge service imports documents from customer-entered URLs. The importer follows redirects and trusts response metadata too broadly.

Setup prerequisites

  • Build a local fetch adapter and controlled HTTP test servers.
  • Use synthetic documents and deny network access outside the test allowlist.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Bound actual streamed bytes regardless of headers.
  • Enforce connect, idle and overall deadlines.
  • Cancel the upstream stream and remove incomplete staging objects on failure.

Implementation constraints

  • Choose explicit local test budgets and an injectable clock.

Verification to include

  • Import a document within the declared byte and deadline limits.
  • Stream beyond the byte cap or stall and verify cancellation plus cleanup.

Deliverables

  • Bounded stream adapter and timeout fixtures

Rollout and recovery

Canary small imports; lower admitted limits while investigating failures.

Value of the work

For the engineer: Practice defensive URL handling and bounded untrusted-input processing.

For the team: Review whether integrations can import content without expanding infrastructure access.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.