Repository navigation
v0.24.0 — Slice 24: Durable Caps.kv WAL Stores & Edge-Isolated Caps.crypto (Pre-1.0)
Pre-release
Pre-release
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 typedCaps.kvandCaps.cryptocapability operations withfrom: "kv"/from: "crypto"answer envelopes, byte-for-bytecontract/node-driver.mjsdifferential parity, compile-time exit-2 refusals on unknown/missing fields,__labelcrossing taint enforcement againstkv[].allowLabels&crypto[].allowLabels,tts simcontinuation driving,KV&Cryptocolumns intts prove --cert, andtts-prove-cache-v10. - Box Contract v23 (
#86):- Durable WAL-Backed KV (
kv[],wal_kv): Top-levelkv[](0..=64stores withmaxKeys,maxValueBytes,maxTotalBytes,allowLabels) + per-process/poolkv: [...]grants, atomic SQLitewal_kvtable (get/put/delete/list, UTF-8 byte accounting, lexicographicprefixscanning,SIGKILLpersistence,wal backup/compact/verify/replaysupport) and matching in-memoryBTreeMapfallback without--db. - Edge-Isolated Crypto (
crypto[]): Top-levelcrypto[](0..=64hmac-sha256grants withenv+ optional distinctprevEnvrotation,allowLabels) + per-process/poolcrypto: [...]grants, puresha256&ctEqual,hmacSign& constant-time non-short-circuiting dual-secrethmacVerify(hex/base64) backed bytts_kernel::crypto, with all secret env vars scrubbed fromtts run& box children and redacted fromDebug,doctor, and JSON logs. - 26-Family Prometheus
/metrics: Addedtts_box_kv_ops_total(counter),tts_box_kv_bytes(gauge), andtts_box_crypto_ops_total(counter).
- Durable WAL-Backed KV (
Verification & Benchmarks (a49781bd)
- External Conformance (
trusted-ts-checks@29ecdde9):slices/24/conformance.mjs45/45PASS (negative control onv0.23.0:42/45, exit1, failing only2m,6t,6u). - Workspace Line Coverage:
91.91%lines (91.53%functions,89.26%regions;--fail-under-lines 90gate). - Architecture & Lint:
cargo atlas48,690 / 50,500core token-lines (1,810headroom,0violations),deslop-please --allow .deslop-please.allow:ok. - Formal Proofs: Verus
143verified (0errors), Lean 40 sorryAx, Kani18/18preserved,@tsmodel6/6. - Measured Benchmarks: See
docs/benchmarks-v0.24.0.md(0.294 msp50 in-memorykv.put/2,761 req/s,0.275 msp50 dual-secretprevEnvhmacVerify,8.262 msp50synchronous=FULLSQLitewal_kvput).