Kernel v0.16.0 · TUI/Portal v0.10.3
LingTai release day: cache-miss budgets, soul-flow opt-in, and leaner runtime telemetry
A paired release that puts the runtime’s cache economy and context-pressure signals under an explicit budget. The kernel adds a `cache_miss_budget` — a per-session, per-molt soft cap that defaults to a million cache-miss tokens; when it is reached the runtime restamps a `molt now` cue under durable context metadata alongside the running cache-miss count. Soul flow becomes an explicit env opt-in via `LINGTAI_SOUL_FLOW_ENABLED`, returning a stable disabled result unless enabled. Token and meta surfaces get leaner and more inspectable — flattened token diagnostics, sparse agent and notification meta, large-result ranking, and a-priori `summary=true` — while the TUI shows current-session cache-miss tokens inline, teaches the soul-flow opt-in in setup and kanban, exposes model-visible summary previews, and adds clipboard image paste. The window also broadens daemon/runtime backends (Kimi Code, claude-p wait guard, explicit daemon email tool, MCP completion, HTTP identity headers, Codex encrypted-reasoning replay self-heal).
Upgrade / runtime
The Homebrew command updates the TUI/Portal surface. The kernel package lingtai v0.16.0 is the runtime package source used by LingTai-managed environments; existing projects should follow their normal TUI-managed refresh or setup path rather than treating a bare global pip command as the user upgrade story. This is a paired release validated from clean release worktrees before publication.
New features and improvements
-
01
Cache-miss budgets and honest context-pressure reminders
The kernel gives every session and molt a spendable cache-miss budget, and moves the current context-pressure reminders to durable metadata so a
molt nowcue survives instead of flickering. The TUI surfaces the same number inline.-
manifest.cache_miss_budgetandAgentConfig.cache_miss_budgetadd a per-session, per-molt cache-miss soft cap defaulting to 1,000,000 tokens; when it is reached the runtime restampscache miss budget {budget} reached, molt nowunder_meta.tool_meta.context.molt, alongsidecache_miss_budgetandcache_miss_tokens(kernel #641). - Current context-pressure reminders now live in durable
_meta.tool_meta.context.molt, while reconstruction one-shots stay under_meta.tool_meta.reconstruction.molt, so a standing molt cue is no longer confused with a one-time rebuild (kernel #640, #638, #607). - The TUI mail/home telemetry shows current-session cache-miss tokens immediately after the token total, e.g.
tok 1.1M (miss 8.6k) cache …(TUI #498).
Why it matters:A cache miss is where a long run quietly burns money and context; making it a budget with a visible running count and a durable `molt now` cue turns a hidden cost into a spendable one the operator and the agent can both see and act on.
-
-
02
Soul flow becomes an explicit opt-in
Soul flow no longer runs by default. It is gated behind an environment flag, and the TUI setup and kanban teach that model so operators know exactly when it is on.
- Soul flow is env opt-in by default via
LINGTAI_SOUL_FLOW_ENABLED;soul(action="flow")returns a stable disabled result unless the flag is set (kernel #639). - The TUI setup and kanban reflect the opt-in model: soul flow is disabled by default unless
LINGTAI_SOUL_FLOW_ENABLEDis set, so the cockpit and the runtime agree on the same default (TUI #497).
Why it matters:A powerful behavior that runs silently by default is a surprise waiting to happen; making soul flow an explicit flag with a stable disabled result means it is on only when someone chose it, and the cockpit shows that choice rather than guessing at it.
- Soul flow is env opt-in by default via
-
03
Leaner, more inspectable runtime metadata
Progressive disclosure gets sharper on both sides: the kernel flattens and thins its token/meta surfaces, and the TUI exposes the model-visible summaries those surfaces produce.
- Kernel token/meta surfaces are tightened: compact flattened token diagnostics, current time under
tool_meta, sparseagent_meta, sparse notifications, and large-result ranking inagent_meta(kernel #608, #618, #620, #609). - A-priori
summary=truesupport lands forbash,read, andgrep, so a tool call can declare up front that its result should be summarized for the model (kernel #586). - The TUI presents
summary=truetool results as a model-visible summary after the raw tool output, and Ctrl+O / soul-mode tool-call previews expose summarized model-visible results with longer summary previews (TUI #477, #481, #480, #479).
Why it matters:An agent reasons better on a lean, ranked view than on a wall of raw meta, and an operator trusts the cockpit more when it shows exactly what the model saw; flattening the surfaces and surfacing their summaries keeps both looking at the same honest, inspectable picture.
- Kernel token/meta surfaces are tightened: compact flattened token diagnostics, current time under
-
04
Daemon and runtime backend safety and breadth
The runtime widens which backends it can drive and hardens the seams where long-lived daemons wait, send mail, and replay provider state.
- A Kimi Code backend is added, and a claude-p background wait guard keeps a backgrounded run from racing ahead of its own completion (kernel #634, #611).
- Daemon email is surfaced as an explicit tool, common daemon MCP completion is filled in, and HTTP identity headers are attached to outbound runtime calls (kernel #584, #636).
- Codex encrypted-reasoning replay now self-heals, so a provider-side reasoning-replay hiccup no longer strands the run; backend, runtime, and helper refactors round out the window (kernel #633).
Why it matters:A fleet that runs unattended for hours fails at the seams — a backgrounded wait that races, a daemon that cannot send mail, a provider replay that stalls; closing those seams and adding a backend is how the runtime stays reliable across more of the ways people actually run it.
-
05
Cockpit polish, maintenance, and release hygiene
Around the headline work, the cockpit gains a small everyday convenience, a dead surface is removed, and the paired versions were validated from clean release worktrees before publication.
- Clipboard image paste support landed for chat input, and the stamina surfaces were removed, with bundled skill/anatomy/frontmatter metadata refreshed (TUI #467, #478, #464–#459).
- Kernel-side documentation, anatomy, and frontmatter maintenance continued alongside the feature work (many TZZheng-led docs/helper refactors; nudge-storm fix #576).
- Strict ranges: kernel
v0.15.3..v0.16.0(88 commits, 283 files changed, +15,005/-6,365) and TUI/Portalv0.10.2..v0.10.3(32 commits, 117 files changed, +2,904/-450).
Why it matters:A release earns trust in the small things too — a paste that just works, a dead readout removed rather than left to mislead, and full gate evidence cut from the exact validated commits; recording that hygiene is part of shipping responsibly.
Contributors
Thanks to everyone whose commits, co-authored changes, PRs, reviews, assignments, or reported/closed issues are represented in this release window.
- @huangzesen
- @TZZheng
- @ZigongXu
- @BrianLiubr
- @9s5bz2jvd2-lang
- @BatalloLu
- @houleixx
- @Keesan12
- @LinnkidChen
- @LuuOW
- @rawpaper123
- @wchwawa
- @xczics
- github-actions[bot]
Validation
Final release validation was run from a clean release worktree at commit cabb6a6fb7ca.
- Kernel release head v0.16.0 tag at cabb6a6fb7ca
- TUI/Portal release head v0.10.3 tag at d54217b290e2
- Kernel strict range v0.15.3..v0.16.0 — 88 commits, 48 merged PRs, 283 files changed, +15,005/-6,365
- TUI strict range v0.10.2..v0.10.3 — 32 commits, 14 merged PRs, 117 files changed, +2,904/-450
- Kernel diff-check clean against v0.15.3
- Kernel validation gate Dev-1/Dev-2/Dev-3 independent post-v0.15.3 gate PASS after cleanup #642
- Kernel focused suite dev-1 suite after #642: 309 passed, 1 known warning
- Kernel full release validation from #643 head: 3,475 passed, 4 skipped, 1 known warning
- Kernel build and twine check Python 3.11 build from merge commit; twine check PASSED for both artifacts
- Kernel import smoke clean no-deps wheel import passed (import lingtai, lingtai_kernel)
- Kernel artifact hashes wheel c0b5f526…8588d; sdist 22c7486c…2330
- TUI diff-check clean
- TUI Go tests go test ./internal/tui ./internal/preset and go test ./... passed
- Portal web/module npm ci + build passed (4 pre-existing audit advisories); portal go test ./... passed
- Homebrew tap formula updated to v0.10.3; SHA256 ee1043cc…fb7a71; brew info stable 0.10.3
- Contributor audit last two release windows scanned: 160 PR records and 128 issue records, including closed/unmerged/commented PRs and closed/commented issues