Skip to content

feat(runtime-host): discover managed Host updates safely #3664

Closed

Description

@M4n5ter
English

Problem

Managed Runtime Hosts can be updated safely to an exact package, but neither an operator nor a future unattended reconciler can currently discover a channel target without immediately entering a mutation path. Mutable npm tags also do not provide the immutable version and package identity required by the existing exact-package update transaction.

Automatic updates must not infer storage or rollback safety from semantic-version distance. A target that does not carry sufficient compatibility evidence should remain available for explicit manual maintenance, but must not be applied unattended.

Desired outcome

Add a read-only, machine-readable update check for managed Runtime Hosts that:

  • accepts latest, next, or an exact Maka version;
  • resolves a mutable selector once to an exact version and package integrity;
  • reports the installed and target versions, availability, and whether unattended application is admitted;
  • returns an explicit reason when the target is manual-only or unavailable;
  • requires target-package compatibility evidence before declaring an update safe for unattended use;
  • keeps released npm packages and explicit development archives on the same exact-package validation and update path.

The check must not retire the Host, switch the service, persist an update policy, or install a scheduler. The existing explicit update transaction remains the only mutation path.

Alternatives or workarounds

Desktop currently updates a managed Host to the exact CLI package selected for that Desktop build. An operator can also invoke the exact-package CLI transaction directly. Neither path provides channel discovery or a safe admission fact for later automatic reconciliation.

Part of #3228. Related to #3204, but does not attempt to define the full Client–Host version-skew contract.

简体中文

问题

Managed Runtime Host 已能安全更新到一个精确 package,但 operator 和未来的无人值守 reconciler 目前都无法在不进入 mutation 路径的情况下发现频道目标。可变 npm tag 本身也不能提供现有 exact-package update transaction 所要求的不可变版本与 package identity。

自动更新不能根据 semantic version 距离猜测 storage 或 rollback 是否安全。若目标 package 没有足够的兼容性证据,仍可供人工明确执行维护,但不得由无人值守流程自动应用。

期望结果

为 managed Runtime Host 增加只读、machine-readable 的更新检查:

  • 接受 latest、next 或精确 Maka 版本;
  • 将可变 selector 一次性解析为精确版本与 package integrity;
  • 报告当前版本、目标版本、是否存在更新,以及是否允许无人值守应用;
  • 目标只能人工更新或当前不可用时返回明确原因;
  • 只有目标 package 提供兼容性证据时,才声明该更新可以无人值守执行;
  • 正式 npm package 与显式 development archive 继续进入同一套 exact-package 校验与更新路径。

检查不能让 Host 退场、切换 service、持久化更新策略或安装 scheduler。现有显式更新事务仍是唯一 mutation path。

替代方案或当前做法

Desktop 当前可以把 managed Host 更新到该 Desktop build 选择的精确 CLI package,operator 也可以直接调用 exact-package CLI transaction。但这两条路径都不能发现频道更新,也不能为后续自动 reconcile 提供安全准入事实。

属于 #3228。与 #3204 相关,但不尝试定义完整的 Client–Host version-skew contract。

Activity

  1. added
    enhancement
    on Aug 24, 2026
  2. self-assigned this
    on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions