Skip to content

v0.24.0 — Slice 24: Durable Caps.kv WAL Stores & Edge-Isolated Caps.crypto (Pre-1.0)

Pre-release
Pre-release

Choose a tag to compare

@robertguss robertguss released this 28 Nov 14:07
· 15 commits to main since this release
a49781b

Highlights (Pre-1.0)

Engine Contract v20 (contract/contract.md) & Box Contract v23 (contract/boxes.md) — 41 VM opcodes preserved, 0 new Builtin variants, 0 new Cargo dependencies, 0 .config/architecture.toml cap edits, and 0 crates/tts-engine/src/runtime/ edits.

  • Engine Contract v20 (#85): Added typed Caps.kv and Caps.crypto capability operations with from: "kv" / from: "crypto" answer envelopes, byte-for-byte contract/node-driver.mjs differential parity, compile-time exit-2 refusals on unknown/missing fields, __label crossing taint enforcement against kv[].allowLabels & crypto[].allowLabels, tts sim continuation driving, KV & Crypto columns in tts prove --cert, and tts-prove-cache-v10.
  • Box Contract v23 (#86):
    • Durable WAL-Backed KV (kv[], wal_kv): Top-level kv[] (0..=64 stores with maxKeys, maxValueBytes, maxTotalBytes, allowLabels) + per-process/pool kv: [...] grants, atomic SQLite wal_kv table (get/put/delete/list, UTF-8 byte accounting, lexicographic prefix scanning, SIGKILL persistence, wal backup/compact/verify/replay support) and matching in-memory BTreeMap fallback without --db.
    • Edge-Isolated Crypto (crypto[]): Top-level crypto[] (0..=64 hmac-sha256 grants with env + optional distinct prevEnv rotation, allowLabels) + per-process/pool crypto: [...] grants, pure sha256 & ctEqual, hmacSign & constant-time non-short-circuiting dual-secret hmacVerify (hex/base64) backed by tts_kernel::crypto, with all secret env vars scrubbed from tts run & box children and redacted from Debug, doctor, and JSON logs.
    • 26-Family Prometheus /metrics: Added tts_box_kv_ops_total (counter), tts_box_kv_bytes (gauge), and tts_box_crypto_ops_total (counter).

Verification & Benchmarks (a49781bd)

  • External Conformance (trusted-ts-checks@29ecdde9): slices/24/conformance.mjs 45/45 PASS (negative control on v0.23.0: 42/45, exit 1, failing only 2m, 6t, 6u).
  • Workspace Line Coverage: 91.91% lines (91.53% functions, 89.26% regions; --fail-under-lines 90 gate).
  • Architecture & Lint: cargo atlas 48,690 / 50,500 core token-lines (1,810 headroom, 0 violations), deslop-please --allow .deslop-please.allow: ok.
  • Formal Proofs: Verus 143 verified (0 errors), Lean 4 0 sorryAx, Kani 18/18 preserved, @tsmodel 6/6.
  • Measured Benchmarks: See docs/benchmarks-v0.24.0.md (0.294 ms p50 in-memory kv.put / 2,761 req/s, 0.275 ms p50 dual-secret prevEnv hmacVerify, 8.262 ms p50 synchronous=FULL SQLite wal_kv put).