An independent red-team audit (Claude Fable 5.2) caught five merge-blocking defects in the optimization branch (security/cache-trust bugs in the new 19 KiB launcher, runtime aborts on unseen dynamic globals, silent crash-hook disablement, and a driver-library memory-trim race) AND discovered that our first 10-app benchmark run used a runtime built without the motion feature, silently truncating 7 of 10 UIs. Every number in this brief reflects the audit-corrected, full-feature re-measurement.
Upstream Bun compiling a bare console.log("hello") with --aot --trim (zero GUI) is already 6.81 MiB compressed (24.18 MiB raw). Native Rust Rune with zero JS runtime is 5.98 MiB compressed (16.47 MiB raw). Every target below ~10 MiB must be evaluated against those two physical floors.
| Size Tier | What It Requires | Strategic Impact / Cost | Verdict |
|---|---|---|---|
| ~12.0 MiB | AOT-friendly rune-ts/tome + Rust size build + hardened launcher + safe Bun trim |
Zero API loss once 5 audit blockers are fixed; txz trades +38 MiB disk cache for −46.9 MiB FUSE RAM |
Ship After Fixes |
| ~10.0–10.5 MiB | Latin-subset Inter font, optional Linux CJK word dictionary (keeping SE-Asian line-wrap), precompiled SPIR-V | CJK double-click becomes per-char (matches Rune on Windows); non-Latin glyphs use system fonts; matches Metal/DX shader model | Safe Opt-In Next |
| ~8.0–9.0 MiB | Drop X11, image codecs, D-Bus portals/a11y, all ICU dictionaries, all fonts + deep Bun fork | Breaks X11 desktops, accessibility, SE-Asian wrapping, minimal distros; permanent Bun fork maintenance tax | Avoid |
| ~5.0 MiB | Replace Bun/JavaScriptCore with Hermes or QuickJS | Loses Bun/Node APIs, npm package ecosystem, AOT compiler, and JSC performance | Dealbreaker |
| ~3.0 MiB | Also replace Rune/wgpu/Parley/Taffy with system GTK/WebView | No longer Tome or Rune — becomes a Tauri-like system WebView wrapper with per-distro ABI risk | Dealbreaker |
minimal,motion,live,shape,rich-text,edit), empty stderr, warm NVIDIA Vulkan shader cache, settled at 1.8 s*Note: On main, running as a DwarFS .AppImage adds an additional +46.9 MiB PSS from the resident FUSE daemon (bringing typical shipped apps to ~137 MiB). Highlighted row (05-data-table) exposes the real large-tree overhead (+17.9 MiB Private Dirty over Rust; +22.4 MiB on software Vulkan).
• Static property encoding & AOT-friendly rune-ts/tome (−3.95 MiB compressed, zero functional loss)
• Removing CLI/Tools & crash-report boilerplate from standalone apps
• Eliminating the 46.9 MiB resident FUSE daemon (once extraction cache is hardened)
• Disabling unused disk config autoloading (bunfig, tsconfig, package.json) and stats allocation when inactive
• Disk vs. RAM: txz shrinks download to 12.1 MiB and saves 46.9 MiB RAM, but stores a 38.5 MiB unpacked binary per version on disk (~50.6 MiB total; needs cache eviction)
• Compile defaults: Stripping function source text breaks fn.toString(); disabling .env autoloading diverges from tome dev; stripping profilers breaks heap snapshots
• Trimmed PSS accounting: Clean code pages evicted via madvise remain in the OS page cache and fault back on interaction
| # | Merge-Blocking Defect (Verified by Audit) | Operational / Security Impact | Required Fix |
|---|---|---|---|
| B1 | Gated WebCore globals abort instead of throwing | 22 of 44 trimmed globals abort the process (and crypto.subtle segfaults) when reached via unseen dynamic code, breaking JS error semantics |
Revert or repair constructor gating in Bun patch 0005 so removed features throw catchable ERR_FEATURE_REMOVED |
| B2 | txz cache directory trusted blindly |
Predictable /tmp fallback without owner/mode verification allows local binary hijack under empty env; edited or missing cached files are never re-verified or healed |
Verify ownership/mode (or mkdtemp), embed real payload hash, self-heal on execv failure, add cache eviction; keep DwarFS default until hardened |
| B3 | txz packaging can silently drop files |
Missing pipefail on tar | xz exits 0 on long paths; runtime ignores tar hardlinks silently |
Enable pipefail, fail on unsupported tar entry types, verify post-pack file counts |
| B4 | madvise on third-party GPU .sos |
TOCTOU race if a driver thread unloads a shared library and allocator reuses its VA range → silent heap zeroing | Restrict madvise(MADV_DONTNEED) strictly to /proc/self/exe (which cannot unload) |
| B5 | immediate-abort breaks crash capture |
Silently turns Rust panics into bare SIGILL, disabling tome-os panic reporting (message, location, trace) |
Drop -Cpanic=immediate-abort (minimal size cost) and enforce tome build runtime feature validation |
Independent testing ruled out JSC JIT/heap flags (committed JIT is already 0 MiB in AOT apps; tuning moved heap by ≤0.3 MiB) and showed that symbol ordering and madvise overlap on the same code pages. The honest, zero-trade-off ceiling for Tome is within +8 to +12 MiB PSS (~15–20%) and +3 to +3.5 MiB heap of native Rust for standard apps, at ~10–12 MiB compressed (~2× Rust).
txz cache hardening + eviction ship.motion,live,shape,rich-text,edit default in runtime builds and make tome build fail fast on missing runtime features..env, and profiler stripping as explicit config flags.linker.order is currently empty; hot/cold packing halves resident code pages cleanly./proc/self/exe-only trim on true first idle.