Repository navigation
Description
English
Parent: #2469
Problem
Maka has multiple useful readiness and health authorities, but they answer different questions:
- connection readiness is the authoritative current send gate;
- onboarding projects whether any connection/model pair can start work;
- capability and permission snapshots describe optional feature availability;
- Health Snapshot contains observations, including historical runtime probes that must not block a future send;
- Runtime Host and workspace execution expose lifecycle facts through separate paths.
Without a shared task-submission projection, Desktop and CLI either discover failures late or risk treating every degraded optional capability as a global blocker.
Direction
Define one pure, scope-aware readiness snapshot over existing authorities. It must answer whether a particular task can be submitted, why not, and where the user can repair it. It must not create a new persisted authority.
Baseline dimensions
- Runtime owner/host lifecycle
- selected connection and model target
- workspace availability and execution lifecycle
Requested capability dimensions
- Git
- tools such as computer use or browser
- required OS permissions
Requested capabilities only block when the task or selected execution path requires them. An unrelated degraded capability must not disable ordinary chat or code work.
Proposed contract
- overall state:
ready | repair_required | unavailable | unknown - ordered dimensions with the same state vocabulary
- stable machine-readable blocker codes
- user-facing repair target, not localized copy
- evidence source and observation timestamp/freshness
- distinction between current authoritative gates and historical observations
Acceptance criteria
- Add a pure shared contract and projection with exhaustive tests.
- Reuse
isConnectionReadyfor model-target judgment. - Do not use historical runtime probes as current send blockers.
- Model optional capabilities as requested scope, not global prerequisites.
- Represent loading/unknown independently from a confirmed blocker.
- Provide stable repair targets consumable by Desktop and CLI.
- Cover ready, invalid model, unavailable Runtime Host, unavailable workspace, missing required permission, and unrelated degraded capability cases.
- Keep persistence, UI rendering, and a new Health Center out of the contract PR.
Delivery split
- Core contract and pure projection.
- Main/Runtime Host adapters that gather authoritative inputs.
- Desktop pre-submit consumption.
- Equivalent CLI preflight presentation and first-success smoke journey.
中文
父级路线:#2469
问题
Maka 已经存在多套有价值的就绪与健康权威,但它们回答的问题不同:
- connection readiness 是当前发送门禁的权威;
- onboarding 判断是否存在可以启动任务的连接/模型组合;
- capability 与 permission snapshot 描述可选能力是否可用;
- Health Snapshot 包含观察结果,其中历史 runtime probe 明确不能阻塞下一次发送;
- Runtime Host 与 workspace execution 的生命周期事实分布在独立路径中。
缺少共享的任务提交投影时,Desktop 和 CLI 要么很晚才发现错误,要么容易把所有降级的可选能力错误地当成全局 blocker。
方向
基于现有权威定义一个纯函数、按任务能力范围判断的 readiness snapshot。它回答某个任务当前能否提交、为什么不能,以及用户应去哪里修复;不新增持久化权威。
基础维度
- Runtime owner/host 生命周期
- 当前连接与模型目标
- 工作区可用性与执行生命周期
按需能力维度
- Git
- computer use、browser 等工具
- 必需的系统权限
只有任务或所选执行路径明确需要的能力才能成为 blocker。无关能力降级不能禁用普通对话或代码任务。
验收标准
- 新增共享纯契约与投影,并提供穷举测试。
- 模型目标判断复用
isConnectionReady。 - 历史 runtime probe 不得成为当前发送 blocker。
- 可选能力按请求范围建模,而不是全局前置条件。
- loading/unknown 与已确认 blocker 分开表达。
- 提供 Desktop 与 CLI 都能消费的稳定修复目标。
- 覆盖正常、模型失效、Runtime Host 不可用、工作区不可用、缺少必需权限,以及无关能力降级等场景。
- 契约 PR 不包含持久化、UI 渲染或新的健康中心。
交付拆分
- Core 契约与纯投影。
- Main/Runtime Host 权威输入适配。
- Desktop 提交前消费。
- CLI 等价 preflight 展示与首次成功 smoke journey。
Activity
liugddx commentedon Aug 8, 2026
CLI delivery slice is implemented in PR #2524. It adds a Host-authoritative
maka runpreflight, blocks only confirmed failures, preserves fail-open unknown semantics, and covers the first-success smoke journey.CLI 交付切片已在 PR #2524 实现:增加 Host 权威的
maka runpreflight,仅阻止明确失败,保留 unknown 的非阻塞语义,并覆盖首次成功 smoke journey。liugddx commentedon Aug 9, 2026
Completion update
All four delivery slices are merged:
The merged implementation reuses connection readiness, keeps historical observations and unrelated optional capabilities non-blocking, distinguishes unknown from confirmed blockers, and exposes stable repair targets. Persistence and a new Health Center remain outside this issue as intended.
All acceptance criteria are complete. Closing as delivered.
中文
四个交付切片均已合并:
已合并实现复用了 connection readiness;历史观察和无关可选能力不会阻塞任务;unknown 与明确 blocker 分开;并提供稳定 repair target。持久化和新的 Health Center 按原计划不属于本 Issue。
全部验收项已完成,Issue 关闭。
chore(nsh): sync upstream through d01cd3cce and fix Windows IME preedit