VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How Superintelligence Works | Agent Download Resumption — HTTP Byte Ranges, Version Checks and Verified Files

Did you know that an agent can download almost an entire large file, lose its connection, and still be unable to trust the file after the download resumes? The hard part is not asking for the missing bytes. It is proving that those bytes belong to the same version of the same object, start at precisely the expected offset, and produce a complete file that is safe to use. A resumed download that silently joins two file versions may look plausible while being wrong.

The practical answer is to treat every resume as a conditional transaction. Preserve the exact number of verified bytes already stored, keep a strong representation validator or independent checksum where available, request only the missing range, verify the server’s response and the new byte boundaries, write into a temporary object, and promote the file only after length, integrity and content checks succeed. If the server cannot support those checks, restart the whole download or ask for a safer delivery method. This is ordinary agent engineering, not evidence that artificial superintelligence currently exists.

This guide concentrates on resumable transfer of binary resources rather than on the broad question of accepting untrusted uploads. It is for people building data-retrieval assistants, research pipelines, reporting agents, backup jobs or educational document services. All numeric cases below are invented engineering exercises; no external site, file, request, test or production incident is being claimed.

In this guide

The real problem is file identity, not bandwidth

A browser tab may display a progress bar marked 73 per cent. A download agent needs stronger evidence than that visual cue. What is the resource identifier? Which origin supplied the bytes? Which representation did its HTTP headers describe? How many bytes exist locally, and which remote version do they belong to? Did any intermediary decompress, transform or replace the body? Could a signed download URL have expired between the first and second requests? If these questions lack answers, the next network call can make the local state more confusing rather than more complete.

The separation between progress and validity explains many apparently mysterious failures. A file with a perfectly plausible name and a size matching expectations can still mix content from two revisions. Conversely, a legitimate server may ignore a range request and return the full file; an agent must recognise that a 200 response is not the continuation it asked for. The HTTP range mechanisms are standardised in RFC 9110, particularly its range request and conditional request sections. Their existence does not remove the need for local state management.

A robust system therefore tracks two values separately: transfer progress, measured as accepted bytes, and evidence of object identity, measured through version and integrity information. Reaching 100 per cent progress without satisfying the identity condition is not success. For a research result, that distinction protects reproducibility; for a school document, it protects which edition is being taught; for a software artifact, it may protect executable integrity.

Begin with a complete download contract

Before fetching, define what success means. Record the exact source URL or approved source identity; the resource’s expected content type if known; maximum permissible total bytes; transfer deadline; permitted redirects; authentication audience; retention destination; and whether the downstream consumer expects a PDF, data archive, image or another format. If a publisher supplies a digest or signed manifest, record its algorithm and reference value as part of the contract. A digest without trusted provenance merely says two byte sequences are equal; it does not prove that either came from a legitimate publisher.

Decide whether the target needs byte-exact identity. Some applications accept an updated report from an approved source if the latest contents are re-reviewed. Others require the exact same revision because an analysis or citation relies on it. In the second case, downloading a newer file under the same filename is a contract violation even if the newer file is good. Write down that distinction before writing code. Many failed resumptions start with an unstated assumption that a filename is a version identifier.

A reliable completion record can contain source, final resolved origin, representation ETag, last-modified time where applicable, expected byte length, actual byte length, calculated digest, download-start and completion time, authorised purpose, scan or parsing verdict, and the final local artifact ID. Each field answers a different question. Combining them into an opaque success flag makes future diagnosis far harder.

Understand what a byte range actually asks for

An HTTP request with a header such as Range: bytes=1000-1999 asks for one thousand bytes, because both endpoints are inclusive. The server may honour it with status 206 Partial Content and a Content-Range field identifying the returned interval and, often, the complete representation length. Byte offsets begin at zero. That small detail is responsible for large classes of off-by-one bugs.

Suppose a remote representation contains 5,000 bytes. The first byte is offset zero and the last is offset 4,999. If the local temporary file contains the first 2,000 valid bytes, its next missing byte has offset 2,000. The correct next request is bytes=2000-, not bytes=1999-. Asking from 1,999 creates one duplicated byte if the response is appended without checking. Asking from 2,001 creates a one-byte hole. Neither error necessarily breaks a superficial file-length display if other mistakes compensate.

The MDN HTTP range request guide illustrates 206, 200 and 416 handling. In a serious agent, headers are not mere decoration; they are assertions to compare with the locally expected interval. A successful network read becomes accepted progress only after these assertions agree.

A partial response is not automatically the right partial response

A 206 response to a one-range request should carry an interpretable Content-Range of the form bytes start-end/total or an otherwise standards-permitted representation. Check that the start equals the local next offset, that the end is not before the start, that total is compatible with the version and previous observations, and that the body length equals end minus start plus one. A progress counter should be incremented by verified bytes written, not by an optimistic advertised amount.

If the server returns bytes 2,000-2,999 but the local file ends at byte 2,499, appending would leave a gap between the old bytes and the new ones. If it returns bytes 1,900-2,999, blindly appending produces an overlap. Those may be legitimate server or client mistakes, but they are not valid continuations. Quarantine the response and diagnose rather than silently repairing by guesswork.

A client must also distinguish a single-range representation from multipart/byteranges. Multiple ranges have separate boundaries and Content-Range fields. A simple append-only download manager should send one missing contiguous range and reject unexpected multipart bodies unless it has a correctly tested multipart parser. Complexity that provides no reader benefit is itself a reliability risk.

The role of strong ETags and If-Range

An entity tag, commonly called an ETag, can name a particular server representation. When it is a strong validator, it supports byte identity checks more suitable for resumption than a weak semantic equivalence marker. Weak ETags carry a W/ prefix and must not be treated as strong evidence that the byte sequence is identical. A useful transfer record therefore stores whether its validator is strong or weak, not merely the quoted tag text.

With a suitable strong validator, an agent can request the missing bytes and include If-Range. If the representation still matches, an origin capable of satisfying the range can return 206. If it has changed, the server can return a 200 response with the complete current representation. The client must treat 200 as a fresh full-file body, never append it to its old partial file. Keep the new bytes in a new temporary object until all checks finish, then retire the abandoned partial version according to retention policy.

If-Range is a conditional request mechanism, not a guarantee that every server will behave well or that every intermediary preserves identity. RFC 9110 defines how validators and range semantics interact. Inspect the exact headers received, and when a server fails to provide a usable strong validator or other trustworthy revision proof, choose a full restart or independent digest verification rather than assuming an unchanged URL means unchanged content.

Last-Modified and clocks are weaker evidence

Some servers do not provide ETags but do supply Last-Modified dates. HTTP supports date validators in specific conditional range scenarios, but timestamp granularity and operational practices can make them inadequate for byte-level certainty. Two revisions may occur within the same timestamp resolution; proxies can complicate observations; a file may be rebuilt while metadata appears stable. A download agent should not silently upgrade a timestamp into a cryptographic content guarantee.

The safe distinction is between a validator acceptable under HTTP’s rules for conditional resumption and an independently trusted checksum for final object identity. If an application needs strong assurance and has only a last-modified timestamp, it can download fully and calculate a checksum, but that local checksum proves only what it has received. A publisher-provided signed manifest or an independently authenticated hash gives stronger provenance.

Clock-based decisions need time zones and resolution recorded correctly. A string such as 10:30 without a date, time zone or source cannot establish file identity. In agents that handle scientific archives, the content’s logical revision number may be more meaningful than the server’s filesystem modification time. Keep those concepts separate.

Content encoding can change the byte coordinate system

A byte range refers to a selected representation, not simply to the human-visible text after an agent has decoded it. Compression or intermediary transformation can change byte offsets. A 4 MB compressed response might become a much larger uncompressed document. If the first attempt stores decoded bytes but the resume request addresses encoded bytes, the local offset no longer names the same coordinate in the remote representation.

Decide at the HTTP layer whether to request an identity encoding, to preserve the encoded representation exactly, or to disable resumable append when transparent decompression makes byte identity ambiguous. Record Content-Encoding and relevant response headers; do not let an HTTP library’s conveniences obscure the bytes actually persisted. Different libraries may automatically decompress response bodies while still exposing headers that describe the encoded response, which can deceive a naive integrity check.

Do not confuse transfer framing with range semantics. Chunked transfer encoding streams a message of unknown size in pieces; it does not mean a partially received download can be resumed by asking for chunk number seven. The Range mechanism addresses representation bytes. A sound system verifies this distinction in integration tests, especially when a proxy, CDN or content negotiation layer is present.

Different responses require different transitions

A 206 with a matching interval and representation validator is a candidate for verified append. A 200 in response to a resume request represents a full body and normally requires replacing the partial file, not appending. A 416 can mean the requested start lies beyond the representation length, perhaps because the local file was already complete or because the remote file became shorter. Neither situation should be guessed from the status alone.

A 404 indicates absence of the resource at that address, not permission to search unrelated locations without authorisation. A 401 or 403 indicates an authentication or authorisation boundary. A 429 asks the client to reduce pressure; a 503 indicates temporary unavailability. RFC 9110 describes Retry-After as a delay field in seconds or HTTP-date form. A responsible agent respects applicable delays and budgets rather than using an unlimited retry loop.

A successful 200 can still contain an HTML error page where a PDF was expected. Therefore status alone never proves that the file is usable. Validate content type thoughtfully, bounded file signatures where appropriate, structural parsing under isolation, required records and final checksum. This is the point at which transport correctness becomes artifact correctness.

Worked case: a stopped ten-mebibyte transfer

Imagine a fictional research assistant downloading an authorised 10 MiB reference archive. One mebibyte equals 1,048,576 bytes. The expected representation length is therefore 10 times 1,048,576, or 10,485,760 bytes. The first session wrote and verified exactly 3 MiB, which equals 3 times 1,048,576, or 3,145,728 bytes. The locally stored offsets are zero through 3,145,727 inclusive.

The first missing byte is 3,145,728. A request for Range: bytes=3145728- asks for the remaining bytes. If the representation is still identical and the server returns the rest, the expected Content-Range is bytes 3145728-10485759/10485760. The number of newly delivered bytes is 10,485,759 minus 3,145,728 plus one, or 7,340,032 bytes. Checking another way, 10,485,760 minus 3,145,728 also equals 7,340,032. These independent calculations must agree.

After appending the verified segment, the exact total should be 3,145,728 plus 7,340,032, or 10,485,760 bytes. An app showing 10 MB while reporting 10,485,759 actual bytes is missing one byte, despite a reassuring rounded progress display. At the final gate the assistant validates the object against a publisher-provided digest if available and then confirms that its internal archive structure is sane. The numbers prove transport completeness; they do not by themselves prove trustworthiness or harmless contents.

What happens when the file changes halfway through?

In the same invented case, suppose the first 3,145,728 bytes belong to revision A with strong ETag “rev-a”. The remote publisher replaces it with revision B, which has 10,600,000 bytes and ETag “rev-b”, before the agent resumes. The agent requests the missing range with If-Range: “rev-a”. A conforming server that sees the validator mismatch sends the complete new representation with status 200 rather than the tail of B under A’s assumption.

The correct transition is to mark A’s partial download stale, allocate a fresh temporary file for B and receive its full 10,600,000-byte body. Appending B’s complete body to A’s 3,145,728-byte prefix would create a 13,745,728-byte hybrid. That hybrid could potentially pass a simplistic “file exists” check, but its stated size would already disprove the expected new length. Even worse, a hybrid that happens to match a loosely checked expected size could remain unnoticed without version integrity checks.

The failure mode matters because agents often preserve a file after a network retry and proceed directly to summarisation. If the artifact is a changing syllabus or reference standard, the response can mingle old and new instructions. A durable revision check turns a vague claim that “the download completed” into a specific statement about exactly which version was obtained.

Use temporary storage and an explicit commit point

Never expose a partially downloaded file under the same path that downstream consumers treat as final. Give each attempt a unique temporary object ID and maintain a small manifest describing its expected identity, verified byte count and current status. An atomic rename or equivalent publish operation on a suitable filesystem can make a fully validated artifact visible at once. Across object stores or network filesystems, use the platform’s actual consistency and conditional-write semantics rather than assuming rename is atomic everywhere.

A minimal state progression is planned, fetching, partial, verifying, committed, or quarantined. Only committed artifacts may be read as approved outputs. If the agent crashes while fetching, it can inspect partial state without pretending that completion occurred. If it crashes after verification but before publication, it can reconcile its manifest and final object IDs rather than downloading or publishing duplicates.

Make writes idempotent at the segment level where possible. Offset-plus-revision is a useful key: the same fragment for the same revision should be recognised, not appended a second time. A duplicate network response after timeout is not automatically a new segment. This matters especially with asynchronous workers that may retry independently after a delayed acknowledgement.

Avoid two workers writing the same file simultaneously

Two workers can each observe a 3 MiB partial file and independently request its 3 MiB onward range. If both append, the result is a corrupted object even though each fetched valid bytes. A single-writer lock or append-generation fence ensures that one writer owns that temporary artifact at a time. The fence must be checked at commit too, since a stale worker can wake after a replacement has taken control.

The specialist concern here is not general distributed-lease design; it is preserving an unambiguous byte sequence during network recovery. A storage service may provide conditional object versions, append preconditions or atomic compare-and-swap metadata. Choose primitives that actually exist for your destination rather than relying on a timestamp or a filename convention.

Readers interested in the broader lease design can follow cross-agent resource ownership and fencing tokens. The download-specific test is simpler to state: after racing two resumes, the final committed hash must match exactly one authorised complete source version, and no doubled segment may appear.

Redirects and signed URLs introduce identity changes

A source URL may redirect to a content delivery network or short-lived signed object URL. A redirect can be legitimate, but each hop changes the endpoint receiving a request and perhaps any credentials. Apply the approved origin and redirect policy before sending sensitive headers. Do not forward a bearer token blindly to a different host. A signed URL expiring mid-download is an authorisation problem, not merely a network problem; reacquire it through the proper trusted workflow instead of guessing fresh parameters.

After a redirect, do not assume the old ETag identifies the same representation at the new location unless the protocol contract provides that continuity. A CDN may change compression or vary output by request headers. An opaque query string can designate a snapshot rather than a live document. Record a stable publisher identifier where possible and connect ephemeral fetch URLs back to that approved identity.

The related subject of fetching remote URLs safely is covered in agent safe URL fetching. In a download-resume implementation, source validation precedes every newly resolved request, not just the first one.

Integrity is layered, not a single checkbox

Transport checks answer whether the bytes received fit the requested offsets and length. Representation checks answer whether those bytes describe one consistent remote revision. Digest checks answer whether the complete assembled bytes equal a trusted expected digest, when that digest is available. File-format checks answer whether the content behaves like the declared format. Malware and content-safety checks address a different class of hazards and should run where policy requires them. Keeping the layers separate makes incident diagnosis precise.

A locally computed SHA-256 digest is useful for subsequent equality comparisons and deduplication. But if an attacker replaced both the downloadable file and the posted hash on an untrusted page, equality between them would not establish authenticity. Prefer independently authenticated publisher metadata, a signature or a trusted artifact registry when the consequences justify it. For less consequential public reference materials, a length-and-parse validation may be a reasonable minimum, provided the reader is not misled about the assurance obtained.

Do not use a successful virus scan to conclude that the file came from the right publisher. Do not use an ETag to assert that a PDF’s tables are semantically correct. Each evidence type is valid for a limited question, and claims should stay within those limits.

Bounding download work and storage

A faulty server can advertise an enormous Content-Range total, stream longer than declared, or switch totals between requests. Establish a configured maximum artifact size before the first request; enforce actual bytes written against that limit; reject unexpected growth; and reserve adequate disk space before a large append. For compressed content, enforce both compressed and decompressed limits to prevent resource exhaustion during inspection.

Retries consume bandwidth and money. A download agent can cap attempts, total bytes transferred, wall-clock time and retry delay. For example, if a 10 MiB artifact is restarted twice after 8 MiB and 9 MiB were received, total transferred bytes reach 8 plus 9 plus 10, or 27 MiB, even though the approved final object is only 10 MiB. That represents 17 MiB of additional transfer. A budget should measure bytes actually transferred, not just successful final bytes.

A bounded retry policy also protects the remote server. Exponential delays with suitable jitter reduce synchronized retry storms, while a server-specified delay can override locally desired urgency when required. When the budget is exhausted, report a blocked or partial artifact honestly and preserve sufficient state for later authorised resumption.

Timeouts do not prove the server did nothing

If a transfer stops because the client timed out, the server may have sent additional bytes that never reached durable storage. The resumption offset must therefore come from verified local persistence, not an optimistic in-memory counter. A download manager that increments a counter before the filesystem flush and later resumes from that counter can leave a permanent hole.

When using buffered writes, track the committed local length after successful writes and, when required by reliability policy, durable flush. The exact durability semantics depend on local filesystem, object storage and crash model. Some applications can tolerate re-downloading a short tail; others must preserve forensic chain-of-custody. Define the recovery promise before designing the checkpoint format.

The correct response to uncertainty is conservative: revalidate the local partial file against its manifest, truncate an untrusted or torn tail to the last verified boundary when that boundary is proven, and request from the first truly missing byte. Never fabricate bytes to satisfy an expected length.

Content-Length and the danger of trusting a header

For a 206 response containing a single byte range, Content-Length usually describes the response payload for that range, while Content-Range indicates its placement within the full selected representation. They answer different questions. If a body is compressed or transferred through a framing layer, the client must know which lengths it is actually counting. A mismatch can arise from a corrupt response, a client library transformation or a misunderstood representation.

An agent should never allocate unlimited memory simply because a header advertises a small body. Stream the response through a bounded parser or file sink, stop once accepted limits are exceeded, and compare the actual received amount against the claimed range. Treat headers from an unaudited remote endpoint as untrusted inputs subject to validation.

A final 10 MiB length proves no more than ten mebibytes exist. Correct file type, revision, digest and authorised source still require separate evidence. This is why an integrity ledger should retain specific completed checks, not only the integer file size.

Compression, archives and extraction are a separate gate

Some downloaded files are zip archives or other compressed packages. Passing the transport gate does not mean it is safe to extract them. The archive may contain traversing paths, duplicate names, malformed entries, oversized expanded content or files whose declared types disagree with their actual structure. Extract only in an isolated destination with path and resource limits.

The design distinction is important. HTTP Range and If-Range address reliable retrieval of the archive’s bytes. Archive parsing addresses what those bytes mean after download. Combining both into one opaque download-success operation makes failures invisible. A properly layered system can say, for example, “version B downloaded and its checksum matched, but extraction was rejected because a path escaped the allowed directory.” That is much more informative than “download failed.”

The separate agent file ingestion guide discusses parser isolation and upload hazards. Reuse those controls after resumption; do not rewrite the same safety problem as if it were a new transfer rule.

Verification when no trusted checksum exists

A small public site may supply neither a strong ETag nor a publisher digest. That does not make downloads impossible; it changes the assurance you can claim. The conservative choice is to restart fully after interruption and verify the complete response’s size and structure. If the system elects to resume under weaker evidence for low-stakes data, it must label the result and avoid using it where byte-exact provenance is essential.

For some formats, a format-specific checksum inside a package can detect accidental corruption, but it may not authenticate the publisher. Re-fetching a complete object and comparing hashes can test consistency at two moments, but repeated equality still does not establish the object’s source authority. In higher-stakes research or regulatory reporting, seek the publisher’s authoritative archive, revision identifier or signed publication process.

Make the uncertainty visible in the product. A message such as “complete by byte count; independent checksum unavailable” is accurate. “File verified” without specifying which checks occurred invites misplaced trust.

Failure diagnosis: six signals worth keeping

When a resumed artifact fails, capture the starting local length, requested range, received status, received Content-Range, representation validator and actual persisted bytes. These fields can distinguish an off-by-one bug, changed origin revision, incorrect response parsing, interrupted storage write and a server that ignored ranges. Keep them in a scoped diagnostic log; redact tokens, signed query parameters and private filenames as policy requires.

If the local length is 4,096 bytes and a request begins at 4,095, suspect an overlap. If the request starts at 4,096 but the response starts at zero with status 200, suspect a full-response fallback, not a partial continuation. If an ETag changes between attempts, invalidate the old fragment. If the response length disagrees with the inclusive end-minus-start-plus-one calculation, reject the part. If the final byte count matches but the trusted digest differs, investigate identity or corruption rather than declaring success.

A useful troubleshooting report identifies the earliest violated invariant. The repair can then be narrow: change the offset calculation, harden response classification, prevent decompression mismatches or require stronger version evidence. “Try the download again” is sometimes necessary, but it does not explain which bug might repeat.

A staged test plan for download agents

Start with a local controllable server that serves a fixed binary sequence with a known digest. Interrupt after predetermined byte counts: zero, one, a boundary such as 4,096, one byte before the end and the full length. For each, verify the next requested offset and final exact digest. Then test response variations: 206 with a correct range, 200 full fallback, 416, malformed Content-Range, mismatched body length and unexpectedly changing total.

Next introduce version changes during a pause. Ensure a changed strong ETag forces a full restart rather than a mixed append. Include a weak ETag case that must not be incorrectly treated as a strong validator. Add redirects to an allowed destination and to a forbidden one, expired authorisation, truncated streams, slow connections and concurrent workers. Some tests should crash the client just before and just after persisting a checkpoint.

Finally, run an end-to-end consumer test. A retrieved PDF should open under a bounded parser; a CSV should have the expected schema; a model artifact should match its authoritative manifest. Do not invent an execution result in the article: these are proposed test cases, and their value lies in clearly stating the pass criteria.

Changed-context exercise: a compressed twenty-megabyte object

Suppose a new fictional task downloads a 20,000,000-byte compressed representation. A proxy transparently decompresses its first response, producing a 28,000,000-byte local file, while the response headers still refer to the compressed representation. An agent attempts to resume with Range: bytes=28000000-. What is wrong? That offset is in the decoded coordinate system, while the range refers to the selected HTTP representation. It does not identify a missing compressed segment and may produce 416 or unrelated behavior.

The repair is to stop using the decoded local length as a compressed representation offset. Either negotiate and persist identity-encoded bytes for resumable transfer, preserve the exact compressed bytes with consistent response handling, or choose a complete fresh download and decompress only after its transport verification. Maintain separate counts for transferred representation bytes and expanded content bytes. Enforce limits on both.

If the entire uncompressed output is needed, a 28 MB decoded length is not proof that 20 MB of compressed input arrived. This exercise transfers the earlier byte-boundary principle into a setting where the apparent progress counter is meaningful but refers to the wrong layer.

A second transfer: files assembled in parallel chunks

Some download managers request disjoint ranges in parallel. This can improve throughput but raises the verification burden. Each worker must write at its assigned offset, not append to a shared tail, and the file must not be committed until every byte position has exactly one accepted owner. Overlapping intervals are invalid unless explicitly compared for equality and safely reconciled. Gaps invalidate completion.

For an invented 12,000-byte object, three workers might receive bytes 0-3,999, 4,000-7,999 and 8,000-11,999. Each interval has 4,000 bytes, and the union covers precisely 12,000 bytes without overlap. If the second worker receives 4,001-7,999, its segment contains 3,999 bytes, and byte 4,000 is missing. A total-count counter might hide the hole if another worker wrote an extra byte elsewhere; an interval coverage map would reveal it.

All workers must bind to the same representation validator. Splitting work across remote versions creates an invalid composite even if offsets cover the entire expected length. In practice, begin with serial resumption unless parallel transfer has a clear measured benefit.

Human review and the consumer’s right to know

Not every failure requires a complex automatic recovery. When an archive is used to inform a school decision, policy interpretation or consequential business action, uncertainty about the version may justify escalation. The user should know which document was retrieved, from where, whether it matched a named revision, and which checks actually passed. A machine-generated summary should not cite a quarantined or unverified partial file.

A clear user-facing status distinguishes “queued,” “partially received,” “received but not yet validated,” “verified and ready,” and “blocked by source or integrity mismatch.” These statuses support different actions. Retrying a blocked source may be appropriate after authorisation is renewed; quoting results from an incomplete file is not. A user who requests a document summary may prefer an explicit explanation of unavailable source material to a fluent summary of corrupted content.

If a file changes during a long retrieval, the agent can offer the current revision after revalidation rather than quietly substituting it for the requested revision. The difference is especially relevant when two authors or reviewers are relying on the same evidence.

Linking transfer correctness to reproducible research

Research assistants often cite a report title and publication date, but a dynamic URL may serve a new revision later. For a reproducible retrieval, record version evidence and, where permissions allow, a trusted digest of the exact binary artifact used. The checksum alone does not replace an accessible citation, but it can help future auditors distinguish editions.

An educator preparing a lesson from a downloadable technical standard may notice a changed figure or example a week later. A robust archive lets the teacher explain which edition informed the original lesson and whether the new file requires re-review. This connects file integrity to learning that transfers into life: students should be able to ask not only whether an answer sounds plausible, but whether the underlying evidence is the version claimed.

A transfer ledger should never become a public dump of private URLs, student identifiers or access credentials. Preserve only what legitimate review requires, and honour expiry and data-deletion policies for temporary files.

Reader questions: does Accept-Ranges guarantee resumption?

No. Accept-Ranges can advertise support, but a client must still examine the actual response to its specific request. A server may choose not to honour a range in some circumstances, an intermediary may transform the representation, or authentication may expire. The observed 206 and its validated Content-Range are what make a fragment a candidate for append.

Reader questions: can I use a file size instead of an ETag?

A size is necessary for many checks but insufficient for version identity. Two documents can have the same number of bytes while differing in contents. Use a strong validator where available and a trusted digest when stronger identity is required. If neither exists and consequences are high, prefer a full download and authoritative revision evidence.

Reader questions: why not just start over every time?

Starting over is often the safest fallback, particularly for small artifacts or unreliable range servers. For multi-gigabyte authorised datasets, bounded resumptions can save bandwidth, time and remote load. The engineering question is whether those savings outweigh additional state, testing and assurance obligations. An explicitly chosen full restart is a correct design, not a failure of sophistication.

Reader questions: does 416 mean the file is complete?

Not by itself. A requested offset may be beyond a newly shortened remote object, or the local file may have accumulated duplicate bytes. Compare the current representation’s validated total and checksum with the local object. Only then can an apparently complete file be committed.

Treat a signed URL as a credential. Keep it out of public logs and published articles, do not redirect it to an unapproved origin, renew it through authorised channels, and retire temporary files according to policy. A valid signed URL does not prove that the resulting bytes are the expected version.

The operating decision in one sentence

A resumed download is acceptable only when the stored prefix and newly received suffix are verified as one authorised representation and the complete artifact passes its declared final checks. The agent’s job is to make that assertion auditable, not merely to reach the end of a progress bar.

Sources and further reading

The normative starting point is the IETF’s RFC 9110: HTTP Semantics, especially range requests, validators, partial responses and status-code meanings. The MDN guide to HTTP range requests supplies a useful independent implementation-oriented explanation and examples of single and multipart ranges. NIST’s AI Risk Management Framework supplies broader language for validity, risk management and ongoing checking of systems, although it does not prescribe a download algorithm.

For adjacent specialist questions, read agent stream integrity, agent file ingestion, and the superintelligence engineering guide. Readers interested in general mechanisms can move to How AI Works, while educators can connect byte-precise evidence handling to authentic learning transfer.

Discover more from eduKate Singapore

Subscribe now to keep reading and get access to the full archive.

Continue reading