FA-27369 / HTTP ranges / Member archive
A persisted partial-response cache record keeps byte coverage and revision metadata intact: the complete representation length is decoded independently of fragment size · case 04
A persisted partial-response cache record keeps byte coverage and revision metadata intact: the complete representation length is decoded independently of fragment size.
Case contract
Decode this stipulated local binary cache envelope: magic RG, version1, flags0, two-byte big-endian generation, two-byte big-endian complete length, one-byte fragment count, then fragments [two-byte big-endian offset,one-byte count,ASCII payload], followed by one checksum byte equal to sum of preceding bytes modulo256. Reject malformed envelopes, bytes outside0..255, trailing bytes, overlapping fragment ownership, or spans outside complete length. Return [generation,total,[[offset,payload],...]]. This is an invented bounded persistence format, not a public protocol.
Why this case matters
Range responses combine representation identity, conditional requests, framing, and partial-object state.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| length-byte-order fixture 0 | [260, 513, [[0, "ab"], [256, "cd"]]] | [260, 258, [[0, "ab"], [256, "cd"]]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗