http-range-desk / VALIDATION.md
WideChaos's picture
Publish HTTP Range Desk 0.1.0
78e7c43 verified
|
Raw History Blame Contribute Delete
7.99 kB

Local validation

Author-side record for HTTP Range Desk 0.1.0. Independent acceptance, hosting and publication are separate. All checks here refer to this work's actual evidence.

Pre-implementation boundary

CONTRACT.md SHA-256 is 0f5ea519f90c54011ab2def053f0c3bc722a55c1fe505b246a8c437801bb2b8b. The contract was frozen before production implementation and fixture generation. The 314 expected cases and three original payloads were then frozen before core.mjs; FIXTURES-FROZEN.json SHA-256 is 53ea4e47f9a6f2a1af28246f48b31a0db2a168ddde456c301383f8c8f0b71c31. All linked bytes remain unchanged. These are local ordering/hash records, not externally authenticated timestamps.

The first production run exposed a real reporting error: malformed whole-range analysis returned a count of satisfiable parsed submembers rather than null. fixture-first-failure.json preserves that failure. Only the working production core changed; the pre-implementation expected bank, contract and bytes remained unchanged. Current 314 expected cases pass. All 314 complete reports also match the independent stdlib reference exactly, including schema, text, nulls, exact integer strings and actual-byte hashes.

Independent additional cases

The Python reference uses character parsing rather than the core's range regex, standard-library canonical date reconstruction and a separate endpoint-event union calculation. Small domains resolve membership by enumerating individual bytes. It imports no production parser.

8,375 fresh complete reports match exactly, covering 11,882 inspected member rows and 5,845 selected-interval rows. Cases include empty/nonempty resources, reversed/huge/open/suffix ranges, leading zeros, mixed siblings, unknown units, conditional outcomes, strong/weak validators and date/profile boundaries. Eighty-two API checks cover types, caps, invalid dates/headers/payloads, immutable reports and request/payload snapshots across asynchronous hashing. Large offsets remain decimal strings; no numerical tolerance hides integer rounding.

Three further export-boundary cases verify header-only CSV for empty/outside-profile plans and exact decimal CSV offsets above 2⁵³. They are generated core exports, not additional native browser downloads.

Twenty-one actual CLI subprocess checks compare metadata and all three actual-payload reports with the independent reference, check mode 0600 and preserved existing outputs, final-component symlink/directory/missing/oversize input refusal, malformed JSON, usage and file-length mismatch. They do not prove hostile-filesystem atomicity.

Actual server observation

server_observation.py starts a real temporary local standard-library server, makes seven HTTP requests and closes its thread/socket. Four GET requests with valid, unsatisfiable, multipart or If-Range fields receive full 200 responses with the complete 256 bytes in this recorded environment. HEAD receives 200 with zero body bytes; an empty file receives 200 with zero bytes; an equal If-Modified-Since plus Range receives 304. No observed response has Content-Range. This does not compare a production server's compliance; it demonstrates why a range plan does not guarantee remote behavior. Saved observations and the reproducible script remain in the package.

Actual trusted-browser evidence

38 main full JSON downloads and two selected-part CSV downloads were generated through actual browser controls. These include eight examples, 22 metadata boundary requests, four real file-chooser reports, empty-filter/default restore/after-clear checks and a current-wording default download. The complete JSON reports match the independent reference exactly: 311 inspected member rows and 104 selected parts are retained. Another 4,389 displayed cells match exactly, rather than only checking summary badges.

Actual file choices include the all-byte source, empty bytes, a UTF-8/CRLF/NUL/FF sample and a 1-MiB payload. A mismatched asserted length is rejected before explicit use-length preparation. An oversized 1-MiB-plus-one file is rejected and removes the binding and stale exports. Actual slice sizes, complete SHA-256 hashes and bounded hexadecimal previews match independent byte slices; no UTF-8 character count substitutes for bytes. Clear removes a bound file, JSON, all result tables and hashes; a subsequent metadata-only plan has actual_payload null. Empty display filters and Restore retain byte-identical complete default JSON.

Twenty-nine actual typed/JSON/cap errors clear old results and disable exports. Malformed Range headers within the input profile remain diagnostic full-200 plans; they are not confused with rejected tool input. Processing-cap cases retain outside-profile status null and partial-inspection flags.

Seven fresh pages use real file-gated example-inventory success/503 fixtures. Snapshots were saved while Loading before releasing either gate. Edited-and-computed JSON, a real bound file and an already restored default remain unchanged when inventory arrives; Clear and edited text remain intact after success or 503. Only untouched startup auto-computes. Six actual full JSON downloads include two before-release downloads counted once, plus four after-release downloads. Before/after edited and file-bound reports are byte-identical. Total actual JSON downloads are therefore 44, comprising 38 main and six startup downloads; CSV downloads total two. These fixtures establish ordering, not a fixed latency benchmark or a mocked browser response. Startup pages and both fixture servers were closed.

Layout and harness limits

Actual product innerWidth and document width match at 375, 390 and 1280 pixels. Controls are at least 46 pixels; table headers measure 66.9375 pixels on narrow views and 68.9375 on desktop. Short cell labels no longer split words; long headers and exact offsets remain available in named internally scrolling regions. Focus is a 3-pixel solid outline and settled ArrowRight movement is 40 pixels. Final mobile and desktop screenshots were visually inspected; ordinary console warning/error logs are empty.

The trusted read-only DOM evaluator did not expose HTMLInputElement.files. A final files.length observation failed after four file reports had already downloaded. Their saved artifacts were reused; supported file value/status/disabled controls then confirmed the cleared oversized-file state. No failed observation is counted as a product failure or an additional successful run.

After temporary startup pages closed, a browser-wide viewport override initially left the main product at 1280 while an old own research page remained. The width guard rejected that attempt. It is recorded in regression/current-layout-harness-note.json. Closing only the completed own research page left the product as the sole page; actual widths were then measured successfully. Old screenshots were not relabeled as current mobile proof. Initial body-cell wrapping observations are also retained separately. A final wording change clarifies that no target-server request was made; local example asset loading remains explicit. The current complete default report is byte-identical to the earlier default.

Replay

Use a complete separate writable copy, remove only its MANIFEST.json and run python3 run_checks.py. The runner refuses a frozen package and actually reruns its checks. Saved native verification compares recorded observations; it is not a fresh UI run. The local server observation performs fresh real HTTP requests. The fixture bank is historical pre-implementation evidence and must not be regenerated over the originals. Independent acceptance must use new reference cases and actual trusted-browser interactions before this candidate is counted as accepted.

Plans, local hashes and a package manifest do not prove remote representation existence, supplied validator strength, real server behavior, HTTP certification, public hosting or adoption. No training is performed.