Skip to content

v0.23.0 — Slice 23: Architecture Slimming, tts-kernel::crypto, Kani 18/18 & v0.22.0 Red-Team Hardening

Pre-release
Pre-release

Choose a tag to compare

@robertguss robertguss released this 28 Nov 12:44
· 18 commits to main since this release
c0c3491

Pre-1.0 Pre-Release — Slice 23: Architecture Slimming, tts-kernel::crypto, Kani 18/18 & v0.22.0 Differential/Red-Team Hardening

trusted-ts v0.23.0 is a pure hardening, formal-verification, and architecture-slimming release preserving Engine Contract v19 and Box Contract v22 unchanged (41 VM opcodes, 0 new Cargo dependencies, 0 .config/architecture.toml cap edits, 0 crates/tts-engine/src/runtime/ edits).

Highlights & Merged PRs

  • Workspace-wide Architecture Slimming (#82, #83):
    • Reclaimed -2,355 core token-lines (50,086 → 47,731 / 50,500, 2,769 headroom): tts-engine 18,584 / 19,500 (-902), tts-prove 8,839 / 9,500 (-466), tts-kernel + tts -987 net even after adding crypto.rs and 3 new Kani harnesses.
  • Shared Zero-Dependency tts_kernel::crypto (#83):
    • Lifted pure-Rust sha256_pair, sha256_hex, hmac_sha256, ct_eq, encode_base64, decode_base64_strict, decode_hex_32, and decode_base64_32 into crates/tts-kernel/src/crypto.rs (#[cfg(not(verus_keep_ghost))]), deduplicating src/bin/tts-box/{listen/auth.rs, listen/http_resp.rs, pkg/install.rs}.
  • Kani Formal Verification 15/15 → 18/18 (#83):
    • Added kani_regex_nfa_compile_bounded_and_valid, kani_crypto_sha256_hmac_ct_eq_properties, and kani_base64_strict_roundtrip, verifying 18/18 harnesses with zero failures.
  • v0.22.0 Differential Fuzzing, Red-Team Suite & Doc Sync (#84):
    • Added tests/slice23_v022_fuzz_and_redteam.rs (5/5 passing in 1.19s): 180 seeded differential RegExp & URI/Base64 turns vs contract/node-driver.mjs, 5 exponential ReDoS patterns up to N = 120, adversarial binary HTTP (parse: "base64", bodyBase64, non-canonical padding, conflicts, CRLF Set-Cookie injection, 413), 10 <source>/app/** traversal/symlink/dotfile/node_modules/limit refusals + post-install .stamp tamper checks, and NIST/RFC crypto vectors.
    • Published docs/benchmarks-v0.23.0.md and aligned CLAUDE.md, README.md, SECURITY.md, docs/security-model.md, and docs/hands-on-testing.md.

Verification Scorecard (c0c34919)

  • External Conformance (trusted-ts-checks@667a5622, slices/22/conformance.mjs): 42 / 42 PASS
  • Workspace Line Coverage (cargo llvm-cov): 91.98% lines (91.59% functions, 89.40% regions; gate >= 90%)
  • Architecture & Structural Lint: cargo atlas policy & stages 0 violations (47,731 / 50,500, 2,769 headroom); deslop-please --allow .deslop-please.allow ok
  • Formal Verification: Verus 143 verified (0 errors) · Lean 4 0 sorryAx · Kani 18 / 18 harnesses · @tsmodel 6 / 6 specs (0 stale anchors)