Skip to content

v0.19.0 — Slice 19: Pre-1.0 Hardening, 90.92% Coverage, Differential Fuzzing, SIGKILL WAL Soak & 3 Reference Services

Pre-release
Pre-release

Choose a tag to compare

@robertguss robertguss released this 26 Nov 23:16
· 34 commits to main since this release
b908429

Highlights (Pre-1.0 Hardening Release)

v0.19.0 battle-tests the entire v0.10.0–v0.18.0 stack end-to-end with zero breaking contract or schema changes (Engine Contract v17, Box Contract v19, 41 VM opcodes, 0 new Cargo dependencies, and 0 .config/architecture.toml budget increases):

  • Core Architecture Slimming (49,141 → 48,076 / 50,500, -1,065 core token-lines reclaimed, 2,424 headroom) (#66): Behavior-preserving deduplication across tts-engine (-331), tts-prove (-296), and tts (-438), pulling domain.rs (1,054), loop_inv.rs (1,081), and sim/manifest_spec.rs (943) comfortably below concentration caps with zero edits to crates/tts-engine/src/runtime/ (@tsmodel 6/6 lock hashes preserved).
  • Two Real Security & Concurrency Edge-Case Fixes (#66):
    1. Captured outbound tls_gen synchronously at dispatch time so http[].retry across a SIGHUP TLS reload never inserts a pre-reload TLS socket into the post-reload keepAlive pool.
    2. Evaluated listen[].allowCidrs immediately at header completion (skip_body), returning 403 {"error":"ip_denied"} before maxBodyBytes (413) and suppressing CORS headers on error responses to CIDR-denied peers while preserving TLS HSTS.
  • Differential VM Fuzzing, SIGKILL WAL Compaction Soak & Edge Chaos (#67):
    • Deterministic seeded sync + async CPS differential fuzzing vs Node v24.20.0 across --fuel=200/500/1000 (13,341.8–14,720.5 ops/s, 0 divergences) plus Z3 tts prove soundness checks.
    • Multi-cycle SIGKILL crash-recovery soak under --db + snapshotEvery: 5, compactEvery: 10 (1.790 ms p50 durable turn, 7.846 ms p50 post-SIGKILL recovery, 0 lost 200 OK writes, wal verify --json + replay exact parity).
    • Malformed HTTP/1.1 wire chaos and outbound mTLS keepAlive + retry + circuitBreaker + SIGHUP live cert-rotation soak.
  • Workspace Line Coverage Raised to 90.92% & CI Gate Raised 85% → 90% (#67, #68): cargo llvm-cov --workspace --summary-only --fail-under-lines 90 passes at 90.92% lines (33,918 / 37,305), 89.88% regions, 89.29% functions.
  • Three Cross-Platform (boxes: []) Production Reference Services (#68):
    • examples/payments-webhook/ — durable HMAC-SHA256 (prevEnv) Stripe-style webhook service with async try/catch/finally, Map dedupe, pci taint sanitization, outbound keepAlive+retry+circuitBreaker, and limits.compactEvery.
    • examples/tenant-mcp-hub/ — multi-tenant Streamable HTTP MCP 2025-03-26 hub routing to on-demand tenant:* pools with proven tenant_raw crossing taint sanitization, bearer+prevEnv, allowCidrs, and per-IP rateLimit.
    • examples/edge-tls-gateway/ — symmetric mTLS gateway (listen[].tls.clientCa + http[].tls + live SIGHUP rotation), HSTS, CORS, W3C traceparent + X-Request-Id, and /readyz graceful SIGTERM drain.

Verification Summary

  • cargo test --workspace & --doc: 285/285 PASS (0 warnings under rustfmt, clippy -D warnings, RUSTDOCFLAGS=-D warnings)
  • cargo llvm-cov --workspace --summary-only --fail-under-lines 90: 90.92% lines / 89.88% regions / 89.29% functions
  • cargo atlas policy & stages: 0 violations (48,076 / 50,500 core token-lines, 2,424 headroom)
  • Formal proofs: Verus 141 (0 errors), Lean 4 0 sorryAx, Kani 14/14, @tsmodel 6/6
  • External black-box conformance (trusted-ts-checks @ 44cecc46548fad9232d9ec30f51ba373770a4461, slices/19/conformance.mjs): 33/33 PASS
  • Reproducible hardening benchmarks: docs/benchmarks-v0.19.0.md