tts-box Host & Sandboxes (Contract v22)
tts-box wraps strict tts gatekeeper actors around unmodified npm packages (such as Hono or Express bridges) and durable HTTP/MCP endpoints.
Linux Supply-Chain & Sandbox Containment
Section titled “Linux Supply-Chain & Sandbox Containment”tts-box add&tts-box audit: Enforces a default 7-day release-age cooldown on npm resolutions and audits lockfiles against OSV advisories (MAL-*,GHSA-*,CVE-*,--osv-file, or--offline).tts-box install: Installs with--ignore-scripts, supports multi-dependency boxes (1..=64deps withadapter.mjs), copies<source>/app/**safely (rejecting symlinks, traversal, dotfiles, andnode_modules), and binds a canonical SHA-256.stamp.- Runtime confinement: Landlock v6+ filesystem/TCP/IPC scopes, 64-bit
x86_64/aarch64seccomp-BPF allow-lists, open-descriptor caps,OOMScoreAdj=1000, and per-boxsystemdcgroup v2 limits (MemoryMax,MemorySwapMax=0,TasksMax,CPUWeight).
Production Host Edge & Durability
Section titled “Production Host Edge & Durability”- HTTP/1.1, TLS 1.2/1.3 & Mutual TLS:
listen[].tls/clientCawithO_NOFOLLOWnon-symlink & permission checks, TLS-onlyhsts, longest-segmentlisten[].routeswith per-routeauth&rateLimitoverrides,parse: "json"or"base64",bodyBase64, spoof-prooftrustedProxies, header-stageallowCidrs, and zero-downtime fail-closedSIGHUPreload of TLS PEMs + CIDRs. - Edge Security & Resilience: Constant-time dual-secret
bearerandhmac-sha256auth (env/prevEnvstripped at the host edge),listen[].cors,maxBodyBytes(413), shared/per-IPrateLimit(429), post-DNS SSRF/IMDS blocking,http[].keepAlive, idempotenthttp[].retry, andhttp[].circuitBreaker. - Streamable HTTP MCP (
2025-03-26) & Admin Telemetry: StatefulMcp-Session-Id+ loopbackOriginguards,/healthz,/readyz, 23-family Prometheus/metrics, W3Ctraceparent+X-Request-Id, and secret-redacted--log-format=json. - Write-Before-Effect SQLite WAL: Atomic
synchronous = FULLWAL commits +schedule[]tick watermarks before outbound effects, non-blockinglimits.compactEvery,wal status/backup/verify/compact, and deterministictts-box replay.