Skip to content

v0.25.0 — Box Contract v24: init Framework Templates, tts-box dev & HTTP SSE Streaming (Pre-1.0)

Pre-release
Pre-release

Choose a tag to compare

@robertguss robertguss released this 28 Nov 17:25
· 12 commits to main since this release
2b512ba

Pre-1.0 Release — Slice 25 (Engine Contract v20 preserved & Box Contract v24)

Highlights

  • 6-file verified web-framework scaffolding (tts-box init <dir> --template=hono|express, #89): Scaffolds policy.ts, policy.test.ts, manifest.json, box/adapter.mjs, box/app/{routes,server}.ts, and README.md directly from the verified examples/hono-api/ and examples/express-app/ reference apps while preserving byte-identical 4-file output for basic, webhook, and mcp.
  • Checked watch-reload development supervisor (tts-box dev, #89): Watches manifest, actor .ts graphs, and Linux box sources; runs tts check before initial start and every edit reload (keeping the previous live server running on errors), preserves --db SQLite WAL state across reloads, and performs Linux box adapter.mjs / app/** fast-sync via audit --offline + atomic staging + .stamp recomputation without re-running npm ci (683.1 ms p50 actor reload / 402.1 ms p50 box app/*.ts fast-sync).
  • WHATWG HTTP Server-Sent Events streaming (sse & streamBox, #88):
    • Declarative actor SSE replies ({ status, headers?, sse: [...] }) and live sandboxed box streaming relay ({ status, headers?, streamBox: { box, fn, args } }) supporting both async function* generators and Web Response(ReadableStream, { headers: { "content-type": "text/event-stream" } }) over bounded NDJSON pipes under Landlock + seccomp net: false.
    • Measured 0.849 ms first-byte p50 (54,167 events/s) for declarative actor SSE and 0.969 ms first-byte p50 (55,750 events/s) for live sandboxed box streamBox SSE (100 events/stream).
    • Expanded read-only GET /metrics from 26 to 28 typed Prometheus metric families (tts_box_sse_streams_active, tts_box_sse_events_total).

Verification & Guardrails

  • Commit: 2b512ba4abe38ded99ab1fd996d3d77a14d110fe
  • External Conformance: trusted-ts-checks@82386d3c3b2f35e5c8217c314ec7845a5db53097 slices/25/conformance.mjs — 48 / 48 PASS (negative control on v0.24.0: 45 / 48, failing only 4c, 6v, 6w)
  • Architecture & Coverage: 49,002 / 50,500 core token-lines (1,498 headroom, tts <= 15,000, 0 .config/architecture.toml cap edits, 0 cargo atlas violations), 91.83% workspace line coverage, deslop-please: ok (0 new allowlist entries)
  • Invariants & Formal Proofs: 41 VM opcodes (0 new opcodes/builtins, 0 new Cargo dependencies, 0 .rs edits in crates/), Verus 143 verified, Lean 4 0 sorryAx, Kani 18 / 18, @tsmodel 6 / 6 (0 stale anchors)
  • Full benchmark & verification report: docs/benchmarks-v0.25.0.md