Repository navigation
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
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.tsmodules (coveringMessageType,Caps,tts-box mcpJSON Schema, and__labeltaint brands; refusing cycles, non-interface parents, generic parents, and duplicate keys).- Array & Object Rest Destructuring: Trailing
[head, ...tail] = arrand{ a, ...rest } = objacrossconst/letandfor..ofbindings with prototype-free ES2024 key order and__labeltaint propagation. MapErgonomics:m.clear()plusfor..ofand 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-rangeRangeError, plus IEEE-754-0/NaNpreserving math. - Z3 & Formal Proofs: Compact linear SMT models (
tts-prove-cache-v5), Lean 4 mirror (0 sorryAx), Verus141, Kani14/14, andtsmodel6/6.
- Box Contract v17 (0 new Cargo dependencies):
- Outbound
http[].keepAliveConnection Pooling: Per-origin persistent HTTP/1.1 TCP &rustlsTLS/mTLS connection reuse (3.65xlower p50 mTLS latency:1.775 mscold →0.487 mswarm;3.42xcustom-CA throughput at2,057 req/s), one-shot stale-socket retry on idempotent methods, and atomic pool flush onSIGHUPTLS reload. - Dual-Secret
listen[].auth.prevEnvRotation: Constant-time non-short-circuiting verification (0.001 msp50 delta betweenenvandprevEnv) on bearer & HMAC-SHA256 listeners, child env scrubbing, andtts-box doctorvalidation. - W3C
traceparent& Per-Listenerlisten[].maxBodyBytes: Strict v00traceparentvalidation,--log-format=jsonlogging, and automatic outbound{ http: … }propagation (+12 µsoverhead); per-listener413enforcement onContent-Lengthandchunkedrequests before JSON parsing or actor dispatch. - 16-Metric
GET /metrics: Addedtts_box_http_outbound_pool_reuses_total(counter) andtts_box_wal_bytes(gauge).
- Outbound
Verification Summary
- PRs: trusted-ts-checks#37, trusted-ts-checks#38, #57, #58, #59
- External Black-Box Conformance (
slices/16/conformance.mjs):25/25PASS onv0.16.0(4234d6e); negative control22/25(exit 1, failing only Slice 16 checks2g,6f,6g) onv0.15.0(f400ba4). - Tests & Coverage:
254workspace + doc tests PASS,87.40%line coverage (cargo llvm-cov),19/19corpus parity,31/31npm test,100/100engine &30/30host sim. - Formal Proofs & Architecture: Verus
141 verified, 0 errors, Lean 40 sorryAx, Kani14/14,tsmodel6/6,cargo atlas0violations (48,507 / 50,500core token-lines,0cap increases). - Benchmarks: Full reproducible
--release --lockednumbers indocs/benchmarks-v0.16.0.md.