Skip to content

Release bounded Safetensors weight editing with hardened rollback and paired evaluation - #228

Merged
ruvnet merged 10 commits into
mainfrom
feat/rust-wsp-tensor-pan2
Nov 12, 2026
Merged

ruvnet merged 10 commits into
mainfrom
feat/rust-wsp-tensor-pan2

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Publishes ruv-fann-wsp-tensor 0.1.0, a standalone Rust library and CLI for streaming, bounded F32/F16/BF16 Safetensors edits and byte-exact rollback. It is a checkpoint file utility; PAN2 generation and model-quality improvement are not established.

Review fixes:

  • Patch rustix 1.1.2 to 1.1.6 and its required linux-raw-sys dependency; release audit warnings are fatal.
  • Reject duplicate/unknown header fields, forged rollback claims, non-element undo ranges and replacements outside apply bounds. Inspect and hash the same open handle. Preserve Linux non-UTF-8 CLI paths and exercise Unicode paths on macOS.
  • Isolate paired evaluation inputs: full checkpoint/config inventory, undo bytes, prompt images, offline token-free model cache, fixed launcher settings, per-run invariance, output completeness and process-group cleanup. The test launcher is an explicit CPU mock.
  • Add licenses, Rust 1.81 qualification, explicit archive contents and protected publication with exact source/archive/receipt binding and fresh public registry consumers.

Published and merged source: fc575c8c6cdbd18cca92fb07ddfdcd87c60d34a8.
Canonical crate SHA-256: ab361ddadc64f8a87c132cd4a21333c16cad5c888c01a091334b0d75f685d269.

Validation includes 10 source and packed Rust integration tests, 29 Python regressions, fmt/clippy, real Rust 1.81 checks, audit with warnings denied and independent BF16 CLI edit/overwrite-rejection/rollback. Fresh public verification passed 10 integration tests, a library consumer performing an F32 edit and exact rollback with the official registry checksum, and an installed Cargo CLI roundtrip. Independent downloads confirmed canonical crate bytes, source/tag identity, complete release inventory, checksums, original logs and the losslessly preserved empty formatter log.

The initial protected publisher successfully uploaded and tested the public crate but failed when GitHub rejected its zero-byte formatter-log asset. That run remains recorded as failed. A separately reviewed recovery qualifier and protected recovery passed. Recovery preserved the immutable crate/source/tag and original evidence, carried the empty log in the original sealed candidate ZIP, and verified complete downloads before and after publication. The permanent publisher correction is tracked in #229.

A five-sample synthetic file-edit benchmark observed warm-cache medians of about 20 ms for 16 MiB and 135 ms for 128 MiB on the test host. These observations do not establish comparative speedup, inference performance or GPU quality.

PAN2 GPU generation, video quality and behavioral improvement remain unverified. The supplied paired harness requires a separately provisioned trusted Linux CUDA environment.

@ruvnet ruvnet changed the title Add Rust WSP Safetensors editing and paired PAN2 inference harness Release bounded Safetensors weight editing with hardened rollback and paired evaluation Nov 11, 2026
@ruvnet
ruvnet marked this pull request as ready for review November 12, 2026 01:54
@ruvnet
ruvnet merged commit fc575c8 into main Nov 12, 2026
111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant