Repository navigation
Description
English
Tracking goal
This issue tracks delivery of the Runtime Host M3 domain-ownership migration through independently reviewable upstream slices.
#853 remains authoritative for architecture, ownership, lifecycle, and the atomic production cutover. The M3 implementation-boundary amendment records the corrected dependency shape. The Client Capability Protocol amendment replaces the fixed Native Provider vocabulary and first-capability cut while leaving the remaining #853 contract unchanged. This tracker records extraction order, implementation status, and closure criteria; it does not redefine the RFC.
Current strategy
- feat(runtime-host): integrate M3 domain ownership #1190 is a frozen integration/reference Draft. It validates the combined architecture but is not expected to merge.
- Stable domains are extracted from the latest
mainas complete, cohesive authority slices. Domain completeness matters more than minimizing each diff. - Slice status is recorded in the table below and mirrors its current GitHub state; a Draft entry records published work without claiming completion or review readiness.
- Before any Host-owned domain slice, the Host foundation must guarantee bounded normal drain and fail-stop process termination after the deadline; ownership is then reclaimed only by the OS when the process dies.
- Detecting a stale same-version
v0Host is an M4 production-activation gate tracked by [Tracking] Runtime Host M4 Desktop-first client adapters #2010, not a blocker for independent non-serving M3 extraction. - No new domain feature work should accumulate in feat(runtime-host): integrate M3 domain ownership #1190. Only synchronization or repairs needed to preserve integration evidence belong there.
- Published-slice status is refreshed through
main@26a52002e, including merged Deep Research feat(runtime-host): own Deep Research state #2099 and Daily Review feat(runtime-host): own Daily Review runtime #2113 authorities. - Plan feat(runtime-host): own Plan runtime state #2082, Deep Research feat(runtime-host): own Deep Research state #2099, and Daily Review feat(runtime-host): own Daily Review runtime #2113 authorities are merged. Expert Team was removed in refactor: remove expert team mode #1721. The final current-code audit found no remaining M3 Host authority gap.
- The fixed Native Provider union is replaced by the open-world Client Capability Protocol foundation. Production Client adapters are tracked separately in [Tracking] Runtime Host M4 Desktop-first client adapters #2010.
Extraction map
Published slices
| Slice | Status | Complete boundary |
|---|---|---|
| Full-duplex connection sessions (#1350) | merged | continuous inbound pump, bounded serialized outbound delivery, read EOF, reply drain, connection teardown |
| Kind-bound Storage + Headless boundary (#1354) | merged | root kind, lease-bound writer authority, fail-closed Headless separation, Harbor evidence |
| Bounded shutdown foundation (#1355) | merged | bounded drain, fail-stop process termination, OS-reclaimed owner lock |
| Protocol/dispatcher and root-admission foundations (#1356) | merged | closed typed dispatch, consumed lifecycle availability, Session/root admission |
| Message authority foundation (#1357) | merged | canonical MessageContent, durable source identity, Host queue/lease/interrupt authority, Runtime terminal handoff |
| Canonical Session projection + continuity (#1358) | merged | canonical closed snapshot, atomic snapshot/live barrier, bounded connection-scoped subscriptions, explicit Client reload |
| Interaction authority (#1359) | merged | canonical-safe Permission/Question facts, durable first-winner Store, Run-scoped continuation, multi-Client arbitration/recovery/terminal authority |
| Runtime Policy authority (#1401) | merged | canonical contracts, lease-bound CAS, redacted credential authority, typed Host operations, backend activation/invalidation |
| Artifact authority (#1503) | merged | canonical identity, atomic publication/recovery, exact retry, revision-pinned query, tombstone/purge, protected evidence |
| Task Ledger authority (#1504) | merged | lease-authenticated canonical reader/writer, Runtime TaskLedgerStore port, bounded revision-pinned Host query, conservative resume trust |
| Hosted root execution foundation (#1551) | merged | exact execution admission and identity, pending-start cancellation, claimed graph composition, root ownership, terminal handoff and recovery |
| Skill Catalog authority (#1575) | merged | inventory, revision-pinned queries, governed source state, managed publication/recovery, bounded Host operations and model-facing projection |
| Connection Effects authority (#1589) | merged | canonical model discovery and connection testing, durable effect identity/result, bounded provider work, post-commit activation invalidation |
| Usage / Pricing authority (#1596) | merged | lease-bound telemetry/pricing writers, bounded usage projection, pricing CAS, publication recovery, flush/drain/close |
| Canonical Memory authority (#1610) | merged | revisioned Memory bundle, fail-closed recovery, policy/incognito gate, bounded Host operations, Session-correct prompt projection |
| Managed process lifecycle foundation (#1622) | merged | durable pre-spawn identity, pending-start fence, bounded process-tree termination, independently bounded root exit/output drain, orphan recovery |
| Hosted real-model execution (#1637) | merged | canonical Backend/Prompt/Tool composition, coherent Runtime Policy/Memory snapshot, provider request capture and attribution, activation-safe backend invalidation |
| Session catalog/config authority (#1651) | merged | Host-owned catalog query/create, metadata/config/read-marker mutations, multi-Client serialization, revision continuity |
| Client Capability Protocol foundation (#1656) | merged | open-world registration/discovery, generic model-tool projection, frozen affinity binding, reverse-call lifecycle, durable outcome/cancel/provider-death semantics, real-UDS unknown-capability fixture; Bypass-only until a Client adapter supplies managed permission mapping |
| Session revision authority (#1664) | merged | Host-owned branch/revision creation, exact cross-Session ledger copy, lineage projection, retry and recovery |
| Runtime Resources authority (#1722) | merged | Host-owned Shell/PTY/filesystem-worker tools, lease-bound persistence, controller fencing, orphan recovery, residency, bounded shutdown |
| OAuth execution credential authority (#1757) | merged | canonical credential consumption, generation-bound refresh/CAS, dynamic request auth, abort and publication-uncertainty recovery |
| Automation authority (#1798) | merged | canonical Store/CAS and legacy cutover, bounded v0 Host operations and model tool, durable fire identity, scheduling/recovery/residency/drain, real-UDS multi-Client evidence |
| Goal authority (#1814) | merged | Host-owned lifecycle, revision-CAS control, canonical root admission, evaluator cancellation/telemetry, crash-window recovery |
| OAuth enrollment and presentation (#1859) | merged | Host-owned provider enrollment, Client-owned presentation service, credential confinement, cancellation/deadline semantics, activation invalidation |
| Session retirement lifecycle (#1866) | merged | archive/unarchive/remove, revision-family retirement, cross-domain owner fencing, atomic tombstones, retryable transcript cleanup |
| Live Interactive inspection (#1895) | merged | canonical versioned Session/AgentRun documents, bounded existing-Host read path, duplicate identity resolution, offline read-only preservation |
| Hosted child orchestration foundation (#1906) | merged | canonical parent tools, Host-linked child Session lifecycle, fixed non-recursive tool ceilings, exact committed Artifact results, per-Turn orchestration admission |
| Hosted implementation children (#1911) | merged | Host-owned isolated Git worktrees, durable full-patch write-back and recovery, managed-only child admission, Session-bound retirement |
| Hosted WebSearch execution (#1914) | merged | atomic Runtime Policy/credential/proxy admission, bounded Tavily execution, root WebSearch composition, runnable WebSearch-only web_research child |
| Hosted Agent Graph execution (#1917) | merged | Host-owned Graph tools and exact supervisor admission, durable wake/recovery, child execution, stale-wake supersession, residency, and Session-retirement fencing |
| Agent Graph Client operations (#1926) | merged | bounded Client query/operator inspection and explicit stop, root-subscription invalidation, durable terminal-history pagination, strict recursive wire projection, multi-Client disconnect/reconnect semantics |
| Agent Graph Session lifecycle cleanup (#1928) | merged | revision-family lifecycle closure, atomic operator retirement, retryable Graph sidecar purge, legacy orphan recovery, projection/removal race fencing |
| Hosted sandbox-boundary authority (#1935) | merged | Host-owned sandbox-boundary admission and settlement, canonical Interaction publication, Graph permission wake, stop/publication fencing, bounded expansion |
| Safe-boundary continuation authority (#1996) | merged | Host-owned safety inspection, typed resume planning/start, exact source high-water, Client Capability rebinding, admission and recovery fences |
| Interactive Session actions (#2023) | merged | regenerate, context diagnostics/compact, cwd relocation, durable lineage, admission, recovery |
| Input and Artifact preparation (#2031) | merged | explicit Skill resolution, connection-scoped Artifact ingest, canonical attachment validation, tool Artifact and oversized-result archival |
| Agent Graph revision history (#2039) | merged | verified terminal Graph child/Run/Artifact references across revisions, independent target Graph, live/incomplete provenance rejection |
| Derived Session effects (#2066) | merged | Host-owned title and recap model effects, durable evidence, exact retry, accounting, drain and retirement fencing |
| Plan runtime authority (#2082) | merged | lease-authenticated Plan state, bounded query/control, planning/execution composition, retry/recovery and legacy projection |
| Deep Research runtime authority (#2099) | merged | lease-authenticated ledger, Session-scoped Artifact tools, bounded query projection, model-tool composition, restart and cleanup lifecycle |
| Daily Review runtime authority (#2113) | merged | lease-authenticated configuration/archive authority, complete canonical Session and Usage projection, unified model execution/accounting, atomic publication/retention, scheduling and recovery lifecycle |
M3 closure audit
The final ownership/writer audit was completed against main@26a52002e after #2099 and #2113. No retained Interactive Runtime domain remains without a Host owner.
| Audit area | Current result | Remaining phase |
|---|---|---|
| Retained product Runtime domains | Plan #2082, Deep Research #2099, and Daily Review #2113 are merged | none in M3 |
Desktop, CLI/TUI, maka run, and Bot embedded owners/writers |
every Runtime path maps to an existing Host authority | M4 typed adapter wiring and M5 atomic deletion/cutover |
| Adjacent product services and native tools | Plan Reminder remains Client-owned presentation; Browser, Computer Use, MCP, and other self-described tools use Client Capability providers | M4 |
The audit explicitly covered production SessionManager construction, startup recovery, Runtime schedulers, Interactive Store writers, provider-backed generation, Bot Turn submission, and Session metadata mutations. Plan Reminder remains Client-owned because it only delivers UI/Bot notifications and does not create Runtime Turns; it must use typed Host queries for Host-owned state.
Sandbox-boundary admission and Graph permission wake are resolved by #1935. Continuation safety and typed resume are resolved by #1996. The Runtime Policy foundation is already provided by #1401; these completed boundaries are no longer listed as remaining gaps.
Self-describing Client tools such as Browser, Computer Use, MCP, Rive, and a Client-local explore worker remain M4 Client Capability provider work under the open-world protocol and are tracked in #2010. OpenGateway was removed in #1709 and has no current adapter migration.
Domain completeness still takes priority over minimizing a diff. Work may combine only when it shares one owner, commit point, and failure/recovery boundary.
Gate placement
- Before Host-owned domain extraction: normal drain is bounded; after its deadline the Host enters fail-stop, does not release ownership through normal cleanup, terminates, and lets the OS reclaim the lock.
- Before M4 production activation: the handshake distinguishes incompatible same-version Hosts using a schema/build fingerprint or equivalent epoch identity. This replacement-detection work is tracked by [Tracking] Runtime Host M4 Desktop-first client adapters #2010 and is not a compatibility layer.
- Resolved in feat(runtime-host): establish hosted root execution foundation #1551: every Hosted graph activation routes through canonical root admission and exact stop authority; pending-start cancellation covers backend construction,
run.begin(), and the first iterator step. - Resolved in feat(runtime-host): host sandbox boundary interactions #1935: sandbox-boundary admission/settlement is Host-owned and Graph permission responses wake the canonical supervisor path.
- Resolved in feat(runtime-host): add safe-boundary continuation authority #1996: safe-boundary continuation safety, typed resume query/start, admission, rebinding, and recovery are Host-owned.
- Before M5 atomic cutover: every embedded raw writer path is enumerated and closed or removed; a production Host must not open a root that still has a live embedded writer.
- Resolved in feat(runtime-host): establish protocol and admission foundations #1356: malformed dispatch and ambiguous durable admission outcomes fail closed, while protocol lifecycle availability and command modes have real Kernel consumers.
Slice acceptance
Each slice must:
- present a complete, independently understandable domain boundary from its declared upstream base rather than optimizing only for the smallest diff;
- establish one clear writer/authority boundary without introducing a second production Interactive owner;
- define commit, retry, disconnect, Host-death, drain, close, and recovery semantics where the domain needs them;
- preserve durable facts as the source of truth and avoid generic Store, model, plugin, or transaction RPCs;
- keep production entrypoints unchanged until M4/M5;
- use real Store, process, UDS, or successor coverage when correctness depends on those boundaries;
- avoid compatibility machinery for the unreleased experimental integer
v0protocol while still closing the M4 stale-Host detection gate before production activation; - for an open-world Client capability slice, prove that a Client-defined fixture unknown to Host capability code can register, appear through
load_tools, execute, and disconnect over the real connection without capability-specific Host dispatch.
Integrated evidence
#1190 remains a frozen integration/reference Draft and is not a merge base. Most of its M3 domains have since landed as independently reviewed slices extracted from newer main bases, often with revised boundaries and stronger Store, UDS, lifecycle, and successor-process evidence. The published-slices table above is authoritative for delivery status; #1190 retains historical cross-domain integration evidence and should not receive new domain work.
Product and ownership decision gates
- Plan: Host-owned Plan state, controls, projection, execution lifecycle, recovery, and bounded legacy projection merged in feat(runtime-host): own Plan runtime state #2082. Production Client adapter wiring remains M4 work.
- Deep Research: Host-owned ledger, Session-scoped Artifact tools, query projection, model-tool composition, restart recovery, and cleanup merged in feat(runtime-host): own Deep Research state #2099.
- Daily Review: canonical data reads, credential use, model generation, archive publication, retention, scheduling, recovery, and accounting are Host-owned and merged in feat(runtime-host): own Daily Review runtime #2113; presentation remains Client-owned.
- Expert Team: removed in refactor: remove expert team mode #1721; no remaining M3 ownership decision.
These decisions do not block unrelated authority work, but every retained capability must have an explicit owner before M3 closes. The active product surfaces make retention the default planning assumption; retirement or reduction requires an explicit product decision.
M3 closure criteria
M3 is complete when:
- every retained V1 Interactive domain has one Host owner and a closed typed operation surface;
- the required domain slices have landed with their lifecycle and real-boundary acceptance intact;
- no retained V1 capability depends on a surface-local domain owner;
- M4 is limited to surface adapter wiring;
- M5 is limited to the atomic production cutover and deletion of the old embedded owners; and
- a current-code ownership audit has enumerated every remaining Desktop, CLI/TUI, and Bot owner or writer path and assigned it to [Tracking] Runtime Host M4 Desktop-first client adapters #2010 M4 adapter wiring or M5 deletion; OpenGateway was removed in refactor: remove desktop open gateway #1709.
Out of scope
- M4 production wiring or M5 production activation;
- remote multi-user hosting, RBAC, or a premature Workspace registry;
- merging Interactive Session and Headless TaskRun control loops;
- generic abstractions added only to make migration composition easier.
简体中文
追踪目标
本 issue 追踪 Runtime Host M3 领域所有权迁移,并以可独立审查的上游 slice 逐步交付。
#853 继续作为架构、ownership、lifecycle 与生产原子切换的权威来源。M3 实施边界修订记录了修正后的依赖形状。Client Capability Protocol 设计修订替换固定 Native Provider 词汇与首个 capability 切分,#853 的其余契约保持不变。本 tracker 只记录提取顺序、实现状态与关闭条件,不重新定义 RFC。
当前策略
- feat(runtime-host): integrate M3 domain ownership #1190 是已经冻结的集成/参考 Draft。它验证组合后的架构,但预计不会整体合并。
- 稳定领域从最新
main开始,按明确依赖提取为完整、内聚的 authority slice。领域完整度比单纯压小 diff 更重要。 - Slice 状态以表格所列的当前 GitHub 状态为准;Draft 只表示工作已经发布,不表示已经完成或可以进入 review。
- 任何 Host-owned domain slice 开始前,Host foundation 必须保证正常 drain 有界,并在 deadline 后通过 fail-stop 终止进程;ownership 只在进程死亡后由 OS 回收。
- 同版本 stale
v0Host 的识别属于 [Tracking] Runtime Host M4 Desktop-first client adapters #2010 追踪的 M4 production activation gate,不阻塞彼此独立、尚不 serving production 的 M3 提取。 - 不再向 feat(runtime-host): integrate M3 domain ownership #1190 累积新的领域 feature;只有维持集成证据所需的同步或修复应进入该分支。
- 已发布 slice 状态已同步至
main@26a52002e,其中包括已合并的 Deep Research feat(runtime-host): own Deep Research state #2099 与 Daily Review feat(runtime-host): own Daily Review runtime #2113 authority。 - Plan feat(runtime-host): own Plan runtime state #2082、Deep Research feat(runtime-host): own Deep Research state #2099 与 Daily Review feat(runtime-host): own Daily Review runtime #2113 authority 均已合并。Expert Team 已在 refactor: remove expert team mode #1721 删除。最终当前代码审计未发现剩余 M3 Host authority 缺口。
- 固定 Native Provider union 已由开放世界 Client Capability Protocol foundation 取代;production Client adapter 另由 [Tracking] Runtime Host M4 Desktop-first client adapters #2010 追踪。
提取地图
已发布 Slice
| Slice | 状态 | 完整边界 |
|---|---|---|
| 全双工 connection session(#1350) | 已合并 | 持续 inbound pump、有界串行 outbound delivery、read EOF、reply drain、connection teardown |
| Kind-bound Storage + Headless boundary(#1354) | 已合并 | root kind、lease-bound writer authority、Headless fail-closed 隔离、Harbor evidence |
| 有界 shutdown foundation(#1355) | 已合并 | 有界 drain、fail-stop 进程终止、OS 回收 owner lock |
| Protocol/dispatcher 与 root-admission foundation(#1356) | 已合并 | 封闭 typed dispatch、已被消费的 lifecycle availability、Session/root admission |
| Message authority foundation(#1357) | 已合并 | canonical MessageContent、durable source identity、Host queue/lease/interrupt authority、Runtime terminal handoff |
| Canonical Session projection + continuity(#1358) | 已合并 | canonical closed snapshot、原子 snapshot/live barrier、有界 connection-scoped subscription、显式 Client reload |
| Interaction authority(#1359) | 已合并 | canonical-safe Permission/Question fact、durable first-winner Store、Run-scoped continuation、多 Client arbitration/recovery/terminal authority |
| Runtime Policy authority(#1401) | 已合并 | canonical contract、lease-bound CAS、redacted credential authority、typed Host operation、backend activation/invalidation |
| Artifact authority(#1503) | 已合并 | canonical identity、atomic publication/recovery、exact retry、revision-pinned query、tombstone/purge、protected evidence |
| Task Ledger authority(#1504) | 已合并 | 经过 lease 认证的 canonical reader/writer、Runtime TaskLedgerStore port、有界且绑定 revision 的 Host query、保守 resume trust |
| Hosted root execution foundation(#1551) | 已合并 | 精确 execution admission 与 identity、pending-start cancellation、claimed graph composition、root ownership、terminal handoff 与 recovery |
| Skill Catalog authority(#1575) | 已合并 | inventory、绑定 revision 的 query、governed source state、managed publication/recovery、有界 Host operation 与 model-facing projection |
| Connection Effects authority(#1589) | 已合并 | canonical model discovery 与 connection testing、durable effect identity/result、有界 provider work、commit 后 activation invalidation |
| Usage / Pricing authority(#1596) | 已合并 | lease-bound telemetry/pricing writer、有界 usage projection、pricing CAS、publication recovery、flush/drain/close |
| Canonical Memory authority(#1610) | 已合并 | revisioned Memory bundle、fail-closed recovery、policy/incognito gate、有界 Host operation、Session-correct prompt projection |
| Managed process lifecycle foundation(#1622) | 已合并 | spawn 前 durable identity、pending-start fence、有界 process-tree termination、相互独立的 root exit/output drain 边界、orphan recovery |
| 托管真实模型执行(#1637) | 已合并 | canonical Backend/Prompt/Tool composition、一致的 Runtime Policy/Memory snapshot、provider request capture 与归因、activation-safe backend invalidation |
| Session catalog/config authority(#1651) | 已合并 | Host-owned catalog query/create、metadata/config/read-marker mutation、多 Client 串行化与 revision continuity |
| Client Capability Protocol foundation(#1656) | 已合并 | 开放世界 registration/discovery、通用 model-tool projection、冻结 affinity binding、reverse-call lifecycle、durable outcome/cancel/provider-death 语义、真实 UDS unknown-capability fixture;在 Client adapter 提供 managed permission mapping 前保持 Bypass-only |
| Session revision authority(#1664) | 已合并 | Host-owned branch/revision 创建、精确跨 Session ledger copy、lineage projection、retry 与 recovery |
| Runtime Resources authority(#1722) | 已合并 | Host-owned Shell/PTY/filesystem-worker tool、lease-bound persistence、controller fence、orphan recovery、residency 与有界 shutdown |
| OAuth execution credential authority(#1757) | 已合并 | canonical credential 消费、绑定 generation 的 refresh/CAS、动态 request auth、abort 与 publication uncertainty recovery |
| Automation authority(#1798) | 已合并 | canonical Store/CAS 与 legacy cutover、有界 v0 Host operation 和 model tool、durable fire identity、scheduling/recovery/residency/drain、真实 UDS 多 Client 证据 |
| Goal authority(#1814) | 已合并 | Host-owned Goal 生命周期、revision CAS 控制、canonical root admission、evaluator 取消与 telemetry、crash-window recovery |
| OAuth enrollment 与 presentation(#1859) | 已合并 | Host-owned provider enrollment、Client-owned presentation service、credential confinement、cancellation/deadline 语义与 activation invalidation |
| Session retirement lifecycle(#1866) | 已合并 | archive/unarchive/remove、revision-family retirement、跨领域 owner fence、原子 tombstone 与可重试 transcript cleanup |
| 在线 Interactive inspection(#1895) | 已合并 | canonical versioned Session/AgentRun document、有界 existing-Host 只读路径、重复 identity 显式解析与离线只读语义保留 |
| Hosted child orchestration 基础(#1906) | 已合并 | canonical parent tool、Host-linked child Session 生命周期、固定且不可递归的 tool ceiling、精确 committed Artifact 结果与 per-Turn orchestration admission |
| Hosted implementation children(#1911) | 已合并 | Host-owned 隔离 Git worktree、持久完整 patch write-back 与恢复、仅限受管入口的 child admission、绑定 Session 的 retirement |
| Hosted WebSearch execution(#1914) | 已合并 | 原子 Runtime Policy/credential/proxy admission、有界 Tavily execution、root WebSearch composition,以及仅含 WebSearch 的可运行 web_research child |
| Hosted Agent Graph execution(#1917) | 已合并 | Host-owned Graph tool 与精确 supervisor admission、durable wake/recovery、child execution、stale-wake supersession、residency 和 Session-retirement fence |
| Agent Graph Client operation(#1926) | 已合并 | 有界 Client query/operator inspection 与显式 stop、root subscription invalidation、持久 terminal-history pagination、严格递归 wire projection、多 Client 断开与重连语义 |
| Agent Graph Session 生命周期清理(#1928) | 已合并 | revision-family 生命周期闭包、operator 原子退休、可重试 Graph sidecar 清理、历史 orphan 恢复与 projection/remove 竞态 fence |
| Hosted sandbox-boundary authority(#1935) | 已合并 | Host-owned sandbox-boundary admission/settlement、canonical Interaction publication、Graph permission wake、stop/publication fence 与有界 expansion |
| Safe-boundary continuation authority(#1996) | 已合并 | Host-owned safety inspection、typed resume planning/start、精确 source high-water、Client Capability rebinding、admission 与 recovery fence |
| Interactive Session action(#2023) | 已合并 | regenerate、context diagnostics/compact、cwd relocation、durable lineage、admission 与 recovery |
| 输入与 Artifact preparation(#2031) | 已合并 | 显式 Skill 解析、connection-scoped Artifact ingest、canonical attachment 校验、tool Artifact 与超大结果归档 |
| Agent Graph revision history(#2039) | 已合并 | revision 间保留已验证的 terminal Graph child/Run/Artifact 引用、独立 target Graph、拒绝 live/incomplete provenance |
| 派生 Session effect(#2066) | 已合并 | Host-owned title/recap model effect、durable evidence、exact retry、accounting、drain 与 retirement fence |
| Plan runtime authority(#2082) | 已合并 | lease-authenticated Plan state、有界 query/control、规划与执行组合、retry/recovery 和 legacy projection |
| Deep Research runtime authority(#2099) | 已合并 | lease-authenticated ledger、Session-scoped Artifact tool、有界 query projection、model-tool composition、重启与清理 lifecycle |
| Daily Review runtime authority(#2113) | 已合并 | lease-authenticated 配置/归档 authority、完整 canonical Session/Usage projection、统一模型执行与计量、原子发布/保留策略、调度与恢复 lifecycle |
M3 closure 审计
#2099 与 #2113 合并后,已基于 main@26a52002e 完成最终 ownership/writer 审计。所有保留的 Interactive Runtime domain 均已具有 Host owner。
| 审计领域 | 当前结论 | 剩余阶段 |
|---|---|---|
| 保留的产品 Runtime domain | Plan #2082、Deep Research #2099 与 Daily Review #2113 均已合并 | M3 无剩余项 |
Desktop、CLI/TUI、maka run 与 Bot embedded owner/writer |
每条 Runtime 路径均可映射到既有 Host authority | M4 typed adapter wiring 与 M5 原子删除/切换 |
| 相邻产品服务与 native tool | Plan Reminder 保持 Client-owned presentation;Browser、Computer Use、MCP 等自描述工具走 Client Capability provider | M4 |
本次审计覆盖 production SessionManager construction、startup recovery、Runtime scheduler、Interactive Store writer、provider-backed generation、Bot Turn submission 与 Session metadata mutation。Plan Reminder 只投递 UI/Bot notification,不创建 Runtime Turn,因此保持 Client-owned;读取 Host-owned state 时必须使用 typed Host query。
Sandbox-boundary admission 与 Graph permission wake 已由 #1935 解决;continuation safety 与 typed resume 已由 #1996 解决;Runtime Policy foundation 已由 #1401 提供。这些已完成边界不再列为剩余缺口。
Browser、Computer Use、MCP、Rive 与 Client-local explore worker 等自描述 Client tool,继续按开放世界协议归入 #2010 追踪的 M4 Client Capability provider 工作。OpenGateway 已在 #1709 删除,不再存在当前 adapter migration。
领域完整度仍优先于压小 diff。只有共享同一个 owner、commit point 与 failure/recovery boundary 的工作才适合合并。
Gate 所属阶段
- 任何 Host-owned domain 提取前: 正常 drain 必须有界;deadline 后 Host 进入 fail-stop,不通过正常 cleanup 释放 ownership,而是终止进程并由 OS 回收 lock。
- M4 production activation 前: 握手必须通过 schema/build fingerprint 或等价 epoch identity 区分不兼容的同版本 Host。该 replacement-detection 工作由 [Tracking] Runtime Host M4 Desktop-first client adapters #2010 追踪,不是兼容层。
- 已在 feat(runtime-host): establish hosted root execution foundation #1551 解决: 所有 Hosted graph activation 均经由 canonical root admission 与 exact stop authority;pending-start cancellation 已覆盖 backend construction、
run.begin()与首个 iterator step。 - 已在 feat(runtime-host): host sandbox boundary interactions #1935 解决: sandbox-boundary admission/settlement 已收归 Host,Graph permission response 会唤醒 canonical supervisor path。
- 已在 feat(runtime-host): add safe-boundary continuation authority #1996 解决: safe-boundary continuation safety、typed resume query/start、admission、rebinding 与 recovery 已收归 Host。
- M5 原子切换前: 枚举并关闭或删除全部 embedded raw writer 路径;仍有 live embedded writer 时,production Host 不得打开同一个 root。
- 已在 feat(runtime-host): establish protocol and admission foundations #1356 解决: malformed dispatch 与 ambiguous durable admission outcome 会 fail closed,protocol lifecycle availability 与 command mode 均具有真实 Kernel consumer。
Slice 验收
每个 slice 必须:
- 从声明的上游基线提供完整、可独立理解的领域边界,而不是只追求最小 diff;
- 建立一个清晰的 writer/authority boundary,且不提前引入第二个 production Interactive owner;
- 在领域需要时明确 commit、retry、disconnect、Host death、drain、close 与 recovery 语义;
- 继续以 durable fact 为事实源,不增加通用 Store、model、plugin 或 transaction RPC;
- 在 M4/M5 前不改变 production entrypoint;
- 对依赖真实 Store、进程、UDS 或 successor 边界的行为使用真实覆盖;
- 不为尚未发布的实验整数
v0协议增加兼容机制,但在 production activation 前完成 M4 stale-Host detection gate; - 对开放世界 Client capability slice,使用 Host capability 代码完全未知的 Client fixture,证明其能在真实连接上 registration、经
load_tools出现、执行并断开,且 Host 不需要 capability-specific dispatch。
集成证据
#1190 仍是冻结的集成/参考 Draft,不是 merge base。其中大部分 M3 领域已从更新的 main 基线重新提取,并以独立审查的 slice 落地;这些 slice 通常采用了更新的边界,并补强了 Store、UDS、lifecycle 与 successor-process 证据。上方“已发布 Slice”表格是交付状态的权威来源;#1190 只保留历史跨领域集成证据,不再承载新的领域工作。
产品与 ownership 决策 Gate
- Plan: Host-owned Plan state、control、projection、execution lifecycle、recovery 与有界 legacy projection 已在 feat(runtime-host): own Plan runtime state #2082 合并;production Client adapter wiring 仍属于 M4。
- Deep Research: Host-owned ledger、Session-scoped Artifact tool、query projection、model-tool composition、重启恢复与清理已在 feat(runtime-host): own Deep Research state #2099 合并。
- Daily Review: canonical data read、credential 使用、model generation、archive publication、retention、scheduling、recovery 与 accounting 已归 Host,并在 feat(runtime-host): own Daily Review runtime #2113 合并;presentation 继续由 Client 持有。
- Expert Team: 已在 refactor: remove expert team mode #1721 删除,不再存在 M3 ownership 决策。
这些决策不阻塞无关 authority 工作,但每个保留能力都必须在 M3 关闭前拥有明确 owner。由于这些仍是活跃产品 surface,规划默认保留;退休或收缩必须作出明确产品决策。
M3 关闭条件
满足以下条件后,M3 才算完成:
- 每个保留的 V1 Interactive 领域都具有唯一 Host owner 与封闭 typed operation surface;
- 所需领域 slice 已合并,并保持 lifecycle 与真实边界验收;
- 没有保留的 V1 能力仍依赖 surface-local domain owner;
- M4 只剩 surface adapter wiring;
- M5 只剩 production atomic cutover 与删除旧 embedded owner;
- 基于当前代码的 ownership audit 已枚举所有剩余 Desktop、CLI/TUI 与 Bot owner 或 writer path,并将其明确归入 [Tracking] Runtime Host M4 Desktop-first client adapters #2010 M4 adapter wiring 或 M5 删除范围;OpenGateway 已在 refactor: remove desktop open gateway #1709 删除。
不在范围内
- M4 production wiring 或 M5 production activation;
- remote multi-user hosting、RBAC 或过早引入 Workspace registry;
- 合并 Interactive Session 与 Headless TaskRun control loop;
- 仅为了迁移组合方便而新增的通用抽象。
Activity
feat(runtime-host): add full-duplex connection sessions (#1350)
feat(storage): establish kind-bound Headless execution authority (#1354)
feat(runtime-host): bound shutdown with process fail-stop (#1355)
me2seeks commentedon Aug 1, 2026
I’m taking the Automation authority slice and opened #1792 with the implementation and acceptance boundary.
The slice keeps production entrypoints unchanged and moves only Automation’s Store, scheduler, fire lifecycle, recovery, residency, typed operations, and model tool behind Host ownership. It preserves the current heartbeat/cron behavior and keeps Goal, Daily Review, Session retirement, M4 adapters, and the M5 cutover out of scope.
I’ll build it from the latest main as one cohesive M3 authority slice, with real Store, UDS, response-loss, and successor-process evidence.
我来负责 Automation authority slice,并已在 #1792 中给出实现与验收边界。
这个 slice 保持生产入口不变,只将 Automation 的 Store、scheduler、fire lifecycle、recovery、residency、typed operation 与 model tool 收归 Host ownership。它保留现有 heartbeat/cron 行为,并将 Goal、Daily Review、Session retirement、M4 adapter 和 M5 cutover 排除在本次范围外。
我会基于最新 main 将其作为一个完整的 M3 authority slice 实现,并提供真实 Store、UDS、response-loss 与 successor-process 证据。
Astro-Han commentedon Aug 1, 2026
@me2seeks I think @M4n5ter is already working on it, it would be best to negotiate with him.
M4n5ter commentedon Aug 1, 2026
English
@Astro-Han @me2seeks Thanks for checking, and sorry that the tracker did not make the active work visible enough.
For context, #1190 already contains an integrated reference implementation covering nearly the full M3 migration tracked by #1167. As Maka has evolved, I have been reworking and extracting those domains from the latest
mainas independently reviewable slices, rather than merging #1190 as a whole.The Automation authority slice is already implemented on my local branch and is currently going through full review and validation. I plan to publish it as a Draft PR once that process is complete. The core boundary described in #1792 is therefore substantially overlapping with work already in progress.
@me2seeks, would you mind pausing the Automation implementation for now so we can avoid duplicating the same work? I appreciate the investigation and the careful acceptance boundary you wrote up. I would also be happy to share context or coordinate on another contribution after this slice is published.
I will update #1167 when the Draft PR is available so the active status is clearer. Thank you both.
简体中文
@Astro-Han @me2seeks 感谢确认,也抱歉 tracker 没有把正在进行的工作展示得足够清楚。
补充一下背景:#1190 已经包含了一个集成参考实现,覆盖了 #1167 所追踪的绝大部分 M3 迁移。随着 Maka 持续演进,我一直在基于最新
main重新设计并提取这些领域,使其成为可以独立审查的 slices,而不是直接整体合并 #1190。Automation authority slice 已经在我的本地分支完成主体实现,目前正在进行完整 review 与验证;这些工作完成后,我会发布 Draft PR。因此,#1792 描述的核心边界与当前正在进行的实现已有较大重叠。
@me2seeks,为了避免双方重复实现同一项工作,能否请你暂时先停一下 Automation 的实施?非常感谢你已经做的调查,以及认真整理的验收边界。这个 slice 发布后,我也很愿意分享相关上下文,或者再协调其他适合参与的工作。
Draft PR 发布后,我会及时更新 #1167,让正在进行的状态更加清楚。再次感谢两位。
M4n5ter commentedon Aug 1, 2026
Automation authority is now available as Draft PR #1798. It establishes Host-owned canonical storage, protocol, scheduling, and recovery while keeping client-surface activation out of scope. I will keep the tracker status aligned as review proceeds.
M4n5ter commentedon Aug 4, 2026
M3 is complete. The final current-code owner/writer audit against
main@26a52002efound no retained Interactive Runtime domain without a Host authority. Every remaining production embedded owner/writer path maps to typed M4 client-adapter wiring or M5 atomic deletion; no additional M3 domain extraction remains.Closing this tracker as completed. Desktop-first M4 adapter preparation continues in #2010, and the production ownership switch remains an M5 gate.