Skip to content

SVL v0.3.0 — D6 work: unforgeable attestation, foreign-module linking, packages

Choose a tag to compare

@sudo-ai-git sudo-ai-git released this 13 Nov 05:42
· 13 commits to main since this release

What is in this release

The D6 work: ecosystem and interoperability. Re-scored 6.10/10 (6th of 9) in
SVL_FORMAL_RATING.md §15. D6 is the only dimension that moved, 3 → 4 — and it moved
one step, not two: §13.3 tied D6 3 → 5 to "packages + a component runtime", and only
packages landed.

W1 — VERIFIED is no longer forgeable

PackageRegistry.add_verification compared the caller-supplied public_key bytes to the
registered key, then wrote status=VERIFIED without ever calling verify(). Anyone
who knew a registered public key could attest arbitrary content — and pin its hash as
verified_content_hash, the hash verify_package later compares real bytes against.

It now checks the signature over name:version:content_hash with the registered key.
The payload/padding construction is shared by the signer and both verifiers, so the signed
bytes cannot drift between paths.

W2 — extern "c" links a real compiled module

An extern "c" func import lowered to (import "env" ...) could previously only be
satisfied by a host Python callback — there was no way to hand a program a compiled C/Rust
module.

svlc run --link MODULE.wasm program.svl      # repeatable

A missing export, a signature mismatch, or a non-WASM input is refused by name at link
time, before the program runs. Measured: an SVL program called a foreign add and got 42.

W3 — a package workflow that actually transfers bytes

svlc publish lib/mathx.svl --name mathlib --version 1.0.0 --registry DIR
svlc add mathlib@1.0.0 --into myproject --registry DIR
svlc run myproject/src/main.svl          # imports "mathlib/1.0.0/source.svl"

publish verifies (syntax, types, theorem, determinism ×3), writes the package with its
.svli contract, copies it into the registry, rewrites index.json, and reads it back
and re-hashes
. install checks the registry's recorded hashes before writing
anything, unpacks into svl_modules/<name>/<version>/, checks again after, and records
the dependency in svl.toml.

Four defects, all a success message with no work behind it:

Defect Effect
publish printed Uploading… then Published successfully, returned True nothing was transferred
install raised NotImplementedError installing from a registry was impossible
create_package checked the side-table index, not the artifact a deleted package was unrecoverable
the .svli recorded source_hash and never compared it a body-only change (a + b → a - b, same signature) compiled and ran — measured 38 instead of 42

Gate, measured

publish → add → run → 42; rebuild → byte-identical (52d2cdb3…); tamper the
installed source → refused, naming the artifact and both hashes.

Verification

Gate Result
pytest 217 passed
spike suite 41/43 (the 2 are the declared stubs H36/H37)
corpus 25 compiled, 0 refused, 0 AI findings
probes 30 PASS / 0 FAIL / 3 INFO
differential execution 22/22 agree (return value + printed bytes)
verifier corpus 0 disagreements
mutation checks 6/6, 2/2, 3/3, 4/4 reintroduced defects falsified their pinned test
clean-venv install pip install . → svlc version 0.3.0, sieve runs correct

Asset

svl-sieve-v0.3.0.wasm — the attested examples/sieve.svl build. Verify it:

python3 examples/attest.py --verify svl-sieve-v0.3.0.wasm

Not claimed

  • Compiling C from source. clang --target=wasm32 is present but wasm-ld is not, so
    the foreign module is supplied prebuilt. The linker is real; the C toolchain is not wired.
  • The WASM component model — no loading a C/Rust .so and marshalling through WIT.
  • Community and adoption — three of D6's four components. A local-directory registry is
    real and verifiable, but it is not an ecosystem.