Skip to content

trusted-ts v0.17.0 (Slice 17 — Pre-1.0)

Pre-release
Pre-release

Choose a tag to compare

@robertguss robertguss released this 26 Nov 14:53
· 40 commits to main since this release
57cf21d

Highlights — Slice 17 (v0.17.0, Pre-1.0)

  • Architecture Budget Slimming (0 cap increases): Reclaimed 1,033+ token-lines across tts-engine and tts-prove via behavior-preserving deduplication before adding Box v18, landing at 48,202 / 50,500 core token-lines (-305 net below v0.16.0, 2,298 headroom) with .config/architecture.toml untouched and 0 new Cargo dependencies.
  • Engine Contract v16 (41 VM opcodes — 0 new):
    • try/catch/finally across await in export async function handle: lifts the §2.2/§2.7 restriction so await caps.<op>(…) works inside try, catch, and finally blocks (preserving active exception handlers, catch bindings, and finally completion state across suspension/resumption while keeping memory, stack, unsupported, and fuel preemption non-catchable) — 70.18 µs / workflow (1.35x faster than Node 24).
    • Stdlib completions: a.fill(value, start?, end?), Object.assign(target, source), Math.pow(a, b), and Math.imul(a, b) with byte-for-byte Node 24 parity, Lean 4 stack-safety mirror (0 sorryAx), and Z3 tts prove support (tts-prove-cache-v6).
  • Box Contract v18 (0 new dependencies):
    • Idempotent outbound http[].retry: bounded exponential backoff (maxAttempts: 2..=5, initialBackoffMs, maxBackoffMs, retryStatuses) strictly for idempotent methods (GET/HEAD/PUT/DELETE; POST/PATCH never retried), bounded within effective call deadline (http[].timeoutMs / limits.deadline).
    • Online non-blocking WAL auto-compaction (limits.compactEvery): 10..=1_000_000 under --db=<file>, snapshotting idle JSON-snapshottable actors, pruning superseded wal_turns outside open pending workflows and older wal_snapshots, running PRAGMA wal_checkpoint(PASSIVE), and emitting "event":"wal_compact" JSON logs (4.12x smaller WAL at 200 turns, 5.34x smaller & 14.32x faster wal verify at 1,000 turns).
    • TLS-only edge HSTS (listen[].hsts): emits Strict-Transport-Security: max-age=<n>[; includeSubDomains] on every HTTPS response across "http", "mcp", and "admin" listeners (refused without listen[].tls).
    • 18-metric GET /metrics: adds tts_box_http_outbound_retries_total (counter) and tts_box_wal_compactions_total (counter).

Verification

  • External black-box conformance (trusted-ts-checks d96d5709 slices/17/conformance.mjs):
    • Positive control (v0.17.0 @ 57cf21d6): 28/28 PASS (exit 0)
    • Negative control (v0.16.0 @ 4234d6e3): 25/28 (exit 1) — only 2h, 6h, 6i fail
  • 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 (0 violations, 48,202 / 50,500 core 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 conformance
  • trusted-ts#60 (a6a25dd) — PR 17.1: Codebase slimming + Engine Contract v16 + Lean 4 + Z3
  • trusted-ts#61 (0e7603a) — PR 17.2: Box Contract v18 (http[].retry, limits.compactEvery, listen[].hsts, 18 /metrics)
  • trusted-ts#62 (57cf21d) — PR 17.3: Release v0.17.0, benchmarks, contract sync, CI & docs