Skip to content

v0.16.0 (Pre-1.0 — Slice 16: Interface Extends, Rest Destructuring, Map Iteration, Outbound Keep-Alive Pooling, Dual-Secret Auth & W3C Traceparent)

Pre-release
Pre-release

Choose a tag to compare

@robertguss robertguss released this 26 Nov 02:09
· 43 commits to main since this release
4234d6e

Highlights (Pre-1.0 — Engine Contract v15 & Box Contract v17)

  • Engine Contract v15 (41 VM opcodes preserved, 0 new opcodes, 0 new Cargo dependencies):
    • interface B extends A, C: Compile-time structural flattening across local and imported .ts modules (covering MessageType, Caps, tts-box mcp JSON Schema, and __label taint brands; refusing cycles, non-interface parents, generic parents, and duplicate keys).
    • Array & Object Rest Destructuring: Trailing [head, ...tail] = arr and { a, ...rest } = obj across const/let and for..of bindings with prototype-free ES2024 key order and __label taint propagation.
    • Map Ergonomics: m.clear() plus for..of and array spread ([...m.keys()], [...m.values()], [...m.entries()]) over live insertion order while keeping standalone iterator escapes refused.
    • ES2023 a.with(index, value) & Math.sqrt / Math.sign: Immutable indexed replacement with negative indices & catchable out-of-range RangeError, plus IEEE-754 -0/NaN preserving math.
    • Z3 & Formal Proofs: Compact linear SMT models (tts-prove-cache-v5), Lean 4 mirror (0 sorryAx), Verus 141, Kani 14/14, and tsmodel 6/6.
  • Box Contract v17 (0 new Cargo dependencies):
    • Outbound http[].keepAlive Connection Pooling: Per-origin persistent HTTP/1.1 TCP & rustls TLS/mTLS connection reuse (3.65x lower p50 mTLS latency: 1.775 ms cold → 0.487 ms warm; 3.42x custom-CA throughput at 2,057 req/s), one-shot stale-socket retry on idempotent methods, and atomic pool flush on SIGHUP TLS reload.
    • Dual-Secret listen[].auth.prevEnv Rotation: Constant-time non-short-circuiting verification (0.001 ms p50 delta between env and prevEnv) on bearer & HMAC-SHA256 listeners, child env scrubbing, and tts-box doctor validation.
    • W3C traceparent & Per-Listener listen[].maxBodyBytes: Strict v00 traceparent validation, --log-format=json logging, and automatic outbound { http: … } propagation (+12 µs overhead); per-listener 413 enforcement on Content-Length and chunked requests before JSON parsing or actor dispatch.
    • 16-Metric GET /metrics: Added tts_box_http_outbound_pool_reuses_total (counter) and tts_box_wal_bytes (gauge).

Verification Summary

  • PRs: trusted-ts-checks#37, trusted-ts-checks#38, #57, #58, #59
  • External Black-Box Conformance (slices/16/conformance.mjs): 25/25 PASS on v0.16.0 (4234d6e); negative control 22/25 (exit 1, failing only Slice 16 checks 2g, 6f, 6g) on v0.15.0 (f400ba4).
  • Tests & Coverage: 254 workspace + doc tests PASS, 87.40% line coverage (cargo llvm-cov), 19/19 corpus parity, 31/31 npm test, 100/100 engine & 30/30 host sim.
  • Formal Proofs & Architecture: Verus 141 verified, 0 errors, Lean 4 0 sorryAx, Kani 14/14, tsmodel 6/6, cargo atlas 0 violations (48,507 / 50,500 core token-lines, 0 cap increases).
  • Benchmarks: Full reproducible --release --locked numbers in docs/benchmarks-v0.16.0.md.