# Author validation — Tensor Header Desk 0.1.0

Local candidate verification, 2026-11-05 Asia/Muscat. Independent total-output acceptance and public deployment remain separate gates.

## Core and independent reference

`test_core.mjs`: all 320 expected outcomes pass. Status counts are 283 layout-ok, 27 invalid, six policy-rejected, four outside-profile. Each fixture is inspected both as bytes and through instrumented Blob slices, with no slice entering tensor data. All 22 dtype bit widths have aligned fixtures; exact integer 9007199254740993 survives parsing. Payload-bitflip original and changed files share a header digest while full file bytes differ. Exact number lexemes and the original UTF-8 header remain in reports.

`verify_reference.py`: uses safetensors 0.8.0, stdlib SHA/struct/JSON and NumPy; imports neither tool core nor generator. All 320 original file hashes/lengths and all recorded official acceptance results match. Official accepts 286; three classified pass/reject differences are duplicate tensor name, tool header cap and tool tensor cap. All 12,291 existing Char Router model scalars reload exactly. This is serialization, not another fit. `reference-results.json` includes the precise altered payload byte.

Fresh fixture regeneration writes a new directory; all 320 labels and reference outcomes match. The official serializer may reorder metadata, changing only the three router-derived files’ headers/hashes; frozen originals remain unchanged. Detailed results are in `regeneration-results.json`.

## Actual native browser evidence

Official CUA, own hidden browser, localhost only. Six example selections and thirteen file-chooser uploads produced nineteen complete native JSON downloads. A further export after filtering the 137-tensor upload to seven visible rows still contains all 137 descriptors. `verify_native.py` independently checks all 20 files, 293 descriptor rows, exact header bytes/SHA, input sizes, shapes and absolute/relative offsets without importing the tool. Reports are in `native/`; their hashes are in `native-results.json`.

Uploaded boundaries: string metadata containing a literal script tag, duplicate name, 1 MiB header cap, 10,001 tensors, 137-item inventory, 607-character tensor name, unsafe integer, leading whitespace, misaligned subbyte size, prototype-named tensors, globally unaligned but valid F32 start, misplaced empty tensor and missing dtype. Invalid JSON replacement removes old tensor rows. Clear empties the file value, digest, metadata and table and disables export. Actual DOM records are `actual-operations.json`, `actual-pagination.json`, `actual-clear.json` and `actual-metadata-text.json`. Script-like metadata remains plain text, and the only script node is the application module. This is a concrete rendering check, not a comprehensive XSS/security certification.

Native table pagination: 50, 50, 37 rows; filter x13: seven rows x130–x136. Full report: 137 rows. At 375 and 390 CSS pixels, page scroll width equals viewport; table content remains inside a focusable horizontal scroll region. ArrowRight produced measured 40/80px movement. Buttons meet 44px height; the wrapping 375px example button is about73px high, 390px about46px. Viewport reset afterward. Console warnings/errors empty on the exercised local paths. Actual JPEG captures: desktop, both mobile widths, and unscrolled 375 preview. No claim of hosted HF or all-browser verification.

## Controlled async tests

`test_ui_races.mjs`: five Node-only controlled DOM/promise scenarios cover Clear during pending read, source change during pending read, an older failure after a newer success, file selection and fresh read failure replacing an existing report. These are implementation tests, not native file/network race evidence. Native tests above remain separate.

## Release gate

Only original public/synthetic material. Apache-2.0 tool and existing same-license model. No external write, resource upload, announcement, duplicate identity, ledger write or scheduling change. Finite differential/test agreement does not establish formal correctness, complete compatibility or model/loader safety. Complete-file content is intentionally unchecked. Independent review must operate on a copied candidate before later daily HF release.

## Same-origin hosting adaptation: local author checks

2026-11-21, isolated maintenance copy only. `node test_example_loader.mjs` actually passed 30 checks using a real local Node HTTP server and negative-response cases: all six exact byte reconstructions and complete inspector reports match the original files; unknown/path names fail before network; schema/name/encoding/length/hash, malformed JSON/base64/UTF8, changed payload, streamed/declared byte caps, HTTP errors, redirect refusal, missing body and network failures are covered. Request options are same-origin, omit credentials, refuse redirects and carry a timeout signal. The fixed 15-second elapsed timeout has not been time-delayed in this suite; supplying the signal is checked, not claimed as an elapsed-time test.

`node test_ui_races.mjs` now exercises the actual new loader within a controlled DOM: eight scenarios cover Clear, changed selection, reverse completion/stale error, local File/Blob with zero loader network calls, current network failure, bad carrier replacing a success and invalid old response after Clear. This is a Node model of DOM interactions, not native browser evidence. Initial harness timing/DOM-semantic assertion failures were diagnosed and retained in the author review record, without changing product rules to satisfy them.

Original core 320-case/22-dtype checks, pinned official reader differential (286 accepts/three preserved differences), exact existing-model scalar reload and the 20 saved-native-report replay passed again. Those saved reports describe the original UI evidence and are not new hosted downloads. The original inspector, fixture corpus, model/provenance and scientific result artifacts remain byte-identical.

A separate independent reviewer must bind the new exact manifest, inspect the transport change and exercise new failure cases. HF native revision/upload, six hosted examples, user local-file checks, actual final report downloads, Clear/filter/page behavior and current phone layouts remain release gates. `.crdownload` files do not satisfy completed native export. No first-revision failure was erased or converted into a success claim.
