Files
kandev/docs/specs/agents/requirements/runtime-updates.md
T
2026-08-24 11:09:03 +00:00

2.9 KiB

status, system, created, updated, owners
status system created updated owners
active agents 2026-07-26 2026-08-22
Kandev

Managed Agent Runtime Versions and Updates Requirements

Overview

Operators need newly released agent models without waiting for a Kandev release. They also need a UI recovery path when the newest npm release is partly published, incompatible with ACP, or otherwise cannot start. Rebuilding an npm cache is not sufficient when an unversioned command selects the same broken release again.

Requirements

REQ-AGENTS-RUNTIME-UPDATES-001: Managed Agent Runtime Versions and Updates

Intent: Operators need newly released agent models without waiting for a Kandev release. They also need a UI recovery path when the newest npm release is partly published, incompatible with ACP, or otherwise cannot start. Rebuilding an npm cache is not sufficient when an unversioned command selects the same broken release again.

Acceptance criteria

  • AC-AGENTS-RUNTIME-UPDATES-001.1: Settings exposes version management for the built-in managed npm runtimes used by Claude, Codex, OpenCode, Copilot, and Gemini.
  • AC-AGENTS-RUNTIME-UPDATES-001.2: The update dialog lists stable versions published for the trusted package. The list contains the newest 50 stable versions plus the active and last observed versions when either falls outside that window. The upstream latest stable version is selected initially.
  • AC-AGENTS-RUNTIME-UPDATES-001.3: The backend classifies the selected action as update, rollback, repair, or up_to_date. The UI uses this structural state for copy and approval; it never compares translated labels or version strings itself.
  • AC-AGENTS-RUNTIME-UPDATES-001.4: Kandev stages the exact trusted package@version, ACP-probes that candidate, and activates it only after a successful probe. Candidate failure preserves the prior active version and capability catalogue.
  • AC-AGENTS-RUNTIME-UPDATES-001.5: Every managed npm runtime has an exact Kandev default version. A successful activation persists an operator-selected exact version for this Kandev install. The effective version is the selected version when present and the Kandev default otherwise.
  • AC-AGENTS-RUNTIME-UPDATES-001.6: Kandev does not persist the default as a selection. An installation without an operator selection follows default-pin changes delivered by later Kandev releases.
  • AC-AGENTS-RUNTIME-UPDATES-001.7: Every Kandev-built ACP command for the managed package uses the effective exact version, including probes, utility calls, standalone sessions, containers, and SSH executors. Active sessions continue unchanged.
  • AC-AGENTS-RUNTIME-UPDATES-001.8: Settings lets the operator clear the selected version and return to the Kandev default after that default passes the normal candidate validation.

System design

The migrated technical source is split into part 1, part 2.