You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the installed CLI and replacing the local Runtime Host are currently two unrelated actions.
The released documentation tells users to run npm install --global maka-agent@next, but npm does not know whether an older Runtime Host still owns the State Root. Durable Goals or Scheduled Tasks may keep that Host resident after every TUI exits. The new CLI may then reuse an older Host build when the compatibility epoch is unchanged, or be rejected before Domain admission when the epoch changed.
The CLI currently does not send a Host generation, does not expose an update command, and cannot reconcile an externally replaced global installation with the active local Host.
Desired outcome
Provide one installation-owner flow that coordinates a persistent CLI release change with the small Host retirement contract tracked by #3231.
The flow must distinguish:
an update initiated by the still-compatible old CLI;
startup after the user already ran an external global npm install;
a compatible active Host whose release differs from the installed CLI;
an incompatible active Host that ordinary Domain operations cannot control.
Perform package switching and replacement verification in the installation-management plane, not in Runtime Host Domain authority
On startup after an external npm install, reconcile the installed release with the active local Host and offer truthful use-existing / restart / wait / cancel actions
Make retries and concurrent update attempts converge on one installation transition
Cover update failure before retirement, failure after writer release, unsupported downgrade, and unresolved external effects
Test released-version transitions with real persisted State Roots, including compatibility epoch changes and same-epoch build changes
Stable constraints
A normal compatible Client may continue using an active Host; build difference alone is not protocol incompatibility.
Only the local installation owner may replace its local Host.
An ordinary remote Runtime Host credential never gains deployment or service authority.
The active Host never overwrites its own executable.
Package switching must not create two active writers for one State Root.
Rollback is claimed only when storage and external-effect evidence prove it safe.
Making npx cache entries persistent installation owners (tracked separately)
A Runtime Host-owned universal deployment state machine
Success criteria
An old compatible CLI can stage an exact release, obtain explicit maintenance authorization, retire its Host, switch the installation, and verify the replacement.
A new CLI started after an external npm install can identify the active Host release and recover without asking users to find and kill an unexplained process.
Compatible release skew never forces replacement solely because version strings differ.
An incompatible local Host produces actionable owner choices rather than an unbounded wait.
Failed or concurrent updates leave one truthful installation state and at most one State Root writer.
Part of #3231. Compatibility policy remains in #3204.
English
Problem
Updating the installed CLI and replacing the local Runtime Host are currently two unrelated actions.
The released documentation tells users to run
npm install --global maka-agent@next, but npm does not know whether an older Runtime Host still owns the State Root. Durable Goals or Scheduled Tasks may keep that Host resident after every TUI exits. The new CLI may then reuse an older Host build when the compatibility epoch is unchanged, or be rejected before Domain admission when the epoch changed.The CLI currently does not send a Host
generation, does not expose an update command, and cannot reconcile an externally replaced global installation with the active local Host.Desired outcome
Provide one installation-owner flow that coordinates a persistent CLI release change with the small Host retirement contract tracked by #3231.
The flow must distinguish:
Scope
hostEpochStable constraints
Non-goals
npxcache entries persistent installation owners (tracked separately)Success criteria
Part of #3231. Compatibility policy remains in #3204.
简体中文
问题
当前“更新已安装 CLI”和“替换本地 Runtime Host”是两件互不协调的事。
发布文档要求用户执行
npm install --global maka-agent@next,但 npm 不知道旧 Runtime Host 是否仍拥有 State Root。durable Goal 或 Scheduled Task 可以在所有 TUI 退出后继续让旧 Host 常驻。此后启动新 CLI:compatibility epoch 相同时可能继续复用旧 Host build;epoch 改变时则会在 Domain 准入前被拒绝。当前 CLI 不发送 Host
generation,没有 update 命令,也不能协调“全局 npm 安装已经被外部替换”与“旧本地 Host 仍在运行”这两个事实。期望结果
提供一条 installation-owner 流程,把持久 CLI release 变更与 #3231 跟踪的小型 Host retirement contract 连接起来。
必须区分:
范围
hostEpoch区分稳定约束
非目标
npxcache 视为持久 installation owner(另行讨论)完成标准
属于 #3231;兼容策略仍由 #3204 负责。
AI assistance disclosure
This issue was investigated and drafted with Codex using current source, live npm registry metadata, and isolated Runtime Host experiments.