Repository navigation
trusted-ts v0.17.0 (Slice 17 — Pre-1.0)
Pre-release
Pre-release
Highlights — Slice 17 (v0.17.0, Pre-1.0)
- Architecture Budget Slimming (0 cap increases): Reclaimed
1,033+token-lines acrosstts-engineandtts-provevia behavior-preserving deduplication before adding Box v18, landing at48,202 / 50,500core token-lines (-305net belowv0.16.0,2,298headroom) with.config/architecture.tomluntouched and0new Cargo dependencies. - Engine Contract v16 (
41VM opcodes —0new):try/catch/finallyacrossawaitinexport async function handle: lifts the §2.2/§2.7 restriction soawait caps.<op>(…)works insidetry,catch, andfinallyblocks (preserving active exception handlers,catchbindings, andfinallycompletion state across suspension/resumption while keepingmemory,stack,unsupported, and fuel preemption non-catchable) —70.18 µs / workflow(1.35xfaster than Node 24).- Stdlib completions:
a.fill(value, start?, end?),Object.assign(target, source),Math.pow(a, b), andMath.imul(a, b)with byte-for-byte Node 24 parity, Lean 4 stack-safety mirror (0 sorryAx), and Z3tts provesupport (tts-prove-cache-v6).
- Box Contract v18 (
0new dependencies):- Idempotent outbound
http[].retry: bounded exponential backoff (maxAttempts: 2..=5,initialBackoffMs,maxBackoffMs,retryStatuses) strictly for idempotent methods (GET/HEAD/PUT/DELETE;POST/PATCHnever retried), bounded within effective call deadline (http[].timeoutMs/limits.deadline). - Online non-blocking WAL auto-compaction (
limits.compactEvery):10..=1_000_000under--db=<file>, snapshotting idle JSON-snapshottable actors, pruning supersededwal_turnsoutside open pending workflows and olderwal_snapshots, runningPRAGMA wal_checkpoint(PASSIVE), and emitting"event":"wal_compact"JSON logs (4.12xsmaller WAL at 200 turns,5.34xsmaller &14.32xfasterwal verifyat 1,000 turns). - TLS-only edge HSTS (
listen[].hsts): emitsStrict-Transport-Security: max-age=<n>[; includeSubDomains]on every HTTPS response across"http","mcp", and"admin"listeners (refused withoutlisten[].tls). - 18-metric
GET /metrics: addstts_box_http_outbound_retries_total(counter) andtts_box_wal_compactions_total(counter).
- Idempotent outbound
Verification
- External black-box conformance (
trusted-ts-checksd96d5709slices/17/conformance.mjs):- Positive control (
v0.17.0@57cf21d6):28/28PASS (exit 0) - Negative control (
v0.16.0@4234d6e3):25/28(exit 1) — only2h,6h,6ifail
- Positive control (
- Tests & Coverage:
cargo test --workspace(261/261),cargo llvm-cov(87.60%line coverage),contract/smoke/run.mjs,contract/compare.mjs corpus(19/19),npm test(31/31) - Formal Proofs & Architecture: Verus (
141 verified, 0 errors), Lean 4 (0 sorryAx), Kani (14/14),@tsmodel(6/6),cargo atlas(0violations,48,202 / 50,500core token-lines) - Benchmarks:
docs/benchmarks-v0.17.0.md
Merged PRs
trusted-ts-checks#39(d96d570) — PR 17.0: Engine Contract v16, Box Contract v18, and Slice 17 conformancetrusted-ts#60(a6a25dd) — PR 17.1: Codebase slimming + Engine Contract v16 + Lean 4 + Z3trusted-ts#61(0e7603a) — PR 17.2: Box Contract v18 (http[].retry,limits.compactEvery,listen[].hsts, 18/metrics)trusted-ts#62(57cf21d) — PR 17.3: Releasev0.17.0, benchmarks, contract sync, CI & docs